:root {
  color-scheme: dark;
  --paper: #f1eee7;
  --muted: #a49f96;
  --line: #262522;
  --gold: #c6a36a;
  --black: #0a0a09;
}

* { box-sizing: border-box; }

html { background: var(--black); }

body {
  margin: 0;
  background: radial-gradient(ellipse 70% 50% at 77% 59%, #1b1813 0%, var(--black) 70%);
  color: var(--paper);
  font-family: "DM Mono", ui-monospace, monospace;
}

main { max-width: 1220px; margin: 0 auto; padding: 8vw 5vw 10vw; }

.entry { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(300px, .85fr); column-gap: clamp(3rem, 9vw, 9rem); }

header, .definition { grid-column: 1; }

.eyebrow, .part-of-speech, h2, footer p:first-child, figcaption {
  color: var(--gold);
  font-size: .65rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow { margin: 0 0 2rem; }
.eyebrow span { color: #58554e; padding: 0 .35rem; }

h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -.07em;
  line-height: .85;
}

.pronunciation { margin: 1.4rem 0 4rem; color: var(--muted); font-size: .8rem; }
.speaker { padding: 0; border: 0; background: transparent; cursor: pointer; filter: grayscale(1); font-size: .8rem; }
.speaker:hover, .speaker:focus-visible { filter: none; }

.definition { max-width: 490px; }
.part-of-speech { margin: 0 0 1.5rem; color: var(--muted); }
article { border-top: 1px solid var(--line); padding: 1.4rem 0 1.75rem; }
h2 { margin: 0 0 1.3rem; font-weight: 500; }
h2 span { color: var(--muted); padding-right: .55rem; }
article p { margin: 0 0 1rem; color: #d5d1c9; font-size: .87rem; line-height: 1.85; }
blockquote { margin: 1.5rem 0 0; padding-left: 1.15rem; border-left: 1px solid var(--gold); color: var(--paper); font-family: "Playfair Display", Georgia, serif; font-size: 1.1rem; font-style: italic; line-height: 1.5; }
footer { padding-top: .25rem; }
footer p { margin: 0 0 .6rem; }
footer p:last-child { color: var(--muted); font-size: .78rem; }

figure { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; position: sticky; top: 4rem; }
figure::before { content: ""; position: absolute; inset: -1px; background: linear-gradient(135deg, var(--gold), transparent 30%, transparent 70%, var(--gold)); z-index: -1; opacity: .7; }
img { display: block; width: 100%; max-height: 780px; object-fit: cover; object-position: center; filter: saturate(.8) contrast(1.05); }
figcaption { margin-top: .8rem; text-align: right; color: var(--muted); font-size: .58rem; }

@media (max-width: 760px) {
  main { padding: 4rem 1.5rem 5rem; }
  .entry { display: block; }
  .pronunciation { margin-bottom: 3.5rem; }
  figure { position: relative; top: auto; margin-top: 3.5rem; }
  img { max-height: none; }
}
