/* tristenbohn.com. Trail and field identity, tristen-bohn-brand skill v1.4. */
@font-face { font-family: "Zilla Slab"; src: url("fonts/ZillaSlab-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("fonts/ZillaSlab-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --forest: #2F4A3A;
  --rust: #B5562D;
  --rust-deep: #9A4522;
  --canvas: #EFE8D8;
  --slate: #4A5560;
  --ink: #22261F;
  --ring: #D3C7AC;
  --ring-forest: #46654F;
  --line: #D9D0BC;
  --white: #FFFFFF;
  --slab: "Zilla Slab", Georgia, serif;
  --sans: "Barlow", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); position: relative; overflow-x: hidden; }
@media (min-width: 48em) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-deep); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--rust-deep); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--slab); color: var(--forest); margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--canvas); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.top, main, .foot { position: relative; z-index: 1; }

/* The map: Pine Hill, printed across the paper like a sectional */
.map { position: absolute; inset: 0 0 auto 0; height: 100%; overflow: hidden; pointer-events: none; z-index: 0; }
.rings { position: absolute; width: 140rem; left: calc(72% - 72.8rem); top: -50rem; stroke: var(--ring); stroke-width: 1.3; }
.rings polyline { stroke-dasharray: 5000; stroke-dashoffset: 5000; animation: draw 2.8s cubic-bezier(.3,.6,.2,1) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 47.99em) { .rings { width: 80rem; left: calc(80% - 41.6rem); top: -20rem; } }

/* Header */
.top-in { max-width: var(--wide); margin: 0 auto; padding: 1.5rem var(--gutter) 0.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand img { width: clamp(220px, 22vw, 270px); }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.top nav a { color: var(--forest); text-decoration: none; font-weight: 600; font-size: 1.02rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom: 2px dashed var(--forest); }
.top nav a[aria-current="page"] { border-bottom: 2px solid var(--rust); }

/* Hero */
.hero { max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 8vw, 6.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  display: grid; gap: 2.5rem 4rem; align-items: center; }
@media (min-width: 60em) { .hero { grid-template-columns: 1fr 21rem; } }
.cred { font-weight: 600; color: var(--rust-deep); font-size: 1.15rem; margin: 0 0 1.1rem; }
.hero h1 { font-weight: 700; font-size: clamp(3rem, 8vw, 6.6rem); line-height: 0.97; letter-spacing: -0.025em; max-width: 10.5ch; }
.promise { font-family: var(--slab); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--ink); margin: 1.75rem 0 2.25rem; }
.log { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; margin: 0; padding-top: 1.1rem; border-top: 1.5px dashed var(--forest);
  font-family: var(--mono); font-size: 0.95rem; color: var(--slate); max-width: 46rem; }
.log b { font-weight: 500; color: var(--forest); font-size: 1.3em; margin-left: 0.3em; }
.asof { margin: 0.6rem 0 0; font-size: 0.95rem; color: var(--slate); }
.hero-photo img { width: 100%; max-width: 21rem; border-radius: 1.75rem; border: 3px solid var(--forest); }
@media (max-width: 59.99em) { .hero-photo { order: -1; } .hero-photo img { max-width: 14rem; } }

/* The descent: three steps down and to the right, in promise order */
.descent { max-width: var(--wide); margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gutter) clamp(2rem, 5vw, 3rem); }
.step { display: grid; gap: 0.75rem; padding: clamp(2.25rem, 5vw, 3.25rem) 0; border-top: 1.5px dashed var(--forest); }
.step h2 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.step .txt { max-width: 32rem; }
.step p { margin: 0 0 0.75rem; }
.lead { font-weight: 600; color: var(--ink); }
@media (min-width: 60em) {
  .step { grid-template-columns: auto minmax(20rem, 32rem); align-items: baseline; gap: 2.5rem; justify-content: start; }
  .step h2 { white-space: nowrap; }
  .s2 { margin-left: 12%; }
  .s3 { margin-left: 24%; }
}

