/* Iditarod Historic Trail Alliance — design concept by Clearview. Self-contained: no web fonts, no external requests. */
:root {
  --maroon: #35101d;
  --maroon-2: #4e2a2c;
  --rust: #7a2a0c;
  --rust-soft: #f3e3d6;
  --cream: #faf6ee;
  --paper: #ffffff;
  --ink: #231a14;
  --muted: #5a4e46;
  --tan: #c9b98f;
  --tan-soft: #efe7d2;
  --steel: #2f5a6b;
  --water: #dce7ec;
  --land: #f6f1e4;
  --gold: #e9c46a;
  --focus: #0b6e99;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --r: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1.0625rem/1.6 var(--sans); overflow-wrap: break-word; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.grid > *, .split > *, .foot-grid > *, .map-layout > *, .diary-layout > *, .store-layout > * { min-width: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-underline-offset: .18em; }
a:hover { color: var(--maroon); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--maroon); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 14px; z-index: 50; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.fineprint { font-size: .875rem; color: var(--muted); }
.label { font: 700 .8125rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--rust); margin-bottom: .6em; }
.lead { font-size: 1.2rem; max-width: 46em; }
.intro { font-size: 1.1rem; max-width: 48em; }

/* concept bar */
.concept-bar { background: #1d1a17; color: #f1ece4; font-size: .875rem; }
.concept-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 8px; padding-bottom: 8px; }
.concept-bar p { margin: 0; }
.concept-bar a { color: #ffe3a3; }
.notes-toggle { font: 600 .8125rem var(--sans); background: transparent; color: #f1ece4; border: 1px solid #8d857b; border-radius: 99px; padding: 5px 12px; cursor: pointer; }
.notes-toggle[aria-pressed="true"] { background: var(--gold); color: #1d1a17; border-color: var(--gold); }

/* header */
.site-header { background: linear-gradient(90deg, var(--maroon), var(--maroon-2) 55%, var(--maroon)); color: #fff; }
.header-in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { width: 54px; height: auto; }
.brand .name { font: italic 700 clamp(1.15rem, .9rem + 1vw, 1.65rem)/1.1 var(--serif); }
.brand .tag { display: block; font: 600 .6875rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-top: 3px; }
.brand:hover { color: #fff; }
.emblem-right { width: 92px; height: auto; }
.header-actions { display: flex; gap: 8px; }
.btn { display: inline-block; font: 700 1rem/1.2 var(--sans); background: var(--rust); color: #fff; border: 2px solid var(--rust); border-radius: 99px; padding: 11px 20px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.btn.line { background: transparent; color: var(--rust); }
.btn.line:hover { background: var(--rust); color: #fff; }
.btn.light { background: #fff; color: var(--maroon); border-color: #fff; }
.btn.light:hover { background: var(--gold); border-color: var(--gold); color: var(--maroon); }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--maroon); }
.btn.small { padding: 7px 14px; font-size: .9rem; }
.main-nav { background: #2a0c17; }
.main-nav ul { list-style: none; margin: 0 auto; padding: 0 12px; display: flex; flex-wrap: wrap; max-width: var(--wrap); }
.main-nav a { display: block; color: #fbeee6; text-decoration: none; font-weight: 600; padding: 12px 14px; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: #fff; border-bottom-color: var(--tan); }
.main-nav a[aria-current] { color: #fff; border-bottom-color: var(--gold); }

/* bands */
.band { padding: 56px 0; }
.band.tight { padding: 36px 0; }
.band.white { background: var(--paper); }
.band.tan { background: var(--tan-soft); }
.band.dark { background: var(--maroon); color: #f7ede8; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark a { color: #ffd98a; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.band-head h2 { margin: 0; }
.more { font-weight: 700; }

/* hero */
.hero { position: relative; background: var(--maroon); color: #fff; }
.hero img.bg { width: 100%; height: clamp(260px, 42vw, 470px); object-fit: cover; }
.hero .over { position: absolute; inset: auto 0 0 0; background: linear-gradient(0deg, rgba(25,8,14,.92), rgba(25,8,14,.55) 70%, rgba(25,8,14,0)); padding: 70px 0 34px; }
.hero h1 { color: #fff; margin-bottom: .2em; }
.hero .kicker { font: 700 .875rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .4em; }
.hero p.lead { color: #f6ebe4; }
.hero .credit { position: absolute; top: 8px; right: 10px; font-size: .75rem; color: #fff; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

.page-head { background: var(--maroon); color: #f7ede8; padding: 44px 0 38px; }
.page-head h1 { color: #fff; }
.page-head .lead { color: #f2e4dc; }
.page-head .label { color: var(--gold); }
.crumbs { font-size: .9rem; margin-bottom: 8px; }
.crumbs a { color: #ffd98a; }

/* grids */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--tan); border-radius: var(--r); padding: 22px; }
.card h3 { margin-top: 0; }
.card.photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.photo .body { padding: 18px 20px 20px; }
.card.photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
figure { margin: 0; }
figcaption { font-size: .875rem; color: var(--muted); margin-top: 6px; }

/* the "this is the INHT" facts */
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.facts li { border-left: 4px solid var(--rust); padding: 4px 0 4px 14px; }
.facts b { display: block; font: 700 2rem/1.1 var(--serif); color: var(--maroon); }

.quote { font: italic 1.25rem/1.55 var(--serif); color: var(--maroon); border-left: 4px solid var(--tan); padding-left: 18px; margin: 0 0 1em; }
.quote cite { display: block; font: normal .9rem var(--sans); color: var(--muted); margin-top: 8px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--tan); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--rust); }
.timeline .yr { display: block; font: 700 1.05rem var(--serif); color: var(--rust); }

/* communities strip */
.stops { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stops a { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--paper); border: 1px solid var(--tan); text-decoration: none; color: var(--maroon); font-weight: 600; }
.stops a:hover { background: var(--maroon); color: #fff; }

/* map */
.mapfig { background: var(--paper); border: 1px solid var(--tan); border-radius: var(--r); padding: 12px; }
.map { width: 100%; height: auto; display: block; background: var(--water); border-radius: 6px; }
.map .land { fill: var(--land); stroke: #b8a87e; stroke-width: 1; }
.map .trail { fill: none; stroke: var(--rust); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.map .route { fill: none; stroke: var(--steel); stroke-width: 3; stroke-dasharray: 7 5; }
.map .town circle { fill: var(--maroon); stroke: #fff; stroke-width: 2; }
.map .town text, .map .stop text { font: 600 15px var(--sans); fill: #2a1d16; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.map .town.on circle { fill: var(--gold); stroke: var(--maroon); stroke-width: 3; r: 10; }
.map .town.on text { font-size: 18px; }
.map .stop circle { fill: #fff; stroke: var(--steel); stroke-width: 2.5; }
.map .stop.on circle { fill: var(--gold); stroke: var(--maroon); stroke-width: 3.5; r: 10; }
.map .stop text { display: none; }
.map .stop.on text { display: inline; font-size: 18px; }
.legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.key { display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--rust); vertical-align: middle; margin-right: 6px; }
.key.route { border-top: 3px dashed var(--steel); }
.key.dot { width: 12px; height: 12px; border: 2px solid #fff; background: var(--maroon); border-radius: 50%; box-shadow: 0 0 0 1px var(--maroon); }
.map-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.placelist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.placelist li { break-inside: avoid; margin-bottom: 4px; }
.placelist a { display: block; padding: 5px 8px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.placelist a:hover, .placelist a.on { background: var(--maroon); color: #fff; }
.placelist .sub { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.placelist a:hover .sub, .placelist a.on .sub { color: #f3dfd5; }
.mapcard { margin-top: 16px; background: var(--tan-soft); border-radius: var(--r); padding: 16px; min-height: 120px; }
.mapcard h3 { margin-bottom: .3em; }

/* annotations (design notes) */
.anno { display: none; margin: 22px 0 0; background: #fff8dc; border: 2px dashed #b88a00; color: #3d3000; border-radius: 8px; padding: 12px 16px; font-size: .95rem; }
.anno b { color: #5c4300; }
body.notes .anno { display: block; }
.need { display: inline-block; font: 700 .75rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #6b4a00; background: #fff1c2; border: 1px solid #c9a227; border-radius: 4px; padding: 4px 7px; vertical-align: middle; }
.needbox { border: 2px dashed #c9a227; background: #fffbea; border-radius: var(--r); padding: 18px 20px; }
.needbox h3 { margin-top: 0; }

/* communities page */
.community { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--tan); scroll-margin-top: 20px; }
.community:first-of-type { border-top: 0; }
.community .meta { font-size: .9rem; color: var(--muted); }
.community .mile { font: 700 1.6rem var(--serif); color: var(--rust); display: block; }
.community h2 { font-size: 1.6rem; margin-bottom: .3em; }

/* diary */
.diary-layout { display: grid; grid-template-columns: minmax(300px, 1fr) 1.25fr; gap: 34px; align-items: start; }
.diary-map { position: sticky; top: 12px; }
.day { background: var(--paper); border: 1px solid var(--tan); border-radius: var(--r); padding: 22px 24px; margin-bottom: 18px; scroll-margin-top: 16px; }
.day.on { border-color: var(--rust); box-shadow: 0 0 0 2px var(--rust); }
.day h2 { font-size: 1.3rem; margin-bottom: .15em; }
.day .where { font-weight: 700; color: var(--steel); margin-bottom: .8em; }
.entry { font: 1.12rem/1.65 var(--serif); }
.entry .voice { font-style: italic; }
.entry .ed { font-family: var(--sans); font-size: .9rem; color: var(--muted); background: var(--tan-soft); border-radius: 4px; padding: 0 4px; }
.commentary { border-top: 1px solid var(--tan-soft); margin-top: 14px; padding-top: 12px; font-size: .97rem; }
.photo-note { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 10px 0 0; }
.photo-note svg { flex: none; margin-top: 3px; }
.daynav { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.daynav a { display: inline-block; min-width: 2.4em; text-align: center; padding: 4px 6px; border: 1px solid var(--tan); border-radius: 6px; text-decoration: none; font-weight: 700; font-size: .875rem; background: var(--paper); }
.daynav a.on { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* store */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tier { background: var(--paper); border: 1px solid var(--tan); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.tier .price { font: 700 2rem var(--serif); color: var(--maroon); }
.tier .price small { font: 400 .9rem var(--sans); color: var(--muted); }
.tier .btn { margin-top: auto; align-self: flex-start; }
.tier.new { border-style: dashed; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.product { background: var(--paper); border: 1px solid var(--tan); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.product img { aspect-ratio: 1 / 1; object-fit: contain; background: #f4efe6; width: 100%; padding: 10px; }
.product .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-size: 1.05rem; margin: 0; }
.product .price { font-weight: 700; }
.product .btn { margin-top: auto; align-self: flex-start; }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; padding: 0; border: 0; }
.amounts legend { font-weight: 700; margin-bottom: 8px; }
.amounts label { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--tan); border-radius: 99px; padding: 6px 14px; cursor: pointer; background: var(--paper); font-weight: 700; }
.amounts input { accent-color: var(--rust); }
.basket { position: sticky; top: 12px; background: var(--paper); border: 2px solid var(--maroon); border-radius: var(--r); padding: 18px; }
.basket ul { list-style: none; padding: 0; margin: 0 0 10px; }
.basket li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--tan-soft); }
.basket .total { font-weight: 700; display: flex; justify-content: space-between; }
.store-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }

/* forms (concept only — nothing submits) */
.signup { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 240px; }
.field label { font-weight: 700; }
.field input, .field textarea { font: inherit; padding: 10px 12px; border: 2px solid #8f826f; border-radius: 8px; background: #fff; color: var(--ink); }
.formnote:empty { display: none; }
.formnote { font-weight: 700; color: var(--steel); margin-top: 8px; }

/* lists */
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 8px; }
.cols2 { columns: 2; column-gap: 28px; }
.cols2 li { break-inside: avoid; }
.doclist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--tan-soft); }
.news { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.news li { background: var(--paper); border-top: 4px solid var(--rust); border-radius: 0 0 var(--r) var(--r); padding: 16px 18px; }
.news .date { font-size: .875rem; color: var(--muted); font-weight: 700; }
.news h3 { font-size: 1.15rem; margin: .2em 0 .4em; }
.board { columns: 2; column-gap: 28px; }
.board li { break-inside: avoid; }
table.cmp { width: 100%; border-collapse: collapse; background: var(--paper); }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--tan); }
.cmp thead th { background: var(--maroon); color: #fff; }
.tablewrap { overflow-x: auto; position: relative; }

/* footer */
.site-footer { background: #241016; color: #eadbd3; padding: 44px 0 110px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; }
.site-footer a { color: #ffd98a; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot-note { border-top: 1px solid #5a3a40; margin-top: 30px; padding-top: 16px; font-size: .875rem; color: #cdb9b0; }

@media (max-width: 900px) {
  .split, .map-layout, .diary-layout, .store-layout, .foot-grid { grid-template-columns: 1fr; }
  .diary-map, .basket { position: static; }
  .community { grid-template-columns: 1fr; gap: 6px; }
  .emblem-right { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-in { flex-wrap: wrap; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1; text-align: center; }
  .brand img { width: 44px; }
  .main-nav a { padding: 10px 10px; font-size: .95rem; }
  .placelist, .cols2, .board { columns: 1; }
  .band { padding: 40px 0; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.band.dark .btn.light { color: var(--maroon); }
.band.dark .btn.ghost { color: #fff; }
.band.dark .btn.ghost:hover { color: var(--maroon); }
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }
.signup .field { flex: 1 1 12rem; min-width: 0; }
.signup .field input { width: 100%; min-width: 0; }
.portrait { width: 96px; height: 96px; border-radius: 50%; flex: none; object-fit: cover; }
@media (max-width: 760px) {
  .hero img.bg { height: 220px; }
  .hero .over { position: static; background: var(--maroon); padding: 22px 0 28px; }
}
