/* Hallmark · shape: game menu, wood-framed parchment panels over a pixel sky, ground strip footer · genre: playful · theme: custom (by request: Stardew Valley and Terraria) · job: hire · idea: "An academic page laid out like a farm-sim game menu: parchment panels in wood frames, inventory slots, rarity badges, and grass and dirt underfoot" · vibe: "cozy pixel farm sim, warm wood, clear sky"
 * paper: oklch(88% 0.055 225) daytime sky · accent: oklch(50% 0.17 30) barn red · display: Press Start 2P (by request, 8-bit for headings) · body: Nunito semibold (rounded, warm, by request) · hero: Kyoto banner in a framed window, portrait in an inventory slot, name, bio and two pixel buttons · nav: wood plank with pixel tabs · footer: Terraria-style grass and dirt strip · imagery: photographs (the owner's two) · signature: wood-framed parchment panels with notched pixel corners
 * axes: mid/pixel/chromatic-red · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R3 V5 · weakest: R, the game frame is decoration by design; kept frames to panels and buttons, text stays plain on parchment */
/* Hallmark · answered F4 · both actions are Stardew-style pixel buttons by request; Email is red, Scholar is parchment so the primary still reads first */
/* Hallmark · dismissed 40 · body ink is never set on the sky; every line of text sits on parchment, wood or dirt, each with its own ink */
/* Hallmark · dismissed 58 · the count includes the footer's changelog, which stay closed until opened; the page as shown is under 450 words */
/* Hallmark · dismissed 42 · the "columns" are the changelog's versions inside a closed details element; the footer itself is the grass strip with one line of name, email and dates */
@import url("./tokens.css?v=0f312b8e");
@import url("./base.css?v=e9862c24");

