:root {
  --paper: #f6f3ea;
  --ink: #1d3349;
  --ink-soft: #4a5d70;
  --rule: rgba(29, 51, 73, 0.35);
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121b25;
    --ink: #e6e1d4;
    --ink-soft: #a9b3bd;
    --rule: rgba(230, 225, 212, 0.3);
  }
  :root:not([data-theme="light"]) .hero-chart { filter: invert(1) hue-rotate(180deg) brightness(0.9); }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.1875rem;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums;
}

main { overflow-x: hidden; }

a { color: inherit; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }

img { max-width: 100%; height: auto; display: block; }

.label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
}

.caption { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin: 0.6rem 0 0; }

section, footer { padding: 0 1rem; }

/* ---- Masthead ---------------------------------------------------------- */

.masthead {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding: 1.1rem 1.25rem;
}
.mark {
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  background: var(--paper); padding: 0.2rem 0.5rem;
}

/* ---- Hero: the chart, with the title lettered the way the chart's is ------ */

.hero {
  position: relative;
  min-height: min(92vh, 60rem);
  display: grid;
  place-items: center;
  padding: 0;
}
.hero-chart {
  position: absolute; inset: 0;
  background: url("/assets/chart-outer-cape.webp") 30% 30% / cover no-repeat;
}
.title-block {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 1.4rem 1.6rem 1.2rem;
  text-align: center;
  margin: 0 1rem;
  width: min(25rem, calc(100% - 2rem));
}
.title-block hr { width: 9rem; border: 0; border-top: 1px solid var(--ink); margin: 0.7rem auto; }
.title-block h1 {
  font-weight: 400; font-size: clamp(2.2rem, 7vw, 3rem); letter-spacing: 0.14em;
  text-transform: uppercase; margin: 0; line-height: 1.1; padding-left: 0.14em; white-space: nowrap;
}
.title-block .sub { font-style: italic; margin: 0.2rem 0 0; font-size: 1rem; }

@media (min-width: 52rem) {
  .hero { place-items: center end; }
  .title-block { margin-right: 9vw; }
}

/* ---- Body -------------------------------------------------------------- */

.lede, .contents, .waitlist, .object { max-width: var(--measure); margin: 0 auto; }

.lede { padding-top: 4.5rem; }
.tagline { font-size: 1.5rem; line-height: 1.45; margin: 0 0 2rem; }

.buy { margin: 4rem auto; max-width: 26rem; }
.buy-card { border: 1px solid var(--ink); padding: 1.6rem 1.5rem 1.4rem; text-align: center; }
.price { font-size: 2.4rem; margin: 0.3rem 0 0; line-height: 1.1; }
.price .plus { font-size: 1rem; color: var(--ink-soft); }
.ships { margin: 0.4rem 0 1.2rem; }
.button, button {
  display: inline-block; font: inherit; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); border: 0; padding: 0.75rem 1.4rem;
  text-decoration: none; cursor: pointer;
}
.button:hover, button:hover { opacity: 0.88; }
button:disabled { opacity: 0.5; cursor: default; }
.fine { font-size: 0.85rem; color: var(--ink-soft); margin: 1.1rem 0 0; line-height: 1.45; }

.contents ol { list-style: none; counter-reset: piece; padding: 0; margin: 1.2rem 0 1.6rem; }
.contents li { counter-increment: piece; display: grid; grid-template-columns: 2.2rem 1fr; padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
.contents li::before { content: counter(piece, upper-roman); font-size: 0.8rem; color: var(--ink-soft); padding-top: 0.25rem; }
.contents .a { grid-column: 2; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.contents .note { color: var(--ink-soft); }

.figure { max-width: 44rem; margin: 4.5rem auto; }

.object { margin-top: 4rem; }
.object dl { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.45rem 1rem; margin: 1.2rem 0 2.5rem; }
.object dt { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.2rem; }
.object dd { margin: 0; }
.object .cover { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08); }

.waitlist { margin-top: 4.5rem; margin-bottom: 4rem; }
.waitlist form { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.waitlist input[type=email] {
  flex: 1 1 14rem; font: inherit; font-size: 1rem; padding: 0.7rem 0.8rem;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 0;
}
.form-status { min-height: 1.5em; font-size: 0.95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

footer { max-width: 44rem; margin: 0 auto; padding-bottom: 3rem; text-align: center; font-size: 0.95rem; }
footer .profile { margin: 0 auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer .profile { filter: invert(1) hue-rotate(180deg); } }
footer .credits { font-size: 0.8rem; color: var(--ink-soft); max-width: 34rem; margin: 1.2rem auto 0; }
