:root {
  --paper: #f7efe4;
  --paper2: #fffaf2;
  --cream: #f7efe4;
  --cream-deep: #f1e7d2;
  --ink: #191815;
  --muted: #665e55;
  --ink-soft: #665e55;
  --green: #08773d;
  --green-dark: #0f4a26;
  --red: #d5332e;
  --red-dark: #ad241f;
  --white: #fffdf8;
  --serif: "Barlow Condensed","Arial Narrow","Helvetica Neue",sans-serif;
  --sans: "DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --line: #d9cbbd;
  --input-line: #8a7a63;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

a,
button,
input {
  font: inherit;
}

/* iOS Safari auto-zooms on focus when a control's text is <16px — floor it */
input,
textarea,
select {
  font-size: max(1em, 16px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Shared site header + nav — identical on every page */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  height: 96px;
  display: flex;
  align-items: center;
}

.site-header .wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nav .logo {
  display: block;
  width: 188px;
  max-width: none;
  height: auto;
  mix-blend-mode: normal;
}

.links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
}

.links a {
  color: var(--ink);
  text-decoration: none;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff !important;
  border-radius: 8px;
  padding: 14px 20px;
  font-weight: 800;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.16);
}

.nav-cta:hover {
  background: var(--red-dark);
  color: #fff !important;
}

.menu {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 850px) {
  .site-header { height: 82px; }
  .links {
    display: none;
    position: absolute;
    top: 81px;
    left: 0;
    right: 0;
    padding: 22px;
    background: var(--paper2);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }
  .links.open { display: flex; }
  .menu { display: block; }
  .nav .logo { width: 150px; }
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding: 40px 0 16px;
  text-align: center;
}

.kicker {
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(54px, 7.2vw, 94px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.deck {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 26px;
}

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

.form-label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.subscribe-form input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 15px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.05rem;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--green);
  outline-color: var(--green);
  outline-offset: 1px;
}

.subscribe-form input[aria-invalid="true"] {
  border-color: var(--red);
}

.form-actions {
  display: contents;
}

.subscribe-form button[type="submit"],
.cta-button {
  min-height: 54px;
  padding: 15px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: var(--cream);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.subscribe-form button[type="submit"]:hover,
.cta-button:hover {
  background: var(--green-dark);
}

.subscribe-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.typo-suggestion {
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 2px 0 12px;
}

.form-note {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.form-msg {
  min-height: 1.4em;
  font-size: 0.95rem;
  font-weight: 700;
}

.form-msg[data-state="error"] {
  color: var(--red);
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 22px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.proof-row li {
  padding: 0 10px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.proof-row li:last-child {
  border-right: 0;
}

.proof-row strong,
.proof-row span {
  display: block;
}

.proof-row strong {
  color: var(--green);
  font-size: 16px;
  line-height: 1.3;
}

.proof-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .proof-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 14px;
  }
  .proof-row li:nth-child(2) { border-right: 0; }
}

.success-state {
  padding: 20px;
  border: 2px solid var(--green);
  border-radius: 10px;
  background: var(--white);
  color: var(--green-dark);
  text-align: center;
}

.success-state strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.giveaway {
  margin: 8px 0 36px;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--green);
  color: var(--cream);
  font-size: 1rem;
}

.giveaway-emoji {
  font-size: 1.3rem;
}

.rankings {
  margin-bottom: 40px;
}

.rankings h2,
.method h2,
.final-cta h2 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 1.7rem;
}

.ranking-list,
.method ul {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.ranking-list {
  gap: 10px;
}

.ranking-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--cream-deep);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.ranking-list a:hover {
  border-color: var(--green);
}

.rank-cat {
  font-size: 1.05rem;
  font-weight: 700;
}

.rank-status {
  color: var(--red);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.archive-link {
  margin-top: 14px;
  text-align: center;
}

.archive-link a {
  color: var(--green);
  font-weight: 700;
}

.method {
  margin-bottom: 44px;
}

.method ul {
  gap: 14px;
}

.method li {
  padding: 12px 0 12px 16px;
  border-left: 4px solid var(--green);
}

.method li strong {
  color: var(--green);
}

.final-cta {
  padding: 12px 0 52px;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 18px;
}

.final-cta .subscribe-form {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 44px;
}

.site-footer {
  padding: 28px 20px 34px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.9rem;
  text-align: center;
}

.footer-brand {
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-links a {
  color: var(--cream);
}

.footer-links a:hover {
  color: var(--cream-deep);
}

@media (min-width: 640px) {
  .hero {
    padding: 56px 0 40px;
  }

  .subscribe-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .subscribe-form .form-actions {
    display: block;
  }

  .subscribe-form button[type="submit"] {
    padding-inline: 34px;
    white-space: nowrap;
  }

  .form-note,
  .form-msg,
  .form-label,
  .typo-suggestion,
  .form-trap {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .hero { padding: 20px 0 16px; }
  .hero-photo { margin-bottom: 16px; }
  .hero-photo img { aspect-ratio: 16 / 5; }
  .hero h1 { font-size: 44px; line-height: 1; }
  .deck { margin-bottom: 18px; }
}

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

  * {
    transition: none !important;
  }
}

/* ---- Subscribe v2 redesign ---- */
main {
  max-width: 680px;
}

.hero-photo {
  margin: 0 0 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(55, 35, 20, 0.16);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.benefits {
  margin: 0 0 36px;
  padding: 0;
  text-align: left;
}

.benefits h2 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 1.7rem;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.benefit-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.benefit-list li:last-child { border-bottom: 0; }

.benefit-check {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-weight: 800;
  font-size: 15px;
  line-height: 26px;
  text-align: center;
}

.benefit-list strong {
  display: block;
  font-size: 1.02rem;
}

.benefit-list span span,
.benefit-list div span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.curator {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 40px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.curator img {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  object-fit: cover;
}

.curator h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .curator { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; }
  .curator img { width: 80px; height: 80px; }
  .curator h2 { font-size: 17px; }
}

.giveaway {
  margin: 0 0 40px;
  padding: 26px 24px;
  border: 2px dashed var(--green);
  border-radius: 14px;
  background: var(--paper2);
  color: var(--ink);
  text-align: center;
}

.giveaway-amount {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.giveaway p:last-child {
  margin: 0;
  font-size: 1rem;
}

.ranking-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.ranking-card {
  display: block;
  border: 1px solid var(--cream-deep);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ranking-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.ranking-card-img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream-deep);
}

.ranking-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.ranking-card-body strong {
  font-size: 1.05rem;
}

.ranking-card-body span:last-child {
  color: var(--red);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .ranking-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
