/* Glacier: ice blue, slate, one hot orange. Trail Map type. */
:root {
  --bg: #e4ecf0; --fg: #1c2b36; --mute: #4a6273; --rule: #c6d5dd;
  --sea: #1c2b36; --sea-fg: #e4ecf0; --dot: #4a6273;
  --accent: #b7360a; --accent-fg: #ffffff; --hot: #ff5a36; --teal: #1f6ea8; --been: #5aa9e6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a22; --fg: #e4ecf0; --mute: #aabccb; --rule: #243441;
    --sea: #1c2b36; --sea-fg: #e4ecf0; --dot: #4a6273;
    --accent: #ff5a36; --accent-fg: #0f1a22; --hot: #ff5a36; --teal: #5aa9e6; --been: #5aa9e6;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a22; --fg: #e4ecf0; --mute: #aabccb; --rule: #243441;
  --sea: #1c2b36; --sea-fg: #e4ecf0; --dot: #4a6273;
  --accent: #ff5a36; --accent-fg: #0f1a22; --hot: #ff5a36; --teal: #5aa9e6; --been: #5aa9e6;
}

/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Barlow", "Helvetica Neue", Arial, sans-serif; font-size: 1.0625rem; line-height: 1.55; }
.display, h2, .btn, .lede, .rail h1, .now h3, .log h2.t, .tracker b { font-family: "Big Shoulders Display", "Barlow Condensed", Impact, sans-serif; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--rule); }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1rem; }
h2 { margin: 0 0 1.25rem; font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* Frame */
.page { max-width: 68rem; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 16rem 1fr; gap: 5rem; }
.main { padding: 3.5rem 0 5rem; min-width: 0; }
section { padding: 2.75rem 0; border-top: 1px solid var(--rule); }
section:first-child { border-top: 0; padding-top: 0; }

/* Rail */
.rail { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; padding: 3.5rem 0 2.5rem; }
.rail .who { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.rail img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; filter: grayscale(100%); }
.rail h1 { margin: 0; font-size: 1.35rem; font-weight: 900; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.rail h1 small { display: block; font-family: "Barlow", sans-serif; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--mute); font-size: .9rem; margin-top: .25rem; }
.rail .rail-h { margin: 0; font-family: "Big Shoulders Display", "Barlow Condensed", Impact, sans-serif; font-size: 1.35rem; font-weight: 900; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.rail .rail-h small { display: block; font-family: "Barlow", sans-serif; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--mute); font-size: .9rem; margin-top: .25rem; }
.rail nav { display: flex; flex-direction: column; gap: .2rem; margin: .5rem 0 auto; }
.rail nav a { text-decoration: none; color: var(--mute); padding: .25rem 0; }
.rail nav a:hover, .rail nav a.on { color: var(--fg); }
.rail nav a.on { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--mute); margin-bottom: .9rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.rail .links { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .9rem; color: var(--mute); }
.rail .links a { text-decoration: none; display: inline-block; padding: .25rem 0; }
.rail .links a:hover { color: var(--accent); }

/* Hero */
.lede { font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: .95; letter-spacing: .01em; font-weight: 900; text-transform: uppercase; max-width: 24ch; margin: 0 0 1.25rem; text-wrap: balance; }
.lede em { font-style: normal; color: var(--accent); }
.hero p { color: var(--mute); max-width: 40rem; }
.hero p strong { color: var(--fg); font-weight: 600; }
.actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); padding: .7rem 1.2rem; border-radius: 4px; text-decoration: none; font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.quiet { text-decoration: none; color: var(--mute); }
.quiet:hover { color: var(--accent); }

