/* Trailblaze: shared styles. Logo palette (parchment, navy, sky, sunset orange,
   sun yellow, meadow green, wood brown), system fonts only, works offline. */
:root {
  --cream: #ece0c2;
  --paper: #f8f1de;
  --ink: #2e2a24;
  --ink-soft: #5d564a;
  --navy: #013363;
  --navy-dark: #012647;
  --sky: #0283cd;
  --sky-text: #0268a3;
  --sky-soft: #d7ecfa;
  --orange: #f76203;
  --orange-deep: #b84802;
  --orange-soft: #fde0cb;
  --sun: #fac84c;
  --sun-soft: #fdeec0;
  --meadow: #8eb937;
  --meadow-deep: #4a7023;
  --meadow-soft: #e6efc9;
  --wood: #8a5a1e;
  --wood-light: #ca894d;
  --line: #d9c9a3;
  --danger: #9c3a2b;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream) url("assets/brand/parchment-texture.jpg") repeat;
  background-size: 1024px 1024px;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--sky-text); }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 85%);
  color: var(--paper);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand:hover { color: var(--sun-soft); }
.brand-mark {
  width: 46px;
  height: auto;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand .brand-sub {
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sun);
}
.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 8px 2px;
}
.site-nav a:hover { color: var(--sun-soft); text-decoration: underline; }

/* Type */
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: 2.3rem; margin: 0 0 14px; }
h2 { font-size: 1.65rem; margin: 34px 0 12px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.small { font-size: 0.92rem; color: var(--ink-soft); }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wood);
  margin: 0 0 10px;
}

/* Hero */
.hero {
  background: var(--cream);
  color: var(--ink);
  padding: 52px 0 46px;
  border-bottom: 1px solid var(--line);
}
.hero h1 { color: var(--navy); font-size: 2.6rem; }
.hero .lede { color: var(--ink-soft); }
.hero .eyebrow { color: var(--wood); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}
.hero-art img {
  width: 100%;
  border-radius: 18px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--paper);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 13px 28px;
  min-height: 52px;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--paper); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--sky-soft); border-color: var(--navy); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 22px 0 8px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card p { margin: 0; color: var(--ink-soft); }
.card .btn, .card .card-link { margin-top: auto; }
.card-link { font-weight: 700; padding-top: 10px; }
.tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--sky-soft);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
}
.tag-soon { background: var(--sun-soft); color: #7a4d14; }
.tag-free { background: var(--navy); color: var(--paper); }

main { padding: 38px 0 10px; }
section { margin-bottom: 10px; }

/* Promise strip */
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.promise {
  background: var(--paper);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  padding: 16px 18px;
}
.promise strong { display: block; font-family: Georgia, "Times New Roman", serif; color: var(--navy); margin-bottom: 4px; }
.promise p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* Forms */
form.netlify-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 640px;
}
form.netlify-form label {
  display: block;
  font-weight: 600;
  margin: 16px 0 6px;
}
form.netlify-form label:first-of-type { margin-top: 0; }
form.netlify-form input,
form.netlify-form select,
form.netlify-form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid #c4b28a;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 50px;
}
form.netlify-form textarea { min-height: 110px; }
.signup-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  background: none;
  border: none;
  max-width: 640px;
}
.signup-inline input[type="email"] {
  flex: 1 1 260px;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid #c4b28a;
  border-radius: 999px;
  min-height: 52px;
  background: #fff;
}

/* Stop list */
.stop-list { list-style: none; margin: 18px 0; padding: 0; counter-reset: stops; }
.stop-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 18px;
  margin-bottom: 9px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.stop-list .n {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--orange-deep);
  min-width: 1.7em;
  text-align: right;
}
.stop-list .addr { color: var(--ink-soft); font-size: 0.94rem; display: block; }

