@import url('https://fonts.googleapis.com/css2?family=Azeret+Mono:wght@500;650&family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Literata:opsz,wght@7..72,400;7..72,600&display=swap');

:root {
  --heather: #5a2858;
  --deep-heather: #39243f;
  --atlantic: #2b70c9;
  --sky-wash: #b8dced;
  --route-pink: #c82f6b;
  --biscuit: #e6c27a;
  --shell-pink: #f7cde0;
  --mist: #edf5f8;
  --content-max: 86rem;
  --reading-max: 44rem;
  --step-1: clamp(1rem, .97rem + .16vw, 1.1rem);
  --step-2: clamp(1.25rem, 1.13rem + .6vw, 1.65rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.8rem);
  --step-4: clamp(2.7rem, 2rem + 3.5vw, 5.7rem);
  --space: clamp(1rem, .65rem + 1.7vw, 2.25rem);
  --section-space: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --hard-shadow: .55rem .55rem 0 var(--deep-heather);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--deep-heather);
  background: var(--mist);
  font-family: "Literata", Cambria, serif;
  font-size: var(--step-1);
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: var(--heather); text-underline-offset: .22em; text-decoration-thickness: .1em; }
a:hover { color: var(--route-pink); }
:focus-visible { outline: .2rem solid var(--route-pink); outline-offset: .22rem; }
h1, h2, h3, h4, .mast-name {
  font-family: "Bricolage Grotesque", sans-serif;
  line-height: .98;
  text-wrap: balance;
}
h1 { margin: 0; font-size: var(--step-4); letter-spacing: -.055em; }
h2 { margin: 0 0 1rem; font-size: var(--step-3); letter-spacing: -.035em; }
h3 { margin: 0 0 .65rem; font-size: var(--step-2); line-height: 1.12; }
p { max-width: 72ch; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .8rem 1rem; background: var(--biscuit); }
.skip-link:focus { left: 1rem; top: 1rem; }

.mast {
  background: var(--shell-pink);
  border-bottom: .2rem solid var(--deep-heather);
}
.mast-inner, .trail-width {
  width: min(calc(100% - 2rem), var(--content-max));
  margin-inline: auto;
}
.mast-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; min-height: 4.5rem; padding-block: .65rem; }
.mast-name { color: var(--deep-heather); font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.mast-name span { display: block; font-family: "Azeret Mono", monospace; font-size: .64rem; letter-spacing: .04em; line-height: 1.2; }
.path-nav { display: flex; gap: .25rem; overflow-x: auto; padding-block: .25rem; scrollbar-width: thin; }
.path-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .7rem; color: var(--deep-heather); font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; white-space: nowrap; text-decoration: none; }
.path-nav a[aria-current="page"] { background: var(--deep-heather); color: var(--shell-pink); }

.headland { position: relative; overflow: hidden; background: var(--sky-wash); border-bottom: .25rem solid var(--deep-heather); }
.headland::after { content: ""; position: absolute; inset: auto -10% -4.5rem; height: 8rem; border: .2rem solid var(--atlantic); border-radius: 50%; opacity: .55; }
.headland-grid { display: grid; min-height: clamp(36rem, 82vh, 54rem); }
.headland-copy { align-self: center; padding: clamp(3rem, 8vw, 8rem) max(1rem, calc((100vw - var(--content-max)) / 2)); padding-right: 1rem; z-index: 1; }
.headland-copy p { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); }
.headland-photo { position: relative; min-height: 21rem; border-top: .2rem solid var(--deep-heather); background: var(--atlantic); }
.headland-photo img { width: 100%; height: 100%; object-fit: cover; }
.slot-label { position: absolute; inset: auto 1rem 1rem; margin: 0; padding: .55rem .75rem; max-width: calc(100% - 2rem); background: var(--biscuit); border: .15rem solid var(--deep-heather); font-family: "Azeret Mono", monospace; font-size: .72rem; line-height: 1.35; }
.route-kicker { display: inline-block; margin-bottom: 1rem; padding: .3rem .55rem; background: var(--deep-heather); color: var(--shell-pink); font-family: "Azeret Mono", monospace; font-size: .72rem; }

