/* ============================================================
   Wokaway — reset, type scale and layout primitives.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The lime-washed paper the whole site sits on. A single faint texture,
   fixed, so scrolling feels like moving across one surface rather than
   through a stack of cards. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('/images/opt/texture-limewash-1200.webp');
  background-size: 900px auto;
  opacity: .5;
  mix-blend-mode: multiply;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p, li { text-wrap: pretty; }
p { margin: 0 0 var(--sp-3); max-width: 62ch; }

a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { color: var(--terracotta); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: var(--radius);
}

img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }

hr { border: 0; border-top: 1px solid var(--rule); margin: var(--sp-5) 0; }

::selection { background: var(--bowl-yellow); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--forest); color: var(--text-invert);
  padding: var(--sp-2) var(--sp-3);
}
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── layout ──────────────────────────────────────────────── */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.section { padding-block: var(--sp-6); }
.section--tight { padding-block: var(--sp-5); }
.section--loose { padding-block: var(--sp-7); }

/* ── the brand mark ──────────────────────────────────────── */

.yeungsum {
  font-family: var(--font-mark);
  /* ⛔ A token, not the raw terracotta: on the terracotta band the mark was
     rendering red on red and was completely invisible. */
  color: var(--mark-color, var(--terracotta));
  font-size: var(--step-3);
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-2);
  letter-spacing: .08em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--sp-2);
}

/* The line hand-painted on their wall, in their voice. */
.wallscript {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.25;
  color: var(--ink-soft);
  letter-spacing: -.01em;
}

/* ── motion ──────────────────────────────────────────────── */
/* Restrained by design: a hungry traveller on island 4G is the reader.
   Everything below is opt-in per element and fully removed under
   prefers-reduced-motion. */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
