:root {
  --paper: #f4f0e7;
  --wash: #f6eadc;
  --ink: #172117;
  --moss: #1f3a2c;
  --line: #d5cbbd;
  --clay: #6f3b2a;
  --clay-deep: #562c1e;
  --disabled-bg: #d7cec1;
  --disabled-ink: #2a261f;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
}

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

:focus {
  outline: none;
}

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

a {
  color: inherit;
}

h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 1rem;
  max-width: 12em;
  font-size: clamp(1.9rem, 4.4vw, 3.35rem);
}

h2 {
  margin: 0 0 1rem;
  max-width: 16em;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
}

p {
  margin: 0 0 1rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 5;
  background: var(--paper);
  padding: 0.5rem 0.75rem;
}

.skip:focus {
  top: 1rem;
}

.section-inner,
.hero-band,
.site-header,
.site-footer {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.1rem 0;
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--moss);
}

.nav-check {
  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 {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 0.15rem;
  font-family: var(--sans);
  cursor: pointer;
}

.nav-open {
  display: none;
}

.nav-check:focus-visible + .nav-toggle {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.nav-check:checked + .nav-toggle .nav-closed {
  display: none;
}

.nav-check:checked + .nav-toggle .nav-open {
  display: inline;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-family: var(--sans);
}

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

.nav a:hover {
  color: var(--moss);
  border-bottom-color: var(--moss);
}

.nav a:active {
  color: var(--ink);
}

.hero-photo {
  width: 100%;
  max-width: none;
  height: auto;
}

.hero-band {
  padding: 2.25rem 0 0.5rem;
}

.support {
  max-width: 28rem;
  font-size: 1.3rem;
  color: var(--moss);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border: 0;
  background: var(--clay);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover:not(:disabled) {
  background: var(--clay-deep);
}

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

.button:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-ink);
  cursor: not-allowed;
}

.button.is-loading,
.button.is-loading:disabled {
  background: var(--moss);
  color: var(--paper);
  cursor: wait;
}

.text-link {
  font-family: var(--sans);
  text-underline-offset: 0.22em;
}

.text-link:hover {
  color: var(--moss);
}

.section {
  padding: 3.5rem 0;
}

.section p,
.sample {
  max-width: 36rem;
}

.sequence-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  max-width: 34rem;
}

.stop-row {
  position: relative;
}

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

