:root {
  color-scheme: light;
  --ink: #211719;
  --soft-ink: #493d40;
  --muted: #74686a;
  --line: #ded6d2;
  --paper: #fbfaf8;
  --surface: #ffffff;
  --red: #9e2032;
  --red-dark: #641320;
  --blue: #20394f;
  --rose: #f7e7e8;
  --shadow: 0 18px 50px rgba(39, 25, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand,
button,
.primary-action,
label,
.label,
.eyebrow {
  font-family: Arial, Helvetica, sans-serif;
}

.brand {
  align-items: baseline;
  color: var(--red);
  display: inline-flex;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-script {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
}

.brand-text {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1;
}

.site-nav {
  align-items: center;
  display: flex;
  flex: 1;
  gap: clamp(14px, 2.6vw, 30px);
  justify-content: center;
}

.site-nav a,
.footer-column a {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  text-decoration: none;
}

.site-nav a:hover,
.footer-column a:hover {
  color: var(--red);
}

.header-cta {
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 17px;
  text-decoration: none;
  white-space: nowrap;
}

main {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.tester-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  gap: 36px;
  align-items: center;
  padding: 20px 0 30px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.label {
  display: block;
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--soft-ink);
  font-size: 21px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-action,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--red);
  color: white;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hero-card-stack {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.story-card {
  border: 1px solid rgba(164, 25, 36, 0.18);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 275px;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.card-label {
  color: var(--red);
  font: 800 10px Arial, Helvetica, sans-serif;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.story-card h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.02;
  margin: 12px 0;
  position: relative;
}

.story-card p,
.story-card dd {
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
  position: relative;
}

.chemistry-card {
  background: linear-gradient(155deg, #fffdf9, #f7e9e4 58%, #eadfda);
}

.world-card {
  background: linear-gradient(155deg, #fffaf4, #dfeee7 58%, #f7e4dd);
}

.locked-card {
  background: linear-gradient(155deg, #2b1b1d, #8e1723 62%, #f1dad5);
  color: #fff8ef;
}

.locked-card .card-label,
.locked-card p,
.locked-card h2 {
  color: #fff8ef;
}

.lock-mark {
  border: 1px solid rgba(255, 248, 239, 0.38);
  border-radius: 999px;
  padding: 10px 12px;
  text-align: center;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
}

.card-tags span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(164, 25, 36, 0.14);
  border-radius: 999px;
  color: var(--red-dark);
  font: 700 11px Arial, Helvetica, sans-serif;
  padding: 6px 8px;
}

.story-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
  position: relative;
}

.story-card dt {
  color: var(--red);
  font: 800 9px Arial, Helvetica, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 24px;
}

.preview-details > div,
.order-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.preview-details > div {
  min-height: 82px;
  padding: 18px;
}

.preview-details strong {
  display: block;
  color: var(--blue);
  font: 800 18px Arial, Helvetica, sans-serif;
}

.order-panel {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 22px;
  background: var(--rose);
}

.order-panel h2 {
  margin: 0;
  font-size: 24px;
}

form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font: 16px Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.site-footer {
  background: var(--ink);
  color: #fff8ef;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 0.7fr));
  padding: clamp(34px, 6vw, 62px) clamp(22px, 5vw, 64px);
}

.footer-brand p {
  color: #e8d8cf;
  font-size: 16px;
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: 360px;
}

.footer-wordmark .brand-text {
  color: #fff8ef;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column h2 {
  color: #f3ddd7;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.footer-column a {
  color: #f8eee8;
}

@media (max-width: 840px) {
  .tester-hero {
    grid-template-columns: 1fr;
  }

  .hero-card-stack {
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .story-card {
    scroll-snap-align: center;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  main {
    width: min(100% - 24px, 1060px);
    padding-top: 28px;
  }

  .preview-details,
  form {
    grid-template-columns: 1fr;
  }

  button,
  .primary-action {
    width: 100%;
  }

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