:root {
  --paper: #f3e9d2;
  --paper-deep: #e9dabb;
  --ink: #3a2e22;
  --ink-soft: #5d4b39;
  --sepia: #8b6a48;
  --red: #a3412a;
  --sage: #aeb67f;
  --water: #4d7c99;
  --fell: 'IM Fell English', 'Iowan Old Style', Georgia, serif;
  --fell-sc: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  --body: 'Spectral', Georgia, 'Times New Roman', serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.075rem/1.65 var(--body);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .12 .5 0 0 0 -.18'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px dashed var(--red); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 42rem; }
.hand { font-family: var(--hand); font-weight: 500; color: var(--red); font-size: 1.35em; line-height: 1.1; }
.hand.big { font-size: 2.6rem; margin: 0 0 .5rem; }

/* ── header ─────────────────────────────────────────────── */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 100rem; margin: 0 auto; padding: 1.1rem 1.5rem;
}
.wordmark { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 400 1.45rem/1 var(--fell-sc); letter-spacing: .06em; }
.wordmark svg { width: 2.3rem; height: auto; color: var(--ink); }
.top nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; font-family: var(--fell); font-size: 1.05rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.top nav .nav-cta { border: 1.5px solid var(--ink); padding: .3rem .85rem; border-radius: 2px; }
.top nav .nav-cta:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ── masthead ───────────────────────────────────────────── */
.masthead { max-width: 60rem; margin: 0 auto; padding: 2.5rem 1.5rem 2.25rem; text-align: center; }
.sheet {
  font: 400 .95rem/1.4 var(--fell-sc); letter-spacing: .14em; color: var(--ink-soft); margin: 0 0 1.25rem;
  display: inline-block; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: .35rem 1rem;
}
.masthead h1 { font: 400 clamp(2.4rem, 6vw, 4.6rem)/1.02 var(--fell); margin: 0 0 1.25rem; letter-spacing: -.005em; }
.masthead h1 em { font-style: italic; color: var(--red); }
.lede { font-size: 1.2rem; max-width: 40rem; margin: 0 auto 1.75rem; color: var(--ink-soft); }
.actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin: 0; }

.btn { display: inline-block; font: 400 1.1rem/1 var(--fell); text-decoration: none; padding: .85rem 1.4rem; border-radius: 2px; transition: transform .15s ease, box-shadow .15s ease; }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--red); }
.btn--ink:hover { color: var(--paper); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--red); }
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: rgba(58, 46, 34, .07); color: var(--ink); }
.btn--big { font-size: clamp(1.1rem, 3.4vw, 1.5rem); padding: 1.1rem 1.6rem; }

/* ── map ────────────────────────────────────────────────── */
.map-section { max-width: 100rem; margin: 0 auto; padding: 0 1.5rem; }
.map-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; border-radius: 3px; box-shadow: 0 1px 0 rgba(58,46,34,.15), 0 18px 40px -22px rgba(58,46,34,.55); scrollbar-width: thin; }
.map-canvas { position: relative; min-width: 860px; aspect-ratio: 1600 / 1095; }
.map-canvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.terrain { contain: paint; }
.map-hint { text-align: center; color: var(--ink-soft); margin: .9rem 0 0; font-family: var(--fell); }
.map-hint .hand { font-size: 1.5rem; margin-right: .3rem; }

