:root {
  color-scheme: light;
  --red: #ed4b3b;
  --red-dark: #c9362d;
  --red-soft: #fde4df;
  --gold: #f1b832;
  --gold-dark: #98620b;
  --gold-soft: #fff0c8;
  --cream: #fffaf0;
  --cream-deep: #f4eadf;
  --surface: #fffdf7;
  --surface-muted: #f7eee5;
  --charcoal: #2f2733;
  --charcoal-strong: #1d1722;
  --muted: #766976;
  --subtle: #9b8f99;
  --border: #dfcec1;
  --border-soft: rgba(80, 54, 63, 0.13);
  --shadow: rgba(61, 34, 38, 0.11);
  --success: #2c7a56;
  --max-width: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 95% 4%, rgba(237, 75, 59, 0.12), transparent 27rem),
    radial-gradient(circle at 3% 85%, rgba(241, 184, 50, 0.1), transparent 25rem),
    var(--cream);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.72;
}

a {
  color: var(--red-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--charcoal);
  color: white;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 250, 240, 0.91);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: var(--charcoal-strong);
  text-decoration: none;
}

.brand img {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  object-fit: contain;
  image-rendering: pixelated;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.12;
}

.brand-kicker {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-name {
  overflow: hidden;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 750;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--red);
}

.version-badge {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at 82% 15%, rgba(237, 75, 59, 0.16), transparent 23rem),
    radial-gradient(circle at 12% 100%, rgba(241, 184, 50, 0.16), transparent 20rem),
    linear-gradient(135deg, #fffdf7, #f6e8dc);
}

.hero::after {
  position: absolute;
  right: -95px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 62px solid rgba(237, 75, 59, 0.055);
  border-radius: 50%;
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 40px), var(--max-width));
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 70px;
  margin: 0 auto;
  padding: 78px 0 74px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 810px;
  margin: 0;
  color: var(--charcoal-strong);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 720px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  border: 1px solid var(--red-dark);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 10px 24px rgba(201, 54, 45, 0.24);
  color: white;
}

.button-primary:hover {
  color: white;
  filter: brightness(0.96);
}

.button-arrow {
  margin-left: 5px;
  font-size: 1.1em;
  line-height: 1;
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--charcoal);
}

.button-disabled {
  cursor: default;
}

.hero-note {
  margin: 13px 0 0;
  color: var(--subtle);
  font-size: 13px;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  border-radius: 28px;
  content: "";
}

.hero-art::before {
  width: 245px;
  height: 245px;
  transform: rotate(-8deg);
  background: var(--red-soft);
  box-shadow: 0 30px 50px var(--shadow);
}

.hero-art::after {
  width: 205px;
  height: 205px;
  transform: rotate(7deg);
  border: 2px solid rgba(152, 98, 11, 0.18);
  background: var(--gold-soft);
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: 210px;
  height: 210px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 22px 16px rgba(47, 39, 51, 0.2));
}

.guide-shell {
  display: grid;
  width: min(calc(100% - 40px), var(--max-width));
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 42px;
  margin: 0 auto;
  padding: 58px 0 90px;
}

.guide-shell.privacy-page {
  grid-template-columns: minmax(0, 1fr);
}

.privacy-page > .guide-article {
  width: min(100%, 860px);
  margin: 0 auto;
}

.table-of-contents {
  position: sticky;
  top: 105px;
  padding: 21px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 12px 30px var(--shadow);
}

.table-of-contents strong {
  display: block;
  margin-bottom: 11px;
  color: var(--charcoal-strong);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.table-of-contents nav {
  display: grid;
  gap: 3px;
}

.table-of-contents a {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
}

.table-of-contents a:hover {
  background: var(--red-soft);
  color: var(--red-dark);
}

.guide-article {
  min-width: 0;
}

.guide-article > :first-child {
  margin-top: 0;
}

.guide-article h2,
.guide-article h3,
.guide-article h4 {
  color: var(--charcoal-strong);
  line-height: 1.25;
  scroll-margin-top: 100px;
}

.guide-article h2 {
  margin: 75px 0 20px;
  padding-top: 10px;
  border-top: 2px solid var(--red-soft);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.035em;
}

.guide-article h2:first-of-type {
  margin-top: 0;
}

.guide-article h3 {
  margin: 42px 0 14px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.guide-article h4 {
  margin: 31px 0 9px;
  font-size: 19px;
}

.guide-article p,
.guide-article li {
  max-width: 78ch;
}

.guide-article strong {
  color: var(--charcoal-strong);
}

.guide-article ul,
.guide-article ol {
  padding-left: 1.45em;
}

.guide-article li {
  margin: 8px 0;
  padding-left: 3px;
}

.guide-article li::marker {
  color: var(--red);
  font-weight: 850;
}

.guide-article blockquote,
.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--red);
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--muted);
}

