@font-face {
  font-family: "Cabin Sketch";
  src: url("/assets/fonts/CabinSketch-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/LibreBaskerville-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4ecdc;
  --paper-deep: #e7dcc8;
  --ink: #2c2118;
  --river: #1e4f66;
  --river-dark: #14384a;
  --town: #d7e6ee;
  --castle: #eadccb;
  --vine: #d7e6d4;
  --error: #7a2430;
  --error-bg: #f8ecec;
  --cream: #f7f3ea;
  --disabled: #5e5348;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Baskerville", "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

body,
button,
input,
textarea {
  font-size: 1.0625rem;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
.brand,
.marks li {
  font-family: "Cabin Sketch", "Marker Felt", "Segoe Print", cursive;
  font-weight: 700;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.05rem, 8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.2;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 400;
}

p {
  margin: 0 0 0.9rem;
}

.wrap {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 5;
  background: var(--paper);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--ink);
}

.skip:focus {
  top: 0.75rem;
}

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

.site-header {
  position: relative;
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 3px 0 var(--paper), 0 4px 0 var(--ink);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 4.25rem;
  padding: 0.7rem 0;
}

.brand {
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
}

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

.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 44px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--ink);
  cursor: pointer;
}

.close-word {
  display: none;
}

.nav-toggle:checked + .nav-toggle-label .open-word {
  display: none;
}

.nav-toggle:checked + .nav-toggle-label .close-word {
  display: inline;
}

.nav-toggle:focus-visible + .nav-toggle-label,
.nav-toggle-label:hover {
  background: var(--paper-deep);
}

.site-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.4rem;
}

.nav-toggle:checked ~ .site-nav {
  display: flex;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.footer-nav a:hover,
.note-links a:hover,
.form-privacy a:hover {
  border-bottom-color: var(--ink);
}

.hero {
  padding: 1.15rem 0 2.2rem;
}

.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
}

.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.hero-band {
  aspect-ratio: 16 / 9;
}

.frame-portrait {
  aspect-ratio: 3 / 4;
}

.frame-wide {
  aspect-ratio: 4 / 3;
}

.marks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.2rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  position: relative;
}

.marks::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  top: 0.62rem;
  border-top: 1px solid var(--ink);
}

.marks li {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0.15rem;
  background: var(--paper);
  font-size: clamp(0.95rem, 4.4vw, 1.55rem);
  line-height: 1;
  text-align: center;
}

.kicker {
  margin: 1.35rem 0 0.35rem;
}

.lede {
  max-width: 38rem;
  margin-bottom: 1rem;
}