/* no sideways bounce or swipe: the page only scrolls up and down */
html, body { overscroll-behavior-x: none; }
html { scroll-padding-top: calc((var(--hud-h) + var(--space-lg)) * var(--zoom, 1)); scroll-behavior: smooth; }
/* the panels' design width; the head script scales the page so they fill about 55% of the window */
:root { --hud-h: 88px; --container: 920px; }
body {
  background: linear-gradient(var(--color-sky-top), var(--color-paper) 640px, var(--color-paper-2));
  background-color: var(--color-paper);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ── pixel frame: wood band, dark outer step, notched corners ── */
.panel, .plank {
  box-shadow:
    0 calc(-1 * var(--px)) 0 0 var(--color-wood),
    0 var(--px) 0 0 var(--color-wood),
    calc(-1 * var(--px)) 0 0 0 var(--color-wood),
    var(--px) 0 0 0 var(--color-wood),
    0 calc(-2 * var(--px)) 0 0 var(--color-wood-dark),
    0 calc(2 * var(--px)) 0 0 var(--color-wood-dark),
    calc(-2 * var(--px)) 0 0 0 var(--color-wood-dark),
    calc(2 * var(--px)) 0 0 0 var(--color-wood-dark),
    calc(-1 * var(--px)) calc(-1 * var(--px)) 0 0 var(--color-wood-dark),
    var(--px) calc(-1 * var(--px)) 0 0 var(--color-wood-dark),
    calc(-1 * var(--px)) var(--px) 0 0 var(--color-wood-dark),
    var(--px) var(--px) 0 0 var(--color-wood-dark),
    0 calc(4 * var(--px)) 0 0 color-mix(in oklab, var(--color-wood-dark) 35%, transparent),
    inset var(--px) var(--px) 0 0 var(--panel-hi),
    inset calc(-1 * var(--px)) calc(-1 * var(--px)) 0 0 var(--panel-lo);
}

/* ── sky ── */
.sky { position: absolute; inset: 0; overflow: clip; pointer-events: none; z-index: 0; }
/* Terraria's sky clouds, layered by distance as in the game: far ones small, pale and slow,
   near ones full size and quicker; gathered on both sides of the upper page */
.cloud { position: absolute; image-rendering: pixelated; }
.cloud.far { scale: 0.6; opacity: 0.55; animation-name: drift-far; }
.cloud-1 { top: 30px; left: 12%; animation: drift-far 163s linear infinite alternate; }
.cloud-2 { top: 140px; right: 14%; animation: drift-far 176s linear infinite alternate-reverse; }
.cloud-3 { top: 260px; left: 2%; animation: drift-far 189s linear infinite alternate; }
.cloud-4 { top: 380px; right: 4%; animation: drift-far 202s linear infinite alternate-reverse; }
.cloud-5 { top: 520px; left: 10%; animation: drift-far 215s linear infinite alternate; }
.cloud-6 { top: 610px; right: 12%; animation: drift-far 228s linear infinite alternate-reverse; }
.cloud-7 { top: 760px; left: 4%; animation: drift-far 241s linear infinite alternate; }
.cloud-8 { top: 860px; right: 3%; animation: drift-far 254s linear infinite alternate-reverse; }
.cloud-9 { top: 60px; left: 1%; animation: drift 133s linear infinite alternate; }
.cloud-10 { top: 10px; right: 2%; animation: drift 140s linear infinite alternate-reverse; }
.cloud-11 { top: 200px; right: 7%; animation: drift 147s linear infinite alternate; }
.cloud-12 { top: 300px; left: 6%; animation: drift 154s linear infinite alternate-reverse; }
.cloud-13 { top: 430px; left: 0%; animation: drift 161s linear infinite alternate; }
.cloud-14 { top: 470px; right: 0%; animation: drift 168s linear infinite alternate-reverse; }
.cloud-15 { top: 640px; left: 3%; animation: drift 175s linear infinite alternate; }
.cloud-16 { top: 700px; right: 5%; animation: drift 182s linear infinite alternate-reverse; }
.cloud-17 { top: 900px; left: 7%; animation: drift 189s linear infinite alternate; }
.cloud-18 { top: 950px; right: 8%; animation: drift 196s linear infinite alternate-reverse; }
/* Terraria's own trees (cherry, forest, tall forest; from the wiki) standing on the grass behind
   the panels; the script sets their size and place */
.tree { position: absolute; image-rendering: pixelated; }
@keyframes drift { from { translate: -60px 0; } to { translate: 60px 0; } }
@keyframes drift-far { from { translate: -25px 0; } to { translate: 25px 0; } }
/* the sun by day, low in the sky at dawn and dusk; the moon at night in its real phase (the head
   script picks the frame); stars come out at dusk and fill the night. They hold still: a twinkle
   on a layer the height of the page cost a third of the frames while scrolling */
.sun, .moon, .stars { position: absolute; image-rendering: pixelated; }
.sun { top: 110px; left: 6%; width: calc(32 * var(--px)); height: calc(32 * var(--px)); background: url("img/sky/sun.png") 0 0 / 100% 100%; }
.moon { display: none; top: 120px; left: 7%; width: calc(24 * var(--px)); height: calc(24 * var(--px)); background: url("img/sky/moon.png") var(--moon-frame, 57%) 0 / 800% 100%; }
:root[data-sky="dawn"] .sun, :root[data-sky="dusk"] .sun { top: 540px; }
:root[data-sky="night"] .sun { display: none; }
:root[data-sky="night"] .moon { display: block; }
.stars { inset: 0; opacity: 0; background: url("img/sky/stars-1.png") 0 0 / calc(131 * var(--px)) calc(97 * var(--px)); }
.stars-2 { background: url("img/sky/stars-2.png") 37px 23px / calc(89 * var(--px)) calc(67 * var(--px)); }
:root[data-sky="dusk"] .stars-1 { opacity: 0.35; }
:root[data-sky="night"] .stars-1 { opacity: 1; }
:root[data-sky="night"] .stars-2 { opacity: 0.6; }
/* the clouds and trees darken with the light */
:root[data-sky="dawn"] :is(.cloud, .tree) { filter: sepia(0.2) saturate(1.4) hue-rotate(-30deg); }
:root[data-sky="dusk"] :is(.cloud, .tree) { filter: sepia(0.35) saturate(1.5) hue-rotate(-20deg) brightness(0.9); }
:root[data-sky="night"] :is(.cloud, .tree) { filter: brightness(0.5) saturate(0.6); }
@media (prefers-color-scheme: dark) { :root:not([data-sky]) .sun { display: none; } }
/* on phones the panels fill the width and there is no margin of sky for them */
@media (max-width: 48rem) { .sky .sun, :root[data-sky] .sky .moon { display: none; } }
@media (prefers-reduced-motion: reduce) { .cloud { animation: none; } }
/* critters fly behind the panels on wide screens; on phones they come over the page only when tapped */
.sky-critters { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky-critters, .ground-critters { image-rendering: pixelated; }
.ground-critters { position: absolute; left: 0; bottom: calc(100% - 10px); z-index: 1; pointer-events: none; }

.hud, main, .ground { position: relative; z-index: 1; }
/* page-wide scale on wide screens, set from the window width in the head */
.hud, main, .ground-text { zoom: var(--zoom, 1); }
/* the top bar stays on screen so every section is one click away */
.hud { position: sticky; top: 0; z-index: var(--z-sticky-nav); }

/* ── top bar: wood plank ── */
.hud { padding-top: var(--space-sm); }
.plank {
  --panel-hi: var(--color-wood-light);
  --panel-lo: var(--color-wood-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  margin: calc(2 * var(--px));
  padding: var(--space-sm) var(--space-md);
  background: var(--color-wood);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-parchment-hi);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--color-wood-dark);
  white-space: nowrap;
  transition: color var(--dur-micro) var(--ease-out);
}
.wordmark { margin-right: auto; }
.wordmark:hover { color: var(--color-parchment-hi); }
.wordmark:active { color: var(--color-parchment-lo); }
.plank nav { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.plank nav a {
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-parchment-hi);
  text-shadow: 1px 1px 0 var(--color-wood-dark);
  text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.plank nav a:hover { background: var(--color-parchment); color: var(--color-parchment-ink); }
.plank nav a:active { background: var(--color-parchment-lo); color: var(--color-parchment-ink); }
.plank nav a[aria-current="true"] { background: var(--color-parchment); color: var(--color-parchment-ink); }
/* the world map's way in where the minimap has no room: a tab like the others, with a pin */
.map-tab {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm); border: 0; cursor: pointer;
  background: var(--color-wood-dark); color: var(--color-parchment-hi);
  font-family: var(--font-display); font-size: 0.75rem; line-height: 1.2;
  text-shadow: 1px 1px 0 var(--color-wood-dark);
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.map-tab[hidden] { display: none; }
.map-tab { margin-left: auto; }
/* where the tab shows on a wider screen, it takes the name's place, as the phone bar already does
   (the name heads the page just below) */
.plank:has(.map-tab:not([hidden])) .wordmark { display: none; }
.map-tab:hover { background: var(--color-parchment); color: var(--color-parchment-ink); }
.map-tab:active { background: var(--color-parchment-lo); color: var(--color-parchment-ink); }
.map-tab:focus-visible { outline: 2px solid var(--color-parchment-hi); outline-offset: 2px; }

/* ── panels ── */
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--space-xl) + 2 * var(--px)); padding-block: var(--space-xl) var(--space-4xl); }
.panel {
  --panel-hi: var(--color-parchment-hi);
  --panel-lo: var(--color-parchment-lo);
  min-width: 0;
  margin: calc(2 * var(--px));
  padding: var(--space-xl);
  background: var(--color-parchment);
  color: var(--color-ink);
}
.hero { padding-top: var(--space-lg); }
.panel-head { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
h2 {
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink);
  text-shadow: 2px 2px 0 var(--color-shadow);
}
.panel-head::after {
  content: "";
  flex: 1;
  height: var(--px);
  align-self: center;
  background: repeating-linear-gradient(90deg, var(--color-wood-light) 0 calc(2 * var(--px)), transparent calc(2 * var(--px)) calc(4 * var(--px)));
}

