/* Hallmark custom: Mossbound's crossing rhythm, large system type and field-notebook prose; committed navy canvas with green as the action signal. HTML and CSS only. */
/* Pre-emit critique: repeated rounded feature cards would hide the route sequence; replaced them with open numbered chapters and a contrasting journal spread. */
:root {
  --night: #101d29; --panel: #1a2d3b; --raised: #28424a; --paper: #f0f6ef;
  --muted: #b2c5c7; --green: #a8f66b; --line: #405661; --moss: #263f35;
  --ink: #172e29; --paper-rule: #a6b8a3; --clear: transparent;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --body: 1.0625rem; --small: .9375rem; --h3: clamp(1.5rem, 2.8vw, 2.5rem);
  --h2: clamp(2.5rem, 5vw, 4.75rem); --display: clamp(3.25rem, 8.8vw, 8rem);
  --xs: .5rem; --sm: .75rem; --md: 1rem; --lg: 1.5rem; --xl: 2.5rem;
  --xxl: 4rem; --xxxl: 6rem; --gutter: clamp(1.25rem, 4vw, 4rem);
  --measure: 76rem; --radius: .6rem; --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: var(--lg); }
body { background: var(--night); color: var(--paper); font-family: var(--sans); font-size: var(--body); line-height: 1.6; font-synthesis: none; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--measure)); margin-inline: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .25em; }
a:hover { color: var(--green); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
button, a, summary { -webkit-tap-highlight-color: var(--clear); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: var(--display); max-width: 16ch; }
h2 { font-size: var(--h2); max-width: 18ch; }
h3 { font-size: var(--h3); }
.skip { position: absolute; z-index: 10; inset: var(--md) auto auto var(--md); padding: var(--sm) var(--lg); background: var(--green); color: var(--night); transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: var(--lg); padding-block: var(--lg); border-bottom: 1px solid var(--line); }
.brand { font-size: 1.9rem; font-style: italic; font-weight: 800; letter-spacing: -.055em; text-decoration: none; line-height: 1.1; }
.site-header nav { display: flex; gap: var(--xl); align-items: center; font-size: var(--small); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.hero { padding-top: clamp(3rem, 5.5vw, 5rem); padding-bottom: var(--lg); }
.hero h1 { animation: settle 550ms var(--ease); }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--xl); margin-top: var(--xl); }
.hero-bottom p { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 35ch; color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 58px; padding: var(--md) var(--xl); background: var(--green); color: var(--night); border-radius: var(--radius); text-decoration: none; font-weight: 800; white-space: nowrap; }
.button:hover { color: var(--night); text-decoration: underline; }
.trail-line { display: flex; align-items: center; gap: var(--md); padding-block: var(--xl); margin-top: var(--lg); font-size: var(--small); color: var(--muted); }
.trail-line i { flex: 1; height: 1px; background: var(--line); }
.crossing { margin-top: var(--xl); padding-block: var(--xxxl); background: var(--moss); color: var(--paper); }
.crossing-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--xxxl); }
.crossing-heading p { margin-top: var(--xl); max-width: 33ch; }
.field-notes { display: grid; gap: var(--xl); }
.field-notes h3 { font-size: 1.625rem; }
.field-notes p { margin-top: var(--sm); color: var(--muted); }
.modes { padding-block: var(--xxxl); }
.modes>h2 { max-width: 15ch; margin-bottom: var(--xxl); }
.mode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--xxl); border-top: 1px solid var(--line); padding-block: var(--xl); }
.mode-title { display: flex; gap: var(--lg); align-items: baseline; }
.figure { font-family: var(--mono); font-size: var(--small); color: var(--green); font-variant-numeric: tabular-nums; }
.mode h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.mode p { max-width: 43ch; color: var(--muted); }
.mode-note { grid-column: 2; font-size: var(--small); margin-top: var(--sm); }
.notebook { background: var(--paper); color: var(--ink); padding-block: var(--xxxl); }
.notebook-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--xxxl); }
.notebook p { margin-top: var(--xl); max-width: 32ch; }
.finds { margin: 0; padding-top: var(--sm); }
.finds div { padding-block: var(--lg); border-bottom: 1px solid var(--paper-rule); }
.finds div:first-child { padding-top: 0; }
.finds dt { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; line-height: 1.2; }
.finds dd { margin: var(--xs) 0 0; font-size: var(--small); }
.questions { padding-block: var(--xxxl); }
.questions h2 { margin-bottom: var(--xl); }
details { border-bottom: 1px solid var(--line); padding-block: var(--lg); }
summary { cursor: pointer; font-size: 1.25rem; font-weight: 800; min-height: 44px; padding-block: var(--xs); }
details p { padding-top: var(--md); max-width: 62ch; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: var(--xl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--xl); }
.site-footer p { color: var(--muted); font-size: var(--small); margin-top: var(--sm); }
.footer-links { display: flex; flex-wrap: wrap; column-gap: var(--lg); row-gap: var(--sm); justify-content: flex-end; font-size: var(--small); }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:last-child { flex-basis: 100%; justify-content: flex-end; overflow-wrap: anywhere; }
.document { padding-block: var(--xxl) var(--xxxl); }
.document-head { border-bottom: 1px solid var(--line); padding-bottom: var(--xxl); }
.document-head>p:first-child { color: var(--muted); font-size: var(--small); margin-bottom: var(--lg); }
.document h1 { font-size: clamp(3rem, 7vw, 6rem); }
.document-head>p:last-child { font-size: 1.25rem; max-width: 60ch; margin-top: var(--xl); }
.prose { max-width: 68ch; margin-left: auto; padding-top: var(--xxl); }
.prose h2 { font-size: 1.75rem; margin-top: var(--xl); margin-bottom: var(--md); max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: var(--lg); }
.prose a { color: var(--paper); }
.contact { padding-block: var(--xxl) var(--xxxl); }
.contact h1 { max-width: 13ch; }
.contact-intro { margin-top: var(--xl); font-size: 1.25rem; max-width: 42ch; }
.contact-email { padding-block: var(--xxl); font-size: clamp(1.2rem, 3vw, 2.5rem); color: var(--green); overflow-wrap: anywhere; }
.contact-notes { border-top: 1px solid var(--line); padding-top: var(--xl); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--xxl); }
.contact-notes h2 { font-size: 1.5rem; max-width: none; margin-bottom: var(--md); }
.contact-notes p { color: var(--muted); max-width: 44ch; }
@keyframes settle { from { transform: translateY(10px); } to { transform: translateY(0); } }
@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  .site-header nav { gap: var(--lg); }
  .brand { font-size: 1.6rem; }
  .hero { padding-top: var(--xxl); }
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: var(--lg); }
  .hero-bottom p { max-width: 30ch; }
  .trail-line { gap: var(--xs); font-size: .8125rem; }
  .crossing-layout, .notebook-layout { grid-template-columns: minmax(0, 1fr); gap: var(--xl); }
  .crossing, .notebook, .modes, .questions { padding-block: var(--xxl); }
  .mode { grid-template-columns: minmax(0, 1fr); gap: var(--lg); }
  .mode-note { grid-column: 1; margin-top: 0; }
  .mode p { max-width: 45ch; }
  .site-footer { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
  .footer-links a:last-child { justify-content: flex-start; }
  .contact-notes { grid-template-columns: minmax(0, 1fr); gap: var(--xl); }
  .prose { margin-inline: 0; }
}
@media (max-width: 380px) {
  .site-header { flex-wrap: wrap; gap: var(--sm); }
  .site-header nav { width: 100%; justify-content: space-between; }
  .hero { padding-top: var(--xl); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
