/* Inter 4.1 (rsms/inter), SIL Open Font License 1.1: see assets/fonts/OFL.txt */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/Inter-Italic.woff2") format("woff2"); }

:root {
  --black: #0b0b0b;
  --cream: #f3f1e3;
  --cream-2: rgba(243, 241, 227, .72);
  --muted: rgba(243, 241, 227, .5);
  --rule: rgba(243, 241, 227, .14);
  --sand: #e2d0ac;
  --ink: #1e1e1e;
  --ink-2: rgba(30, 30, 30, .8);
  --ink-3: rgba(30, 30, 30, .56);
  --ink-rule: rgba(30, 30, 30, .16);
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
  --gutter: clamp(16px, 3.2vw, 48px);
  --band: clamp(68px, 8vw, 96px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--black); }
body {
  background: var(--black); color: var(--cream); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color .3s, color .3s; }
a:hover, a:focus-visible { border-bottom-color: var(--sand); outline: none; }
.label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
mark.ph { background: #f3dc8a; color: #3a2f00; padding: 0 4px; border-radius: 2px; }

/* ---------- Landing ---------- */
.landing {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: var(--gutter) var(--gutter) 0; overflow: hidden;
}
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.intro { max-width: 40ch; font-size: clamp(1.05rem, 1.8vw, 1.5rem); line-height: 1.45; letter-spacing: -.005em; color: rgba(243, 241, 227, .86); text-wrap: pretty; }
.smallprint p, .doc p { text-wrap: pretty; }
.enquiries { text-align: right; font-size: .92rem; line-height: 1.8; white-space: nowrap; }
.spacer { flex: 1; min-height: 12vh; }
.smallprint {
  display: grid; grid-template-columns: max-content minmax(0, 68ch); justify-content: space-between;
  gap: 12px 40px; padding: 18px 0 clamp(18px, 2.4vw, 32px); border-top: 1px solid var(--rule);
  font-size: .72rem; line-height: 1.6; color: var(--muted);
}
.smallprint nav { display: flex; gap: 18px; flex-wrap: wrap; }
.smallprint nav a { color: var(--cream-2); }
.top, .smallprint { transition: opacity .45s ease; }
.top > *, .smallprint > * { opacity: 0; animation: fade 1.2s ease 1.3s forwards; }

.mark-wrap {
  position: relative; z-index: 20;
  overflow: hidden; margin: 0; padding-bottom: clamp(10px, 1.4vw, 22px);
  transition: transform 1.05s var(--ease-io);
}
.mark-wrap a { display: block; border: 0; }
.wordmark { display: block; width: 100%; height: auto; color: var(--cream); transform: translateY(105%); animation: rise 1.6s var(--ease) .25s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Sheet (legal notice and privacy) ---------- */
.sheet { margin: 0 var(--gutter); border-top: 1px solid var(--rule); }
.js .sheet {
  position: fixed; z-index: 15; left: var(--gutter); right: var(--gutter); bottom: 0; top: var(--band);
  margin: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--black);
  opacity: 0; transform: translateY(24px); visibility: hidden;
  transition: opacity .5s ease, transform .9s var(--ease-io), visibility 0s .9s;
}
.doc { padding: 18px 0 40px; font-size: .72rem; line-height: 1.6; color: var(--muted); }
.doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.doc h1, .doc h2 { font: inherit; color: inherit; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 6px; }
.doc h1 { margin: 0; }
.doc-body { column-width: 250px; column-count: 4; column-gap: 40px; }
.doc section { break-inside: avoid; margin-bottom: 20px; }
.doc section.long { break-inside: auto; }
.doc h2 { break-after: avoid; }
.doc p { margin-bottom: 8px; }
.doc em { font-style: italic; }
.doc a { border-bottom-color: var(--rule); }
.doc .updated { margin-top: 12px; }
.js .doc { display: none; }
.js .doc.is-active { display: block; }

.close {
  display: flex; align-items: center; gap: 8px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--cream-2);
  font: inherit; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; transition: color .3s;
}
.close:hover, .close:focus-visible { color: var(--cream); outline: none; }
html:not(.js) .close { display: none; }

/* Open state */
.is-open { overflow: hidden; }
.is-open .top, .is-open .smallprint { opacity: 0; pointer-events: none; }
.is-open .sheet { opacity: 1; transform: none; visibility: visible; transition: opacity .7s ease .8s, transform .9s var(--ease-io) .7s, visibility 0s; }

@media (max-width: 720px) {
  .top { flex-direction: column; gap: 22px; }
  .enquiries { text-align: left; }
  .smallprint { grid-template-columns: 1fr; }
  .spacer { min-height: 18vh; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark, .top > *, .smallprint > * { animation: none; transform: none; opacity: 1; }
  .mark-wrap, .js .sheet, .is-open .sheet, .top, .smallprint { transition: none !important; }
}
