/* hexishq.com public content layer — standalone styles (no app bundle).
   Editorial / disciplined-luxury direction: warm paper, ink, gold accent.
   Intentional hierarchy, real typographic pairing, no template defaults. */

:root {
  --paper: #faf8f3;
  --paper-2: #f3efe6;
  --ink: #1c1a17;
  --ink-soft: #4a463f;
  --ink-faint: #7c766c;
  --gold: #b7942f;
  --gold-bright: #c9a84c;
  --line: #e4ddcf;
  --danger-bg: #fbf2ec;
  --danger-line: #e8c9b0;

  --maxw: 44rem;
  --text-base: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --text-lead: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --text-h1: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --text-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --space: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  --serif: "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16140f;
    --paper-2: #1e1b15;
    --ink: #f1ece0;
    --ink-soft: #c4bdad;
    --ink-faint: #908a7c;
    --gold: #d8b659;
    --gold-bright: #e6c976;
    --line: #2c2820;
    --danger-bg: #221913;
    --danger-line: #4a3320;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.4rem; }

/* --- Top bar --- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.2) blur(8px);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); text-decoration: none; letter-spacing: 0.02em;
}
.brand span { color: var(--gold); }
.topbar nav a {
  color: var(--ink-soft); text-decoration: none; margin-left: 1.4rem;
  font-size: 0.95rem; transition: color var(--ease) 200ms;
}
.topbar nav a:hover { color: var(--gold); }

/* --- Breadcrumb --- */
.crumb { font-size: 0.85rem; color: var(--ink-faint); padding-top: 2rem; }
.crumb a { color: var(--ink-faint); text-decoration: none; }
.crumb a:hover { color: var(--gold); text-decoration: underline; }

/* --- Hero / headings --- */
header.hero { padding-top: 1.4rem; padding-bottom: 0.5rem; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 1rem;
}
h1 {
  font-family: var(--serif); font-size: var(--text-h1); line-height: 1.08;
  font-weight: 700; letter-spacing: -0.01em; margin: 0 0 1.2rem;
}
.lead { font-size: var(--text-lead); color: var(--ink-soft); line-height: 1.55; margin: 0 0 1.5rem; }
.byline {
  display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--ink-faint);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 0.9rem 0; margin-bottom: var(--space);
}
.byline strong { color: var(--ink-soft); font-weight: 600; }
.byline .dot::before { content: "·"; margin: 0 0.2rem; }

/* --- Prose --- */
main { padding-bottom: var(--space); }
.prose h2 {
  font-family: var(--serif); font-size: var(--text-h2); line-height: 1.2;
  font-weight: 700; margin: 3rem 0 1rem; letter-spacing: -0.01em;
}
.prose h2::before {
  content: ""; display: block; width: 2.2rem; height: 3px;
  background: var(--gold); margin-bottom: 1rem; border-radius: 2px;
}
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.6rem; }
.prose p { margin: 0 0 1.3rem; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.6rem; }
.prose strong { color: var(--ink); font-weight: 700; }
blockquote {
  margin: 1.8rem 0; padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 3px solid var(--gold);
  font-family: var(--serif); font-size: 1.25rem; font-style: italic;
  color: var(--ink-soft);
}

/* Key-takeaway box: structured so LLMs lift it cleanly (GEO) */
.takeaway {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.takeaway p:last-child, .takeaway ul:last-child { margin-bottom: 0; }
.takeaway .label {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 0.6rem;
}

/* FAQ */
.faq { margin-top: 1rem; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 1.1rem 0;
}
.faq summary {
  font-weight: 700; cursor: pointer; list-style: none; font-size: 1.08rem;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.8rem 0 0; color: var(--ink-soft); }

/* CTA */
.cta {
  margin: var(--space) 0 1rem; padding: 2.2rem; border-radius: 18px;
  background: linear-gradient(135deg, var(--paper-2), color-mix(in srgb, var(--gold) 14%, var(--paper-2)));
  border: 1px solid var(--line); text-align: center;
}
.cta h2 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 0.6rem; }
.cta h2::before { display: none; }
.cta p { color: var(--ink-soft); margin: 0 auto 1.4rem; max-width: 32rem; }
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 600; padding: 0.85rem 1.8rem;
  border-radius: 999px; transition: transform var(--ease) 200ms, background var(--ease) 200ms;
}
.btn:hover { transform: translateY(-2px); background: var(--gold); color: #1c1a17; }

/* Disclaimer (YMYL / E-E-A-T) */
.disclaimer {
  background: var(--danger-bg); border: 1px solid var(--danger-line);
  border-radius: 12px; padding: 1.1rem 1.3rem; margin: 2rem 0;
  font-size: 0.92rem; color: var(--ink-soft);
}
.disclaimer strong { color: var(--ink); }

/* Card grid (hub) */
.cards { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin: 2rem 0; }
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.5rem;
  transition: transform var(--ease) 250ms, border-color var(--ease) 250ms;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card .kicker { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.card h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0.6rem 0 0.5rem; line-height: 1.25; }
.card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line); padding: 2.5rem 0; margin-top: var(--space);
  font-size: 0.88rem; color: var(--ink-faint);
}
footer.site a { color: var(--ink-faint); text-decoration: none; }
footer.site a:hover { color: var(--gold); }
footer.site .row { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.6rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
