/* Guy Got Lost
   Layout idea: a quiet survey-map sheet. Cool paper, slate ink, one sea-teal accent;
   coordinates set as small caps eyebrows; long text in a serif at ~66 characters. */
:root {
  --bg: #f2f5f2;
  --surface: #ffffff;
  --ink: #17262a;
  --muted: #56666a;
  --line: #d6ded9;
  --accent: #0c6b67;
  --accent-ink: #ffffff;
  --mark: #9a5b0e;
  --mark-bg: #f6e9d3;
  --ok-bg: #d9efe9;
  --danger: #a8322a;
  --sun: #d9541e; --sun-ink: #ffffff; --sun-bg: #fbe6da; --avatar-l: 36%;
  --glow-a: rgb(12 107 103 / .14); --glow-b: rgb(217 84 30 / .13);
  --contour-bg: #e4ebe6;
  --contour-line: #9fb3ab;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(23 38 42 / .06), 0 8px 24px rgb(23 38 42 / .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1617; --surface: #151f21; --ink: #e2e9e6; --muted: #92a3a2; --line: #26353a;
    --accent: #62c6ba; --accent-ink: #05201e; --mark: #e6ad63; --mark-bg: #3a2a12; --ok-bg: #143732;
    --danger: #f08a80; --sun: #ff9460; --sun-ink: #2a1004; --sun-bg: #3b2015; --avatar-l: 74%;
    --glow-a: rgb(98 198 186 / .13); --glow-b: rgb(255 148 96 / .11); --contour-bg: #18262a; --contour-line: #3d5559;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1617; --surface: #151f21; --ink: #e2e9e6; --muted: #92a3a2; --line: #26353a;
  --accent: #62c6ba; --accent-ink: #05201e; --mark: #e6ad63; --mark-bg: #3a2a12; --ok-bg: #143732;
  --danger: #f08a80; --sun: #ff9460; --sun-ink: #2a1004; --sun-bg: #3b2015; --avatar-l: 74%;
    --glow-a: rgb(98 198 186 / .13); --glow-b: rgb(255 148 96 / .11); --contour-bg: #18262a; --contour-line: #3d5559;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.55 var(--display); min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, canvas { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.visually-hidden, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.quiet { color: var(--muted); font-size: .9rem; }

/* ----- header ----- */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; flex-wrap: wrap; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand svg { color: var(--accent); flex: none; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.theme { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme:hover { border-color: var(--accent); color: var(--accent); }

/* ----- hero ----- */
.hero { border-bottom: 1px solid var(--line); }
.hero-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.25rem); }
.wordmark { font-size: clamp(2.9rem, 10.5vw, 7.25rem); font-weight: 800; letter-spacing: -.045em; line-height: .92; font-variation-settings: "opsz" 96; }
.trail { display: block; width: min(520px, 82%); height: auto; color: var(--accent); margin: .35rem 0 0 .2rem; overflow: visible; }
.trail-pin { fill: var(--accent); }
.trail-reveal { stroke-dasharray: 100; stroke-dashoffset: 0; }
.tagline { font-family: var(--text); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--muted); margin-top: 1rem; max-width: 34ch; }
.tally { display: flex; gap: 2.25rem; margin: 0; }
.tally dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tally dd { margin: .15rem 0 0; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
@media (prefers-reduced-motion: no-preference) {
  .trail-reveal { animation: trail 1.6s .15s cubic-bezier(.6, 0, .3, 1) backwards; }
  .trail-pin { animation: pin .35s 1.6s ease-out backwards; transform-origin: 505px 20px; }
  @keyframes trail { from { stroke-dashoffset: 100; } }
  @keyframes pin { from { transform: scale(0); } }
}

/* ----- shared bits ----- */
.where { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.coord { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; color: var(--muted); font-size: .88rem; }
.meta > * + *::before { content: none; }
.pill { display: inline-block; padding: .12rem .55rem; border-radius: 99px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; background: var(--line); color: var(--ink); text-decoration: none; width: fit-content; }
.pill-mark { background: var(--mark-bg); color: var(--mark); }
.pill-ok { background: var(--ok-bg); color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .62rem 1.15rem; border-radius: 99px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 .93rem/1.2 var(--display); text-decoration: none; cursor: pointer; width: fit-content; }
.btn:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: var(--bg); }
.cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--contour-bg); height: auto; }
.flash { padding: .75rem 1rem; border-radius: var(--radius); background: var(--ok-bg); color: var(--ink); margin-block: 1rem; border-left: 4px solid var(--accent); }
.flash-err { background: var(--mark-bg); border-left-color: var(--mark); }
.empty { padding: 3rem 0; color: var(--muted); font-size: 1.05rem; }

