/* ============================================================================
   Orison Lab — orisonlab.com company site
   The quiet, corporate sibling of sites/orison-day: same palette and type
   (traced to ADR-027 / docs/brand), lower volume. A letterhead, not a landing.
   Self-hosted, zero external network dependencies, no JS anywhere.
   ============================================================================ */

/* --- minimal reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ============================================================================
   Tokens — identical values to orison.day's sheet, so the two sites read as
   one family. Light (dawn / parchment) default; dark follows the system.
   ============================================================================ */
:root {
  --ground:        #F7F2E9;
  --ground-raised: #FFFDF8;
  --ground-sunk:   #F1EADC;
  --ink:           #2E2A24;
  --ink-muted:     #5E564B;
  --ink-whisper:   #857B6C;
  --ember:         #B4763A;   /* AA on parchment (darkened from #C98A4B) */
  --ember-soft:    #C98A4B;   /* decorative rules / large marks only */
  --hairline:      #E3DACB;
  --hairline-soft: #EDE6D8;

  --measure: 58ch;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:        #14161C;
    --ground-raised: #1C1F27;
    --ground-sunk:   #101218;
    --ink:           #EDE7DB;
    --ink-muted:     #B7AE9F;
    --ink-whisper:   #93897A;
    --ember:         #D9A05C;
    --ember-soft:    #D9A05C;
    --hairline:      #2A2E38;
    --hairline-soft: #23262F;
  }
}

/* ============================================================================
   Base
   ============================================================================ */
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "onum";
}

h1, h2 { font-weight: 300; line-height: 1.22; letter-spacing: 0.01em; text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: rgba(180, 118, 58, 0.22); }

/* --- accessibility: focus + skip link --- */
:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-140%);
  top: 0.75rem;
  z-index: 100;
  background: var(--ground-raised);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 200ms var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* --- shared layout: a single reading column, set like a letterhead --- */
.wrap {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ============================================================================
   Letterhead
   ============================================================================ */
.letterhead .wrap {
  padding-block: clamp(1.6rem, 4vh, 2.4rem) 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.brand .mark { width: 28px; height: 28px; color: var(--ink); }
.brand .mark svg { width: 100%; height: auto; }
.brand .wordmark { font-size: 1.3rem; font-weight: 300; letter-spacing: 0.02em; }

/* ============================================================================
   Main — one company, one page
   ============================================================================ */
main { flex: 1; }
main .wrap { padding-block: clamp(4rem, 12vh, 7.5rem) clamp(3rem, 8vh, 5rem); }

/* Small-caps labels are set in --ink-muted, not the product site's --ember:
   at caption sizes ember is 3.37:1 on parchment (checked against the real
   token values), below the 4.5:1 AA floor. Ember stays decorative here. */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
}
h1 {
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  margin-bottom: clamp(1.2rem, 3vh, 1.7rem);
}
.lede {
  font-size: clamp(1.12rem, 2.2vw, 1.28rem);
  line-height: 1.68;
  color: var(--ink-muted);
  max-width: var(--measure);
}
.lede a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ember-soft);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.lede a:hover { border-bottom-color: var(--ember); }

/* the one action on the page: the way to the product */
.visit { margin-top: clamp(1.8rem, 4vh, 2.4rem); }
.visit a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.02rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.62rem 1.5rem;
  background: var(--ground-raised);
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.visit a:hover { border-color: var(--ember); }
.visit .domain { font-style: italic; }

/* --- sections: a hairline and a small-caps heading, register-extract quiet --- */
section + section { margin-top: clamp(3rem, 8vh, 4.5rem); }
section h2 {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-muted); /* whisper is 3.73:1 on parchment — below AA */
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
  margin-bottom: 1.4rem;
}

/* --- company register extract --- */
.registry dl {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  column-gap: clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--measure);
}
.registry dt,
.registry dd {
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--hairline-soft);
}
.registry dt { color: var(--ink-muted); font-size: 0.95rem; }
.registry dd { font-feature-settings: "kern", "liga", "tnum"; }
.registry dt:last-of-type,
.registry dd:last-of-type { border-bottom: 0; }
@media (max-width: 30rem) {
  .registry dl { grid-template-columns: 1fr; }
  .registry dt { padding-bottom: 0.1rem; border-bottom: 0; }
  .registry dd { padding-top: 0.1rem; }
}

/* --- contact --- */
.contact p { color: var(--ink-muted); max-width: var(--measure); }
.contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ember-soft);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.contact a:hover { border-bottom-color: var(--ember); }

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer { border-top: 1px solid var(--hairline); background: var(--ground-sunk); }
.site-footer .wrap {
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  color: var(--ink-muted); /* whisper fails AA at this size on ground-sunk */
  font-size: 0.88rem;
}
.site-footer a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.site-footer a:hover { color: var(--ink); border-bottom-color: var(--ember-soft); }

/* ============================================================================
   Not-found page
   ============================================================================ */
.notfound p + p { margin-top: 1.1rem; }
.notfound p { color: var(--ink-muted); max-width: var(--measure); }
.notfound a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ember-soft);
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.notfound a:hover { border-bottom-color: var(--ember); }

/* ============================================================================
   Reduced motion — the only motion here is hover/focus transitions; still them
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