.mile-log { padding-block: var(--section-space); }
.mile-log > .trail-width { border-left: .35rem solid var(--atlantic); padding-left: clamp(1.2rem, 3vw, 2.6rem); }
.mile-log:nth-of-type(even) > .trail-width { border-left-color: var(--route-pink); }
.mile-log-marker { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; padding: .3rem .6rem; background: var(--deep-heather); color: var(--shell-pink); font-family: "Azeret Mono", monospace; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.section-intro { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.section-intro p { margin: 0; }
.waymark-grid { display: grid; gap: 1.4rem; }
.waymark {
  position: relative;
  padding: 1rem;
  background: var(--mist);
  border: .16rem solid var(--deep-heather);
}
.waymark:nth-child(2n) { background: var(--shell-pink); }
.waymark:nth-child(3n) { background: var(--biscuit); }
.waymark .picture-frame { margin: -1rem -1rem 1rem; }
.waymark p { margin-bottom: 0; }
.waymark a { display: inline-flex; min-height: 44px; align-items: center; margin-top: .5rem; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; }
.picture-frame { position: relative; min-height: 13rem; overflow: hidden; background: var(--atlantic); border: .16rem solid var(--deep-heather); }
.picture-frame img { width: 100%; height: 100%; min-height: 13rem; object-fit: cover; opacity: .82; }
.picture-frame figcaption { padding: .65rem .8rem; background: var(--deep-heather); color: var(--shell-pink); font-family: "Azeret Mono", monospace; font-size: .72rem; line-height: 1.4; }
figure.picture-frame { margin: 0; }

.stile-layout, .adit-layout, .larder-layout { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.prose-sheet { max-width: var(--reading-max); }
.prose-sheet > :first-child { margin-top: 0; }
.fact-strip { display: grid; gap: .15rem; margin: 1.5rem 0; border: .16rem solid var(--deep-heather); background: var(--deep-heather); }
.fact-strip div { padding: .8rem 1rem; background: var(--mist); }
.fact-strip dt { font-family: "Azeret Mono", monospace; font-size: .72rem; font-weight: 650; }
.fact-strip dd { margin: .2rem 0 0; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; }

.tide-board { background: var(--deep-heather); color: var(--mist); padding-block: var(--section-space); }
.tide-board .trail-width { display: grid; gap: 1.5rem; }
.tide-board h2, .tide-board h3 { color: var(--shell-pink); }
.tide-controls { display: grid; gap: 1rem; padding: 1rem; border: .15rem solid var(--sky-wash); }
.tide-controls label { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; }
.tide-controls select { width: 100%; min-height: 48px; margin-top: .35rem; padding: .6rem; color: var(--deep-heather); background: var(--mist); border: .15rem solid var(--sky-wash); font: inherit; }
.tide-result { min-height: 15rem; padding: 1.3rem; background: var(--biscuit); color: var(--deep-heather); border: .2rem solid var(--shell-pink); box-shadow: var(--hard-shadow); }
.tide-result [data-status] { font-family: "Azeret Mono", monospace; font-weight: 650; }
.tide-result p { margin-bottom: 0; }

.contour-list { list-style: none; margin: 0; padding: 0; border-top: .16rem solid var(--deep-heather); }
.contour-list li { display: grid; gap: .4rem; padding: 1rem 0; border-bottom: .16rem solid var(--deep-heather); }
.contour-list strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.15rem; }
.trail-link { display: inline-flex; min-height: 44px; align-items: center; padding: .55rem .9rem; background: var(--route-pink); color: var(--mist); border: .15rem solid var(--deep-heather); box-shadow: .25rem .25rem 0 var(--deep-heather); font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; text-decoration: none; }
.trail-link:hover { color: var(--mist); transform: translate(-.1rem, -.1rem); box-shadow: .35rem .35rem 0 var(--deep-heather); }

.page-lead { padding-block: clamp(3rem, 8vw, 7rem); background: var(--sky-wash); border-bottom: .2rem solid var(--deep-heather); }
.page-lead .trail-width { display: grid; gap: 1.5rem; }
.page-lead p { font-size: 1.18rem; }
.section-marker { font-family: "Azeret Mono", monospace; font-size: .75rem; }
.caution-note { padding: 1rem; background: var(--biscuit); border-left: .5rem solid var(--route-pink); }
.field-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.field-table th, .field-table td { padding: .75rem; border: .12rem solid var(--deep-heather); text-align: left; vertical-align: top; }
.field-table th { background: var(--shell-pink); font-family: "Bricolage Grotesque", sans-serif; }

.mine-line { border-left: .25rem solid var(--route-pink); padding-left: 1.25rem; }
.mine-line article { position: relative; margin-bottom: 2rem; }
.mine-line article::before { content: ""; position: absolute; width: .9rem; height: .9rem; left: -1.82rem; top: .35rem; border-radius: 50%; background: var(--biscuit); border: .18rem solid var(--deep-heather); }
.chip-shop { display: grid; gap: 1rem; }
.crumb-note { padding: 1rem; background: var(--shell-pink); border: .14rem dashed var(--heather); }

.footpath-end { background: var(--heather); color: var(--mist); border-top: .25rem solid var(--deep-heather); }
.footpath-end .trail-width { display: grid; gap: 2rem; padding-block: 3rem; }
.footpath-end a { color: var(--shell-pink); }
.footpath-end nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.footpath-end small { max-width: 70ch; }

@media (min-width: 42rem) {
  .waymark-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-strip { grid-template-columns: repeat(3, 1fr); }
  .contour-list li { grid-template-columns: minmax(10rem, .7fr) 2fr; }
  .footpath-end .trail-width { grid-template-columns: 1fr 2fr; }
}
@media (min-width: 64rem) {
  .headland-grid { grid-template-columns: minmax(0, .9fr) minmax(34rem, 1.1fr); }
  .headland-photo { border-top: 0; border-left: .2rem solid var(--deep-heather); }
  .section-intro { grid-template-columns: .8fr 1.2fr; align-items: end; }
  .waymark-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stile-layout, .adit-layout, .larder-layout { grid-template-columns: minmax(0, 1fr) minmax(20rem, .85fr); }
  .tide-board .trail-width { grid-template-columns: .75fr 1fr; align-items: start; }
  .page-lead .trail-width { grid-template-columns: 1fr .75fr; align-items: end; }
  .chip-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 82rem) {
  .waymark-grid.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