/* inventory slot */
.slot {
  display: grid;
  place-items: center;
  background: var(--color-slot);
  box-shadow:
    inset var(--px) var(--px) 0 0 var(--color-parchment-lo),
    inset calc(-1 * var(--px)) calc(-1 * var(--px)) 0 0 var(--color-parchment-hi),
    0 0 0 var(--px) var(--color-wood);
}
.slot-sm { width: 52px; height: 52px; flex: none; color: var(--color-wood-dark); }
.px-icon { flex: none; fill: currentColor; }

/* ── hero ── */
.window {
  margin: 0 0 var(--space-lg);
  padding: var(--px);
  background: var(--color-wood-dark);
  box-shadow: 0 0 0 var(--px) var(--color-wood);
}
/* fixed ratio: the photo scales, it never re-crops */
.window img { width: 100%; height: auto; aspect-ratio: 7 / 2; object-fit: cover; object-position: 50% 55%; }

.intro { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.slot-portrait { padding: calc(2 * var(--px)); }
.intro { margin-top: 0; }
.slot-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro-text { min-width: 0; }
/* three buttons need more than the text column: on wide screens the row runs under the portrait too */
@media (min-width: 48.0625rem) {
  .intro { row-gap: 0; }
  .intro-text { display: contents; }
  .slot-portrait { grid-row: 1 / span 3; }
  .intro h1, .intro .role, .intro .lede { grid-column: 2; }
  .intro .actions { grid-column: 1 / -1; }
}
h1 {
  font-size: clamp(1.375rem, 2.6vw + 0.5rem, 2.875rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-ink);
  text-shadow: 3px 3px 0 var(--color-shadow);
}
.role { margin-top: var(--space-sm); font-size: 1.375rem; font-weight: 800; line-height: 1.4; color: var(--color-r-green); }
.lede { margin-top: var(--space-md); max-width: 64ch; color: var(--color-ink-2); line-height: 1.65; }
.lede a, .prose a {
  color: var(--color-accent);
  font-weight: 800;
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-out);
}
.lede a:hover, .prose a:hover { color: var(--color-wood-dark); }
.lede a:active, .prose a:active { color: var(--color-ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); margin-top: var(--space-lg); }