.js .creek { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.pin { cursor: pointer; outline: none; }
.pin-body { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.pin-shadow { transition: opacity .2s; }
.pin:hover .pin-body, .pin:focus-visible .pin-body, .pin.is-active .pin-body { transform: translateY(-5px); }
.pin:hover .pin-shadow, .pin.is-active .pin-shadow { opacity: .2; }
.pin:focus-visible circle, .pin:focus-visible .seal { stroke: var(--red); stroke-width: 3; }
.pin--open circle { transition: fill .2s; }
.pin--open:hover circle, .pin--open.is-active circle { fill: #fff6e3; }
.js .pin .pin-body { animation: drop .6s calc(1s + var(--i) * .12s) cubic-bezier(.3, 1.5, .5, 1) both; }
.js .pin .pin-shadow { animation: fadein .4s calc(1s + var(--i) * .12s) both; }
@keyframes drop { from { transform: translateY(-60px); opacity: 0; } 60% { opacity: 1; } }
@keyframes fadein { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .creek { animation: none; stroke-dashoffset: 0; }
  .js .pin .pin-body, .js .pin .pin-shadow { animation: none; }
}

.card {
  position: absolute; z-index: 3; width: min(20rem, 80vw);
  background: #fbf4e3; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(58,46,34,.85);
  padding: 1rem 1.15rem 1.1rem;
  transform: translate(-50%, calc(-100% - 64px));
  animation: pop .18s ease-out;
}
.card.below { transform: translate(-50%, 18px); }
.card::after {
  content: ''; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; background: #fbf4e3;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateX(-50%) rotate(45deg);
}
.card.below::after { bottom: auto; top: -9px; transform: translateX(-50%) rotate(225deg); }
@keyframes pop { from { opacity: 0; margin-top: 6px; } }
.card[hidden] { display: none; }
.card h2 { font: 400 1.5rem/1.1 var(--fell); margin: .1rem 0 .25rem; }
.card-tag { font: 400 .8rem/1 var(--fell-sc); letter-spacing: .14em; color: var(--red); margin: 0; }
.card-meta { font: italic 400 .95rem/1.3 var(--fell); color: var(--ink-soft); margin: 0 0 .55rem; }
.card-blurb { margin: 0 0 .75rem; font-size: .98rem; line-height: 1.5; }
.card-link { font-family: var(--fell); font-size: 1.05rem; }
.card-link[hidden] { display: none; }
.card-close { position: absolute; top: .35rem; right: .5rem; border: 0; background: none; font: 400 1.6rem/1 var(--fell); color: var(--ink); cursor: pointer; padding: .2rem .4rem; }
.card-close:hover { color: var(--red); }

@media (max-width: 720px) {
  .map-section { padding: 0; }
  .map-scroll { border-radius: 0; }
  .card, .card.below {
    position: fixed; left: .75rem !important; right: .75rem; top: auto !important; bottom: .75rem; width: auto;
    transform: none; box-shadow: 0 -6px 30px rgba(58,46,34,.35), 4px 4px 0 rgba(58,46,34,.85);
  }
  .card::after { display: none; }
}

/* ── section titles ─────────────────────────────────────── */
.sec-title { text-align: center; font: 400 clamp(1.6rem, 3.5vw, 2.2rem)/1.2 var(--fell-sc); letter-spacing: .16em; margin: 0 0 2.5rem; display: flex; align-items: center; gap: 1.25rem; }
.sec-title::before, .sec-title::after { content: ''; flex: 1; height: 5px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }

/* ── directory ──────────────────────────────────────────── */
.directory { padding: 4.5rem 0 2rem; }
.dir-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.25rem; }
.dir-item { position: relative; padding: 1.1rem 1.15rem 1rem; border: 1px solid rgba(58,46,34,.45); background: rgba(251,244,227,.55); }
.dir-item--open { border-style: dashed; border-color: var(--red); }
.dir-item--studio { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dir-item--studio .dir-tag, .dir-item--studio .dir-meta { color: #d9c7a2; }
.dir-item--studio .dir-show { color: var(--paper); border-color: var(--paper); }
.dir-tag { font: 400 .78rem/1 var(--fell-sc); letter-spacing: .14em; color: var(--red); }
.dir-item h3 { font: 400 1.35rem/1.15 var(--fell); margin: .35rem 0 .1rem; }
.dir-item h3 a { color: inherit; }
.dir-meta { font: italic 400 .95rem/1.3 var(--fell); color: var(--ink-soft); margin: 0 0 .5rem; }
.dir-item p { margin: 0 0 .75rem; font-size: .97rem; line-height: 1.5; }
.dir-show { font: 400 .95rem/1 var(--fell); background: none; color: var(--ink); border: 1px solid var(--ink); padding: .45rem .7rem; cursor: pointer; border-radius: 2px; }
.dir-show:hover { background: var(--red); border-color: var(--red); color: var(--paper); }

/* ── how it works ───────────────────────────────────────── */
.how { padding: 4.5rem 0 3rem; }
.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; counter-reset: none; }
.stations li { text-align: center; }
.stations .bm { width: 3.2rem; height: auto; color: var(--red); margin-bottom: .5rem; }
.stations h3 { font: 400 1.65rem/1.2 var(--fell); margin: 0 0 .6rem; }
.stations .num { font-family: var(--fell-sc); color: var(--sepia); margin-right: .2rem; }
.stations p { margin: 0 auto; max-width: 22rem; color: var(--ink-soft); }

/* ── prices ─────────────────────────────────────────────── */
.prices { padding: 3.5rem 0 3rem; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; align-items: stretch; }
.price { border: 1.5px solid var(--ink); padding: 1.6rem 1.5rem 1.4rem; background: rgba(251,244,227,.6); position: relative; }
.price--feature { box-shadow: 6px 6px 0 var(--red); }
.price--feature::before { content: 'start here'; position: absolute; top: -.95rem; right: 1rem; font: 700 1.25rem/1 var(--hand); color: var(--red); background: var(--paper); padding: 0 .4rem; transform: rotate(2deg); }
.price--care { border-style: dashed; }
.price h3 { font: 400 1.25rem/1.2 var(--fell-sc); letter-spacing: .12em; margin: 0 0 .4rem; }
.price .opt { font: 500 1.15rem/1 var(--hand); color: var(--red); letter-spacing: 0; text-transform: none; margin-left: .3rem; }
.amount { font: 400 3.4rem/1 var(--fell); margin: .2rem 0 .8rem; display: flex; align-items: baseline; gap: .15rem; flex-wrap: wrap; }
.amount .cur { font-size: 1.8rem; align-self: flex-start; margin-top: .35rem; }
.amount .unit { font: italic 400 1rem/1 var(--fell); color: var(--ink-soft); margin-left: .45rem; }
.price p:last-child { margin: 0; color: var(--ink-soft); }
.fine { text-align: center; color: var(--ink-soft); font-style: italic; font-size: .97rem; margin-top: 1.75rem; }

/* ── why + contact ──────────────────────────────────────── */
.why { padding: 3.5rem 0 1.5rem; text-align: center; }
.why p:not(.hand) { font-size: 1.15rem; color: var(--ink-soft); }
.contact { padding: 3rem 0 5rem; text-align: center; }
.contact h2 { font: 400 clamp(2.2rem, 5vw, 3.4rem)/1.05 var(--fell); margin: 0 0 1rem; }
.contact p { font-size: 1.12rem; color: var(--ink-soft); }
.contact .btn { margin-top: .5rem; word-break: break-all; }

.foot { border-top: 1px solid var(--ink); max-width: 72rem; margin: 0 auto; padding: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-family: var(--fell); color: var(--ink-soft); }
.foot p { margin: 0; }
.foot .hand { font-size: 1.3rem; }

@media (max-width: 640px) {
  .top nav { gap: .9rem; font-size: .98rem; }
  .top { flex-wrap: nowrap; padding: .9rem 1rem; }
  .wordmark { font-size: 1.15rem; gap: .45rem; }
  .wordmark svg { width: 1.8rem; }
  .top nav a:not(.nav-cta) { display: none; }
  .top nav .nav-cta { white-space: nowrap; padding: .3rem .6rem; }
  .masthead { padding-top: 1.25rem; }
  .sheet { font-size: .8rem; letter-spacing: .08em; }
}