/* Map */
.map { background: var(--sea); color: var(--sea-fg); border-radius: 8px; padding: 1rem 1rem .75rem; }
.map svg { width: 100%; height: auto; display: block; }
.dots { fill: none; stroke: var(--dot); stroke-width: 3.4; stroke-linecap: round; }
.stop { fill: var(--hot); }
.stop.now { fill: var(--sea-fg); stroke: var(--sea); stroke-width: 2; }
.halo { fill: var(--hot); opacity: .16; }
.halo.now { fill: var(--sea-fg); opacity: .22; }
.been { fill: var(--sea); stroke: var(--been); stroke-width: 2; }
.lbl { font-family: "Barlow", sans-serif; font-size: 13px; fill: var(--sea-fg); paint-order: stroke; stroke: var(--sea); stroke-width: 4px; stroke-linejoin: round; }
.lbl.muted { fill: var(--been); }
.map-note { font-size: .9rem; opacity: .75; margin: .25rem 0 0; }
.tracker { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tracker p { margin: 0; color: var(--mute); font-size: .95rem; line-height: 1.6; }
.tracker b { display: block; font-size: 2.2rem; font-weight: 900; line-height: 1; margin-bottom: .3rem; color: var(--fg); font-variant-numeric: tabular-nums; }
.tracker .k-been b { color: var(--teal); }
.tracker .k-next b { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  #map.anim .stop, #map.anim .halo, #map.anim .lbl { opacity: 0; transition: opacity .6s ease; }
  #map.anim.show .stop, #map.anim.show .lbl { opacity: 1; }
  #map.anim.show .halo { opacity: .16; }
  #map.anim.show .halo.now { opacity: .22; }
  #map.anim.show .lbl { transition-delay: .25s; }
}
@media (prefers-reduced-motion: reduce) { #map .halo { opacity: .16; } }

/* Timeline */
.eras { list-style: none; margin: 0; padding: 0 0 0 1.4rem; position: relative; max-width: 40rem; }
.eras::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 1px; background: var(--rule); }
.eras li { position: relative; padding: 0 0 1.25rem; color: var(--mute); }
.eras li::before { content: ""; position: absolute; left: -1.4rem; top: .55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--mute); }
.eras li:nth-last-child(2)::before { border-color: var(--accent); background: var(--accent); }
.eras i { display: block; font-style: normal; font-size: .85rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.eras b { display: block; color: var(--fg); font-weight: 600; }

/* Now */
.now { max-width: 40rem; }
.now .wk { color: var(--mute); font-size: .9rem; margin-bottom: .25rem; }
.now h3 { margin: 0 0 .75rem; font-size: 1.9rem; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.now p { color: var(--mute); margin-bottom: .6rem; }
.now p b { color: var(--fg); font-weight: 600; }
.now .more { color: var(--accent); text-decoration: none; font-weight: 500; }
.now .more:hover { text-decoration: underline; }

/* Lists and prose */
.list { list-style: none; margin: 0 0 2rem; padding: 0; max-width: 40rem; }
.list li { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--rule); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list a.n { text-decoration: none; font-weight: 600; }
.list a.n:hover { color: var(--accent); }
.list span { color: var(--mute); }
.list span b { color: var(--fg); font-weight: 500; }
.prose { max-width: 40rem; }
.prose p { color: var(--mute); }
.prose p b { color: var(--fg); font-weight: 600; }
.prose h2 { margin-top: 2rem; }

/* Writing */
.essays { list-style: none; padding: 0; margin: 0; max-width: 40rem; }
.essays li { display: flex; align-items: baseline; gap: .6rem; padding: .6rem 0; border-top: 1px solid var(--rule); }
.essays li:first-child { border-top: 0; padding-top: 0; }
.essays a { text-decoration: none; flex: 1; }
.essays a:hover { color: var(--accent); }
.essays time { color: var(--mute); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { color: var(--mute); }
.sub { margin-top: 1rem; color: var(--mute); max-width: 40rem; }
.sub a { color: var(--accent); text-decoration: none; font-weight: 500; }
.sub a:hover { text-decoration: underline; }

/* Contact */
.contact { max-width: 40rem; }
.contact .who-for { color: var(--mute); margin-bottom: 1.5rem; }
.contact .who-for b { color: var(--fg); font-weight: 600; }
.form { display: grid; gap: .9rem; }
.form label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: var(--mute); }
.form input, .form select, .form textarea { font: inherit; color: var(--fg); background: transparent; border: 1px solid var(--rule); border-radius: 4px; padding: .6rem .75rem; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form textarea { resize: vertical; min-height: 6rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form .send { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .25rem; }
.form .fine { margin: 0; font-size: .9rem; color: var(--mute); }
.hp { display: none; }

footer { border-top: 1px solid var(--rule); padding-top: 1.5rem; color: var(--mute); font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { display: inline-block; padding: .25rem 0; }

/* Now page */
.log { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
.log li { border-top: 1px solid var(--rule); padding: 1.5rem 0; }
.log li:first-child { border-top: 0; padding-top: 0; }
.log .wk { color: var(--mute); font-size: .9rem; margin-bottom: .25rem; }
.log h2.t { margin: 0 0 .75rem; font-size: 1.9rem; font-weight: 900; line-height: 1; letter-spacing: .01em; color: var(--fg); }
.log p { color: var(--mute); margin-bottom: .6rem; }
.log p b { color: var(--fg); font-weight: 600; }
.crumb { color: var(--mute); font-size: .9rem; margin-bottom: 1rem; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }
h1.lede { font-size: clamp(2.1rem, 3.6vw, 3rem); }

/* Phone */
@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .rail { position: static; height: auto; padding: 1.5rem 0 1.25rem; border-bottom: 1px solid var(--rule); }
  .rail nav { display: none; }
  .main { padding-top: 2rem; }
  section { padding: 2.5rem 0; }
  .map { padding: .9rem .9rem .75rem; }
  .lbl { font-size: 18px; }
  .lbl.muted { display: none; }
  .tracker, .form .row, .list li { grid-template-columns: 1fr; }
  .list li { gap: .15rem; }
}

/* Favorite content: same rows as Work, pulled up under the prose heading */
.list.fav { margin-top: -.25rem; }

/* The Floor teaser on the homepage, plus the option colors The Floor shares */
:root { --o0: #b7360a; --o1: #1f6ea8; --o2: #4a6273; --o3: #6a4c9c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --o0: #ff5a36; --o1: #5aa9e6; --o2: #aabccb; --o3: #b9a4e8; } }
:root[data-theme="dark"] { --o0: #ff5a36; --o1: #5aa9e6; --o2: #aabccb; --o3: #b9a4e8; }
.teaser { max-width: 40rem; }
.teaser-k { margin: 0 0 .4rem; color: var(--mute); font-size: .9rem; }
.teaser-q { display: block; font-family: "Big Shoulders Display", "Barlow Condensed", Impact, sans-serif; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; text-decoration: none; margin-bottom: .9rem; text-wrap: balance; }
.teaser-q:hover { color: var(--accent); }
.teaser-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--rule); }
.teaser-bar .seg { display: block; height: 100%; }
.seg.o0, .sw.o0 { background: var(--o0); } .seg.o1, .sw.o1 { background: var(--o1); } .seg.o2, .sw.o2 { background: var(--o2); } .seg.o3, .sw.o3 { background: var(--o3); }
.teaser-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .55rem 0 0; font-size: .95rem; }
.teaser-legend .lg { display: inline-flex; align-items: center; gap: .4rem; }
.teaser-legend .sw { width: .7rem; height: .7rem; border-radius: 2px; display: inline-block; }
.teaser-meta { color: var(--mute); }
.teaser .actions { margin-top: 1.25rem; }

/* Streamlined homepage bits */
.hero p a { text-decoration-color: var(--accent); }
.hero p a:hover strong { color: var(--accent); }
.prose p b a { text-decoration-color: var(--accent); }
.aside { color: var(--mute); max-width: 40rem; margin: 1.25rem 0 0; }
.aside + .aside { margin-top: .6rem; }
.aside b { color: var(--fg); font-weight: 600; }
#writing .teaser { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }

/* Replaces inline style attributes so the security policy can block inline styles on static pages */
.note-p { max-width: 44rem; color: var(--mute); }
.page.single { grid-template-columns: 1fr; }
.main.narrow { max-width: 44rem; }