/* ── pixel buttons ── */
.px-btn {
  --fill: var(--color-accent);
  --ink: var(--color-accent-ink);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--px);
  padding: var(--space-sm) var(--space-md);
  background: var(--fill);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  box-shadow:
    0 calc(-1 * var(--px)) 0 0 var(--color-wood-dark),
    0 var(--px) 0 0 var(--color-wood-dark),
    calc(-1 * var(--px)) 0 0 0 var(--color-wood-dark),
    var(--px) 0 0 0 var(--color-wood-dark),
    0 calc(2 * var(--px)) 0 0 var(--color-wood-dark),
    inset var(--px) var(--px) 0 0 color-mix(in oklab, var(--fill) 65%, var(--color-parchment-hi)),
    inset calc(-1 * var(--px)) calc(-1 * var(--px)) 0 0 color-mix(in oklab, var(--fill) 75%, var(--color-wood-dark));
  transition: transform var(--dur-micro) var(--ease-out), filter var(--dur-micro) var(--ease-out);
}
.px-btn-2 { --fill: var(--color-parchment-hi); --ink: var(--color-parchment-ink); }
.px-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.px-btn:active { transform: translateY(var(--px)); filter: none; }
.px-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: calc(2 * var(--px)); }
.px-btn-sm { gap: var(--space-xs); padding: var(--space-2xs) var(--space-sm); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 800; }

