:root {
  --ink: #101312;
  --ink-2: #181c1a;
  --bone: #ede8df;
  --bone-dim: #b8b2a6;
  --copper: #c97b4a;
  --copper-bright: #e0935f;
  --rule: rgba(237, 232, 223, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.confirm-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: var(--copper); color: var(--ink);
  font-weight: 600; font-size: 0.92rem; text-align: center;
  padding: 0.7rem 1rem;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.confirm-banner.gone { transform: translateY(-100%); opacity: 0; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-decoration: none;
}

.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  color: var(--bone-dim); text-decoration: none; font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--copper-bright); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  color: var(--ink); background: var(--copper);
  border: none; border-radius: 2px;
  padding: 0.85rem 1.6rem; cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--copper-bright); transform: translateY(-1px); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-wide { width: 100%; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(4rem, 11vh, 8rem) clamp(1.2rem, 6vw, 6rem) 5rem;
  max-width: 1100px;
}

.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 1.6rem;
  animation: rise 0.7s ease both;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  animation: rise 0.7s 0.08s ease both;
}
.hero h1 em { font-style: italic; color: var(--copper-bright); }

.hero-sub {
  max-width: 34rem; margin-top: 1.8rem; color: var(--bone-dim);
  animation: rise 0.7s 0.16s ease both;
}

.hero-form {
  display: flex; gap: 0.6rem; margin-top: 2.4rem; max-width: 30rem;
  animation: rise 0.7s 0.24s ease both;
}
.hero-form input {
  flex: 1; min-width: 0;
  background: var(--ink-2); border: 1px solid var(--rule); border-radius: 2px;
  color: var(--bone); font-family: var(--sans); font-size: 1rem;
  padding: 0.85rem 1rem;
}
.hero-form input:focus { outline: 1px solid var(--copper); border-color: var(--copper); }

.hero-fineprint {
  margin-top: 0.9rem; font-size: 0.8rem; color: var(--bone-dim);
  animation: rise 0.7s 0.3s ease both;
}
.hero-fineprint a { color: inherit; }

.norwood-rule {
  display: flex; justify-content: space-between;
  max-width: 42rem; margin-top: 4.5rem;
  border-top: 1px solid var(--rule); padding-top: 0.7rem;
  font-size: 0.72rem; letter-spacing: 0.12em; color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
}
.norwood-rule span { position: relative; }
.norwood-rule span::before {
  content: ""; position: absolute; top: -0.78rem; left: 50%;
  width: 1px; height: 0.45rem; background: var(--rule);
}
.norwood-rule span:first-child { color: var(--copper); }
.norwood-rule span:first-child::before { background: var(--copper); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- cards strip ---------- */

.strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.strip-inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1200px; margin: 0 auto;
}
.card {
  padding: 3rem clamp(1.2rem, 3vw, 2.6rem);
  border-left: 1px solid var(--rule);
}
.card:first-child { border-left: none; }
.card-num {
  font-family: var(--serif); font-style: italic;
  color: var(--copper); font-size: 1rem;
}
.card h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.35rem; margin: 0.8rem 0 0.7rem;
}
.card p { color: var(--bone-dim); font-size: 0.95rem; }

/* ---------- independent ---------- */

.independent { background: var(--ink-2); border-bottom: 1px solid var(--rule); }
.independent-inner {
  max-width: 760px; margin: 0 auto;
  padding: clamp(4rem, 9vh, 6.5rem) clamp(1.2rem, 4vw, 2rem);
}
.independent h2 {
  font-family: var(--serif); font-weight: 380;
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.12;
  margin-bottom: 1.4rem;
}
.independent p { color: var(--bone-dim); max-width: 38rem; }
.independent-note {
  margin-top: 1.4rem; padding-left: 1.1rem;
  border-left: 2px solid var(--copper); font-size: 0.92rem;
}

/* ---------- faq ---------- */

.faq { max-width: 760px; margin: 0 auto; padding: clamp(4rem, 9vh, 6rem) clamp(1.2rem, 4vw, 2rem); }
.faq-title {
  font-family: var(--serif); font-weight: 380;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 2.2rem;
}
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2rem 1.15rem 0; position: relative;
  font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 1rem;
  font-family: var(--serif); font-size: 1.3rem; color: var(--copper);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--bone-dim); font-size: 0.95rem; max-width: 36rem; }
