/* ==========================================================================
   jasoncalhoun.net · "Lantern & Trail" identity (v3, refined Storybook Frontier)
   A field guide kept by a gentleman-wizard with a pipe and a sense of humor.
   Brand sheet: /brand/   Illustrations: /assets/illo/ (generated by social/illos.py)
   ========================================================================== */
:root {
  --dusk: #1b2838;  --dusk-2: #243549; --night: #141d29;
  --pine: #2c4a3e;  --moss: #5d7358;
  --lantern: #e2a340; --lantern-lt: #f2c267;
  --claret: #9e3b45; --brass: #a8874f;
  --vellum: #f3ecdc; --vellum-2: #e9dfca; --ink: #1d2328;

  --bg: var(--vellum); --bg-2: var(--vellum-2); --text: var(--ink); --text-2: #3c4146;
  --muted: #6d665a; --rule: #cdbf9f; --accent: var(--claret); --accent-2: var(--pine); --on-accent: var(--vellum);

  --f-display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --f-text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-sc: "IM Fell English SC", "Iowan Old Style", Georgia, serif;
  --f-fell: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --wrap: 1200px; --gut: clamp(16px, 4vw, 44px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: var(--night); --bg-2: var(--dusk); --text: var(--vellum); --text-2: #d8cfbd; --muted: #a39a88;
  --rule: #34465a; --accent: var(--lantern); --accent-2: #9fbfa6; --on-accent: var(--night); } }
:root[data-theme="dark"] {
  --bg: var(--night); --bg-2: var(--dusk); --text: var(--vellum); --text-2: #d8cfbd; --muted: #a39a88;
  --rule: #34465a; --accent: var(--lantern); --accent-2: #9fbfa6; --on-accent: var(--night); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 clamp(17px, .9vw + 12.5px, 20px)/1.62 var(--f-text); font-optical-sizing: auto; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
::selection { background: var(--lantern); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--ink); color: var(--vellum); padding: 8px 12px; }

/* type */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 88px); }
h2 { font-size: clamp(32px, 3.8vw, 54px); }
h3 { font-size: clamp(23px, 2vw, 30px); line-height: 1.14; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(20px, 1.1vw + 13px, 24px); line-height: 1.52; }
.muted { color: var(--muted); } .small { font-size: .88em; }
.fell { font-family: var(--f-fell); font-style: italic; }
.eyebrow, .nav a, .btn, .tag, .meta, .go, .byline, figcaption { font-family: var(--f-sc); letter-spacing: .05em; }
.eyebrow { font-size: 18px; color: var(--accent-2); display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.eyebrow .dot { width: auto; height: auto; background: none; color: var(--lantern); font-size: 14px; }
.eyebrow .dot::before { content: "✦"; }
.eyebrow::after { content: ""; flex: 1; height: 4px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.eyebrow.bare::after { display: none; }

/* header (sits on the dusk band) */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand b { display: block; font: 400 25px/1 var(--f-display); letter-spacing: -.01em; }
.brand i { display: block; font: italic 400 14px/1.2 var(--f-fell); opacity: .75; margin-top: 3px; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); flex-wrap: wrap; }
.nav a { font-size: 18px; text-decoration: none; opacity: .85; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: inherit; border-bottom-color: var(--lantern); }
.on-dark { color: var(--vellum); }

/* dusk band: every page opens at the campsite */
.horizon { position: relative; color: var(--vellum); isolation: isolate;
  background: radial-gradient(90% 60% at 80% 100%, rgba(226,163,64,.16), transparent 60%), linear-gradient(180deg, #121b27 0%, #1b2838 55%, #2a3f57 100%); }
.horizon .hero { padding-top: clamp(28px, 5vw, 72px); padding-bottom: clamp(8px, 2vw, 24px); }
.horizon h1 em, .horizon h2 em { font-style: normal; color: var(--lantern); }
.horizon .lede { color: #e4dac6; }
.horizon .eyebrow { color: #c9b98f; } .horizon .eyebrow::after { border-color: rgba(243,236,220,.2); }
.horizon a { text-decoration-color: var(--lantern); }
.scene { position: relative; z-index: -1; width: 100%; height: clamp(190px, 30vw, 440px); margin-top: clamp(-190px, -12vw, -40px); }
.scene.sm { height: clamp(150px, 18vw, 250px); margin-top: clamp(-90px, -6vw, -20px); }
.scene a { pointer-events: auto; }
.scene .sign { cursor: pointer; } .scene .sign:hover polygon { fill: #ffe3a0; }
.scene .sign text { pointer-events: none; }
.cover-hero img { width: 100%; height: clamp(260px, 42vw, 560px); object-fit: cover; object-position: 50% 45%; }

/* layout */
section { padding: clamp(56px, 8vw, 110px) 0 0; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.6vw, 38px); }
.c-3{grid-column:span 3}.c-4{grid-column:span 4}.c-5{grid-column:span 5}.c-6{grid-column:span 6}.c-7{grid-column:span 7}.c-8{grid-column:span 8}.c-12{grid-column:1/-1}
@media (max-width: 880px) { .grid > * { grid-column: 1 / -1 !important; } }

/* buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn { font-size: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 13px; text-decoration: none; border: 1px solid var(--text); background: var(--text); color: var(--bg); border-radius: 3px; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.horizon .btn, .band .btn { background: var(--lantern); color: var(--ink); border-color: var(--lantern); }
.horizon .btn:hover, .band .btn:hover { background: var(--lantern-lt); border-color: var(--lantern-lt); color: var(--ink); }
.horizon .btn.ghost, .band .btn.ghost { background: transparent; color: var(--vellum); border-color: rgba(243,236,220,.55); }
.horizon .btn.ghost:hover, .band .btn.ghost:hover { background: var(--vellum); color: var(--ink); }

/* engraved plate (feature card) */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--bg-2); text-decoration: none; border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 4px; }
.feature img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.feature .body { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.feature:hover h3 { color: var(--accent); }
.feature h3 { font-size: clamp(27px, 2.6vw, 38px); }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } .feature img { min-height: 0; aspect-ratio: 5 / 2; } }
.tag { display: inline-flex; font-size: 15px; padding: 2px 10px 3px; border: 1px solid var(--muted); color: var(--muted); width: fit-content; border-radius: 2px; }
.tag.draft { border-color: var(--claret); color: var(--claret); }
.tag.live { border-color: var(--accent-2); color: var(--accent-2); }

/* now list: a field-journal log */
.now-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.now-list li { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px dotted var(--rule); }
.now-list .meta { color: var(--accent); font-size: 18px; }
@media (max-width: 560px) { .now-list li { grid-template-columns: 1fr; gap: 0; } }

/* pillars: four chapters */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--text); }
.pillar { padding: 24px clamp(14px, 1.6vw, 24px) 28px 0; text-decoration: none; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--rule); }
.pillar + .pillar { padding-left: clamp(14px, 1.6vw, 24px); }
.pillar:last-child { border-right: 0; }
.pillar .n { font: italic 400 20px/1 var(--f-fell); color: var(--accent); }
.pillar p { color: var(--text-2); font-size: .93em; margin: 0; }
.pillar .go { margin-top: auto; font-size: 16px; color: var(--muted); }
.pillar:hover h3 { color: var(--accent); }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar { border-bottom: 1px solid var(--rule); } .pillar:nth-child(2n) { border-right: 0; } .pillar:nth-child(3) { padding-left: 0; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillar, .pillar + .pillar { border-right: 0; padding-left: 0; } }

