/* Layout idea: one bright full-bleed ground, a lowercase nav strip, and white
   "index cards" with hard ink outlines. Single theme by choice. */
:root {
  color-scheme: light;
  --ground: #FFDD00;      /* the bright color; swapped by the palette picker */
  --ink: #14120B;
  --card: #FFFFFF;
  --mark: #FF4D8D;        /* highlighter for tags and hovers */
  --soft: rgba(20, 18, 11, .62);
  --rule: rgba(20, 18, 11, .16);
  --display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --measure: 40rem;
}
:root[data-ground="mint"]   { --ground: #3DF2B4; --mark: #FF5B2E; }
:root[data-ground="pink"]   { --ground: #FF9BD2; --mark: #FFE100; }
:root[data-ground="sky"]    { --ground: #6ED6FF; --mark: #FF4D8D; }
:root[data-ground="orange"] { --ground: #FF8A1F; --mark: #FFF36B; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  transition: background-color .25s ease;
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--mark); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 18px; }

/* nav */
header { position: sticky; top: 0; z-index: 5; background: var(--ground); border-bottom: 2px solid var(--ink); transition: background-color .25s ease; }
nav { display: flex; gap: 4px 2px; flex-wrap: wrap; align-items: center; padding: 10px 0; font-family: var(--mono); font-size: .875rem; }
nav a { text-decoration: none; padding: 5px 9px; border: 2px solid transparent; border-radius: 999px; }
nav a:hover { background: transparent; border-color: var(--ink); }
nav a[aria-current="page"] { background: var(--ink); color: var(--ground); }
nav .brand { font-family: var(--display); font-weight: 800; font-size: 1.05rem; padding-left: 0; margin-right: auto; letter-spacing: -.01em; }
nav .brand:hover { border-color: transparent; text-decoration: underline; }

@media (max-width: 520px) {
  nav { padding: 8px 0; }
  nav .brand { flex-basis: 100%; padding-bottom: 0; }
  nav a[data-nav] { padding: 4px 7px; font-size: .78rem; }
  nav a[data-nav]:first-of-type { margin-left: -8px; }
}

.me { display: block; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); margin: 4px auto 24px; }
@media (min-width: 760px) { .me { width: 160px; height: 160px; } }

/* soft gradient ground */
:root { --ground: #FBF8F5; }
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: calc(100vh + 160px); height: 100lvh; z-index: -1;
  background: linear-gradient(160deg, #FFF1E0 0%, #FFE9EE 34%, #F1E9FF 68%, #E6F0FF 100%);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 226, 190, .55) 0%, rgba(255, 226, 190, .38) 22%, rgba(255, 226, 190, .2) 44%, rgba(255, 226, 190, .07) 64%, rgba(255, 226, 190, 0) 82%),
    radial-gradient(120% 90% at 100% 100%, rgba(205, 222, 255, .6) 0%, rgba(205, 222, 255, .4) 22%, rgba(205, 222, 255, .2) 44%, rgba(205, 222, 255, .07) 64%, rgba(205, 222, 255, 0) 82%),
    linear-gradient(in oklch 160deg, #FFF3E6 0%, #FFE9EF 36%, #F1EAFF 70%, #E9F1FF 100%); }
body::after { content: ""; position: fixed; top: 0; left: 0; right: 0; height: calc(100vh + 160px); height: 100lvh; z-index: -1; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
header { background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.note { background: rgba(255, 255, 255, .6); }

.timeline { margin: 26px 0 0 7px; padding-left: 22px; border-left: 2px solid var(--ink); }
.stop { position: relative; padding: 0 0 26px; }
.stop::before { content: ""; position: absolute; left: -31px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--mark); border: 2px solid var(--ink); }
.stop summary { cursor: pointer; list-style: none; display: block; }
.stop summary::-webkit-details-marker { display: none; }
details.stop { scroll-margin-top: 70px; }
.fig { margin: 18px 0 22px; }
.fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig .b { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; fill: var(--ink); }
.fig .cap { font-family: var(--mono); font-weight: 700; font-size: 16px; letter-spacing: .08em; fill: var(--ink); }
.fig .note { font-family: var(--mono); font-size: 15px; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 6px; }
.cmps { margin: 18px 0 22px; border-top: 2px solid var(--ink); }
.cmp { padding: 12px 0; border-bottom: 2px solid var(--ink); }
.cmp h4 { font-family: var(--display); font-weight: 800; font-size: 1.05rem; margin: 0 0 6px; letter-spacing: -.01em; }
.article .cmp p { margin: 0 0 4px; }
.cmp p span { display: block; font-family: var(--mono); font-size: .72rem; color: var(--soft); }
.vs { margin: 8px 0 18px; }
.vs svg { display: block; width: 100%; height: auto; }
.vs .c1 { font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: -.02em; fill: var(--ink); }
.vs .c2 { font-family: var(--mono); font-size: 18px; fill: var(--ink); }
.vs .mid { font-family: var(--mono); font-weight: 700; font-size: 20px; fill: var(--ink); }
.path { margin: 10px 0 18px; }
.path svg { display: block; width: 100%; height: auto; }
.path rect { stroke: var(--ink); stroke-width: 2; }
.path .f1 { fill: #FFE1B8; } .path .f2 { fill: #FFC2D6; } .path .f3 { fill: #CFD9FF; }
.path .fld { font-family: var(--mono); font-size: 18px; fill: var(--ink); }
.path .co { font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: -.02em; fill: var(--ink); }
.path .sub { font-family: var(--mono); font-size: 17px; fill: var(--ink); }
.path line { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.usmap { margin: 6px 0 18px; }
.usmap svg { display: block; width: 100%; height: auto; }
.usmap .land { fill: #FFF6EA; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.usmap .borders { fill: none; stroke: var(--ink); stroke-opacity: .13; stroke-width: 1; }
.usmap .route path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 5 6; stroke-linecap: round; }
.usmap .pins circle { fill: var(--mark); stroke: var(--ink); stroke-width: 2; }
.usmap .pins text { font-family: var(--mono); font-size: 23px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #FFF6EA; stroke-width: 7px; stroke-linejoin: round; }
.stop summary time { display: block; font-family: var(--mono); font-size: .8rem; margin-bottom: 3px; }
.stop .place { display: block; font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.1; }
.stop .place::after { content: "\00a0+"; font-family: var(--mono); font-weight: 400; font-size: 1rem; }
.stop[open] .place::after { content: "\00a0−"; }
.tripnote { margin: 8px 0 14px; }
.tripnote a { text-decoration: underline; }
p.where { font-family: var(--mono); font-size: .74rem; color: var(--soft); margin: 0 0 14px; }
.photos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.photos img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink); }
.soon { font-family: var(--mono); font-size: .86rem; border: 2px dashed var(--ink); border-radius: 14px; padding: 16px 18px; margin: 0; }

#view-home > .kicker, #view-home > h1.one { text-align: center; }

.lede a { text-decoration: underline; }

.links { display: flex; flex-wrap: wrap; gap: 8px; }
a.pill { font-family: var(--mono); font-size: .8rem; text-decoration: none; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; box-shadow: 3px 3px 0 var(--ink); }
a.pill:hover { background: var(--mark); }

/* views */
main.wrap { padding-top: 28px; padding-bottom: 56px; }
.view { display: none; }
.view.on { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.9rem, 13vw, 5.4rem); }
h1.one { font-size: clamp(2.3rem, 10.6vw, 2.8rem); }
@media (min-width: 760px) { h1.one { white-space: nowrap; } }
.page-title { font-size: clamp(2.4rem, 10vw, 4rem); margin-bottom: 8px; }
.lede { font-size: 1.2rem; line-height: 1.45; max-width: 34rem; margin: 30px 0 0; }
.kicker { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 12px; }
.section-head h2 { font-size: 1.6rem; }
.section-head a { font-family: var(--mono); font-size: .82rem; }

/* cards */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); }
.stack { display: grid; gap: 16px; }
.post { display: block; padding: 16px 18px 15px; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.post:hover { background: var(--card); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.post h3 { font-size: 1.32rem; line-height: 1.12; margin: 6px 0 7px; }
.post p { margin: 0; font-size: .98rem; line-height: 1.45; color: var(--soft); }
.meta { font-family: var(--mono); font-size: .74rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-variant-numeric: tabular-nums; }
.tag { background: var(--mark); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 7px; line-height: 1.5; }
.sample { border: 1.5px dashed var(--ink); border-radius: 4px; padding: 0 5px; line-height: 1.5; }

/* archive list */
.year { font-family: var(--display); font-weight: 800; font-size: 1.1rem; margin: 26px 0 6px; }
.archive { list-style: none; margin: 0; padding: 0 18px; }
.archive li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--rule); }
.archive li:first-child { border-top: 0; }
.archive time { font-family: var(--mono); font-size: .76rem; padding-top: 4px; font-variant-numeric: tabular-nums; }
.archive a { font-family: var(--display); font-weight: 800; font-size: 1.06rem; line-height: 1.2; text-decoration: none; }
.archive a:hover { text-decoration: underline; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 4px; }
.filters button { font: 700 .76rem var(--mono); color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

/* grid tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 16px; margin-top: 20px; }
.tile { padding: 18px; }
.tile h3 { font-size: 1.3rem; margin-bottom: 6px; }
.tile p { margin: 0; font-size: .98rem; line-height: 1.45; }
.tile .meta { margin-bottom: 10px; }
.slot { border: 2px dashed var(--ink); border-radius: 14px; padding: 18px; font-family: var(--mono); font-size: .8rem; display: grid; place-items: center; min-height: 7rem; text-align: center; }

/* article */
.article { padding: 22px 20px 26px; margin-top: 18px; }
.article h1 { font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.04; margin: 10px 0 12px; }
.article h2 { font-size: 1.45rem; margin: 30px 0 8px; }
.article p, .article li { max-width: var(--measure); }
.article p { margin: 0 0 14px; }
.toc { border: 2px solid var(--ink); border-radius: 10px; padding: 10px 14px; margin: 16px 0 20px; font-family: var(--mono); font-size: .8rem; }
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: 8px 0 2px; padding-left: 1.3rem; }
.eq { font-family: var(--body); font-style: italic; font-size: 1.12rem; text-align: center; padding: 12px 8px; border-block: 1px solid var(--rule); margin: 16px 0; overflow-x: auto; white-space: nowrap; }
pre { background: var(--ink); color: #F6F2E4; font: .8rem/1.55 var(--mono); padding: 14px 16px; border-radius: 10px; overflow-x: auto; margin: 16px 0; }
pre .c { color: #A9A38F; }
.note { background: var(--ground); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 14px; font-size: .96rem; margin: 18px 0; transition: background-color .25s ease; }
.refs { font-size: .92rem; padding-left: 1.3rem; }
.article ul.steps { list-style: none; padding: 0; margin: 16px 0; border-top: 2px solid var(--ink); }
.steps li { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--rule); }
.steps b { display: block; font-family: var(--mono); font-size: .82rem; margin-bottom: 4px; }
.article ul, .article ol { margin: 0 0 14px; padding-left: 1.3rem; }
.article li { margin-bottom: 7px; }
.article h3 { font-size: 1.15rem; line-height: 1.2; margin: 24px 0 8px; letter-spacing: -.01em; }
.article figure { margin: 20px 0; }
.article figure img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 10px; }
.article figcaption, .where, .credit { font-family: var(--mono); font-size: .74rem; line-height: 1.5; color: var(--soft); }
.article figcaption { margin-top: 7px; }
.article p.where { margin: -2px 0 12px; }
.article p.credit { margin: 18px 0 0; }
.refs a, .article p a { text-decoration: underline; }
.back { font-family: var(--mono); font-size: .82rem; }

/* footer */
footer { border-top: 2px solid var(--ink); padding: 18px 0 30px; font-family: var(--mono); font-size: .78rem; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.swatches { display: flex; gap: 8px; align-items: center; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer; padding: 0; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ink); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- calmer look (Nov 2026): overrides the first-version card style above ---- */
/* calmer direction: paper ground, hairlines, no offset shadows, one quiet accent */
:root { --ground: #FBFAF7; --ink: #1B1A17; --mark: #B4472E; --soft: rgba(27,26,23,.6); --rule: rgba(27,26,23,.14);
  --display: "Source Serif 4", Georgia, serif; }
body { background: var(--ground); }
body::before, body::after { display: none; }
.wrap { max-width: 40rem; padding: 0 22px; }
a:hover { background: transparent; color: var(--mark); }

header { position: static; background: transparent; border-bottom: 1px solid var(--rule); -webkit-backdrop-filter: none; backdrop-filter: none; }
nav { padding: 18px 0 14px; font-family: var(--body); font-size: .95rem; gap: 2px 16px; }
nav a { padding: 0; border: 0; border-radius: 0; color: var(--soft); }
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] { background: transparent; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
nav .brand { font-family: var(--body); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
@media (max-width: 520px) { nav a[data-nav] { padding: 0; font-size: .92rem; } nav a[data-nav]:first-of-type { margin-left: 0; } nav .brand { padding-bottom: 6px; } }

h1, h2, h3 { font-weight: 600; letter-spacing: -.012em; line-height: 1.15; }
h1.one, .page-title { font-size: 1.9rem; }
#view-home > .kicker, #view-home > h1.one { text-align: left; }
.me { width: 84px; height: 84px; margin: 6px 0 20px; border: 0; box-shadow: none; }
.wave { display: none; }
.kicker { color: var(--soft); letter-spacing: .1em; font-size: .7rem; }
.lede { font-size: 1.08rem; line-height: 1.6; margin-top: 16px; max-width: none; }
.section-head { margin: 44px 0 4px; }
.section-head h2 { font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }

.card { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.stack { gap: 0; }
.post { padding: 18px 0; border-bottom: 1px solid var(--rule); transition: none; }
.post:hover { background: transparent; transform: none; box-shadow: none; color: inherit; }
.post:hover h3 { color: var(--mark); }
.post h3 { font-size: 1.2rem; line-height: 1.25; margin: 5px 0 5px; }
.meta { color: var(--soft); font-size: .7rem; }
.tag { background: transparent; border: 0; padding: 0; color: var(--mark); }
.tag::before { content: "· "; color: var(--soft); }
.tile { padding: 18px 0; border-bottom: 1px solid var(--rule); }

.article { padding: 0; margin-top: 14px; }
.article h1 { font-size: 2rem; line-height: 1.15; margin: 10px 0 18px; }
.article h2 { font-size: 1.4rem; margin: 38px 0 10px; }
.article h3 { font-size: 1.12rem; }
.article figure img, .photos img { border: 0; border-radius: 6px; box-shadow: none; }
.back { color: var(--soft); }
.timeline { border-left: 1px solid var(--rule); }
.stop::before { width: 9px; height: 9px; left: -27px; top: 7px; border: 0; background: var(--ink); }
.stop .place { font-size: 1.2rem; line-height: 1.25; }
.stop summary time { color: var(--soft); font-size: .72rem; }

footer { border-top: 1px solid var(--rule); color: var(--soft); }
a.pill { background: transparent; border: 0; box-shadow: none; padding: 0; margin-right: 6px; font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.pill:hover { background: transparent; }
a { text-decoration-thickness: 1px; }
/* smaller type */
body { font-size: 1rem; line-height: 1.62; }
h1.one, .page-title { font-size: 1.6rem; }
.lede { font-size: 1rem; }
.post h3 { font-size: 1.08rem; }
.post p, .tile p { font-size: .93rem; }
.tile h3 { font-size: 1.08rem; }
.article h1 { font-size: 1.65rem; }
.article h2 { font-size: 1.22rem; margin: 34px 0 8px; }
.article h3 { font-size: 1.03rem; }
.stop .place { font-size: 1.08rem; }
nav { font-size: .9rem; }
nav .brand { font-size: 1rem; }
@media (max-width: 520px) { nav a[data-nav] { font-size: .88rem; } }