/* Footer */
.site-footer {
  margin-top: 54px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 85%);
  color: var(--paper);
  padding: 34px 0 40px;
}
.site-footer a { color: var(--sun-soft); }
.site-footer .credit { color: #cfe3f2; font-size: 0.95rem; max-width: 44em; }
.site-footer .small { color: #cfe3f2; }
.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 10px;
}
.footer-mark {
  display: inline-block;
  width: 26px;
  height: auto;
  vertical-align: -7px;
  margin-right: 8px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; }
.footer-links a { text-decoration: none; padding: 6px 0; }
.footer-links a:hover { text-decoration: underline; }

/* FAQ */
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq-item h3 { margin-bottom: 6px; }
.faq-item p { margin: 0; color: var(--ink-soft); }

/* About */
.about-logo {
  max-width: 340px;
  width: 100%;
  border-radius: 16px;
  margin: 22px 0 6px;
}

/* Play page */
.play-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}
.progress-line { font-weight: 700; color: var(--navy); margin: 6px 0 16px; }
.progress-bar {
  height: 12px;
  background: var(--sun-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}
.progress-bar span { display: block; height: 100%; background: var(--orange); width: 0; transition: width 0.3s ease; }

.route-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.route-panel h2 { margin: 0 0 12px; font-size: 1.25rem; }
.route-list { list-style: none; margin: 0; padding: 0; }
.route-list li { margin-bottom: 6px; }
.route-list button {
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.97rem;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 48px;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.route-list .rn { font-family: Georgia, "Times New Roman", serif; font-weight: 700; color: var(--sky-text); min-width: 1.6em; text-align: right; }
.route-list li.is-done button { color: var(--ink-soft); }
.route-list li.is-done .rn { color: var(--meadow-deep); }
.route-list li.is-done .route-state { color: var(--meadow-deep); }
.route-list li.is-skipped button { color: var(--ink-soft); }
.route-list li.is-skipped .rn { color: var(--wood); }
.route-list li.is-skipped .route-state { color: var(--wood); }
.route-list li.is-current button { background: var(--orange-soft); border-color: var(--orange); font-weight: 700; }
.route-list li.is-current .rn { color: var(--navy); }
.route-list li.is-current .route-state { color: var(--navy); }
.route-list li.is-locked button { color: #a89a7d; cursor: not-allowed; }
.route-list li.is-locked .rn { color: #bcae8f; }
.route-state { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-left: auto; white-space: nowrap; }

.stop-card, .screen-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.stop-photos { display: grid; gap: 12px; margin-bottom: 18px; }
.stop-photos.two { grid-template-columns: 1fr 1fr; }
.stop-photos img { border-radius: 10px; width: 100%; }
.stop-addr { color: var(--wood); font-weight: 600; margin-top: -6px; }

.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  padding: 11px 22px;
  min-height: 52px;
  cursor: pointer;
  margin: 6px 0 16px;
}
.listen-btn:hover { background: var(--navy-dark); }
.listen-btn[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--navy); }

.checkpoint {
  background: var(--paper);
  border: 1.5px dashed var(--orange);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 22px;
}
.checkpoint h3 { color: var(--wood); }
.checkpoint form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.checkpoint input {
  flex: 1 1 220px;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid #c4b28a;
  border-radius: 999px;
  min-height: 52px;
  background: #fff;
}
.feedback { margin: 12px 0 0; font-weight: 600; }
.feedback.err { color: var(--danger); }
.feedback .hint { display: block; font-weight: 400; color: var(--ink-soft); margin-top: 4px; }
.skip-row { margin: 8px 0 0; text-align: right; }
.skip-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px 4px;
}
.skip-btn:hover { color: var(--navy); }
.done-banner {
  background: var(--meadow-soft);
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--meadow-deep);
  margin-top: 22px;
}
.reset-row { margin-top: 26px; }
.text-btn {
  background: none;
  border: none;
  font: inherit;
  color: var(--danger);
  text-decoration: underline;
  cursor: pointer;
  padding: 10px 4px;
  min-height: 48px;
}
[hidden] { display: none !important; }

/* Library attribution block: big and bold, never buried */
.attribution {
  background: var(--paper);
  border: 2.5px solid var(--navy);
  border-left: 10px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 24px 0;
}
.attribution .attr-org {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin: 0;
}
.attribution .attr-collection {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0 0;
}
.attribution .attr-producer {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 8px 0 0;
}
.card .card-credit, .credit-line {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wood);
}

@media (max-width: 760px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .play-layout { grid-template-columns: 1fr; }
  .route-panel { order: 2; }
  .stop-card, .screen-card { padding: 20px; }
  .stop-photos.two { grid-template-columns: 1fr; }
}

.attr-panel{display:block;max-width:520px;width:100%;height:auto;margin:14px auto 4px;border:1px solid var(--line);border-radius:8px}
.attr-thanks{font-style:italic}

.hero-wordmark {
  margin: 10px 0 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(30px, 6vw, 44px);
  letter-spacing: 0.14em;
  color: #8a5a1e;
}
.hero-art img { max-width: 420px; width: 100%; height: auto; display: block; margin: 0 auto; }
.about-wordmark { margin-bottom: 8px; }
