
:root {
  --bg: #100d09;
  --panel: #1b1711;
  --gold: #dab985;
  --cream: #f2e9da;
  --muted: #c7bbaa;
  --line: #dab98540;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      ellipse at 90% 0,
      #71502b35,
      transparent 50%
    ),
    var(--bg);
  color: var(--cream);
  font: 400 1rem/1.7 Inter, Arial, sans-serif;
}

h1, h2, h3, p {
  margin: 0 0 20px;
}

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.8rem);
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.5rem;
}

em {
  color: var(--gold);
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

button, input, select {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

[id] {
  scroll-margin-top: 105px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
}

.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--gold);
  color: var(--bg);
  z-index: 100;
  padding: 12px;
}

.skip:focus {
  top: 12px;
}



.header {
  background: #100d09f5;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
}

.brand {
  font: 600 1.3rem Fraunces, serif;
  letter-spacing: 2px;
  text-decoration: none;
}

.links, .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.links a {
  padding: 8px;
  text-decoration: none;
  font-size: .9rem;
}



.hero {
  padding-block: 80px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.split > * {
  min-width: 0;
}

.kicker {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.lead {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 55ch;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 23px;
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: #efd3a6;
}

.btn.alt {
  background: transparent;
  color: var(--cream);
}

.actions {
  margin-top: 28px;
}



.section {
  padding-block: 65px;
}

.intro {
  max-width: 780px;
  margin-bottom: 35px;
}

.muted, .card p {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.card .num {
  display: block;
  color: var(--gold);
  margin-bottom: 18px;
  font-size: .8rem;
}

.quote {
  padding: 30px;
  border-left: 2px solid var(--gold);
  background: #dab98508;
  font: 400 clamp(1.4rem, 2.6vw, 2rem)/1.5 Fraunces, serif;
  margin: 35px 0 0;
}

.dialogue {
  border-block: 1px solid var(--line);
  padding: 32px 0;
}

.dialogue p {
  margin-bottom: 24px;
}

.dialogue strong {
  display: block;
  color: var(--gold);
  font-size: .8rem;
  margin-bottom: 6px;
}



.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 25px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 570px;
  background: var(--panel);
}

caption {
  text-align: left;
  font-weight: 700;
  padding: 18px;
  color: var(--gold);
}

th, td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--gold);
}

.note {
  font-size: .87rem;
  color: var(--muted);
}

.notice {
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: #dab9850b;
}



.config {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 4vw, 45px);
  background: var(--panel);
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 7px;
}

input, select {
  width: 100%;
  min-height: 48px;
  padding: 11px;
  border: 1px solid #8b7d67;
  border-radius: 6px;
  background: #100d09;
  color: var(--cream);
}

.result {
  margin-top: 25px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.total {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gold);
  font-weight: 700;
}

.result .btn {
  width: 100%;
  margin-top: 20px;
}

.error {
  color: #ffc1a8;
}



.stage {
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    radial-gradient(
      ellipse at 50% 45%,
      #71543755,
      transparent 65%
    ),
    #17130f;
  padding: 45px 20px 20px;
  text-align: center;
  overflow: hidden;
}

.pouch {
  --bag: #272725;
  --light: #5b5b55;

  position: relative;
  width: min(285px, 90%);
  height: 385px;
  margin: 0 auto 35px;
  border-radius: 15px 15px 35px 35px;

  background:
    linear-gradient(
      90deg,
      #0008,
      transparent 10%,
      #ffffff18 17%,
      transparent 35%,
      #ffffff0a 70%,
      #0004 88%
    ),
    linear-gradient(135deg, var(--light), var(--bag) 45%);

  box-shadow:
    15px 28px 32px #0007,
    inset 0 0 0 1px #ffffff30;

  border-top: 14px solid #ffffff12;
  transform: rotate(-3deg);
}

.pouch:before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18px;
  height: 5px;
  border-block: 1px solid #ffffff55;
}

.pouch:after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 16px;
  height: 18px;
  border-top: 1px solid #ffffff25;
  border-radius: 50%;
}

.valve {
  position: absolute;
  top: 58px;
  right: 40px;
  width: 24px;
  height: 24px;
  border: 5px double #ffffff44;
  border-radius: 50%;
  background: #0002;
}

.label {
  position: absolute;
  inset: 112px 24px 55px;
  background: #f4eddf;
  color: #252016;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 4px 10px #0003;
}

.label small {
  font-size: .57rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.label b {
  font: 600 1.6rem/1.12 Fraunces, serif;
  margin: 16px 0;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.label span {
  font-size: .72rem;
}

.label hr {
  width: 40%;
  border: 0;
  border-top: 1px solid #9a805e;
  margin: 14px 0;
}

.preview-data {
  font-size: .85rem;
  color: var(--muted);
  min-height: 45px;
}

.static-preview .pouch {
  transform: rotate(4deg);
}



.real-photo {
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.real-photo img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  background: #181611;
}

.real-photo figcaption {
  padding: 16px;
  font-size: .85rem;
  color: var(--muted);
}



details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gold);
}

details p {
  margin: 15px 0 0;
  color: var(--muted);
}

.closing {
  text-align: center;
  padding: 70px 20px;
  background: #dab98508;
  border-block: 1px solid var(--line);
}

.closing p {
  max-width: 680px;
  margin: 20px auto;
}

.closing .actions {
  justify-content: center;
}

footer {
  padding: 40px 0 25px;
}

footer p, footer a {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.legal {
  font-size: .8rem;
  margin-top: 30px;
}



@media (max-width: 950px) {
  .header {
    position: relative;
  }

  .nav {
    flex-direction: column;
  }

  .links {
    justify-content: center;
  }

  [id] {
    scroll-margin-top: 20px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .hero {
    padding-block: 45px;
  }

  .static-preview {
    max-width: 550px;
    width: 100%;
    margin: auto;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 28px);
  }

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

  .field.full {
    grid-column: auto;
  }

  .actions .btn {
    width: 100%;
  }

  .section {
    padding-block: 40px;
  }

  .stage {
    padding-inline: 12px;
  }

  .config {
    padding: 18px;
  }

  .pouch {
    height: 355px;
  }

  .label {
    inset: 105px 18px 45px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
