:root {
  color-scheme: dark;
  --night: #090a0d;
  --panel: #141518;
  --paper: #f1ede4;
  --muted: #bbb8b2;
  --bronze: #c9b99a;
  --yellow: #ffce64;
  --rule: #ffffff24;
  --wrap: 80rem;
  --gutter: clamp(1.25rem, 6vw, 6rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--night);
  color: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { line-height: 1.75; }
[id] { scroll-margin-top: 1.5rem; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; transform: translateY(-200%); padding: .7rem 1rem; color: var(--night); background: var(--yellow); border-radius: .5rem; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--rule); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 4.8rem; }
.brand { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.brand-mark { display: block; width: 2.45rem; height: 2.45rem; flex-shrink: 0; background: url("img/favicon.svg") center / contain no-repeat; }
.wordmark { font-size: 1rem; font-weight: 720; letter-spacing: .23em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); font-size: .88rem; color: var(--muted); }
nav a:hover, nav a[aria-current] { color: var(--paper); }

.button { display: inline-flex; justify-content: center; align-items: center; border-radius: .75rem; padding: .8rem 1.3rem; min-height: 3rem; font-weight: 720; text-align: center; transition: background-color .18s ease, box-shadow .18s ease; }
.product-hero .button { margin-top: 1.7rem; }
.primary { background: var(--yellow); color: #241808; box-shadow: 0 8px 35px #ffce641f; }
.primary:hover { background: #ffdd91; box-shadow: 0 8px 35px #ffce6445; }
.secondary { border: 1px solid var(--rule); background: var(--panel); }
.secondary:hover { background: #212224; }

.section-tag { color: var(--bronze); font-weight: 700; font-size: .88rem; letter-spacing: .1em; margin-block-end: .6rem; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.75rem); line-height: 1.24; letter-spacing: -.026em; }
.story-copy > p:last-child, .info-box p, .support p, .privacy > p { color: var(--muted); }
.product-hero { text-align: center; background: radial-gradient(ellipse at 50% 0%, #24221e, transparent 70%); }
.product-intro { padding-block: clamp(3.5rem, 7vw, 6.3rem); }
.product-icon { margin-inline: auto; border-radius: 1.55rem; box-shadow: 0 0 4rem #ffc65d38; }
.product-intro h1, .privacy h1 { margin-block: 1rem .4rem; font-size: clamp(2.6rem, 6.7vw, 5rem); }
.product-intro p { color: #dddad2; font-size: clamp(1rem, 2vw, 1.35rem); }
.product-stories { display: grid; gap: 1.25rem; }
.story { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 2rem; overflow: hidden; border: 1px solid var(--rule); border-radius: 1.4rem; background: radial-gradient(ellipse at 95% 55%, #302d25, transparent 64%), var(--panel); }
.story-copy { padding: clamp(1.5rem, 5vw, 4.2rem); }
.story-copy > p:last-child { margin-top: 1rem; max-width: 28rem; }
.story-shot { display: grid; justify-items: center; align-self: stretch; align-content: center; padding: 2rem; }
.story-shot img { width: min(100%, 12.5rem); height: auto; border: 1px solid #797365; border-radius: 1.35rem; box-shadow: 0 1.3rem 3rem #07060b98; }
.story-shot figcaption { color: var(--muted); margin-top: .6rem; font-size: .82rem; text-align: center; }
.story-reverse { grid-template-columns: 1fr 1.4fr; background: radial-gradient(ellipse at 5% 55%, #272720, transparent 64%), var(--panel); }
.story-reverse .story-shot { grid-column: 1; grid-row: 1; }

.info-section, .support { padding-block: clamp(2.6rem, 7vw, 5.2rem); }
.info-box { background: linear-gradient(115deg, #23221f, var(--panel) 72%); border: 1px solid var(--rule); border-radius: 1.4rem; padding: clamp(1.6rem, 5vw, 4rem); }
.info-box p { margin-top: .8rem; }
.support { padding-top: 0; }
.support h2 { margin-bottom: 1.2rem; }
.support details { border-block-start: 1px solid var(--rule); padding: 1rem 0; }
.support details:last-child { border-block-end: 1px solid var(--rule); }
.support summary { font-weight: 670; cursor: pointer; }
.support p { padding: .65rem 1.1rem .2rem; }
.privacy { max-width: 45rem; padding-block: clamp(3.5rem, 7vw, 6rem); min-height: 68vh; }
.privacy h2 { font-size: 1.4rem; margin-block: 1.6rem .4rem; }
.privacy .button { margin-top: 2rem; }
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { flex-wrap: wrap; padding-block: 1.6rem; }

@media (max-width: 46rem) {
  .header-inner { min-height: 4.25rem; }
  .story, .story-reverse { grid-template-columns: 1fr; gap: 0; }
  .story-reverse .story-shot { grid-column: auto; grid-row: auto; }
  .story-shot { padding-top: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .has-entered { animation: rise-in .65s cubic-bezier(.23, .7, .26, 1) backwards; }
  .has-entered:focus-within { animation: none; }
}

@keyframes rise-in {
  from { transform: translateY(.85rem); opacity: .25; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