/* ── research interests: inventory item cards ── */
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-sm) var(--space-md);
  text-align: center;
  background: var(--color-parchment-2);
  box-shadow:
    inset var(--px) var(--px) 0 0 var(--color-parchment-lo),
    inset calc(-1 * var(--px)) calc(-1 * var(--px)) 0 0 var(--color-parchment-hi);
}
.slot-item { width: 72px; height: 72px; color: var(--item); }
.item-bot { --item: var(--color-r-blue); }
.item-watch { --item: var(--color-accent); }
.item-scope { --item: var(--color-r-green); }
.item-potion { --item: var(--color-r-purple); }
.item-bot {
  box-shadow:
    inset var(--px) var(--px) 0 0 var(--color-parchment-lo),
    inset calc(-1 * var(--px)) calc(-1 * var(--px)) 0 0 var(--color-parchment-hi),
    0 0 0 var(--px) var(--color-accent);
}
.item-name { font-family: var(--font-body); font-size: var(--text-md); font-weight: 800; line-height: 1.3; color: var(--color-ink); }
.badge-gold { --badge: var(--color-r-green); margin: 0; }


/* ── lists: inset rows ── */
.prose { display: grid; gap: var(--space-md); max-width: 68ch; color: var(--color-ink-2); }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
/* entries split by a Stardew tooltip divider: dark line over a light line */
.row { padding: var(--space-md) 0; }
.row + .row {
  padding-top: calc(var(--space-md) + 2 * var(--px));
  box-shadow: inset 0 var(--px) 0 0 var(--color-parchment-lo), inset 0 calc(2 * var(--px)) 0 0 var(--color-parchment-hi);
}
.row-dated { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.tag {
  justify-self: start;
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-wood-dark);
  color: var(--color-parchment-hi);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  white-space: nowrap;
}
.place { font-weight: 800; font-size: var(--text-lg); color: var(--color-ink); line-height: 1.3; }
.post { margin-top: var(--space-2xs); color: var(--color-muted); font-size: var(--text-sm); }
.desc { margin-top: var(--space-xs); color: var(--color-ink-2); }

.badge {
  display: block;
  margin-bottom: var(--space-3xs);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1.4;
  color: var(--badge);
}
.badge-green { --badge: var(--color-r-green); }
.badge-blue { --badge: var(--color-r-blue); }
.badge-grey { --badge: var(--color-r-purple); }
.pub-title {
  display: block;
  font-weight: 800;
  font-size: var(--text-lg);
  line-height: 1.35;
  color: var(--color-ink);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-out);
}
a.pub-title:hover { color: var(--color-accent); }
a.pub-title:active { color: var(--color-ink); }
.authors { margin-top: var(--space-2xs); color: var(--color-ink-2); font-size: var(--text-sm); }
.authors b { color: var(--color-ink); font-weight: 800; }
.links { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-sm); }
.note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.subhead {
  margin: var(--space-xl) 0 var(--space-md);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-ink);
  text-shadow: 2px 2px 0 var(--color-shadow);
}
.venue-note { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }

/* ── footer: grass and dirt ── */
.ground { min-height: 220px; color: var(--color-parchment); }
.terrain { position: absolute; inset: 0; display: block; }
.t-grass { fill: var(--color-grass); } .t-grass-light { fill: var(--color-grass-light); } .t-grass-dark { fill: var(--color-grass-dark); }
.t-dirt { fill: var(--color-dirt); } .t-dirt-light { fill: var(--color-dirt-light); } .t-dirt-dark { fill: var(--color-dirt-dark); }
.t-stone { fill: var(--color-stone); } .t-stone-dark { fill: var(--color-stone-dark); }
.ground-text {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-xs) var(--space-xl);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  font-size: var(--text-sm);
  text-shadow: 2px 2px 0 var(--color-dirt-dark);
}
.foot-name { font-family: var(--font-display); font-size: 0.875rem; font-weight: 400; }
.ground-text a { color: var(--color-parchment); text-decoration-color: var(--color-dirt-light); transition: color var(--dur-micro) var(--ease-out); }
.ground-text a:hover { color: var(--color-grass-light); }
.ground-text a:active { color: var(--color-parchment-hi); }
/* the changelog: closed by default; inside, one line per version, newest first and open, and
   only one open at a time. Past a dozen versions the list scrolls within its box */