/* Two doors: plain type on the paper */
.doors { max-width: var(--wide); margin: 0 auto clamp(4rem, 9vw, 6rem); padding: 0 var(--gutter); display: grid; gap: 0; }
@media (min-width: 48em) { .doors { grid-template-columns: 1fr 1fr; } .door + .door { border-left: 1.5px dashed var(--forest); padding-left: 2.5rem; } }
.door { display: block; text-decoration: none; padding: 2rem 2.5rem 2rem 0; border-top: 1.5px dashed var(--forest); }
.door .who { display: block; font-family: var(--slab); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; color: var(--forest);
  text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.door .what { display: block; margin-top: 0.75rem; color: var(--ink); }
.door:hover .who { text-decoration-style: dashed; }

/* Inner pages: same paper, no panels */
.page-head { max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.02em; max-width: 14ch; }
.page-head p { margin: 1.1rem 0 0; color: var(--rust-deep); font-weight: 600; max-width: 46rem; }
.prose { max-width: var(--wide); margin: 0 auto clamp(4rem, 8vw, 6rem); padding: 0 var(--gutter); }
.prose .sheet { border-top: 1.5px dashed var(--forest); padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.prose .sheet > *, .prose.two > div > * { max-width: 44rem; }
.prose h2 { font-size: 1.75rem; font-weight: 700; margin: 2.8rem 0 0.8rem; }
.prose .sheet > h2:first-child, .prose.two h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 1.05em; }
.prose p { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose ul.plain { list-style: none; padding: 0; }
.prose ul.plain li { padding: 0.55rem 0; border-bottom: 1px solid #CFC5AE; margin: 0; }
.prose.two { display: grid; gap: 2.5rem; border-top: 1.5px dashed var(--forest); padding-top: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 60em) { .prose.two { grid-template-columns: 1fr 17rem; gap: 4rem; } }
.side-photo img { border-radius: 1.75rem; border: 3px solid var(--forest); }
.role { margin: 0 0 1.6rem; }
.meta { color: var(--slate); font-size: 0.95em; margin: 0.15rem 0 0.5rem !important; }

/* Flight time table */
.table-wrap { overflow-x: auto; max-width: 100% !important; margin: 0 0 1rem; }
.hours { border-collapse: collapse; min-width: 42rem; width: 100%; background: rgba(239,232,216,.85); }
.hours caption { text-align: left; font-size: 0.9rem; color: var(--slate); padding-bottom: 0.6rem; }
.hours th, .hours td { border: 1px solid var(--slate); padding: 0.55rem 0.6rem; text-align: center; }
.hours th { font: 400 0.8rem/1.25 var(--sans); color: var(--slate); }
.hours td { font: 500 1.15rem/1.2 var(--mono); color: var(--forest); font-variant-numeric: tabular-nums; }

.contact { margin: 0; display: grid; gap: 0.25rem 2rem; }
@media (min-width: 48em) { .contact { grid-template-columns: 18rem 1fr; } }
.contact dt { color: var(--slate); padding-top: 0.85rem; }
.contact dd { margin: 0; padding-top: 0.85rem; font-weight: 600; font-size: 1.1em; }

/* Footer: on the paper, under a stitch line */
.foot-in { width: min(calc(100% - 2 * var(--gutter)), calc(var(--wide) - 2 * var(--gutter))); margin: 0 auto; padding: 2.5rem 0 3rem; border-top: 1.5px dashed var(--forest); }
.foot p { margin: 0 0 0.4rem; color: var(--ink); }
.foot-name { font-family: var(--slab); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; color: var(--forest) !important; margin-bottom: 0.9rem !important; }
.foot .credit { font-size: 0.85rem; color: var(--slate) !important; margin-top: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .rings polyline { stroke-dashoffset: 0; }
}