.faq details a { color: var(--copper-bright); }

/* ---------- join ---------- */

.join {
  max-width: 560px; margin: 0 auto;
  padding: 1rem clamp(1.2rem, 4vw, 2rem) clamp(5rem, 10vh, 7rem);
  text-align: left;
}
.join h2 {
  font-family: var(--serif); font-weight: 380;
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
}
.join-sub { color: var(--bone-dim); margin: 0.6rem 0 2rem; }

.join-form .field { margin-bottom: 1.1rem; }
.join-form label, .join-form legend {
  display: block; font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--bone-dim); margin-bottom: 0.35rem;
}
.req { color: var(--copper); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

.join-form input[type="email"], .join-form input[type="text"], .join-form select {
  width: 100%;
  background: var(--ink-2); border: 1px solid var(--rule); border-radius: 2px;
  color: var(--bone); font-family: var(--sans); font-size: 1rem;
  padding: 0.8rem 0.95rem;
}
.join-form input:focus, .join-form select:focus {
  outline: 1px solid var(--copper); border-color: var(--copper);
}

.details-toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: none; border: 1px dashed var(--rule); border-radius: 2px;
  color: var(--bone-dim); font-family: var(--sans); font-size: 0.9rem;
  padding: 0.8rem 0.95rem; margin: 0.4rem 0 1.1rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.details-toggle:hover { border-color: var(--copper); color: var(--bone); }
.toggle-glyph { font-family: var(--serif); font-size: 1.2rem; color: var(--copper); }

.optional-fields { animation: rise 0.4s ease both; }
.optional-note { font-size: 0.82rem; color: var(--bone-dim); margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

fieldset.field { border: none; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.checks label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; color: var(--bone); margin: 0;
}

.consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.82rem; color: var(--bone-dim); margin: 1.2rem 0 1.4rem;
}
.consent input { margin-top: 0.25rem; }

.form-message { margin-top: 0.9rem; font-size: 0.9rem; min-height: 1.4em; }
.form-message.ok { color: #9fc98a; }
.form-message.err { color: #d97b6c; }

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

footer { border-top: 1px solid var(--rule); padding: 2.6rem clamp(1.2rem, 4vw, 3rem) 2rem; }
.foot-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1.4rem; max-width: 1200px; margin: 0 auto;
}
.wordmark-foot { font-size: 1.1rem; }
.foot-tag { color: var(--bone-dim); font-size: 0.88rem; font-style: italic; font-family: var(--serif); }
.foot-links { display: flex; gap: 1.4rem; }
.foot-links a { color: var(--bone-dim); font-size: 0.88rem; text-decoration: none; }
.foot-links a:hover { color: var(--copper-bright); }
.foot-legal {
  max-width: 1200px; margin: 2rem auto 0;
  font-size: 0.76rem; color: var(--bone-dim); opacity: 0.75;
}

/* ---------- legal pages ---------- */

.legal { max-width: 720px; margin: 0 auto; padding: 3.5rem clamp(1.2rem, 4vw, 2rem) 5rem; }
.legal h1 { font-family: var(--serif); font-weight: 420; font-size: 2.2rem; margin-bottom: 0.4rem; }
.legal .updated { color: var(--bone-dim); font-size: 0.85rem; margin-bottom: 2.2rem; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: var(--bone-dim); font-size: 0.95rem; }
.legal ul { padding-left: 1.3rem; margin: 0.5rem 0; }
.legal a { color: var(--copper-bright); }
.legal .back { display: inline-block; margin-bottom: 2rem; color: var(--bone-dim); font-size: 0.88rem; text-decoration: none; }
.legal .back:hover { color: var(--copper-bright); }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .nav-links { display: none; }
  .strip-inner { grid-template-columns: 1fr; }
  .card { border-left: none; border-top: 1px solid var(--rule); }
  .card:first-child { border-top: none; }
  .hero-form { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
