/* =========================================================
   Noted — Static Site Stylesheet
   Aesthetic: warm-dark minimalism, editorial serif
   ========================================================= */

:root {
  --bg: #0e0c0a;
  --bg-elev: #16130f;
  --bg-rule: #2a241c;
  --ink: #ece3d2;
  --ink-soft: #a89d88;
  --ink-mute: #6b6457;
  --accent: #c39d6b;        /* whisky amber */
  --accent-soft: #8a6f4a;
  --wine: #8a3a3a;           /* deep wine, used sparingly */
  --max-w: 680px;
  --pad-x: clamp(1.25rem, 5vw, 2rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'EB Garamond', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.72;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout shell ------------------------------------------------ */

.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

header.site {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--bg-rule);
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

header.site .wordmark {
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-feature-settings: "smcp";
  text-decoration: none;
  display: inline-block;
}

header.site .wordmark em {
  color: var(--accent);
  font-style: normal;
}

footer.site {
  margin-top: 5rem;
  padding: 2.5rem 0 4rem;
  border-top: 1px solid var(--bg-rule);
  color: var(--ink-mute);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer.site a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

footer.site a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
}

/* Typography -------------------------------------------------- */

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 + .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: -0.25rem;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.6rem;
  margin-top: 3.5rem;
  position: relative;
  padding-left: 1.1rem;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
  border-radius: 50%;
}

h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-top: 2rem;
}

p {
  margin: 0 0 1.25rem;
}

p, li {
  hanging-punctuation: first last;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--accent-soft);
  color: var(--ink-soft);
  font-style: italic;
}

hr {
  border: 0;
  height: 1px;
  background: var(--bg-rule);
  margin: 3rem 0;
}

/* Lists ------------------------------------------------------- */

ul, ol {
  padding-left: 1.2rem;
  margin: 0 0 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

ul li::marker {
  color: var(--accent-soft);
}

ol li::marker {
  color: var(--ink-mute);
  font-variant-numeric: oldstyle-nums;
}

/* Tables ------------------------------------------------------ */

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem -0.25rem 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--bg-rule);
  vertical-align: top;
}

thead th {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--accent-soft);
}

tbody tr:hover {
  background: var(--bg-elev);
}

/* FAQ details ------------------------------------------------- */

details.faq {
  border-bottom: 1px solid var(--bg-rule);
  padding: 1.25rem 0;
}

details.faq:first-of-type {
  border-top: 1px solid var(--bg-rule);
}

details.faq summary {
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink);
  list-style: none;
  padding-right: 2rem;
  position: relative;
  outline: none;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--accent);
  font-size: 1.4rem;
  transition: transform 0.25s ease;
}

details.faq[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}

details.faq[open] summary {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

details.faq .answer {
  padding-top: 0.5rem;
  color: var(--ink-soft);
}

details.faq .answer p:last-child {
  margin-bottom: 0;
}

/* Home page hero --------------------------------------------- */

.hero {
  padding: 3rem 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 5rem 0 3rem;
    gap: 4rem;
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero .tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-feature-settings: "smcp";
}

.hero .pitch {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 38ch;
  font-style: italic;
  margin: 1.5rem 0 2.5rem;
}

.hero-shot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-shot img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 80px -20px rgba(195, 157, 107, 0.15);
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: -20% -10% -10% -10%;
  background: radial-gradient(ellipse at center, rgba(195, 157, 107, 0.08), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.link-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.link-row a {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
}

/* Wide section (breaks out of 680px shell) ------------------- */

.wide {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--pad-x);
}

/* Feature blocks --------------------------------------------- */

.features {
  margin: 5rem 0 4rem;
}

.features-intro {
  text-align: center;
  margin: 0 auto 4rem;
  max-width: 540px;
}

.features-intro .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.features-intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0;
  padding-left: 0;
  letter-spacing: -0.02em;
}

.features-intro h2::before { display: none; }

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 5rem 0;
}

@media (min-width: 760px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    margin: 7rem 0;
  }

  .feature.flip .feature-text { order: 2; }
  .feature.flip .feature-shot { order: 1; }
}

.feature-shot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-shot img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 25px 50px -15px rgba(0, 0, 0, 0.65),
    0 0 60px -15px rgba(195, 157, 107, 0.12);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-shot:hover img {
  transform: translateY(-6px);
}

.feature-shot::before {
  content: "";
  position: absolute;
  inset: -15% -5% -5% -5%;
  background: radial-gradient(ellipse at center, rgba(195, 157, 107, 0.07), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.feature-text .step {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.feature-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Closing CTA ------------------------------------------------ */

.closing {
  text-align: center;
  margin: 6rem 0 2rem;
  padding: 3rem 1rem;
  border-top: 1px solid var(--bg-rule);
  border-bottom: 1px solid var(--bg-rule);
}

.closing .quote {
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
}

.closing .sub {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Meta block (effective date etc.) --------------------------- */

.meta {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin: 0 0 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--bg-rule);
  background: var(--bg-elev);
  border-radius: 2px;
}

.meta p { margin: 0.2rem 0; }
.meta strong { color: var(--ink-soft); font-weight: 500; }

/* Language switch (header toggle on every page) -------------- */

.lang-switch {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-feature-settings: "smcp";
}

.lang-switch a {
  border-bottom: none;
  color: var(--ink-mute);
  margin: 0 0.15rem;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.lang-switch a:hover {
  color: var(--ink-soft);
}

.lang-switch a.current {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.lang-switch .sep {
  color: var(--ink-mute);
  opacity: 0.4;
  margin: 0 0.1rem;
}

/* Mobile -------------------------------------------------- */

@media (max-width: 540px) {
  body { font-size: 17px; }
  header.site { padding-top: 2.5rem; padding-bottom: 2rem; margin-bottom: 2rem; }
  h2::before { display: none; }
  h2 { padding-left: 0; }
}

/* Print --------------------------------------------------- */

@media print {
  body { background: white; color: black; }
  header.site, footer.site, .lang-switch { display: none; }
  a { color: black; border-bottom: none; }
}
