@font-face {
  font-family: 'DM Sans';
  src: url('/assets/dm-sans.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/playfair-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/playfair-bold-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #211421;
  --night-deep: #1a111a;
  --light: #fff3dd;
  --light-muted: #dfcdd6;
  --gold: #f5d36b;
  --rose: #f3adc1;
  --paper: #f9ecd8;
  --ink: #34202e;
  --ink-muted: #5b4551;
  --berry: #893556;
  --paper-line: #d8b9b5;
  --night-line: #614454;
  --body: 'DM Sans', system-ui, sans-serif;
  --display: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--light); font: 1rem/1.6 var(--body); }
img { display: block; max-inline-size: 100%; }
a { color: inherit; text-underline-offset: .23em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -.045em; }
h1 { font-size: clamp(4rem, 7.15vw, 7.25rem); }
h2 { font-size: clamp(2.9rem, 5.4vw, 5.2rem); }
h3 { line-height: 1.25; }
h1 em, h2 em { color: var(--gold); }

.wrap { width: min(100% - 2 * clamp(1.25rem, 5vw, 4.5rem), 78rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 7vw, 7rem); }
.skip-link { position: fixed; z-index: 2; left: 1rem; top: 1rem; transform: translateY(-200%); padding: .6rem 1rem; background: var(--gold); color: var(--ink); }
.skip-link:focus { transform: none; }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; color: var(--rose); font-size: .74rem; line-height: 1.4; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 1.7rem; height: 1px; background: currentColor; }
.section-intro { margin-top: 1.45rem; max-width: 33rem; font-size: clamp(1.03rem, 1.6vw, 1.2rem); }