.guide-article blockquote > :first-child,
.callout > :first-child {
  margin-top: 0;
}

.guide-article blockquote > :last-child,
.callout > :last-child {
  margin-bottom: 0;
}

.callout-gold {
  border-left-color: var(--gold);
  background: var(--gold-soft);
}

.callout-success {
  border-left-color: var(--success);
}

.guide-article code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 0.9em;
}

.guide-article table {
  width: 100%;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 22px var(--shadow);
  font-size: 15px;
}

.guide-article th,
.guide-article td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}

.guide-article tr:last-child td {
  border-bottom: 0;
}

.guide-article th {
  background: var(--surface-muted);
  color: var(--charcoal-strong);
}

.guide-shot {
  margin: 30px 0 38px;
}

.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 22px 45px var(--shadow);
}

.guide-shot--portrait img {
  width: min(100%, 540px);
  margin: 0 auto;
}

.guide-shot figcaption {
  margin-top: 11px;
  color: var(--subtle);
  font-size: 13px;
  text-align: center;
}

.section-intro {
  color: var(--muted);
  font-size: 19px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.privacy-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.privacy-card strong {
  display: block;
  margin-bottom: 5px;
}

.privacy-card span {
  color: var(--muted);
  font-size: 15px;
}

.support-card {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 30px;
  margin: 26px 0 12px;
  padding: 32px;
  border: 1px solid rgba(47, 39, 51, 0.38);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 20%, rgba(241, 184, 50, 0.22), transparent 17rem),
    linear-gradient(135deg, var(--charcoal-strong), var(--charcoal));
  box-shadow: 0 24px 50px rgba(29, 23, 34, 0.2);
  color: #fffaf0;
}

.support-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  content: "";
}

.support-copy {
  position: relative;
  z-index: 1;
}

.support-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-article .support-copy h3 {
  margin: 0 0 15px;
  color: #fffaf0;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.035em;
}

.support-copy p:not(.support-kicker) {
  margin: 11px 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: 16px;
}

.button-coffee {
  gap: 4px;
  margin-top: 10px;
  border: 1px solid #ffd66e;
  background: linear-gradient(135deg, #ffd05b, var(--gold));
  box-shadow: 0 12px 26px rgba(241, 184, 50, 0.22);
  color: var(--charcoal-strong);
}

.button-coffee:hover {
  color: var(--charcoal-strong);
  filter: brightness(1.04);
}

.support-note {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  border: 1px solid rgba(255, 250, 240, 0.13);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.06);
  flex-direction: column;
  text-align: center;
}

.support-note img {
  width: 118px;
  height: 118px;
  margin-bottom: 14px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.25));
}

.support-note strong {
  color: #fffaf0;
  font-size: 20px;
  line-height: 1.3;
}

.support-note span {
  max-width: 200px;
  margin-top: 8px;
  color: rgba(255, 250, 240, 0.63);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin: 0 auto;
  padding: 38px 0 50px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  image-rendering: pixelated;
}

.site-footer p {
  max-width: 480px;
  margin: 0;
}

@media (max-width: 900px) {
  .header-nav a {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr 220px;
    gap: 28px;
  }

  .hero-art {
    min-height: 230px;
  }

  .hero-art::before {
    width: 190px;
    height: 190px;
  }

  .hero-art::after {
    width: 160px;
    height: 160px;
  }

  .hero-art img {
    width: 165px;
    height: 165px;
  }

  .guide-shell {
    grid-template-columns: 1fr;
  }

  .table-of-contents {
    position: static;
  }

  .table-of-contents nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .brand img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand-name {
    max-width: 190px;
    font-size: 14px;
  }

  .brand-kicker,
  .version-badge {
    font-size: 9px;
  }

  .hero-inner {
    width: min(calc(100% - 28px), var(--max-width));
    grid-template-columns: 1fr;
    padding: 52px 0 45px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-art {
    display: none;
  }

  .guide-shell {
    width: min(calc(100% - 28px), var(--max-width));
    gap: 25px;
    padding: 34px 0 65px;
  }

  .table-of-contents nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-article h2 {
    margin-top: 57px;
    font-size: 30px;
  }

  .guide-article table {
    display: block;
    overflow-x: auto;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .support-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .support-note {
    min-height: 0;
  }

  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .table-of-contents,
  .hero-actions,
  .site-footer {
    display: none;
  }

  .hero {
    border: 0;
    background: white;
  }

  .hero-inner,
  .guide-shell {
    display: block;
    width: 100%;
    padding: 20px 0;
  }

  .hero-art {
    display: none;
  }

  .guide-shot img {
    max-height: 760px;
    object-fit: contain;
    box-shadow: none;
  }
}
