/* Shared styles for Diaeton's inner pages (About, Contact, Privacy, Terms).
   The homepage (index.html) keeps its own styles inline; the tokens below match it. */
:root {
  --bg: #f5f2ea; --bg-2: #ece7db; --surface: #fbf9f4;
  --ink: #14130f; --ink-2: #4a463d; --ink-3: #8a8474; --line: #dcd5c5;
  --gold: #a8823f; --gold-soft: #e9dcc0; --good: #2f7a4f;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c10; --bg-2: #131319; --surface: #16161d;
    --ink: #f1ede3; --ink-2: #b6b0a2; --ink-3: #7b766b; --line: #26252d;
    --gold: #c9a86a; --gold-soft: #2b2518; --good: #6fcf97;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c10; --bg-2: #131319; --surface: #16161d;
  --ink: #f1ede3; --ink-2: #b6b0a2; --ink-3: #7b766b; --line: #26252d;
  --gold: #c9a86a; --gold-soft: #2b2518; --good: #6fcf97;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
.kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { color: var(--ink-2); font-size: 1.12rem; max-width: 600px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: transform .25s ease, border-color .25s ease; white-space: nowrap; cursor: pointer; border: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-line { border: 1px solid var(--line); background: none; }
.btn-line:hover { border-color: var(--ink); }

/* Nav */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1132px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.links { display: flex; gap: 30px; font-size: .9rem; color: var(--ink-2); }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }
.nav-r { display: flex; gap: 8px; align-items: center; }
.nav-r .btn { padding: 10px 18px; font-size: .88rem; }
.theme-t { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.theme-t:hover { color: var(--ink); background: var(--bg-2); }
@media (max-width: 900px) { .links { display: none; } }
@media (max-width: 480px) { .nav-r .login { display: none; } }

/* Page header */
.page-head { padding: 170px 0 70px; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; width: 760px; height: 760px; right: -240px; top: -300px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 20%, transparent), transparent 62%); pointer-events: none;
}
.page-head h1 { font-size: clamp(3rem, 7.4vw, 6rem); margin-bottom: 24px; position: relative; }
.page-head .lead { position: relative; }
.updated { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 18px; }

section { padding: 90px 0; }
@media (max-width: 760px) { section { padding: 64px 0; } .page-head { padding: 140px 0 48px; } }

/* Legal / long-form text */
.prose { color: var(--ink-2); }
.prose h2 { font-size: 2rem; color: var(--ink); margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; color: var(--ink); margin: 26px 0 8px; font-weight: 600; }
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.toc { border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; background: var(--surface); margin-bottom: 56px; }
.toc b { font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 10px; }
.toc ol { padding-left: 20px; columns: 2; column-gap: 32px; font-size: .92rem; }
.toc a:hover { color: var(--gold); }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.notice { border-left: 3px solid var(--gold); background: var(--gold-soft); color: var(--ink); padding: 16px 20px; border-radius: 0 14px 14px 0; font-size: .92rem; margin-bottom: 40px; }

/* Cards & grids */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.card .n { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 10px 0 8px; line-height: 1.1; }
.card p { color: var(--ink-2); font-size: .95rem; }
.card.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card.dark p { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.card.dark .n { color: var(--gold); }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.big { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }

/* Acronym */
.acro-big { display: grid; gap: 2px; margin-top: 8px; }
.acro-big div { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink-2); }
.acro-big b { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--gold); width: 44px; flex: none; }
.acro-big small { margin-left: auto; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
@media (max-width: 520px) { .acro-big small { display: none; } }

/* Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--ink-3); }
.contact-list { display: grid; gap: 12px; margin-top: 32px; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .2s ease; }
.contact-list a:hover { border-color: var(--ink); }
.contact-list .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.contact-list small { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* CTA band */
.band { background: var(--ink); color: var(--bg); border-radius: 32px; padding: 64px 32px; text-align: center; margin: 0 16px; }
.band h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 16px; }
.band p { color: color-mix(in srgb, var(--bg) 70%, transparent); max-width: 520px; margin: 0 auto 30px; }
.band .btn { background: var(--bg); color: var(--ink); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--ink-3); font-size: .85rem; margin-top: 90px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.foot-links { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }
.foot-name { font-size: .78rem; margin-top: 4px; }
.foot-name b { color: var(--gold); font-weight: 600; }

/* Reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 40px); opacity: 0; z-index: 90; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: .9rem; transition: all .4s cubic-bezier(.2,.7,.2,1); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } .rv { opacity: 1; transform: none; } }
