*, *::before, *::after { box-sizing: border-box; }

:root {
  --night: #061522;
  --night-2: #0b2130;
  --cream: #f6f1e8;
  --paper: #fffdf8;
  --ink: #171715;
  --stone: #625d54;
  --gold: #c8a24a;
  --line: rgba(166, 159, 145, 0.3);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; line-height: 1.65; }
main { overflow: hidden; }
a { color: var(--night-2); text-underline-offset: 0.18em; }
.topic-wrap { width: min(1080px, calc(100% - 2.5rem)); margin: 0 auto; }
.topic-hero { position: relative; padding: clamp(4rem, 8vw, 7rem) 0; overflow: hidden; background: radial-gradient(circle at 82% 20%, rgba(200, 162, 74, 0.18), transparent 22rem), linear-gradient(135deg, var(--night), var(--night-2)); color: var(--cream); }
.topic-hero::after { content: ""; position: absolute; inset: 0; opacity: 0.12; background-image: repeating-linear-gradient(90deg, transparent 0 92px, rgba(255,255,255,0.16) 92px 93px); pointer-events: none; }
.topic-hero .topic-wrap { position: relative; z-index: 1; max-width: 820px; }
.topic-eyebrow { margin: 0 0 0.8rem; color: #e4c879; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.topic-hero h1 { max-width: 780px; margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 500; letter-spacing: -0.035em; line-height: 0.98; }
.topic-hero .topic-lead { max-width: 730px; margin: 1.3rem 0 0; color: rgba(246, 241, 232, 0.86); font-size: clamp(1.02rem, 2vw, 1.22rem); }
.topic-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.topic-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.3); border-radius: 9px; padding: 0.7rem 1.1rem; color: var(--cream); font-size: 0.86rem; font-weight: 800; letter-spacing: 0.035em; text-decoration: none; }
.topic-button.primary { border-color: var(--gold); background: var(--gold); color: var(--night); }
.topic-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.topic-section.alt { border-block: 1px solid var(--line); background: var(--paper); }
.topic-intro { max-width: 760px; margin-bottom: 2rem; }
.topic-intro h2 { margin: 0 0 0.75rem; color: var(--night); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; line-height: 1.05; }
.topic-intro p { margin: 0; color: var(--stone); font-size: 1.02rem; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.topic-card { border: 1px solid var(--line); border-radius: 14px; padding: 1.35rem; background: rgba(255, 253, 248, 0.76); box-shadow: 0 12px 30px rgba(6, 21, 34, 0.045); }
.topic-card h3 { margin: 0 0 0.45rem; color: var(--night); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; line-height: 1.1; }
.topic-card p { margin: 0; color: var(--stone); font-size: 0.94rem; }
.topic-steps { display: grid; gap: 0.85rem; counter-reset: topic-step; }
.topic-step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; border-bottom: 1px solid var(--line); padding: 1rem 0; }
.topic-step::before { counter-increment: topic-step; content: counter(topic-step, decimal-leading-zero); color: #9b762b; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 600; }
.topic-step h3 { margin: 0 0 0.25rem; color: var(--night); font-size: 1rem; }
.topic-step p { margin: 0; color: var(--stone); }
.topic-faq { display: grid; gap: 0.7rem; }
.topic-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 1rem 1.1rem; }
.topic-faq summary { color: var(--night); font-weight: 800; cursor: pointer; }
.topic-faq p { margin: 0.7rem 0 0; color: var(--stone); }
.topic-related { display: flex; flex-wrap: wrap; gap: 0.65rem 1.2rem; margin-top: 1.4rem; }
.topic-related a { font-weight: 700; }
.topic-cta { border-radius: 18px; padding: clamp(2rem, 5vw, 3.5rem); background: var(--night); color: var(--cream); }
.topic-cta h2 { margin: 0 0 0.5rem; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; }
.topic-cta p { max-width: 680px; margin: 0; color: rgba(246, 241, 232, 0.78); }

@media (max-width: 760px) {
  .topic-wrap { width: min(100% - 1.5rem, 1080px); }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-hero { padding: 3.6rem 0; }
}
