/* Oribuki LLC — oribuki.com
   Palette derived from the olive tree: silvered leaf, green-black bark, fruit, oil. */

@font-face {
  font-family: "Switzer";
  src: url("/assets/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f6f7f3;
  --ink: #1b1f19;
  --ink-soft: #3d443a;
  --olive: #54663d;
  --leaf: #677359;
  --leaf-faint: #a9b3a1;
  --oil: #a98b3f;
  --hairline: rgba(27, 31, 25, 0.14);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161913;
    --ink: #e9ebe4;
    --ink-soft: #c2c7ba;
    --olive: #98ad78;
    --leaf: #8a947f;
    --leaf-faint: #616a58;
    --oil: #c4a55c;
    --hairline: rgba(233, 235, 228, 0.16);
  }
}

* { margin: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  min-height: 100%;
  font-family: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.6;
  font-weight: 410;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- header ---- */

.site-head {
  padding: 30px 0 0;
}

.site-head .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.brand .rings { flex: none; }

.wordmark {
  font-size: 13.5px;
  font-weight: 620;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transform: translateY(0.5px);
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--olive);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* ---- main ---- */

main { flex: 1; }

.hero { padding-top: clamp(72px, 16vh, 150px); }

h1 {
  font-size: clamp(38px, 6.6vw, 60px);
  line-height: 1.06;
  font-weight: 480;
  letter-spacing: -0.024em;
  max-width: 19ch;
  text-wrap: balance;
}

.lede {
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.58;
  color: var(--ink-soft);
  max-width: 52ch;
  text-wrap: pretty;
}

/* verb section — the actual business, not decoration */

.verbs {
  margin-top: clamp(76px, 13vh, 120px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 44px;
}

.verbs h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive);
}

.verbs p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---- inner pages ---- */

.page { padding-top: clamp(64px, 12vh, 120px); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive);
}

.page h1 {
  margin-top: 18px;
  font-size: clamp(32px, 5vw, 46px);
  max-width: 21ch;
}

.prose { margin-top: 34px; max-width: 56ch; }

.prose p + p { margin-top: 1.1em; }

/* facts */

.facts {
  margin-top: clamp(56px, 9vh, 84px);
  border-top: 1px solid var(--hairline);
  padding-top: 30px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 13px 40px;
  font-size: 15px;
  max-width: 560px;
}

.facts dt { color: var(--leaf); }

.facts dd a { color: inherit; text-underline-offset: 3px; }

/* contact */

.mail-act {
  margin-top: 40px;
  display: inline-block;
  font-size: clamp(24px, 4.4vw, 38px);
  font-weight: 480;
  letter-spacing: -0.018em;
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--olive);
  padding-bottom: 5px;
}

.mail-act:hover { color: var(--olive); }

.aside-note {
  margin-top: 22px;
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---- footer ---- */

.site-foot {
  margin-top: clamp(88px, 15vh, 160px);
  padding: 26px 0 34px;
}

.site-foot .shell {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--leaf);
}

.site-foot a { color: inherit; text-underline-offset: 3px; }

/* ---- ring mark: Oribuki's O as growth rings, heartwood off-centre ---- */

.rings circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(9px);
    animation: rise 0.62s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }
  .rise:nth-child(2), .d1 { animation-delay: 0.08s; }
  .rise:nth-child(3), .d2 { animation-delay: 0.16s; }
  .d3 { animation-delay: 0.24s; }

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }

  .rings circle {
    stroke-dasharray: var(--c);
    stroke-dashoffset: var(--c);
    animation: grow 0.9s cubic-bezier(0.3, 0, 0.2, 1) forwards;
  }
  .rings circle:nth-child(1) { animation-delay: 0.05s; }
  .rings circle:nth-child(2) { animation-delay: 0.2s; }
  .rings circle:nth-child(3) { animation-delay: 0.35s; }

  @keyframes grow {
    to { stroke-dashoffset: 0; }
  }
}

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: rgba(84, 102, 61, 0.22); }

@media (max-width: 620px) {
  .verbs { grid-template-columns: 1fr; gap: 30px; }
  .facts { grid-template-columns: 1fr; gap: 4px; }
  .facts dt { margin-top: 14px; }
  .facts dt:first-child { margin-top: 0; }
  .site-nav { gap: 20px; }
}
