/* House of Standhaft: pre-launch. Brand system v1: Bone / Ink / Brass / Stone.
   Brass is detail only (rules, rings); brass text appears only on Ink. */

@font-face { font-family: "Libre Caslon Text"; src: url("fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bone: #F4F2EA;
  --ink: #1B150F;
  --brass: #AF874D;
  --stone: #787165;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Familjen Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

.on-ink { background: var(--ink); color: var(--bone); }
.on-bone { background: var(--bone); color: var(--ink); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: var(--gutter); }

/* Shared type */
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; }
.on-ink .eyebrow { color: var(--brass); }
.on-bone .eyebrow { color: var(--ink); opacity: .72; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.15; }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0; }

/* The river line: paired brass rules */
.rules { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.rules i { display: block; height: 1.5px; background: var(--brass); }
.rules i:first-child { width: 170px; }
.rules i:last-child { width: 110px; }
.rules.left { align-items: flex-start; }
.hairline { height: 1px; background: var(--brass); border: 0; margin: 0; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 56px var(--gutter); position: relative; }
.hero-inner { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.seal { width: 84px; height: 84px; margin-bottom: 36px; }
.wordmark { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 9.2vw, 92px); letter-spacing: .15em; margin-right: -.15em; /* optically re-center tracked caps */ line-height: 1; }
.hero .rules { margin: 30px 0 22px; }
.house { color: var(--brass); font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; }
.tagline { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.4; margin-top: 56px; max-width: 22em; }
.sub { margin-top: 14px; font-size: 15px; opacity: .78; }

/* ---------- Signup form ---------- */
.signup { width: 100%; max-width: 480px; margin-top: 36px; }
.signup form { display: flex; gap: 0; border: 1px solid rgba(244,242,234,.38); transition: border-color .2s; }
.signup form:focus-within { border-color: var(--brass); }
.signup input[type="email"] {
  flex: 1 1 auto; min-width: 0; background: transparent; border: 0; color: var(--bone);
  font: 400 16px/1 var(--sans); padding: 18px 18px; border-radius: 0;
}
.signup input::placeholder { color: rgba(244,242,234,.6); }
.signup input:focus { outline: none; }
.signup button {
  flex: 0 0 auto; cursor: pointer; border: 0; border-left: 1px solid rgba(244,242,234,.38);
  background: var(--bone); color: var(--ink); font: 600 12px/1 var(--sans);
  letter-spacing: .24em; text-transform: uppercase; padding: 0 24px; transition: background .2s;
}
.signup button:hover { background: #fff; }
.signup button:focus-visible { outline-offset: -4px; outline-color: var(--ink); }
.fine { margin-top: 14px; font-size: 12px; line-height: 1.6; opacity: .72; }
.fine a { text-decoration: underline; }
.err { margin-top: 12px; font-size: 13px; color: var(--bone); border-left: 2px solid var(--brass); padding-left: 12px; text-align: left; }
.err[hidden] { display: none; }
.signup button:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.thanks { display: none; border: 1px solid var(--brass); padding: 20px 22px; font-family: var(--serif); font-size: 18px; line-height: 1.5; text-align: center; }
.thanks small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; opacity: .78; }
.signup.is-subscribed .thanks { display: block; }
.signup.is-subscribed form, .signup.is-subscribed .fine { display: none; }

/* ---------- Definition ---------- */
.definition { padding: clamp(72px, 11vw, 128px) 0 clamp(56px, 8vw, 96px); text-align: center; }
.definition .entry { display: inline-block; text-align: left; }
.definition .term { font-family: var(--serif); font-size: clamp(44px, 8vw, 80px); letter-spacing: .04em; line-height: 1; }
.definition .pos { margin-top: 14px; font-size: 14px; letter-spacing: .06em; opacity: .72; font-style: italic; }
.definition .gloss { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); line-height: 1.35; margin-top: 30px; }
.definition .rules { margin: 34px 0 0; }
.definition .meaning { max-width: 34em; margin: 34px auto 0; font-size: 17px; }

/* ---------- Pillars ---------- */
.pillars { padding: 0 0 clamp(72px, 11vw, 128px); }
.pillars .hairline { margin-bottom: clamp(48px, 7vw, 80px); opacity: .9; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.pillar { padding-top: 22px; border-top: 1px solid var(--brass); }
.pillar .n { font-family: var(--serif); font-size: 15px; opacity: .72; display: block; margin-bottom: 18px; }
.pillar h3 { margin-bottom: 14px; }
.pillar p { font-size: 16px; }

/* ---------- Founder note ---------- */
.note { padding: clamp(80px, 12vw, 140px) 0 clamp(72px, 10vw, 112px); }
.note .wrap { max-width: 760px; }
.note .eyebrow { margin-bottom: 26px; display: block; }
.note blockquote { margin: 0; }
.note blockquote p { font-family: var(--serif); font-size: clamp(20px, 2.5vw, 26px); line-height: 1.55; }
.note blockquote p + p { margin-top: 1.1em; }
.sig { margin-top: 40px; display: flex; align-items: center; gap: 18px; }
.sig .rules { align-items: flex-start; gap: 7px; }
.sig .rules i:first-child { width: 56px; } .sig .rules i:last-child { width: 36px; }
.sig .name { font-family: var(--serif); font-size: 20px; }
.sig .role { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-top: 4px; }

.closing { text-align: center; padding: clamp(24px, 4vw, 40px) 0 clamp(80px, 11vw, 128px); }
.closing h2 { font-size: clamp(28px, 4vw, 40px); }
.closing .signup { margin-inline: auto; }
.closing .rules { margin: 0 0 30px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid rgba(175,135,77,.55); padding: 40px 0 44px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot .brand { display: flex; align-items: center; gap: 16px; }
.foot .seal-sm { width: 40px; height: 40px; }
.foot .brand span { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; }
.foot nav { display: flex; gap: 28px; font-size: 13px; letter-spacing: .06em; }
.foot nav a { text-decoration: none; border-bottom: 1px solid rgba(244,242,234,.35); padding-bottom: 2px; }
.foot nav a:hover { border-color: var(--brass); }
.legal { margin-top: 28px; font-size: 12px; opacity: .65; }

/* ---------- Privacy page ---------- */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 22px 0 14px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc p, .doc li { font-size: 16px; }
.doc p + p { margin-top: 1em; }
.doc ul { padding-left: 1.2em; margin: 12px 0; }
.doc .updated { font-size: 13px; opacity: .72; }
.doc-head a.home { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.doc-head .word { font-family: var(--serif); letter-spacing: .15em; font-size: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .pillar { display: block; }
}
@media (max-width: 480px) {
  .seal { width: 68px; height: 68px; margin-bottom: 28px; }
  .rules i:first-child { width: 132px; } .rules i:last-child { width: 86px; }
  .signup form { flex-direction: column; }
  .signup button { border-left: 0; border-top: 1px solid rgba(244,242,234,.38); padding: 18px 24px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Motion (respects reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { opacity: 0; transform: translateY(10px); animation: rise .9s cubic-bezier(.2,.6,.2,1) forwards; }
  .hero-inner > *:nth-child(2) { animation-delay: .12s; }
  .hero-inner > *:nth-child(3) { animation-delay: .24s; }
  .hero-inner > *:nth-child(4) { animation-delay: .36s; }
  .hero-inner > *:nth-child(5) { animation-delay: .5s; }
  .hero-inner > *:nth-child(6) { animation-delay: .62s; }
  .hero-inner > *:nth-child(7) { animation-delay: .74s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media print { .hero { min-height: 0; } }
