* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg: #211916;
  --panel: #32251e;
  --ink: #fff3df;
  --muted: #d7c6b1;
  --line: #694c38;
  --gold: #efbd76;
  --serif: Georgia, 'Times New Roman', serif;
  font: 16px/1.6 system-ui, sans-serif;
}

body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
.frame { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--line); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .45rem; font: bold 1.4rem/1 var(--serif); text-decoration: none; white-space: nowrap; }
.brand-mark { flex: none; border-radius: .35rem; }
.top-link { color: var(--gold); font-weight: 650; text-underline-offset: .3em; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 33rem; margin-block: 2rem 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1.4rem; background: #2b1e18; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 62% center; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #201613 0%, #201613f5 32%, #2016139c 59%, #20161322 100%); }
.hero-copy { padding: clamp(2rem, 5vw, 5rem); max-width: 39rem; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(3rem, 7.2vw, 6.1rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy p { margin: 1.5rem 0 1.8rem; max-width: 28rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.15rem); }

.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; min-height: 3rem; border-radius: .65rem; text-decoration: none; font-weight: 700; }
.primary { background: var(--gold); color: #2b1a0c; }
.primary:hover { background: #ffd497; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 5vw, 5rem); padding: clamp(1.4rem, 5vw, 3.25rem); }
.details h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.details p, .download p, .footer { color: var(--muted); }
.details p { margin-top: .4rem; max-width: 32rem; }
.download { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.5rem 2rem; padding: clamp(1.3rem, 5vw, 3rem); background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; scroll-margin-top: 1rem; }
.download h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; }
.download-intro p { margin-top: .45rem; }
.channels { display: grid; gap: .65rem; min-width: min(100%, 18rem); }
.channel { width: 100%; border: 1px solid #bc8f63; color: var(--ink); background: #422e23; }
.channel:hover { background: #543b2b; }
.direct p { padding: .2rem .3rem 0; font-size: .9rem; }
.footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem clamp(1rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-block: 1.75rem 2.25rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.footer-title { margin-bottom: .55rem; color: var(--ink); font: 650 1rem/1.5 system-ui, sans-serif; }
.footer ul { display: grid; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.footer a { text-decoration-color: #a88a72; text-underline-offset: .25em; }
.footer a:hover { color: var(--gold); text-decoration-color: currentColor; }
.footer-seller p + p { margin-top: .25rem; }
.footer-seller .footer-title + p { margin-top: .55rem; }

/* Published documents are served separately and share this main layout. */
main.frame {
  max-width: 46rem;
  padding-block: clamp(1.6rem, 5vw, 3.75rem) 3rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
main.frame > h1 {
  margin-bottom: 1.35rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
main.frame > h2 { margin-top: 1.8rem; font-size: clamp(1.3rem, 3vw, 1.65rem); line-height: 1.3; }
main.frame > :is(p, ul, ol) { margin-top: .8rem; color: var(--muted); }
main.frame > p:first-child { margin: 0 0 .95rem; font-size: .9rem; }
main.frame > :is(ul, ol) { padding-inline-start: 1.35rem; }
main.frame li + li { margin-top: .55rem; }
main.frame a { color: var(--gold); text-underline-offset: .2em; }
.plans { margin-top: 2rem; }
.plans p { margin-top: .4rem; color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .8rem; list-style: none; padding: 0; }
.plan-grid li { background: var(--panel); border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; }
.plan-grid h3 { margin: 0; font-family: var(--serif); }
.plan-grid strong { color: var(--gold); }

@media (max-width: 41rem) {
  .frame { width: calc(100% - 2rem); }
  .bar-inner { min-height: 3.6rem; }
  .top-link { font-size: .85rem; }
  .hero { display: flex; align-items: flex-end; min-height: 28rem; margin-top: 1rem; }
  .hero-art img { object-position: 58% center; }
  .hero-art::after { background: linear-gradient(0deg, #201613 0%, #201613f8 38%, #201613a0 70%, #20161328 100%); }
  .hero-copy { padding: 1.35rem; }
  .hero-copy p { margin: 1rem 0 1.25rem; }
  .details { grid-template-columns: 1fr; padding-inline: .5rem; }
  .channels { width: 100%; }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-seller { grid-column: 1 / -1; }
}

@media (max-width: 26rem) {
  .footer { grid-template-columns: minmax(0, 1fr); }
}