/* lists */
.rows { border-top: 1px solid var(--text); }
.row { display: grid; grid-template-columns: 9em 1fr auto; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.row .meta { color: var(--muted); font-size: 17px; }
.row p { margin: 6px 0 0; color: var(--text-2); font-size: .94em; }
.row.ph h3, .row.ph p { color: var(--muted); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: 6px; } }
.plain { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.plain li { padding: 14px 0; border-bottom: 1px solid var(--rule); }

/* figures + credits */
.figs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px double var(--text); border-bottom: 3px double var(--text); }
.fig { padding: 22px 18px 20px 0; border-right: 1px solid var(--rule); }
.fig + .fig { padding-left: 18px; } .fig:last-child { border-right: 0; }
.fig b { display: block; white-space: nowrap; font: 400 clamp(32px, 3.5vw, 52px)/1 var(--f-display); }
.fig span { display: block; margin-top: 10px; font-size: .86em; color: var(--text-2); line-height: 1.42; }
@media (max-width: 880px) { .figs { grid-template-columns: 1fr 1fr; } .fig:nth-child(2) { border-right: 0; } .fig:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } .fig:nth-child(3) { padding-left: 0; } }
@media (max-width: 420px) { .figs { grid-template-columns: 1fr; } .fig, .fig + .fig { border-right: 0; padding-left: 0; border-bottom: 1px solid var(--rule); } }
.credits { font: 400 clamp(26px, 3vw, 42px)/1.22 var(--f-display); margin: 0; }
.credits span { white-space: nowrap; }
.credits span::after { content: " ✦ "; color: var(--lantern); font-size: .5em; vertical-align: middle; }
.credits span:last-child::after { content: ""; }