.site-header { background: var(--night-deep); border-bottom: 1px solid #5a3e4d; }
.nav-bar { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--light); font: 700 1.23rem/1.25 var(--display); text-decoration: none; }
.brand img { border: 1px solid #5a3e4d; border-radius: .65rem; flex: none; }
.brand em { color: var(--gold); }
.main-nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(1rem, 2.4vw, 2rem); }
.main-nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9rem; text-decoration: none; }
.main-nav a:hover, .site-footer nav a:hover { text-decoration: underline; }
.main-nav a { color: var(--light-muted); }

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}
.button span { font-size: 1.05em; }
.button-primary { background: var(--gold); color: var(--night-deep); }
.button-primary:hover { background: #ffe597; }
.button-outline { border-color: #a38392; color: var(--light); }
.button-outline:hover, .button-small:hover { background: #442b3e; }
.button-small { min-height: 2.75rem; padding-inline: .85rem; border-color: #8b6a7b; color: var(--gold); font-size: .85rem; }
.button:focus-visible { outline-color: var(--light); }
.store-links { display: flex; flex-wrap: wrap; gap: .65rem; }

.hero { background: radial-gradient(ellipse at 21% 99%, #432036, transparent 65%), var(--night); }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(34rem, 47vw, 43rem); }
.hero-copy { align-self: center; padding-block: clamp(3.25rem, 6vw, 6rem); padding-right: clamp(1.5rem, 4vw, 4rem); }
.hero h1 em { display: block; }
.hero-description { margin-block: 1.75rem 1.8rem; max-width: 26rem; color: var(--light-muted); font-size: clamp(1.08rem, 1.7vw, 1.32rem); }
.hero-link { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .45rem; margin-top: .75rem; color: var(--light-muted); font-size: .875rem; font-weight: 700; }
.hero-visual { position: relative; min-width: 0; background: #522b36; }
.hero-visual::after { content: ''; position: absolute; inset: 0; border: 1px solid #bd8b7b55; pointer-events: none; }
.hero-visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }

.paper { color-scheme: light; color: var(--ink); background: var(--paper); }
.paper h2 em, .paper .eyebrow { color: var(--berry); }
.paper p:not(.eyebrow) { color: var(--ink-muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.1rem); margin: 3rem 0 0; padding: 0; list-style: none; }
.steps li { padding-top: 1.15rem; border-top: 1px solid var(--paper-line); }
.step-number { display: block; margin-bottom: .8rem; color: var(--berry); font: 700 italic 1.65rem/1.2 var(--display); }
.steps h3, .privacy-points h3 { margin-bottom: .45rem; font-size: 1.18rem; }
.steps p { max-width: 22rem; }

.app-preview { background: radial-gradient(ellipse at 70% 65%, #5a2645, transparent 68%), #27192a; }
.preview-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(1.75rem, 4vw, 4rem); align-items: center; }
.preview-layout h2 em, .privacy-layout h2 em { display: block; }
.app-preview .section-intro { color: var(--light-muted); }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: clamp(.45rem, 1.6vw, 1.4rem); margin-inline: auto; width: min(100%, 42rem); }
.screens img { width: 100%; height: auto; border-radius: clamp(.55rem, 1.8vw, 1.5rem); border: 1px solid #a6768d; box-shadow: 0 .9rem 1.6rem #1a101bb3; }
.screens img:nth-child(2) { transform: translateY(-.9rem); }

.privacy-layout, .faq-layout { display: grid; grid-template-columns: 1fr .94fr; gap: clamp(2rem, 7vw, 6.5rem); }
.privacy-points { border-bottom: 1px solid var(--paper-line); }
.privacy-points > div { padding-block: 1.15rem; border-top: 1px solid var(--paper-line); }
.faq-section { padding-top: 0; }
.faq-layout { border-top: 1px solid var(--paper-line); padding-top: clamp(3rem, 6vw, 5rem); }
.faq-layout h2 { font-size: clamp(2.55rem, 4.5vw, 4.45rem); }
.faq-layout h2 em { display: block; }
.faq-list { border-top: 1px solid var(--paper-line); }
.faq-list details { border-bottom: 1px solid var(--paper-line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding-block: .65rem; cursor: pointer; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; width: .58rem; height: .58rem; flex: none; margin-right: .3rem; border-right: 2px solid var(--berry); border-bottom: 2px solid var(--berry); transform: rotate(45deg) translate(-.1rem, -.1rem); }
.faq-list details[open] summary::after { transform: rotate(225deg); }
.faq-list details p { margin: 0 1.75rem 1rem 0; }

.download { text-align: center; background: radial-gradient(ellipse at 50% 25%, #592b49, transparent 80%), var(--night); }
.download p { margin-block: 1.2rem 1.55rem; color: var(--light-muted); }
.download .store-links { justify-content: center; }
.site-footer { border-top: 1px solid var(--night-line); background: var(--night-deep); }
.footer-layout { min-height: 6.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; padding-block: 1rem; }
.site-footer small, .site-footer nav { color: var(--light-muted); }

.info-page { min-height: 100vh; display: flex; flex-direction: column; }
.info-page main { flex: 1; }
.info-page h1 { font-size: clamp(2.8rem, 6.8vw, 5.6rem); }
.info-wrap { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }
.info-wrap h2 { margin-top: 2.5rem; font: 800 1.45rem/1.25 var(--body); letter-spacing: normal; }
.info-wrap p, .info-wrap ol { margin-top: 1rem; overflow-wrap: anywhere; }
.info-wrap ol { padding-inline-start: 1.6rem; }
.info-wrap li + li { margin-top: .5rem; }
.info-wrap .store-links { margin-top: 1.4rem; }
.invite-code { padding: 1rem 1.25rem; border: 1px solid var(--night-line); border-radius: .4rem; background: var(--night-deep); }
.invite-code strong { display: block; color: var(--gold); font-size: 1.5rem; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .main-nav { column-gap: .8rem; }
  .brand { font-size: 1.1rem; }
}

@media (max-width: 760px) {
  .nav-bar { flex-wrap: wrap; gap: .2rem .65rem; padding-block: .65rem .25rem; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: .15rem .6rem; }
  .main-nav a { font-size: .83rem; min-height: 2.4rem; }
  .hero-layout, .preview-layout, .privacy-layout, .faq-layout { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; padding-bottom: 1.85rem; }
  .hero-visual { min-height: clamp(20rem, 91vw, 34rem); margin-bottom: 1.25rem; }
  .hero-visual img { object-position: center 20%; }
  .preview-layout { gap: 2.5rem; }
  .privacy-layout, .faq-layout { gap: 1.65rem; }
  .steps { margin-top: 1.65rem; grid-template-columns: 1fr; gap: 1.25rem; }
  .step-number { margin-bottom: .4rem; }
  .info-page .nav-bar { min-height: 4.4rem; padding-block: .6rem; }
}

@media (max-width: 400px) {
  h1 { font-size: clamp(3.15rem, 15vw, 4rem); }
  .brand img { width: 36px; height: 36px; }
  .button { padding-inline: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