.changelog { flex-basis: 100%; margin-top: var(--space-sm); }
.changelog summary { cursor: pointer; list-style: none; transition: color var(--dur-micro) var(--ease-out); }
.changelog summary::-webkit-details-marker { display: none; }
.changelog > summary { display: inline-flex; align-items: center; gap: var(--space-xs); font-family: var(--font-display); font-size: 0.75rem; }
.changelog summary::before { content: "+"; display: inline-grid; place-items: center; flex: none; width: 1.25em; height: 1.25em; background: var(--color-dirt-dark); box-shadow: 0 0 0 2px var(--color-dirt-light); }
.changelog[open] > summary::before, .patch[open] > summary::before { content: "\2212"; }
.changelog summary:hover { color: var(--color-grass-light); }
.changelog summary:focus-visible { outline: 2px solid var(--color-parchment-hi); outline-offset: 4px; }
.patches {
  max-width: 44rem; max-height: 26rem; overflow-y: auto; overscroll-behavior: contain;
  margin-top: var(--space-md); padding: var(--space-xs) var(--space-md);
  background: var(--color-dirt-dark); box-shadow: 0 0 0 2px var(--color-dirt-light);
  font-size: var(--text-xs); line-height: 1.5;
  scrollbar-color: var(--color-dirt-light) var(--color-dirt-dark);
}
.patch + .patch { border-top: 2px dashed var(--color-dirt); }
.patch > summary { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) 0; }
.patch > summary::before { font-size: 0.75em; }
.patch-ver { flex: none; font-family: var(--font-display); font-size: 0.6875rem; color: var(--color-grass-light); }
.patch-name { flex: 1; min-width: 0; font-weight: 800; }
.patch time { flex: none; color: var(--color-parchment-lo); white-space: nowrap; }
.patch ul { margin: 0 0 var(--space-sm); padding-left: 2.6em; list-style: square; }
.patch li + li { margin-top: var(--space-2xs); }
.foot-dates span { white-space: nowrap; }

/* the small print under the name: thanks on the left, the dates on the right, over a dashed rule */
.foot-meta {
  flex-basis: 100%;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs) var(--space-lg);
  margin-top: var(--space-xs); padding-top: var(--space-sm);
  border-top: 2px dashed var(--color-dirt-light);
  font-size: var(--text-xs); color: var(--color-parchment-lo);
}

@media (max-width: 48rem) {
  .panel { padding: var(--space-lg) var(--space-md); }
  /* phones: portrait beside the name, bio and buttons full width below */
  .intro { grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-xs) var(--space-md); align-items: center; }
  .intro-text { display: contents; }
  .slot-portrait { grid-row: 1 / span 2; width: 96px; padding: var(--px); }
  .intro h1 { align-self: end; }
  .intro .role { align-self: start; margin-top: 0; font-size: var(--text-md); }
  .intro .lede, .intro .actions { grid-column: 1 / -1; }
  /* top bar slides away while reading, comes back on the way up */
  .hud { transition: transform var(--dur-short) var(--ease-out); }
  .hud.is-hidden { transform: translateY(calc(-100% - var(--space-sm))); }
  .row-dated { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
  .item { padding: var(--space-md) var(--space-xs); }
  .slot-item { width: 52px; height: 52px; }
  :root { --hud-h: 104px; }
  .plank { flex-wrap: nowrap; column-gap: var(--space-2xs); padding: var(--space-xs); }
  .wordmark { display: none; }
  /* phones: all four sections visible at once, two by two */
  /* columns as wide as their longest name, so Publications fits beside the Map tab */
  .plank nav { display: grid; grid-template-columns: repeat(2, auto); justify-content: space-evenly; gap: var(--space-2xs); width: 100%; }
  .plank nav a { display: grid; place-items: center; min-height: 36px; padding: var(--space-2xs); text-align: center; font-size: 0.6875rem; }
  /* the Map tab stands beside the four, as tall as both rows: the pin over its name */
  .map-tab { flex-direction: column; justify-content: center; align-self: stretch; gap: var(--space-2xs); padding: var(--space-2xs); font-size: 0.6875rem; }
  .px-btn { font-size: 0.75rem; }
  .px-btn-sm { min-height: 40px; padding-inline: var(--space-md); }
  .ground-text a { display: inline-block; padding-block: var(--space-xs); }
  .foot-meta a { display: inline; padding: 0; }
  .window { margin-bottom: var(--space-lg); }
  .window img { aspect-ratio: 2 / 1; }
  h2 { font-size: 0.9375rem; }
  .slot-sm { width: 36px; height: 36px; }
  .tag { white-space: normal; }
  .sky-critters { z-index: 2; }
}
@media (max-width: 22rem) {
  h1 { font-size: 1.125rem; }
  h2 { font-size: 0.8125rem; }
  .panel-head::after { display: none; }
}

