:root {
  --night: #0C1311;
  --night-2: #121C19;
  --ivory: #ECE6DA;
  --mist: #9EA79F;
  --gold: #D2B47C;
  --gold-deep: #9C7F4A;
  --rule: rgba(210, 180, 124, 0.22);
  --glow: rgba(210, 180, 124, 0.10);
  --on-gold: #0C1311;
  --sheen-hi: #F6E7C3;
  --serif: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
}

/* Light theme: warm limestone with deep green ink and antique gold */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --night: #F1EDE5;
    --night-2: #E8E2D6;
    --ivory: #14211D;
    --mist: #5E655E;
    --gold: #8A6A33;
    --gold-deep: #6E5326;
    --rule: rgba(110, 83, 38, 0.25);
    --glow: rgba(255, 255, 255, 0.7);
    --on-gold: #F1EDE5;
    --sheen-hi: #C9A15A;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --night: #F1EDE5;
  --night-2: #E8E2D6;
  --ivory: #14211D;
  --mist: #5E655E;
  --gold: #8A6A33;
  --gold-deep: #6E5326;
  --rule: rgba(110, 83, 38, 0.25);
  --glow: rgba(255, 255, 255, 0.7);
  --on-gold: #F1EDE5;
  --sheen-hi: #C9A15A;
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ivory);
  background-color: var(--night);
  /* Soft overhead light and a fine film grain */
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, var(--glow), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}

a { color: var(--gold); }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

main > section { padding-left: var(--gutter); padding-right: var(--gutter); }

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--ivory);
}

h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.375rem; }

/* Header */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px var(--gutter);
}
.mark { font-family: var(--serif); font-size: 1.25rem; color: var(--ivory); text-decoration: none; }
.mark span { color: var(--mist); }
.top-right { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.theme { display: flex; border: 1px solid var(--rule); }
.theme button {
  font: 400 0.75rem var(--sans); letter-spacing: 0.03em;
  color: var(--mist); background: none; border: 0;
  padding: 6px 10px; cursor: pointer;
}
.theme button:hover { color: var(--ivory); }
.theme button[aria-checked="true"] { color: var(--on-gold); background: var(--gold); }
.top-link { color: var(--ivory); text-decoration: none; font-size: 0.9375rem; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.top-link:hover { border-color: var(--gold); }

/* Hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-top: 120px; padding-bottom: 96px;
}

.since {
  margin: 0 0 clamp(16px, 3vw, 28px);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--gold);
}

.name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.25rem, 17vw, 15rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 40;
}

/* The one moment: a slow light passing across the gilded name */
.sheen {
  background: linear-gradient(100deg,
    var(--gold-deep) 0%, var(--gold) 30%, var(--sheen-hi) 45%, var(--gold) 60%, var(--gold-deep) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 3.2s cubic-bezier(.45,.05,.25,1) .4s both;
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }

.tld {
  display: block;
  margin-top: clamp(10px, 2vw, 22px);
  font-size: 0.16em;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  color: var(--mist);
}
.tld::before, .tld::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: clamp(28px, 6vw, 72px); height: 1px; background: var(--rule);
  margin: 0 0.9em;
}

.hero-line {
  max-width: 34ch;
  margin: clamp(28px, 5vw, 48px) 0 36px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--mist);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 34px;
  font: 400 0.9375rem var(--sans);
  letter-spacing: 0.04em;
  color: var(--on-gold); background: var(--gold);
  border: 1px solid var(--gold); border-radius: 0;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: transparent; color: var(--gold); }

/* Statement */
.statement {
  max-width: 1200px; margin: 0 auto;
  padding-top: clamp(72px, 12vw, 160px); padding-bottom: clamp(72px, 10vw, 140px);
}
.big {
  margin: 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.12;
  font-variation-settings: "opsz" 72;
}

.ledger {
  margin: clamp(48px, 7vw, 88px) 0 0 auto;
  max-width: 640px;
  border-top: 1px solid var(--rule);
}
.ledger div { display: grid; grid-template-columns: 9rem 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font-family: var(--serif); font-style: italic; color: var(--gold); }
.ledger dd { margin: 0; }

/* Uses */
.uses {
  background: var(--night-2);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px);
  text-align: center;
}
.use-text {
  margin: 36px auto 0; max-width: 30ch;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.75rem);
  line-height: 1.3;
}
.aside { margin: 36px auto 0; max-width: 46ch; color: var(--mist); }

/* Process */
.process {
  max-width: 1200px; margin: 0 auto;
  padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px);
}
.steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px;
}
.steps li { border-top: 1px solid var(--rule); padding-top: 22px; }
.steps p { margin: 10px 0 0; color: var(--mist); font-size: 0.975rem; }

/* Inquiry */
.inquire {
  max-width: 1200px; margin: 0 auto;
  padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px);
}
.inquire-intro p { margin: 18px 0 0; max-width: 42ch; color: var(--mist); }
.inquire-intro .safety {
  margin-top: 32px; padding-left: 18px;
  border-left: 1px solid var(--gold-deep);
  font-size: 0.9375rem;
}
.link {
  font: inherit; color: var(--gold); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

.form { display: grid; gap: 28px; }
.field { display: grid; gap: 4px; }
.field span { font-family: var(--serif); font-style: italic; color: var(--gold); }
.field em { font-family: var(--sans); font-style: normal; font-size: 0.8125rem; color: var(--mist); margin-left: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  font: 300 1.0625rem var(--sans); color: var(--ivory);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  padding: 10px 0;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--gold); }
.form .btn { justify-self: start; margin-top: 4px; }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: right 6px center, right 0 center; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--night); color: var(--ivory); }
.field select option:disabled { color: var(--mist); }
.privacy { margin: 0; font-size: 0.8125rem; color: var(--mist); max-width: 60ch; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; min-height: 1.6em; }
.status.ok { color: var(--gold); }
.status.err { color: #E0907E; }

/* Footer */
.foot { padding: 32px var(--gutter) 48px; border-top: 1px solid var(--rule); }
.foot p { margin: 0 auto; max-width: 72ch; text-align: center; font-size: 0.8125rem; color: var(--mist); }

/* Responsive */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inquire { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .ledger div { grid-template-columns: 1fr; gap: 2px; }
  .btn { width: 100%; }
  .form .btn { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheen { animation: none; background-position: 30% 0; }
}
