/* The Mirror: Know Yourself — website styles */
@font-face { font-family: "Cormorant"; src: url("/assets/fonts/cormorant.woff") format("woff"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/assets/fonts/cormorant-italic.woff") format("woff"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #141C17;
  --card: #1B2620;
  --line: #3A4A3A;
  --text: #E4E0D2;
  --title: #EDE7D6;
  --soft: #9FB09A;
  --gold: #C79A55;
  --gold-light: #E6C88F;
  --glint: #FFF4DE;
  --deep: #8A6A34;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(199,154,85,.10), rgba(199,154,85,0) 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(230,200,143,.35); transition: color .2s, border-color .2s; }
a:hover { color: var(--glint); border-color: var(--glint); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

/* ---------- header ---------- */
.site-head { max-width: 1080px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; border: 0; color: var(--title); }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(199,154,85,.35); }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: .2px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { border: 0; color: var(--soft); font-size: 14px; font-weight: 500; letter-spacing: .3px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); }

/* ---------- hero ---------- */
.hero { max-width: 1080px; margin: 0 auto; padding: 24px 24px 64px; text-align: center; }
.hero .mark { width: min(300px, 70vw); height: auto; display: block; margin: 0 auto 8px; border-radius: 28px; }
.kicker { font-size: 11.5px; font-weight: 600; letter-spacing: 3.4px; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--title); line-height: 1.1; margin: 0; }
.hero h1 { font-size: clamp(44px, 8vw, 72px); }
h1 em, h2 em { color: var(--gold-light); font-style: italic; }
.lede { max-width: 560px; margin: 18px auto 0; color: var(--soft); font-size: 17.5px; line-height: 1.65; }
.cta { display: inline-block; margin-top: 30px; padding: 15px 30px; border-radius: 999px; border: 0; color: var(--bg); font-weight: 600; font-size: 15.5px; letter-spacing: .2px;
  background: linear-gradient(180deg, #EFD9AA 0%, #D7B06C 55%, var(--gold) 100%); box-shadow: 0 10px 28px rgba(199,154,85,.25); }
.cta:hover { color: var(--bg); filter: brightness(1.05); }
.kicker.center { text-align: center; }
.kicker.tight { margin: 0 0 6px; }
.sub.after { margin-top: 22px; }
.cta-note { display: block; margin-top: 12px; font-size: 13px; color: var(--soft); }

/* ---------- ornament ---------- */
.rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto; max-width: 320px; color: var(--gold); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(199,154,85,0), rgba(199,154,85,.6), rgba(199,154,85,0)); }
.rule i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold-light); display: block; }

/* ---------- features ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }
.section > h2 { text-align: center; font-size: clamp(32px, 5vw, 44px); }
.section > .sub { text-align: center; color: var(--soft); margin: 10px auto 0; max-width: 520px; }
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.grid .card { flex: 1 1 280px; max-width: 340px; }
.card { background: linear-gradient(180deg, rgba(27,38,32,.95), rgba(27,38,32,.7)); border: 1px solid rgba(199,154,85,.18); border-radius: 18px; padding: 24px 22px; position: relative; }
.card::before { content: ""; position: absolute; inset: 6px; border-radius: 13px; border: 1px solid rgba(199,154,85,.07); pointer-events: none; }
.card h3 { font-size: 26px; margin: 12px 0 6px; }
.card p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.6; }
.glyph { width: 30px; height: 30px; color: var(--gold-light); }

.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin-top: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise div { padding: 22px 18px; text-align: center; }
.promise strong { display: block; font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--gold-light); }
.promise span { color: var(--soft); font-size: 14px; }

.care { max-width: 640px; margin: 0 auto; text-align: center; color: var(--soft); font-size: 14.5px; }
.care strong { color: var(--text); font-weight: 500; }

/* ---------- legal + support pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 16px 24px 72px; }
.doc header.page { text-align: center; padding: 18px 0 30px; }
.doc header.page h1 { font-size: clamp(40px, 7vw, 56px); }
.meta { color: var(--soft); font-size: 14px; margin-top: 10px; }
.summary { background: var(--card); border: 1px solid rgba(199,154,85,.25); border-radius: 18px; padding: 22px 24px; margin: 8px 0 30px; }
.summary h2 { font-size: 26px; margin-bottom: 10px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 6px 0; }
.toc { border-left: 1px solid var(--line); padding: 4px 0 4px 18px; margin: 0 0 36px; }
.toc p { margin: 0 0 8px; font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 260px; column-gap: 28px; }
.toc li { font-size: 14.5px; margin: 3px 0; break-inside: avoid; }
.toc a { border: 0; color: var(--text); }
.toc a:hover { color: var(--gold-light); }
.doc section { padding-top: 10px; margin-top: 26px; border-top: 1px solid rgba(58,74,58,.6); scroll-margin-top: 20px; }
.doc section:first-of-type { border-top: 0; }
.doc h2 { font-size: 30px; margin: 12px 0 10px; }
.doc h2 .n { color: var(--gold); font-style: italic; margin-right: 8px; }
.doc h3 { font-size: 22px; margin: 22px 0 6px; color: var(--gold-light); }
.doc p, .doc li { color: var(--text); }
.doc .kicker, .doc .group { color: var(--gold); }
.doc .meta { color: var(--soft); }
.doc .contact p:not(.kicker) { color: var(--soft); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--gold); }
.doc strong { color: var(--title); font-weight: 600; }
.caps { text-transform: uppercase; font-size: 14px; letter-spacing: .2px; line-height: 1.65; }
.note { background: rgba(199,154,85,.07); border: 1px solid rgba(199,154,85,.22); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--gold-light); font-weight: 600; font-size: 13px; letter-spacing: .4px; background: rgba(27,38,32,.8); }
tr:last-child td { border-bottom: 0; }
.top { display: inline-block; margin-top: 30px; font-size: 14px; }

/* support */
.contact { text-align: center; background: var(--card); border: 1px solid rgba(199,154,85,.25); border-radius: 18px; padding: 28px 22px; margin-bottom: 34px; }
.contact .mail { font-family: var(--serif); font-size: clamp(22px, 5vw, 30px); border: 0; color: var(--gold-light); word-break: break-all; }
.contact p { margin: 8px 0 0; color: var(--soft); font-size: 14.5px; }
details { border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; background: rgba(27,38,32,.55); }
details[open] { border-color: rgba(199,154,85,.35); }
summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative; font-weight: 500; color: var(--title); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details .a { padding: 0 18px 14px; }
details .a p { margin: 0 0 10px; }
.group { font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 34px 0 6px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; }
.site-foot .in { max-width: 1080px; margin: 0 auto; padding: 30px 24px 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; color: var(--soft); font-size: 13.5px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { border: 0; color: var(--soft); }
.site-foot a:hover { color: var(--gold-light); }

@media (max-width: 640px) {
  .site-head { flex-direction: column; padding: 18px 16px 6px; }
  .nav { gap: 16px; justify-content: center; }
  .hero, .section, .doc { padding-left: 16px; padding-right: 16px; }
  .doc h2 { font-size: 27px; }
  .site-foot .in { flex-direction: column; text-align: center; padding-left: 16px; padding-right: 16px; }
  .site-foot nav { justify-content: center; }
}