/* video facade */
.video { position: relative; aspect-ratio: 16/9; width: 100%; padding: 0; border: 1px solid var(--rule); background: #000; overflow: hidden; cursor: pointer; display: block; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .5s; }
.video:hover img { opacity: 1; transform: scale(1.015); }
.video .play { position: absolute; left: 14px; bottom: 14px; font: 400 17px/1 var(--f-sc); letter-spacing: .05em; background: var(--vellum); color: var(--ink); padding: 8px 12px; border-radius: 2px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cap { margin-top: 12px; } .cap p { font-size: .92em; color: var(--text-2); margin: 6px 0 0; }

.portrait { margin: 0; } .portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 5px; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; }
@media (max-width: 880px) { .portrait img { aspect-ratio: 1/1; object-position: 50% 22%; } }

/* article */
.article { max-width: 40em; margin: 0 auto; }
.article p { font-size: clamp(18px, .6vw + 15px, 21px); line-height: 1.72; }
article.article > p:first-of-type::first-letter { font-family: var(--f-display); float: left; font-size: 4.3em; line-height: .8; padding: .08em .1em 0 0; color: var(--accent); }
.byline { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: #c9b98f; font-size: 17px; }
.draft-banner { background: repeating-linear-gradient(135deg, rgba(158,59,69,.10) 0 12px, transparent 12px 24px); border: 1px solid var(--claret); padding: 14px 18px; font: 400 15px/1.5 var(--f-text); }
.draft-banner b { font-family: var(--f-sc); color: var(--claret); letter-spacing: .06em; margin-right: 8px; }

/* dark band + footer */
.band { background: var(--dusk); color: var(--vellum); padding: clamp(52px, 7vw, 92px) 0; margin-top: clamp(64px, 9vw, 120px); position: relative; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 100% 100%, rgba(226,163,64,.22), transparent 60%); }
.band p { color: #ddd3c0; max-width: 36em; }
.foot { background: var(--night); color: #d8cfbd; padding: 44px 0 50px; margin-top: clamp(64px, 9vw, 110px); font-size: .92em; }
.band + .foot, main:has(> .band:last-child) + .foot { margin-top: 0; border-top: 1px solid #2a3a4d; }
.foot a { text-decoration-color: var(--lantern); }
.foot ul { list-style: none; margin: 0; padding: 0; } .foot li { margin: 0 0 6px; }
.foot .eyebrow { color: #c9b98f; margin-bottom: 12px; } .foot .eyebrow::after { display: none; }
.foot .trailer { width: 84px; color: #6f7f90; margin-top: 18px; }
.foot .fine { font: italic 400 15px/1.5 var(--f-fell); color: #9aa3ad; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 560px) { .scene { height: 250px; margin-top: -30px; } .scene.sm { height: 170px; } }

/* phones: the scene's signs get too small to tap, so a real signpost row appears under it */
.signs-m { display: none; }
@media (max-width: 560px) {
  .signs-m { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px var(--gut) 18px; background: #15251f; }
  .signs-m a { font: 400 18px/1 var(--f-sc); letter-spacing: .04em; text-decoration: none; color: var(--ink); background: var(--vellum); border: 1px solid var(--ink); padding: 12px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 2px; }
  .signs-m a.snacks { background: var(--lantern); }
  .scene .sign { pointer-events: none; }
}
.feature.teaser { cursor: default; }
.feature.teaser:hover h3 { color: inherit; }
