/* ─────────────────────────────────────────────────────────────
   Clio Studios — house style.
   Clio is the muse of history: the tone is classical-modern.
   High-contrast serif display against a quiet grotesque, warm
   bone paper, a single bronze accent, and a lot of air.
   Deliberately shares nothing with the product's palette.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper:    #F7F4ED;
  --paper-2:  #F1ECE2;
  --ink:      #17150F;
  --ink-soft: #3B372E;
  --muted:    #6E6656;
  --rule:     #DFD8C9;
  --accent:   #9A6B33;
  --accent-2: #C08A44;
  --shadow:   rgba(23, 21, 15, 0.07);
  --max:      760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:    #121110;
    --paper-2:  #1A1817;
    --ink:      #F2EEE5;
    --ink-soft: #D6D0C4;
    --muted:    #9A9284;
    --rule:     #2E2B27;
    --accent:   --accent;
    --accent:   #D2A263;
    --accent-2: #E3BC85;
    --shadow:   rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  /* Fine grain — keeps the flat colour from looking like a template. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Chrome ─────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 32px;
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  transition: border-color 0.3s ease;
}
.topbar.stuck { border-bottom-color: var(--rule); }

.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--ink); border-radius: 50%;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 19px; line-height: 1; padding-bottom: 2px;
  text-decoration: none; color: var(--ink);
  transition: background 0.35s ease, color 0.35s ease;
}
.monogram:hover { background: var(--ink); color: var(--paper); }

.wordmark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 19px; letter-spacing: 0.2px; margin-right: auto;
}

.topnav { display: flex; gap: 26px; }
.topnav a {
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--muted); text-decoration: none; position: relative;
  transition: color 0.25s ease;
}
.topnav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 620px) { .topnav { display: none; } }

/* ── Layout ─────────────────────────────────────────────── */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 560px) { .wrap { padding: 0 22px; } .topbar { padding: 14px 22px; } }

.hero { padding: 104px 0 88px; }
@media (max-width: 560px) { .hero { padding: 68px 0 60px; } }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 26px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent); flex: none;
}

h1 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 7.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}
h1 em { font-style: italic; color: var(--accent); }

.lede {
  font-size: clamp(17px, 2.2vw, 19.5px);
  line-height: 1.65; color: var(--ink-soft);
  max-width: 34em; margin: 0;
}

/* ── Sections ───────────────────────────────────────────── */

section { padding: 66px 0; border-top: 1px solid var(--rule); }
@media (max-width: 560px) { section { padding: 48px 0; } }

.sec-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 30px;
}
.sec-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 15px; color: var(--accent); flex: none;
  font-variant-numeric: tabular-nums;
}
h2 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}

h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400; font-size: 25px; line-height: 1.25;
  letter-spacing: -0.01em; margin: 34px 0 10px;
}
h3:first-of-type { margin-top: 0; }

p { margin: 0 0 18px; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
p.tight { max-width: 36em; }

ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-soft); }
li { margin-bottom: 9px; padding-left: 4px; }
li::marker { color: var(--accent); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

strong { color: var(--ink); font-weight: 600; }

/* ── Facts table ────────────────────────────────────────── */

.facts { margin: 0; display: grid; }
.facts > div {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding: 15px 0; border-bottom: 1px solid var(--rule);
}
.facts > div:first-child { border-top: 1px solid var(--rule); }
.facts dt {
  margin: 0; flex: none; min-width: 168px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  padding-top: 3px;
}
.facts dd { margin: 0; font-size: 16px; color: var(--ink); }

/* ── Contact ────────────────────────────────────────────── */

.contact-grid { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid h4 {
  margin: 0 0 6px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.contact-grid a { font-size: 17px; }

/* ── Footer ─────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--rule);
  padding: 44px 0 66px;
  font-size: 13.5px; color: var(--muted);
}
footer p { color: var(--muted); margin: 0 0 7px; font-size: 13.5px; }
.footer-links { display: flex; gap: 22px; margin-bottom: 20px; }
.footer-links a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-links a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ── Legal pages ────────────────────────────────────────── */

.doc-head { padding: 78px 0 40px; }
.doc-head h1 { font-size: clamp(34px, 5.6vw, 50px); margin-bottom: 14px; }
.doc-note { color: var(--muted); font-size: 15px; margin: 0; }
.doc section { padding: 40px 0; }
.doc section h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px; font-weight: 400; line-height: 1.3;
  letter-spacing: -0.01em; text-transform: none; color: var(--ink);
  margin: 0 0 14px;
}
.back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 34px; font-size: 13.5px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}
.back:hover { color: var(--ink); gap: 12px; }

/* ── Reveal on scroll ───────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.75s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}