/* ----- journal ----- */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: 1.75rem .25rem; }
.filter a { padding: .32rem .8rem; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 500; }
.filter a span { color: var(--muted); font-variant-numeric: tabular-nums; }
.filter a:hover { border-color: var(--accent); }
.filter a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter a[aria-current] span { color: inherit; opacity: .7; }

.lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.25rem); align-items: center; padding-block: 2rem 2.75rem; border-bottom: 1px solid var(--line); }
.lead-pic .cover { box-shadow: var(--shadow); }
.lead-txt { display: flex; flex-direction: column; gap: .9rem; }
.lead h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -.03em; }
.lead h2 a, .card h2 a { color: inherit; text-decoration: none; }
.lead h2 a:hover, .card h2 a:hover { color: var(--accent); }
.sum { font-family: var(--text); font-size: 1.08rem; line-height: 1.55; color: var(--muted); }
.lead .btn { margin-top: .4rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2.5rem 2rem; padding-block: 2.5rem 4rem; }
.card { display: flex; flex-direction: column; gap: .6rem; }
.card-pic { margin-bottom: .35rem; }
.card-pic .cover, .lead-pic .cover { transition: transform .35s ease; }
.card h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.card .sum { font-size: 1rem; }
/* ----- post ----- */
.post-head { padding-block: clamp(2rem, 6vw, 4rem) 1.75rem; display: flex; flex-direction: column; gap: .9rem; }
.post-head h1, .about h1 { font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.04em; max-width: 18ch; }
.post-cover .cover { aspect-ratio: 21 / 10; box-shadow: var(--shadow); }
.prose, .prose-w { max-width: 66ch; margin-inline: auto; }
.prose { font-family: var(--text); font-size: 1.19rem; line-height: 1.72; padding-block: 2.5rem 1rem; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 1.65rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.9em; }
.prose blockquote { margin-inline: 0; padding: .2rem 0 .2rem 1.25rem; border-left: 3px solid var(--accent); font-style: italic; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose hr { border: 0; height: 12px; background: radial-gradient(circle, var(--line) 1.5px, transparent 2px) center / 14px 12px repeat-x; margin-block: 2.5em; }
.prose figure { margin-inline: 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-family: var(--display); font-size: .86rem; color: var(--muted); margin-top: .55rem; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.5rem 0; }
.tags a { padding: .28rem .75rem; border: 1px solid var(--line); border-radius: 99px; font-size: .84rem; color: var(--ink); text-decoration: none; }
.tags a:hover { border-color: var(--accent); color: var(--accent); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 2.5rem; padding-block: 1.5rem; border-block: 1px solid var(--line); }
.pager-a { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: var(--ink); }
.pager-a span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pager-a:hover strong { color: var(--accent); }
.pager-next { text-align: right; }
.about { padding-block: clamp(2rem, 6vw, 4rem) 4rem; display: flex; flex-direction: column; gap: .9rem; }

/* ----- comments ----- */
.comments { padding-bottom: 4.5rem; scroll-margin-top: 80px; }
.comments h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .9rem; padding-block: 1.15rem; border-top: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--contour-bg); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.comment-author .avatar { background: var(--accent); color: var(--accent-ink); }
.comment-by { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; font-size: .95rem; }
.comment-by time { color: var(--muted); font-size: .84rem; }
.comment-text { font-family: var(--text); font-size: 1.06rem; line-height: 1.6; margin-top: .3rem; overflow-wrap: anywhere; }
.comment-form { margin-top: 1.5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: .5rem; }
.comment-form h3 { font-size: 1.15rem; margin-bottom: .3rem; }