.stop {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.stop-index,
.stop-kind,
.detail-kind,
.detail-empty,
.hint,
.req,
.field-error,
.form-note,
.nav,
.button,
.site-footer,
.plan-form,
.top-alert {
  font-family: var(--sans);
}

.stop-index {
  width: 1.4rem;
  color: var(--moss);
}

.stop-name {
  flex: 1 1 10rem;
}

.stop-kind {
  color: var(--moss);
}

.stop:hover .stop-name {
  color: var(--moss);
}

.stop:active .stop-name {
  color: var(--ink);
}

.stop-radio:focus-visible + .stop {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.stop-row:has(.stop-radio:checked) .stop {
  box-shadow: inset 3px 0 0 var(--moss);
  padding-left: 0.85rem;
}

.section-photo {
  margin-top: 1.75rem;
}

.photo-notebook {
  width: min(100%, 28rem);
}

.photo-person {
  width: min(100%, 18rem);
}

.photo-village {
  width: min(100%, 42rem);
  margin-top: 1.5rem;
}

.detail-empty {
  margin: 0 0 0.5rem;
  color: var(--moss);
}

.detail-line {
  display: none;
  max-width: 32rem;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.4;
}

.detail-kind {
  color: var(--moss);
}

body:has(.stop-radio:checked) .detail-empty {
  display: none;
}

body:has(#stop-0:checked) [data-stop="stop-0"],
body:has(#stop-1:checked) [data-stop="stop-1"],
body:has(#stop-2:checked) [data-stop="stop-2"],
body:has(#stop-3:checked) [data-stop="stop-3"],
body:has(#stop-4:checked) [data-stop="stop-4"] {
  display: block;
}

.fee-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.85rem 2.75rem;
  margin: 0.4rem 0 1.1rem;
}

.fee-price {
  margin: 0;
  max-width: none;
  font-size: clamp(2.05rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fee-limit {
  flex: 1 1 16rem;
  max-width: 24rem;
  margin: 0;
}

.fee-note {
  color: var(--moss);
}

.fee-action {
  margin: 1.4rem 0 0;
}

.plan-form {
  max-width: 34rem;
}

.plan-form .field {
  margin: 0 0 1.35rem;
}

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

.plan-form input[type="text"],
.plan-form input[type="email"],
.plan-form textarea,
.plan-form select {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid var(--moss);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-family: var(--sans);
}

.plan-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.plan-form select {
  cursor: pointer;
}

.plan-form input[type="text"]:hover,
.plan-form input[type="email"]:hover,
.plan-form textarea:hover,
.plan-form select:hover {
  border-bottom-color: var(--ink);
}

.plan-form input:focus-visible,
.plan-form textarea:focus-visible,
.plan-form select:focus-visible {
  border-bottom-color: var(--ink);
}

.field.is-error input,
.field.is-error textarea,
.field.is-error select {
  border-bottom-color: var(--ink);
  background: var(--wash);
}

.field-error {
  margin: 0.4rem 0 0;
  font-size: 1rem;
}

.hint,
.form-note {
  margin: 0.4rem 0 0;
  color: var(--moss);
  font-size: 1rem;
}

.req {
  font-size: 0.95rem;
  color: var(--moss);
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  cursor: pointer;
}

.choice input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: var(--moss);
}

.choice:hover span {
  color: var(--moss);
}

.choice:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.form-alert {
  max-width: 34rem;
  margin: 0 0 1.4rem;
  padding: 0.15rem 0 0.15rem 0.9rem;
  border-left: 3px solid var(--ink);
}

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

.plan-form .button {
  margin-top: 0.4rem;
}

.top-alert {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.top-alert p {
  margin: 0;
  padding: 0.9rem 0;
}

#form,
#fee,
#sample,
#detail,
#pace {
  scroll-margin-top: 1rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.footer-address {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
  font-style: normal;
}

.footer-address a,
.footer-links a,
.prose a {
  text-underline-offset: 0.18em;
}

.footer-address a {
  overflow-wrap: anywhere;
}

.footer-limit {
  max-width: 36rem;
  font-family: var(--serif);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover,
.footer-address a:hover,
.prose a:hover {
  color: var(--moss);
}

.prose {
  width: min(38rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 1rem;
}

.prose h1 {
  max-width: none;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

.prose dt {
  margin-top: 1rem;
  font-family: var(--sans);
}

.prose dd {
  margin: 0.15rem 0 0;
}

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

.thanks {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--moss);
}

.return-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-family: var(--sans);
}

::selection {
  background: var(--moss);
  color: var(--paper);
}

@media (max-width: 374px) {
  .section-inner,
  .hero-band,
  .site-header,
  .site-footer,
  .prose {
    width: min(72rem, calc(100% - 1.75rem));
  }

  h1 {
    font-size: 1.85rem;
  }
}

@media (min-width: 375px) and (max-width: 767px) {
  .section {
    padding: 3.85rem 0;
  }

  h1 {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 0.4rem;
  }

  .nav-check:checked ~ .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
    border-bottom-color: var(--line);
  }
}

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

@media (min-width: 768px) {
  .section {
    padding: 5.4rem 0;
  }

  .hero-band {
    padding-top: 2.8rem;
  }

  .choices {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 1.35rem;
  }

  .fee-limit {
    padding-top: 0.35rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6.4rem 0;
  }

  .hero-band {
    padding-top: 3.3rem;
  }

  .sequence-layout,
  .detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(11rem, 0.8fr);
    gap: 2.5rem 3rem;
    align-items: start;
  }

  .sequence-layout .section-photo,
  .detail-layout .section-photo {
    margin-top: 0.35rem;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(10rem, 16rem);
  }
}

@media (min-width: 1440px) {
  .section {
    padding: 7.4rem 0;
  }

  .hero-band {
    padding-top: 3.6rem;
  }

  .site-header {
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button:active:not(:disabled) {
    transform: none;
  }
}