/* ── the status corner: Terraria's top right, with the minimap and the info
   accessories' read-outs. It sits at the top of the page's right-hand sky and scrolls away with it;
   hud.js hides it where it would touch the panels ── */
.status {
  position: absolute; top: var(--space-sm); right: var(--space-md); z-index: var(--z-sticky);
  zoom: var(--zoom, 1);
  display: grid; grid-template-columns: 256px; align-items: start;
  font-family: var(--font-body); font-weight: 800; color: var(--color-hud-text);
}
/* the game's read-out lettering: white with a dark pixel outline */
.status, .worldmap {
  text-shadow:
    2px 0 0 var(--color-hud-outline), -2px 0 0 var(--color-hud-outline), 0 2px 0 var(--color-hud-outline), 0 -2px 0 var(--color-hud-outline),
    1px 1px 0 var(--color-hud-outline), -1px 1px 0 var(--color-hud-outline), 1px -1px 0 var(--color-hud-outline), -1px -1px 0 var(--color-hud-outline);
}
.status { pointer-events: none; }
.status.is-off { display: none; }
.status img { image-rendering: pixelated; }
.minimap { position: relative; width: 256px; height: 264px; }
.map-window { position: absolute; left: 8px; top: 14px; width: 232px; height: 232px; overflow: clip; background: var(--color-map-void); }
.map-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--s, 1)); transition: transform var(--dur-long) var(--ease-out); }
.map-tiles { display: block; max-width: none; }
/* Chicago is always the middle of the window: the map zooms about it */
.map-me { position: absolute; left: 116px; top: 116px; translate: -50% -50%; display: grid; justify-items: center; }
.map-me > img { width: 30px; height: 28px; position: relative; }
.map-ping { position: absolute; left: 50%; top: 14px; width: 34px; height: 34px; translate: -50% -50%; border: 2px solid var(--color-hud-text); border-radius: 50%; animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.map-name { position: absolute; top: 30px; font-size: 13px; line-height: 1; white-space: nowrap; }
.map-frame { position: absolute; inset: 0; pointer-events: none; }
/* the whole window opens the full map, as the game's M key does */
.map-open {
  position: absolute; left: 8px; top: 14px; width: 232px; height: 218px; padding: 0; border: 0;
  background: transparent; cursor: zoom-in; pointer-events: auto;
}
.map-open:focus-visible { outline: 2px solid var(--color-hud-text); outline-offset: -4px; }
/* what the minimap opens, along its foot: shown until the map has been opened once, then only
   on hover or focus */
.map-hint {
  position: absolute; left: 8px; top: 206px; width: 232px; text-align: center;
  font-size: 13px; line-height: 1; white-space: nowrap; pointer-events: none;
  transition: opacity var(--dur-short) var(--ease-out);
}
.map-hint kbd { display: inline-block; margin-left: var(--space-3xs); padding: var(--space-3xs) var(--space-2xs); font-family: var(--font-display); font-size: 9px; background: var(--color-map-void); box-shadow: 0 0 0 2px var(--color-hud-text); text-shadow: none; }
.map-seen .map-hint { opacity: 0; }
.map-seen .minimap:is(:hover, :focus-within) .map-hint { opacity: 1; }
.map-btn {
  position: absolute; top: 235px; width: 26px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; pointer-events: auto;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.map-btn[data-map="reset"] { left: 149px; }
.map-btn[data-map="out"] { left: 175px; }
.map-btn[data-map="in"] { left: 201px; }
.map-btn:hover { background: var(--color-map-glint); }
.map-btn:active { transform: translateY(1px); }
.map-btn:focus-visible { outline: 2px solid var(--color-hud-text); outline-offset: 1px; }
.map-btn:disabled { cursor: default; background: transparent; }

.info { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: grid; gap: var(--space-3xs); font-size: 16px; line-height: 1.25; }
.info li { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; column-gap: var(--space-2xs); }
.info img { justify-self: center; }

/* ── the full map: the whole world on the unexplored dark, dragged and zoomed like the game's ── */
.worldmap {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: clip;
  background: var(--color-map-void); color: var(--color-hud-text);
  font-family: var(--font-body); font-weight: 800;
}
.worldmap[open] { animation: map-in var(--dur-short) var(--ease-out); }
@keyframes map-in { from { opacity: 0; } to { opacity: 1; } }
.worldmap::backdrop { background: var(--color-map-void); }
.worldmap img { image-rendering: pixelated; }
.wm-view { position: absolute; inset: 0; overflow: clip; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.wm-view img { -webkit-user-drag: none; }
.wm-view.is-dragging { cursor: grabbing; }
.wm-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.wm-world img { display: block; max-width: none; width: 900px; height: 360px; }
.wm-me { position: absolute; left: 0; top: 0; translate: -50% 0; display: grid; justify-items: center; pointer-events: none; }
.wm-me > img { width: 45px; height: 42px; position: relative; translate: 0 -50%; }
.wm-me .map-ping { top: 0; width: 52px; height: 52px; }
.wm-me .map-name { top: 26px; font-size: var(--text-xs); }
.wm-hint { position: absolute; left: var(--space-md); bottom: var(--space-md); margin: 0; font-size: var(--text-xs); }
.wm-close { position: absolute; top: var(--space-md); right: var(--space-md); text-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .map-ping { animation: none; opacity: 0; }
  .map-world, .map-btn { transition: none; }
  .worldmap[open] { animation: none; }
}
/* phones and narrow windows have no sky beside the panels to hold it */
@media (max-width: 64rem) { .status { display: none; } }

/* visitors by region: a coin and its count, the region's name on hover or focus */
.wm-places { position: absolute; inset: 0; pointer-events: none; }
.wm-place { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: var(--space-2xs); translate: -12px -50%; pointer-events: auto; cursor: default; }
.wm-place img { width: 24px; height: auto; }
.wm-place.is-home { translate: 30px -50%; }
.wm-places { z-index: 1; }
.wm-count { font-size: var(--text-xs); line-height: 1; }
.wm-where { position: absolute; left: 0; top: 100%; margin-top: var(--space-2xs); font-size: var(--text-xs); white-space: nowrap; opacity: 0; transition: opacity var(--dur-micro) var(--ease-out); }
.wm-place:hover, .wm-place:focus-visible { z-index: 1; }
.wm-place:hover .wm-where, .wm-place:focus-visible .wm-where { opacity: 1; }
.wm-place:focus-visible { outline: 2px solid var(--color-hud-text); outline-offset: 2px; }
.wm-total { position: absolute; left: var(--space-md); top: var(--space-md); margin: 0; font-size: var(--text-sm); }
@media (prefers-reduced-motion: reduce) { .wm-where { transition: none; } }