/* ----- forms ----- */
label { font-size: .86rem; font-weight: 600; margin-top: .55rem; }
input[type="text"], input[type="password"], input[type="date"], textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--display);
}
.comment-form input, .comment-form textarea, .is-admin input[type="text"], .is-admin input[type="password"], .is-admin input[type="date"], .is-admin textarea { background: var(--surface); }
.comment-form input, .comment-form textarea { background: var(--bg); }
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[type="file"] { font: inherit; font-size: .88rem; max-width: 100%; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: .4rem; }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .6rem; }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 500; font-size: .93rem; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }

/* ----- admin ----- */
.narrow { max-width: 440px; padding-block: 3.5rem; display: flex; flex-direction: column; gap: 1rem; }
.narrow-wide { max-width: 680px; padding-bottom: 4rem; }
.narrow-wide h2 { font-size: 1.15rem; margin-top: 1.75rem; }
.narrow-wide .btn { margin-top: 1rem; }
.narrow h1, .admin-head h1 { font-size: 1.9rem; font-weight: 700; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tabs a { padding: .45rem .9rem; border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.tabs a[aria-current] { background: var(--ink); color: var(--bg); }
.tabs a:hover:not([aria-current]) { background: var(--line); }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.75rem 1rem; }
.table-wrap { overflow-x: auto; margin-bottom: 4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.list { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 620px; }
.list th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.list td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.list tr:last-child td { border-bottom: 0; }
.list td a { text-decoration: none; }
.list .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.list .acts { white-space: nowrap; text-align: right; }
.list .acts a { margin-left: .8rem; font-weight: 600; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; padding-bottom: 2rem; }
.editor-side { position: sticky; top: 80px; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.is-admin .editor-side input[type="text"], .is-admin .editor-side input[type="date"], .is-admin .editor-side textarea { background: var(--bg); }
.editor-side .form-row { margin-top: 0; }
.editor .big { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
#p-body { font-family: var(--text); font-size: 1.1rem; line-height: 1.65; min-height: 26rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.toolbar button { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: 500 .86rem var(--display); cursor: pointer; }
.toolbar button:hover { border-color: var(--accent); color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.thumb { border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.danger { margin-bottom: 4rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.danger summary { cursor: pointer; font-weight: 600; color: var(--danger); }
.mod-list { list-style: none; padding: 0; margin: 0 0 4rem; display: flex; flex-direction: column; gap: .75rem; }
.mod { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mod > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.mod-wait { border-left: 4px solid var(--mark); }
.mod .form-row { margin-top: 0; }

/* ----- footer ----- */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot-in { display: flex; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap; padding-block: 1.5rem; }
.foot a { color: inherit; }

@media (max-width: 820px) {
  .lead { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .post-cover .cover { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
  .nav { gap: 1rem; }
  .tally { gap: 1.5rem; }
  .prose { font-size: 1.1rem; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
}


/* ================= motion, colour and interactive pieces ================= */
@view-transition { navigation: auto; }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 20; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--sun)); }
.brand-needle { transform-origin: 14px 14px; transform: rotate(var(--spin, 0deg)); }
.nav-lost { display: inline-flex; align-items: center; gap: .4rem; padding: .34rem .8rem; border: 1px solid var(--sun); border-radius: 99px; color: var(--sun) !important; font-weight: 600 !important; }
.nav-lost:hover { background: var(--sun); color: var(--sun-ink) !important; }
.btn { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; flex-wrap: wrap; padding-top: 2.75rem; }
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.025em; }
select { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 400 .95rem var(--display); }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(60% 90% at 12% 0%, var(--glow-a), transparent 70%), radial-gradient(50% 80% at 95% 30%, var(--glow-b), transparent 70%), var(--bg); padding-bottom: 1.75rem; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: .5; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); align-items: center; gap: 2rem 3rem; padding-block: clamp(2.25rem, 6vw, 4.25rem) 2rem; }
.hello { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .9rem; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.now { display: inline-flex; align-items: center; gap: .5rem; padding: .28rem .8rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 var(--sun); }
.wordmark { font-size: clamp(2.9rem, 9.4vw, 6.6rem); display: flex; flex-wrap: wrap; gap: 0 .22em; }
.wordmark .w { display: inline-block; }
.wordmark .w-last { color: var(--sun); transform-origin: 8% 0; transform: rotate(-4deg); }
.lastseen { margin-top: 1.1rem; font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 500; }
.typer { color: var(--accent); font-weight: 700; white-space: nowrap; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; background: var(--accent); vertical-align: -.15em; }
.tagline { margin-top: .5rem; }
.hero-acts { margin-top: 1.5rem; }
.compass-box { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
.compass { display: block; width: 100%; max-width: 280px; border-radius: 50%; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 14px 26px rgb(0 0 0 / .14)); }
.compass:hover { transform: scale(1.05) rotate(-3deg); }
.compass svg { display: block; width: 100%; height: auto; }
.c-rim { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.c-face { fill: none; stroke: var(--line); stroke-width: 1; }
.c-ticks line { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.c-letters text { font: 700 20px var(--display); fill: var(--ink); text-anchor: middle; }
.n-north { fill: var(--sun); }
.n-south { fill: var(--ink); opacity: .8; }
.c-hub { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.compass-note { max-width: 30ch; }
.tally { flex-wrap: wrap; gap: 1rem 2.75rem; padding-top: 1.4rem; border-top: 1px dashed var(--line); }
.tally small { font-size: .9rem; color: var(--muted); font-weight: 500; }

/* cards */
.tilt { display: block; position: relative; perspective: 900px; }
.tilt .cover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1)); transition: transform .3s ease, box-shadow .3s ease; will-change: transform; }
.tilt:hover .cover { box-shadow: var(--shadow); }
.stamp { position: absolute; top: 1rem; left: -.5rem; padding: .3rem .9rem; background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 4px; transform: rotate(-6deg); box-shadow: var(--shadow); }
.card h2 a, .lead h2 a { background: linear-gradient(var(--sun), var(--sun)) 0 100% / 0 2px no-repeat; transition: background-size .3s ease, color .2s ease; padding-bottom: 2px; }
.card h2 a:hover, .lead h2 a:hover { background-size: 100% 2px; }
.filter a { transition: transform .15s ease, border-color .15s ease; }
.filter a:hover { transform: translateY(-2px); }
.lost { display: inline-flex; align-items: center; gap: .5rem; }
.lost-dots { display: inline-flex; gap: 3px; }
.lost-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.lost-dots i.on { background: var(--sun); }
.grid { padding-top: 1.5rem; }

/* map */
.map-sec { padding-bottom: 1rem; scroll-margin-top: 70px; }
.map { position: relative; margin-top: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map svg { display: block; width: 100%; height: auto; }
.land { fill: var(--contour-bg); stroke: var(--contour-line); stroke-width: .7; stroke-linejoin: round; }
.route { fill: none; stroke: var(--sun); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .1 7; }
.pin { cursor: pointer; }
.pin-dot { fill: var(--sun); stroke: var(--surface); stroke-width: 2; transition: transform .2s cubic-bezier(.3, 1.8, .5, 1); transform-box: fill-box; transform-origin: center; }
.pin:hover .pin-dot, .pin:focus .pin-dot { transform: scale(1.5); }
.pin:focus { outline: none; }
.pin:focus-visible .pin-dot { stroke: var(--ink); }
.pin-ring { fill: none; stroke: var(--sun); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; }
.map-tip { position: absolute; transform: translate(-50%, calc(-100% - 16px)); padding: .5rem .8rem; background: var(--ink); color: var(--bg); border-radius: 8px; font-size: .84rem; line-height: 1.3; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); z-index: 2; }
.map-tip b { display: block; }
.map-tip span { opacity: .75; }
.map-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; }
.map-list a { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 99px; font-size: .86rem; color: var(--ink); text-decoration: none; }
.map-list a:hover { border-color: var(--sun); color: var(--sun); }

/* meet */
.meet { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem 2.25rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); margin-block: 1rem 4rem; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.6); }
.meet-face { position: relative; width: 128px; height: 128px; display: grid; place-items: center; }
.meet-face::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px dashed var(--sun); }
.meet-face img, .meet-face span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.meet-face span { display: grid; place-items: center; background: var(--sun-bg); color: var(--sun); font-size: 3.4rem; font-weight: 800; }
.meet-txt { display: flex; flex-direction: column; gap: .6rem; }
.meet h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; }
.about-face { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: var(--shadow); margin-top: .5rem; }
.thumb-face { width: 96px; height: 96px; aspect-ratio: 1; border-radius: 50%; }

/* post extras */
.found { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; width: fit-content; padding: .4rem .9rem; border-radius: 99px; background: var(--sun-bg); color: var(--sun); font-size: .9rem; font-weight: 600; }
.found a { color: inherit; }
.react { margin-top: 2.25rem; padding: 1.25rem 1.4rem; border: 1px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: .8rem; }
.react-q { font-weight: 700; font-size: 1.05rem; }
.react-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.react-btn { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font: 600 .9rem var(--display); cursor: pointer; transition: transform .15s ease, border-color .15s ease, background-color .15s ease; }
.react-btn:hover { transform: translateY(-2px); border-color: var(--sun); }
.react-btn b { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 1ch; }
.react-btn[aria-pressed="true"] { background: var(--sun-bg); border-color: var(--sun); color: var(--sun); }
.react-btn[aria-pressed="true"] b { color: inherit; }
.react-btn::after { content: ""; position: absolute; inset: 0; border-radius: 99px; border: 2px solid var(--sun); opacity: 0; pointer-events: none; }
.avatar[data-h] { background: hsl(var(--h) 60% 50% / .16); color: hsl(var(--h) 60% var(--avatar-l)); }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .brand-needle { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
  .brand:hover .brand-needle { transform: rotate(calc(var(--spin, 0deg) + 360deg)); }
  .theme:active svg { transform: rotate(180deg); }
  .theme svg { transition: transform .4s ease; }
  .wordmark .w { animation: drop .7s cubic-bezier(.2, 1.3, .4, 1) backwards; }
  .wordmark .w:nth-child(2) { animation-delay: .12s; }
  .wordmark .w:nth-child(3) { animation-delay: .24s; }
  .wordmark .w-last { animation: drop-last .9s .3s cubic-bezier(.2, 1.3, .4, 1) backwards, swing 5s 1.4s ease-in-out infinite; }
  .hello, .lastseen, .tagline, .hero-acts { animation: rise .7s .55s ease backwards; }
  .compass-box { animation: rise .9s .35s ease backwards; }
  .pulse { animation: pulse 1.8s ease-out infinite; }
  .caret { animation: blink 1s steps(2) infinite; }
  .compass.spinning #needle { animation: spin .9s cubic-bezier(.4, 0, .2, 1); }
  .stamp { animation: stamp .5s .8s cubic-bezier(.2, 1.8, .4, 1) backwards; }
  .route { animation: march 1.6s linear infinite; }
  .pin-ring { animation: ping 2.4s ease-out infinite; animation-delay: var(--pd, 0s); }
  .pin { animation: pin-in .5s cubic-bezier(.2, 1.8, .4, 1) backwards; animation-delay: var(--pd, 0s); transform-box: fill-box; transform-origin: center; }
  .meet-face::before { animation: spin 40s linear infinite; }
  .react-btn.pop { animation: pop .4s cubic-bezier(.2, 1.8, .4, 1); }
  .react-btn.pop::after { animation: burst .5s ease-out; }
  .flash { animation: rise .4s ease backwards; }
  .hero { animation: glow 16s ease-in-out infinite alternate; background-size: 140% 140%, 140% 140%, auto; }
  @keyframes drop { from { opacity: 0; transform: translateY(46px) rotate(4deg); } }
  @keyframes drop-last { from { opacity: 0; transform: translateY(-60px) rotate(18deg); } }
  @keyframes swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-1deg); } }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
  @keyframes pulse { to { box-shadow: 0 0 0 10px transparent; } }
  @keyframes blink { 50% { opacity: 0; } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(2.2); } }
  @keyframes march { to { stroke-dashoffset: -7.1; } }
  @keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(3.4); opacity: 0; } }
  @keyframes pin-in { from { opacity: 0; transform: scale(0); } }
  @keyframes pop { 40% { transform: scale(1.14); } }
  @keyframes burst { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.5, 2); } }
  @keyframes glow { to { background-position: 30% 20%, 70% 60%, 0 0; } }
}
.compass.spinning #needle { transform-box: fill-box; transform-origin: center; }

@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; }
  .compass { max-width: 190px; }
  .nav-lost span { display: none; }
  .nav-lost { padding: .4rem; }
}
@media (max-width: 480px) {
  .meet { grid-template-columns: 1fr; justify-items: start; }
  .meet-face { width: 96px; height: 96px; margin: 9px; }
  .map-tip { font-size: .78rem; }
  .nav { gap: .85rem; }
}