.hero-actions,
.thanks-links,
.fee-action {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.05rem;
  border: 1px solid var(--river);
  background: var(--river);
  color: var(--cream);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--river-dark);
  border-color: var(--river-dark);
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.footer-nav a:focus-visible,
input:focus-visible,
textarea:focus-visible,
.bank-toggle .choice:focus-visible + label {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button-quiet:hover {
  background: var(--paper-deep);
  border-color: var(--ink);
  color: var(--ink);
}

.button:disabled,
.button:disabled:hover {
  background: var(--disabled);
  border-color: var(--disabled);
  color: var(--cream);
  cursor: not-allowed;
  transform: none;
}

.section {
  padding: 2.3rem 0;
  border-top: 1px solid rgba(44, 33, 24, 0.45);
}

.chapters-layout,
.bank-layout,
.sample-layout {
  display: grid;
  gap: 1.4rem;
}

.chapter {
  margin: 0 0 0.85rem;
  padding: 0.95rem 0.95rem 1.05rem;
  border-bottom: 1px solid var(--ink);
  border-left: 6px solid var(--ink);
}

.chapter p:last-child {
  margin-bottom: 0;
}

.chapter-town {
  background: var(--town);
}

.chapter-castle {
  background: var(--castle);
}

.chapter-vine {
  background: var(--vine);
}

.chapter-num,
.stop-num {
  margin: 0 0 0.25rem;
  font-size: 1.7rem;
  line-height: 1;
}

.chapters-figure,
.bank-layout figure,
.sample-layout figure {
  margin: 0;
}

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

.bank-toggle {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

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

.bank-toggle label {
  flex: 1 1 8.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.bank-toggle label:hover {
  background: var(--paper-deep);
}

.bank-toggle label:active {
  transform: translateY(1px);
}

.bank-toggle .choice:checked + label {
  background: var(--river);
  border-color: var(--river);
  color: var(--cream);
}

.bank-toggle .choice:checked + label:hover {
  background: var(--river-dark);
  border-color: var(--river-dark);
}

.sample-pane,
.sample-empty {
  display: none;
}

.river-choice:has(#bank-view-right:checked) #sample-right,
.river-choice:has(#bank-view-left:checked) #sample-left {
  display: block;
}

.river-choice:not(:has(#bank-view-right:checked)):not(:has(#bank-view-left:checked)) .sample-empty {
  display: block;
}

@supports not selector(:has(*)) {
  .sample-pane {
    display: block;
    margin-top: 1rem;
  }

  .sample-empty {
    display: none;
  }
}

.sample-stops {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.sample-stops li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(44, 33, 24, 0.4);
}

.sample-lock {
  max-width: 40rem;
}

.fee-row {
  display: grid;
  gap: 0.9rem;
  border: 1px solid var(--ink);
  padding: 1rem;
}

.fee-price {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.1;
}

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

.fee-exclusions {
  margin: 0.9rem 0 0;
}

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

.form-wrap,
.note-wrap {
  max-width: 44rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 0.35rem;
  padding: 0;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  min-height: 48px;
}

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

.field input:placeholder-shown,
.field textarea:placeholder-shown {
  border-style: dashed;
}

.field input:hover,
.field textarea:hover {
  background: #fffaf1;
}

.field.is-error input,
.field.is-error textarea {
  border-style: solid;
  border-color: var(--error);
  background: var(--error-bg);
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--error);
}

.form-alert {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--error);
  background: var(--error-bg);
}

.form-alert ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.form-empty {
  margin-bottom: 1rem;
}

.form-submit {
  margin: 1.1rem 0 0.6rem;
}

.request-form.is-loading .button-submit {
  cursor: wait;
}

.form-privacy {
  margin: 0;
}

.form-privacy a,
.footer-nav a,
.note-links a {
  text-underline-offset: 0.18em;
}

.note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.note-links a {
  text-decoration: underline;
}

.note-label {
  display: block;
  font-size: 0.85rem;
}

.desk-address {
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 1.8rem 0 2.6rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
}

.footer-nav a {
  text-decoration: underline;
}

.contact-block {
  display: block;
  margin-top: 1rem;
  font-style: normal;
}

.footer-limit {
  max-width: 40rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.is-success {
  padding: 1.35rem 1.1rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--vine);
}

.thanks-steps {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
}

.thanks-steps li + li {
  margin-top: 0.45rem;
}

.prose h1 {
  margin-bottom: 0.8rem;
}

.prose h2 {
  margin-top: 1.8rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.prose address {
  margin: 1rem 0 1.2rem;
}

::selection {
  background: var(--vine);
  color: var(--ink);
}

@media (max-width: 767px) {
  .brand {
    font-size: 1.7rem;
  }

  .hero-actions .button,
  .fee-action .button,
  .form-submit .button,
  .thanks-links .button {
    width: 100%;
  }
}

@media (min-width: 375px) {
  .wrap {
    width: min(100% - 2.5rem, 76rem);
  }
}

@media (min-width: 768px) {
  .wrap {
    width: min(100% - 3rem, 76rem);
  }

  .nav-toggle,
  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.15rem;
    padding: 0;
  }

  .hero-actions,
  .thanks-links,
  .fee-action {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .marks li {
    font-size: 1.55rem;
  }

  .marks::before {
    top: 0.78rem;
  }

  .fee-row,
  .bank-layout,
  .sample-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .fee-limit {
    padding-top: 0;
    padding-left: 1.15rem;
    border-top: 0;
    border-left: 1px solid var(--ink);
  }

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

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

@media (min-width: 1024px) {
  .wrap {
    width: min(100% - 4rem, 76rem);
  }

  .section {
    padding: 3.2rem 0;
  }

  .chapters-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.72fr);
    align-items: start;
    gap: 2rem;
  }

  .chapters-figure {
    position: sticky;
    top: 1rem;
  }
}

@media (min-width: 1440px) {
  .wrap {
    width: min(100% - 6rem, 76rem);
  }

  .hero {
    padding-top: 1.6rem;
  }
}

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

  .button:active,
  .bank-toggle label:active {
    transform: none;
  }
}
