/* Ethan Halland Photography — Meridian, from his own frames.
 *
 * §5 extraction on his 18 photographs returned a bright cool ground, a deep
 * near-black, a BROWN accent and a slate blue second. Two adjustments, both
 * from his own words:
 *
 *   "I enjoy earthy colors maybe as accents but overall looking for a brighter
 *    layout. Browns and greens I really like."
 *
 * So the ground stays bright — his references are white, not cream, and he asked
 * for bright explicitly. The brown accent is kept as extracted. The slate second
 * accent is replaced with a green, because he named greens and the extraction
 * found water and sky rather than the trees.
 *
 * EARTHY AS ACCENT, NOT AS GROUND. That distinction is his and it is the whole
 * palette decision — see REFERENCES.md.
 *
 * MEASURED against both grounds:
 *
 *   token     on --bg   on --surface
 *   ink        16.11       14.84
 *   muted       5.42        4.99
 *   accent      6.44        5.93
 *   accent-2    7.32        6.75
 *   on-deep    15.88  on --deep
 */

:root {
  --bg:       #F7F8F9;   /* bright, faintly cool — his references are white */
  --surface:  #ECEFF2;
  --ink:      #161C24;   /* 16.11:1 — extracted */
  --muted:    #5C6773;   /*  5.42:1 — body-legal */
  --accent:   #6E5730;   /*  6.44:1 — brown, extracted from his frames */
  --accent-2: #42583E;   /*  7.32:1 — green, his stated preference */
  --line:     #DCE1E6;
  --deep:     #141A21;
  --on-deep:  #F2F4F6;   /* 15.88:1 on --deep */

  --radius: 0px;
  --rule:   1px;
  --track:  .22em;
  --pad-y:  clamp(56px, 8vw, 112px);
  --measure: 66ch;

  --display: "Iowan Old Style", Charter, "Palatino Linotype", Georgia, serif;
  --body:    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:    ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(12.5px, .25vw + 12px, 13.5px);
  --step-0:  clamp(15.5px, .3vw + 15px, 17px);
  --step-1:  clamp(17.5px, .45vw + 16px, 20px);
  --step-2:  clamp(20px, .9vw + 17px, 26px);
  --step-3:  clamp(25px, 1.7vw + 19px, 36px);
  --step-4:  clamp(30px, 3.4vw + 20px, 58px);
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.14;
  margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
img { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, .word:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap   { width: min(100% - 44px, 1280px); margin-inline: auto; }
.narrow { width: min(100% - 44px, var(--measure)); margin-inline: auto; }

/* Meridian's signature: every frame carries its own metadata line. */
.meta { font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); }

.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }

.btn { display: inline-block; padding: 14px 28px; border: 1px solid var(--ink);
  color: var(--ink); text-decoration: none; font-family: var(--mono);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease; }
.btn:hover { background: var(--ink); color: var(--bg); }

.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--bg);
  padding: 12px 18px; z-index: 20; }
.skip:focus { left: 14px; top: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important;
    scroll-behavior: auto !important; }
}
