/* Widths: 320, 375, 768, 1024, 1440. Flat cream, ink, poster red. */

@font-face {
  font-family: "Draftary Display";
  src: url("Oswald-Variable.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F3E6C8;
  --ink: #16110D;
  --red: #9D1C14;
  --red-deep: #6E120C;
  --ochre: #8C5E12;
  --empty: #b7a88a;
  --display: "Draftary Display", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --text: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  min-width: 0;
  border: 0;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--red);
  color: var(--cream);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 6;
  background: var(--red);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
}

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

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 4.25rem;
  padding: 0.4rem 1rem;
  border-bottom: 3px solid var(--ink);
  background: var(--cream);
}

.brand,
.footer-brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 6.5vw, 1.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  min-width: 0;
}

.brand:hover,
.footer-brand:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.nav-toggle {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.7rem;
  border: 2px solid var(--ink);
  background: transparent;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--ink);
  color: var(--cream);
}

.nav-toggle:active {
  background: var(--red);
  color: var(--cream);
}

#site-nav {
  display: none;
}

#site-nav a {
  text-decoration: none;
}

.caption-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  background: var(--red);
  color: var(--cream);
  padding: 0.95rem 1.1rem;
  line-height: 1.1;
  border: 2px solid var(--ink);
  cursor: pointer;
  white-space: normal;
}

.caption-btn:hover {
  background: var(--red-deep);
  color: var(--cream);
}

.caption-btn:active {
  background: var(--ink);
  color: var(--cream);
}

button.caption-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.plan-form.is-loading button.caption-btn {
  cursor: progress;
}

.poster {
  min-height: calc(100svh - 4.25rem);
  min-height: calc(100vh - 4.25rem);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  background: var(--cream);
}

.hero-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.hero-media {
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero-plate {
  max-width: 100%;
  padding: 1rem 1rem 1.25rem;
}

.kicker,
.caption-count,
.stop-kicker,
.success-flag {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

.hero-plate h1,
.band h2,
.legal h1 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.hero-plate h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.85rem, 8vw, 4.4rem);
  overflow-wrap: break-word;
}

.support,
.lock {
  margin: 0;
  max-width: 40rem;
  font-size: 1.125rem;
}

.caption-bar {
  display: flex;
  flex-wrap: wrap;
  margin-top: auto;
  background: var(--ink);
  color: var(--cream);
}

.caption-count {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
}

.caption-bar .caption-btn {
  flex: 1 1 16rem;
  min-width: 0;
  border: 0;
  border-top: 3px solid var(--cream);
}

.band {
  padding: 2.5rem 0;
  border-top: 3px solid var(--ink);
  scroll-margin-top: 0.5rem;
}

.band h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.band p {
  max-width: 40rem;
}

.method,
.nights,
.thanks-steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.method li,
.nights li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.75rem;
  border-top: 3px solid currentColor;
  padding: 0.85rem 0;
}

.method li:last-child,
.nights li:last-child {
  border-bottom: 3px solid currentColor;
}

.method h3,
.night-name {
  margin: 0 0 0.2rem;
  font-family: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.method p,
.nights p {
  margin: 0;
}

.method-no,
.night-no {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1;
}

.night-name {
  font-size: clamp(1.35rem, 4vw, 2rem);
}

figure {
  margin: 0 0 1.25rem;
}

.band figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
}

figcaption {
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.sample-band {
  background: var(--ink);
  color: var(--cream);
}

.sample-band figure img {
  border-color: var(--cream);
}

.sample-layout figure {
  margin: 1.25rem 0 0;
}

.stepper-machine {
  position: relative;
  border: 0;
  margin: 1.25rem 0 0;
  padding: 0;
  min-inline-size: 0;
}

.stepper-machine legend {
  padding: 0;
  font-weight: 700;
}

.day-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.day-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.day-row label {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  cursor: pointer;
}

.day-row label:hover {
  background: var(--ink);
  color: var(--cream);
}

.day-row label:active {
  background: var(--red);
  color: var(--cream);
}

#days-5:focus-visible ~ .day-row label[for="days-5"],
#days-6:focus-visible ~ .day-row label[for="days-6"],
#days-7:focus-visible ~ .day-row label[for="days-7"],
#days-8:focus-visible ~ .day-row label[for="days-8"],
#days-9:focus-visible ~ .day-row label[for="days-9"],
#days-10:focus-visible ~ .day-row label[for="days-10"],
#days-11:focus-visible ~ .day-row label[for="days-11"],
#days-12:focus-visible ~ .day-row label[for="days-12"] {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

#days-5:checked ~ .day-row label[for="days-5"],
#days-6:checked ~ .day-row label[for="days-6"],
#days-7:checked ~ .day-row label[for="days-7"],
#days-8:checked ~ .day-row label[for="days-8"],
#days-9:checked ~ .day-row label[for="days-9"],
#days-10:checked ~ .day-row label[for="days-10"],
#days-11:checked ~ .day-row label[for="days-11"],
#days-12:checked ~ .day-row label[for="days-12"] {
  background: var(--red);
  color: var(--cream);
  border-color: var(--ink);
}

.town-set {
  display: none;
}

#days-5:checked ~ .stepper-panels .set-5,
#days-6:checked ~ .stepper-panels .set-6,
#days-7:checked ~ .stepper-panels .set-7,
#days-8:checked ~ .stepper-panels .set-8,
#days-9:checked ~ .stepper-panels .set-9,
#days-10:checked ~ .stepper-panels .set-10,
#days-11:checked ~ .stepper-panels .set-11,
#days-12:checked ~ .stepper-panels .set-12 {
  display: block;
}

