/* Digital Goldlist — digitalgoldlist.com
   Palette from Digital_Goldlist_Brand_Kit.pdf (gold ramp) and the app's
   own paper/ink theme (ui/theme/Theme.kt), so the site and the app read
   as one object. */

:root {
  /* Brand gold ramp */
  --gold:        #D4AF37;
  --gold-deep:   #8C6A22;
  --gold-pale:   #F3E0BE;

  /* Warm neutrals — biased brown toward the gold, never a flat grey */
  --cover:       #17150F;
  --cover-soft:  #23201A;
  --paper:       #F6F2E9;
  --paper-raised:#FBF8F1;
  --text:        #2B2A26;
  --sepia:       #7A6A53;
  --rule:        #DFD6C2;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #1C1B18;
    --paper-raised: #24221E;
    --text:         #E7E2D6;
    --sepia:        #C9B894;
    --rule:         #3A362E;
    --gold:         #E0BF52;
    --gold-deep:    #C9A63F;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper:        #1C1B18;
  --paper-raised: #24221E;
  --text:         #E7E2D6;
  --sepia:        #C9B894;
  --rule:         #3A362E;
  --gold:         #E0BF52;
  --gold-deep:    #C9A63F;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- shared primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: 52rem; }

.label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sepia);
}

a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: Spectral, ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  text-wrap: balance;
  line-height: 1.2;
  margin: 0;
}

/* ---------- the cover: a foil-stamped dark band ---------- */

.cover {
  position: relative;
  background: var(--cover);
  color: var(--gold-pale);
  padding-block: clamp(4.5rem, 13vw, 7.5rem) clamp(3.5rem, 9vw, 5.5rem);
  overflow: hidden;
}

/* The ribbon bookmark from the app icon, hanging from the top edge. */
.ribbon {
  position: absolute;
  top: 0;
  left: clamp(1.25rem, 5vw, 3.5rem);
  width: 1.375rem;
  height: 4.25rem;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}

.cover__title {
  font-size: clamp(2.5rem, 8.5vw, 4.25rem);
  letter-spacing: -0.015em;
  color: transparent;
  background: linear-gradient(168deg, var(--gold-pale) 0%, var(--gold) 42%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-block: 0.75rem 0;
}

.cover__lede {
  max-width: 30rem;
  margin-block: 1.5rem 0;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: #CFC4AB;
}
.cover__lede em {
  font-family: Spectral, ui-serif, Georgia, serif;
  font-style: italic;
  color: var(--gold-pale);
}

.cover__rule {
  width: 3.5rem;
  height: 2px;
  margin-top: 2.25rem;
  background: var(--gold-deep);
}

.cover .label { color: var(--gold-deep); }
/* Shipping now vs. not yet — dimmer, so the label states availability
   rather than implying both stores are live. */
.cover .label .soon { color: #6B6155; }

/* ---------- body sections ---------- */

.section { padding-block: clamp(3rem, 8vw, 4.75rem); }
.section + .section { border-top: 1px solid var(--rule); }

.section__head { margin-bottom: 1.75rem; }
.section__head h2 {
  font-size: clamp(1.5rem, 3.8vw, 1.9rem);
  margin-top: 0.5rem;
}

.prose > *     { margin: 0; }
.prose > * + * { margin-block-start: 1.15em; }
.prose em {
  font-family: Spectral, ui-serif, Georgia, serif;
  font-style: italic;
}

.aside {
  margin-block-start: 2rem;
  padding-inline-start: 1.25rem;
  border-inline-start: 2px solid var(--gold);
  font-family: Spectral, ui-serif, Georgia, serif;
  font-size: 1.1875rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--sepia);
}

/* ---------- the distillation ladder ----------
   Bar widths are the real counts (25 / 17 / 11 / 7) as a percentage of
   the headlist, so the narrowing you see IS the data. */

.ladder {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-block: 2rem 0;
}

.rung {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.75rem 1rem;
}

.rung__name {
  font-family: Spectral, ui-serif, Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 600;
}
.rung__count {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold-deep);
}
.rung__bar {
  grid-column: 1 / -1;
  height: 0.5rem;
  margin-top: 0.35rem;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 100%);
}
.rung__note {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  color: var(--sepia);
  font-size: 0.9375rem;
}

/* The rest between rungs — dashed, because nothing happens here. */
.rest {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 1.15rem;
  color: var(--sepia);
}
.rest::before,
.rest::after {
  content: "";
  height: 0;
  border-top: 1px dashed var(--rule);
}
.rest::before { width: 1.5rem; flex: none; }
.rest::after  { flex: 1; }

/* ---------- feature list ---------- */

.features {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 40rem) {
  .features { grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; }
}
.features h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.3rem;
}
.features p {
  margin: 0;
  color: var(--sepia);
  font-size: 0.9688rem;
  line-height: 1.6;
}

/* ---------- credit card ---------- */

.credit {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: clamp(1.5rem, 4vw, 2rem);
}
.credit p { margin: 0; }
.credit p + p { margin-top: 0.9rem; }
.credit a { font-weight: 500; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 2.25rem 3rem;
  color: var(--sepia);
  font-size: 0.9063rem;
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}
.foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- policy page ---------- */

.policy h2 {
  font-size: 1.3125rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.policy h2:first-of-type { margin-top: 2rem; }
.policy p, .policy ul { margin-block: 0.9rem 0; }
.policy ul { padding-inline-start: 1.15rem; }
.policy li + li { margin-top: 0.5rem; }
.policy li::marker { color: var(--gold-deep); }

.summary {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  padding: 1.25rem 1.4rem;
  margin-top: 1.75rem;
}
.summary p { margin: 0; }
.summary strong { font-weight: 600; }

.back {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--sepia);
}