.night-total {
  margin: 0 0 1rem;
  max-width: none;
}

.night-figure {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(4.25rem, 18vw, 7rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
}

.town-grid {
  display: grid;
  gap: 0.75rem;
}

.town-card {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
  background: var(--cream);
  color: var(--ink);
  padding: 0.9rem 0.9rem 1rem;
}

.town-card h3 {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.stop-kicker {
  margin: 0;
  font-size: 0.85rem;
}

.town-card p {
  margin: 0;
}

.fee-figure {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0;
  max-width: none;
  border-top: 3px solid var(--ink);
  padding: 0.8rem 0;
}

.fee-figure strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 12vw, 4rem);
  line-height: 0.85;
}

.fee-limit {
  margin: 1rem 0 0;
  border: 3px solid var(--ink);
  padding: 1rem;
}

.fee-action {
  margin-top: 1.25rem;
}

.plan-form {
  max-width: 40rem;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-weight: 700;
}

.hint,
.form-note,
.field-error {
  margin: 0;
  font-size: 0.95rem;
}

.control {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--empty);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

textarea.control {
  min-height: 8.5rem;
  resize: vertical;
}

.field.is-empty .control {
  border-color: var(--empty);
  background: transparent;
}

.field:not(.is-empty) .control {
  border-color: var(--ink);
  background: #fffdf6;
}

.control:hover {
  border-color: var(--ink);
}

.control:focus {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
  border-color: var(--ink);
}

.field.is-error .control {
  border-color: var(--red);
  background: #fff6f2;
}

.field-error {
  color: var(--red);
  font-weight: 700;
}

.field-error:empty {
  display: none;
}

.form-alert {
  margin: 0;
  border: 3px solid var(--red);
  padding: 0.8rem 1rem;
  background: #fff6f2;
  color: var(--ink);
}

.form-alert[hidden] {
  display: none;
}

.form-privacy a {
  font-weight: 700;
}

button.caption-btn {
  width: 100%;
}

.legal {
  padding: 2.5rem 0 4rem;
}

.legal h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 7vw, 4rem);
}

.legal h2 {
  margin: 1.6rem 0 0.4rem;
  font-family: var(--text);
  font-size: 1.25rem;
}

.legal p,
.legal li {
  max-width: 40rem;
}

.legal ul {
  padding-left: 1.2rem;
  max-width: 40rem;
}

.contact-block {
  font-style: normal;
  display: grid;
  gap: 0.25rem;
  margin: 0.75rem 0;
}

.success-flag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.6rem;
  background: var(--red);
  color: var(--cream);
  font-size: 0.95rem;
}

.thanks-steps {
  max-width: 40rem;
}

.thanks-steps li {
  border-top: 3px solid var(--ink);
  padding: 0.8rem 0;
}

.thanks-steps li:last-child {
  border-bottom: 3px solid var(--ink);
}

.return-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.return-links a {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem 0;
  border-top: 3px solid var(--ink);
}

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

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-grid,
.footer-nav {
  display: grid;
  gap: 0.75rem;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.service-line,
.footer-limit {
  margin: 0 0 0.75rem;
  max-width: 36rem;
}

@media (max-width: 767px) {
  .caption-bar {
    flex-direction: column;
  }

  .caption-count,
  .caption-bar .caption-btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .caption-bar .caption-btn {
    border-top: 3px solid var(--cream);
    border-left: 0;
  }

  #site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 5;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 3px solid var(--ink);
  }

  #site-nav.is-open a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.6rem 1rem;
    border-top: 2px solid var(--ink);
  }

  #site-nav.is-open .caption-btn {
    margin: 0.75rem 1rem 1rem;
  }
}

@media (min-width: 375px) {
  .wrap {
    width: min(1120px, calc(100% - 40px));
  }

  .site-header {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  #site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  #site-nav a:not(.caption-btn) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0.55rem;
    border-bottom: 2px solid transparent;
  }

  #site-nav a:not(.caption-btn):hover {
    border-bottom-color: var(--red);
  }

  .site-nav .caption-btn,
  #site-nav .caption-btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.95rem;
  }

  .caption-bar {
    flex-wrap: nowrap;
  }

  .caption-bar .caption-btn {
    border-top: 0;
    border-left: 3px solid var(--cream);
  }

  .sample-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: start;
  }

  .sample-layout figure {
    margin: 0;
  }

  .town-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fee-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: start;
  }

  .fee-limit {
    margin-top: 0;
  }

  button.caption-btn,
  .fee-action .caption-btn {
    width: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-stage {
    display: grid;
    grid-template-columns: minmax(17rem, 0.9fr) 1.15fr;
    align-items: center;
    gap: 1.5rem;
    min-height: calc(100svh - 9rem);
    padding: 1rem 4vw 0;
  }

  .hero-plate {
    padding: 0;
  }

  .hero-media img {
    width: auto;
    max-width: 100%;
    max-height: calc(100svh - 12rem);
    margin-inline: auto;
  }

  .chain-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr;
    gap: 2rem;
    align-items: start;
  }

  .chain-layout figure {
    margin: 0;
  }

  .band {
    padding: 4rem 0;
  }
}

@media (min-width: 1440px) {
  .wrap {
    width: min(1180px, calc(100% - 96px));
  }

  .hero-plate h1 {
    font-size: 4.6rem;
  }

  .band {
    padding: 5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
