:root {
  color-scheme: light;
  --paper: #f6f3ee;
  --ink: #242721;
  --muted: #65665d;
  --line: #d9d9cc;
  --accent: #476144;
  --surface: #fffdf9;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.13;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 500;
}
h2 {
  font-size: 2.3rem;
  font-weight: 500;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:hover {
  color: var(--accent);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 4px;
  padding: 0.55rem 0.85rem;
}
button:hover {
  background: #eaece2;
}
button[hidden],
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
a svg,
button svg {
  margin-left: 0.3rem;
}
ul {
  padding-left: 1.25rem;
}
li + li {
  margin-top: 0.65rem;
}
::selection {
  background: #d7e2cf;
}
:focus-visible {
  outline: 3px solid #7b984f;
  outline-offset: 5px;
}
.wrap {
  max-width: 1240px;
  width: calc(100% - 96px);
  margin-inline: auto;
}
.accent {
  color: var(--accent);
}
.serif,
em {
  font-family: var(--serif);
  font-weight: 400;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.text-link,
.scroll-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.text-link {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}
.button {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.9rem;
}
.button-primary {
  background: var(--ink);
  color: white;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  background: var(--surface);
  padding: 10px 20px;
  z-index: 9999;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.065em;
}
.wordmark-code {
  display: none;
}
.site-header nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 0.875rem;
}
.site-header nav a {
  position: relative;
  padding: 12px 0;
}
.site-header nav a[aria-current='page']:after {
  content: '';
  position: absolute;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  left: 0;
  right: 0;
}
.header-contact {
  font-size: 0.875rem;
}
.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-block: 35px;
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer p {
  margin-right: auto;
}
.site-footer > div {
  display: flex;
  gap: 22px;
}
.copyright {
  width: 100%;
  font-size: 0.75rem;
}
.kitchen {
  max-width: 1600px;
  margin: auto;
  padding: 0 32px;
}
.kitchen-heading {
  max-width: 1240px;
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.kitchen-heading h1 {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  margin: 10px 0 8px;
}
.kitchen-heading h1 em {
  color: var(--accent);
}
.kitchen-lead {
  font-size: 0.95rem;
  color: var(--muted);
}
.kitchen-heading > .text-link {
  margin-top: 30px;
  flex-shrink: 0;
}
.town-viewport {
  height: clamp(560px, calc(100svh - 310px), 840px);
  min-height: 460px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
  margin-top: 16px;
  border-radius: 8px;
  background: #f8ecda;
  cursor: crosshair;
}
.town-world {
  width: 1536px;
  height: 1024px;
  position: absolute;
  transform-origin: 0 0;
  left: 0;
  top: 0;
}
.town-background {
  width: 1536px;
  height: 1024px;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.town-npc {
  position: absolute;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -100%) scale(calc(var(--label-scale, 1.875) * 0.8));
  transform-origin: 50% 100%;
  padding: 12px 18px 12px 12px;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 4px 18px #3625151a;
  border: 1px solid #fff9;
  border-radius: 6px;
  white-space: normal;
  max-width: 220px;
  min-height: 56px;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.town-npc:after {
  content: '';
  height: 23px;
  width: 1px;
  background: var(--surface);
  position: absolute;
  bottom: -24px;
  left: 50%;
}
.station-number {
  font-size: 16px;
  border: 1px solid #bdc6b5;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.npc-name {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
}
.npc-name small {
  display: block;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  margin-top: 5px;
}
.town-npc:hover,
.town-npc.nearby {
  background: #fff;
  box-shadow: 0 4px 24px #36251540;
  color: var(--accent);
}
.town-npc.discovered .station-number {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.town-player {
  position: absolute;
  width: 216px;
  height: 400px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 760;
}
.character-sprite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  position: relative;
  transform-origin: 50% 100%;
  filter: drop-shadow(7px 9px 5px #38281829);
}
.player-ring {
  position: absolute;
  bottom: -2px;
  left: 22%;
  width: 56%;
  height: 8%;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: #25392112;
}
.player-name {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  font-size: 17px;
  padding: 0 12px;
  border-radius: 20px;
  background: #fffdf5d9;
  line-height: 1.7;
}
.walking .character-sprite {
  animation: stride 0.3s ease-in-out infinite alternate;
}
@keyframes stride {
  from {
    transform: translateY(0) rotate(-1deg);
  }
  to {
    transform: translateY(-4px) rotate(1deg);
  }
}
.kitchen-dog {
  position: absolute;
  width: 145px;
  height: 155px;
  transform: translate(-50%, -100%);
  z-index: 790;
}
.kitchen-dog img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(5px 6px 4px #38281825);
}
.kitchen-dog.collie {
  width: 180px;
  height: 165px;
  z-index: 780;
}
.kitchen-dog span {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 15px;
  background: #fffdf5ed;
  padding: 0 10px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.kitchen-dog:hover span {
  opacity: 1;
}
.walk-marker {
  position: absolute;
  width: 26px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 700;
  pointer-events: none;
}
.kitchen-status {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffdf5ed;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 3px;
  pointer-events: none;
}
.kitchen-view {
  display: none;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.town-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
}
.kitchen-controls {
  max-width: 1240px;
  margin: 20px auto 0;
}
.npc-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.npc-shortcuts a {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  border-right: 1px solid var(--line);
}
.shortcut-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.npc-shortcuts a:last-child {
  border: 0;
}
.npc-shortcuts a:hover {
  background: #e9ede3;
}
.npc-shortcuts svg {
  margin-left: auto;
  width: 16px;
}
.shortcut-key {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 22px;
  height: 24px;
  text-align: center;
  line-height: 22px;
}
.town-instructions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 12px 0;
  flex-wrap: wrap;
}
.instruction-desktop {
  margin-right: auto;
}
.town-instructions i:after {
  content: '·';
  margin: 0 8px;
  font-style: normal;
}
.town-instructions button {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.75rem;
}
.instruction-touch {
  display: none;
}
.town-message {
  display: block;
  color: var(--accent);
  font-size: 0.875rem;
  min-height: 1.7em;
  transition: opacity 0.6s;
}
.town-directory {
  margin-top: 90px;
  margin-bottom: 75px;
}
.directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.directory-heading h2 {
  font-family: var(--serif);
  margin-top: 12px;
}
.directory-heading > p {
  font-size: 0.9rem;
  color: var(--muted);
}
.npc-scroll {
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.npc-scroll:last-of-type {
  border-bottom: 1px solid var(--line);
}
summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
.npc-scroll > summary {
  display: grid;
  grid-template-columns: 1fr 20px;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  font-size: 1.15rem;
}
.npc-scroll > summary > span:nth-child(2) {
  font-size: 0.9rem;
  color: var(--muted);
}
details[open] > summary > .icon {
  transform: rotate(45deg);
}
.npc-content {
  line-height: 1.8;
}
.npc-scroll > .npc-content {
  max-width: 800px;
  margin: 0 auto 35px;
  padding-top: 10px;
}
.npc-content h3 {
  margin: 25px 0 12px;
}
.npc-content p {
  margin: 12px 0;
}
.npc-content .scroll-intro {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--ink);
}
.chronicle article {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.chronicle-year {
  font-size: 0.8rem;
  color: var(--muted);
}
.chronicle h3 {
  margin: 8px 0;
}
.chronicle-role {
  font-size: 0.9rem;
  color: var(--accent);
}
.scroll-link {
  margin: 20px 24px 0 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 3px;
}
.impact-runes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  padding: 22px 0;
  margin: 28px 0;
  gap: 18px;
}
.impact-runes strong {
  font-family: var(--serif);
  font-size: 2.5rem;
  display: block;
  font-weight: 400;
  color: var(--accent);
}
.impact-runes span {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
}
.spellbook {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 30px;
}
.spellbook h3 {
  font-size: 0.85rem;
  color: var(--accent);
}
.spellbook p {
  font-size: 0.9rem;
}
.family-note {
  max-width: 680px;
  margin: 56px auto 0;
  text-align: center;
}
.family-note h2 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.family-note > p:last-child {
  color: var(--muted);
}
.intro-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 4px;
}
.intro-projects a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.project-summaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 24px 0;
}
.project-summaries article {
  border-top: 2px solid var(--accent);
  padding-top: 20px;
}
.project-summaries h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.project-summaries p {
  color: var(--muted);
  font-size: 0.95rem;
}
.project-summaries .scroll-link {
  min-height: 44px;
}
.resume-projects {
  margin-block: 64px;
}
.resume-title {
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 1.1rem;
}
.project-summaries ul,
.print-projects ul {
  padding-left: 20px;
}
.project-summaries li + li,
.print-projects li + li {
  margin-top: 10px;
}
.project-summaries .project-credit,
.print-projects .project-credit {
  color: var(--accent);
  font-size: 0.85rem;
}
.project-summaries .project-status,
.print-projects .project-status {
  font-size: 0.8rem;
  color: var(--muted);
}
.print-projects li {
  font-size: 0.9rem;
}
.resume-projects > h2 {
  margin-top: 12px;
  font-size: 1.6rem;
}
.resume-page .page-intro-bottom p {
  max-width: 620px;
}
.page-intro-bottom > a {
  flex-shrink: 0;
}
.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  padding: 12px 0 60px;
  margin-bottom: 55px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 32px;
}
.project-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 18px 0 12px;
}
.project-heading > p {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.project-body p,
.project-body li {
  color: var(--muted);
}
.project-body .project-description {
  color: var(--ink);
  font-size: 1.1rem;
}
.project-body h3 {
  margin: 28px 0 10px;
  font-size: 0.9rem;
}
.project-body ul {
  padding-left: 20px;
}
.project-body li + li {
  margin-top: 12px;
}
.project-links {
  display: flex;
  gap: 12px 26px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.project-links a {
  min-height: 44px;
}
.project-context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.project-context h2 {
  font-size: 1.8rem;
  margin-top: 18px;
}
.project-context > div > p:not(.eyebrow) {
  color: var(--muted);
}
.project-reading {
  margin-top: 64px;
}
.project-reading > h2 {
  font-size: 1.8rem;
  margin: 14px 0;
}
.project-reading > p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 28px;
}
.reading-link {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.reading-link h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.reading-link p {
  color: var(--muted);
  font-size: 0.9rem;
}
.reading-link > svg {
  flex-shrink: 0;
}
.print-projects article {
  margin-top: 20px;
  break-inside: avoid;
}
.print-projects h3 {
  font-size: 1.1rem;
}
.print-projects p {
  font-size: 0.9rem;
  margin: 5px 0;
}
.print-projects a {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.town-dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  width: min(740px, calc(100% - 32px));
  max-height: 88svh;
  padding: 0;
  overscroll-behavior: contain;
  box-shadow: 0 30px 100px #1620153d;
}
.town-dialog::backdrop {
  background: #20261c80;
  backdrop-filter: blur(5px);
}
html:has(.town-dialog[open]) {
  overflow: hidden;
}
.dialog-frame {
  padding: 32px 40px;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.dialog-top h2 {
  font-family: var(--serif);
  font-size: 2.75rem;
  margin-top: 12px;
}
.dialog-top button {
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-shrink: 0;
  border-radius: 50%;
}
.dialog-top button svg {
  transform: rotate(45deg);
  margin: 0;
}
.npc-greeting {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--muted);
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.dialog-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--muted);
}
.dialog-bottom button {
  font-size: 0.85rem;
  color: var(--ink);
}
.gamble-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 24px;
  padding: 24px;
  background: var(--paper);
}
.gamble-balance {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.gamble-balance strong {
  font-weight: 500;
  color: var(--accent);
}
.loot-reveal {
  text-align: center;
  padding: 28px 12px;
}
.loot-sigil {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  margin: auto;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
}
.loot-reveal h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
}
.loot-reveal p {
  font-size: 0.8rem;
  color: var(--muted);
}
.gamble-button {
  display: block;
  width: 100%;
  background: var(--accent);
  color: white;
  border: 0;
  padding: 13px;
}
.gamble-button:hover {
  background: #354d32;
}
.gamble-odds,
.game-currency-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
.loot-satchel {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 0.85rem;
}
.loot-satchel h4 {
  font-size: 0.85rem;
}
.loot-satchel ul {
  list-style: none;
  padding: 0;
}
.loot-satchel li {
  border-bottom: 1px solid var(--line);
  padding: 5px 0;
}
.page-intro {
  padding: 75px 0 55px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 55px;
}
.page-intro h1 {
  margin: 22px 0 30px;
}
.page-intro-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}
.page-intro-bottom p {
  color: var(--muted);
}
.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 70px;
}
.career-heading {
  display: flex;
  align-items: center;
  gap: 20px;
}
.career-heading h2 {
  font-size: 1.4rem;
  margin-right: auto;
}
.branch-label {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--muted);
}
.expand-all {
  font-size: 0.8rem;
}
.career-instruction {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
}
.career-timeline {
  margin-top: 30px;
}
.career-entry {
  position: relative;
  border-top: 1px solid var(--line);
  scroll-margin-top: 30px;
}
.career-entry summary {
  display: grid;
  grid-template-columns: 50px 16px 1fr 18px;
  gap: 12px;
  padding: 25px 0;
}
.career-year {
  font-size: 0.8rem;
  color: var(--muted);
}
.career-dot {
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent);
  background: var(--paper);
  border-radius: 50%;
  margin-top: 10px;
}
.career-entry[open] .career-dot {
  background: var(--accent);
}
.career-summary span {
  display: block;
}
.career-period {
  font-size: 0.75rem;
  color: var(--muted);
}
.career-company {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 3px 0;
}
.career-role {
  font-size: 0.9rem;
  color: var(--accent);
}
.career-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}
.career-toggle {
  margin-top: 5px;
}
.career-detail {
  font-size: 0.9rem;
  line-height: 1.8;
}
.career-entry .career-detail {
  padding: 0 20px 30px 90px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.tags span {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.75rem;
  color: var(--muted);
}
.career-end {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  color: var(--accent);
  font-size: 0.8rem;
}
.career-end svg {
  width: 12px;
  margin: 6px 0 0 64px;
}
.resume-profile {
  background: #e9eddf;
  padding: 25px;
  border-radius: 5px;
}
.resume-profile h2 {
  font-size: 1.8rem;
  margin: 12px 0;
}
.resume-profile p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.resume-profile a {
  display: block;
  font-size: 0.8rem;
  margin-top: 10px;
}
.skill-groups {
  padding: 10px 25px;
}
.skill-groups > div {
  margin: 22px 0;
}
.skill-groups h3 {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.skill-groups p {
  font-size: 0.85rem;
  color: var(--muted);
}
.resume-closing {
  padding: 50px 0;
  margin: 40px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.resume-closing p {
  font-family: var(--serif);
  font-size: 1.5rem;
}
.writing-page,
.article-page {
  padding-bottom: 80px;
}
.article-row {
  display: grid;
  grid-template-columns: 45px 1fr 90px 20px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.article-number,
.article-category,
.article-time {
  font-size: 0.75rem;
  color: var(--muted);
}
.article-row h3 {
  font-size: 1.5rem;
  margin: 8px 0 12px;
}
.article-row p {
  color: var(--muted);
  font-size: 0.9rem;
}
.empty-writing {
  padding: 30px 0;
  color: var(--muted);
}
.empty-writing a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.writing-end {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 70px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}
.draft-notice {
  padding: 15px;
  background: #f0e5cf;
  margin: 25px 0;
  font-size: 0.85rem;
}
.draft-badge {
  font-weight: 600;
  margin-right: 15px;
}
.back-link {
  margin-top: 40px;
}
.article-header {
  max-width: 820px;
  margin: 60px auto 40px;
}
.article-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 20px 0;
}
.article-deck {
  font-size: 1.2rem;
  color: var(--muted);
}
.article-byline {
  display: flex;
  gap: 24px;
  font-size: 0.8rem;
  margin-top: 30px;
  color: var(--muted);
}
.prose {
  max-width: 720px;
  margin: auto;
  font-size: 1.05rem;
  line-height: 1.9;
}
.prose p,
.prose ul,
.prose ol {
  margin: 24px 0;
}
.prose h2 {
  margin: 45px 0 20px;
  font-size: 2rem;
}
.prose h3 {
  margin: 35px 0 15px;
}
.prose a {
  text-decoration: underline;
  color: var(--accent);
}
.prose blockquote {
  margin: 30px 0;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  font-family: var(--serif);
  font-size: 1.3rem;
}
.prose pre {
  padding: 20px;
  background: #e9e9e1;
  overflow: auto;
  border-radius: 5px;
  font-size: 0.85rem;
}
.prose code {
  font-size: 0.85em;
}
.article-signoff {
  max-width: 720px;
  margin: 55px auto;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.next-article {
  display: block;
  max-width: 720px;
  margin: 60px auto;
}
.next-article h2 {
  font-size: 1.8rem;
  margin-top: 15px;
}
.print-resume {
  max-width: 850px;
  margin: 40px auto 70px;
  padding: 0 30px;
}
.print-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 45px;
}
.print-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.print-header h1 {
  font-size: 3rem;
}
.print-header p {
  font-size: 1.2rem;
  margin: 8px 0;
}
.print-header div {
  font-size: 0.85rem;
}
.print-summary {
  margin: 25px 0;
}
.print-resume section > h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 35px 0 20px;
}
.print-role {
  margin-top: 28px;
}
.print-role header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.print-role header span {
  font-size: 0.8rem;
  color: var(--muted);
}
.print-role-title {
  color: var(--accent);
  margin: 5px 0 10px;
}
.print-skills p {
  font-size: 0.9rem;
}
.not-found {
  padding: 100px 0;
}
.not-found h1 {
  margin: 20px 0;
}
.not-found p {
  margin-bottom: 25px;
}
@media (min-width: 1600px) {
  .town-viewport {
    height: 840px;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .site-header {
    gap: 25px;
  }
  .site-header nav {
    gap: 20px;
  }
  .header-contact {
    display: none;
  }
  .kitchen {
    padding: 0 20px;
  }
  .kitchen-heading {
    margin-top: 24px;
  }
  .town-viewport {
    height: 520px;
  }
  .npc-shortcuts a {
    padding: 12px 9px;
    gap: 6px;
    font-size: 0.8rem;
  }
  .npc-shortcuts svg {
    display: none;
  }
  .resume-layout {
    grid-template-columns: 1fr 240px;
    gap: 32px;
  }
  .resume-profile {
    padding: 20px;
  }
  .page-intro {
    padding-top: 50px;
  }
  .career-entry .career-detail {
    padding-left: 0;
  }
  .site-footer {
    gap: 20px;
  }
}
@media (max-width: 699px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .site-header {
    height: auto;
    min-height: 64px;
    padding-block: 8px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-header .wordmark {
    font-size: 1.25rem;
  }
  .site-header nav {
    gap: 18px;
    font-size: 0.875rem;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .site-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .site-header nav {
    gap: 12px;
  }
  .project-summaries,
  .project-feature,
  .project-context {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project-feature {
    padding-bottom: 36px;
    margin-bottom: 36px;
  }
  .project-heading > p {
    margin-bottom: 16px;
  }
  .resume-projects {
    margin-bottom: 42px;
  }
  .family-note {
    margin-top: 42px;
    text-align: left;
  }
  .site-header nav a:first-child {
    display: none;
  }
  .kitchen {
    padding-inline: max(12px, env(safe-area-inset-left))
      max(12px, env(safe-area-inset-right));
  }
  .kitchen-heading {
    padding: 0 6px;
    margin-top: 18px;
    align-items: end;
    gap: 12px;
  }
  .kitchen-heading .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }
  .kitchen-heading h1 {
    font-size: 2.4rem;
    margin: 6px 0;
  }
  .kitchen-lead {
    font-size: 1rem;
    max-width: 32rem;
    line-height: 1.5;
  }
  .kitchen-heading > .text-link {
    display: none;
  }
  .town-viewport {
    height: clamp(280px, 85vw, 440px);
    min-height: 0;
    margin-top: 16px;
    border-radius: 12px;
  }
  .town-npc {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    transform: translate(-50%, -100%) scale(var(--label-scale, 1));
  }
  .town-npc:after {
    height: 8px;
    bottom: -9px;
  }
  .town-npc .npc-name {
    display: none;
  }
  .station-number {
    border: 0;
    font-size: 1rem;
    width: 100%;
    height: 100%;
  }
  .player-name,
  .kitchen-dog span {
    font-size: 12px;
    line-height: 1.6;
    padding: 0 6px;
    opacity: 1;
    transform: translateX(-50%) scale(var(--label-scale, 1));
    transform-origin: top center;
    bottom: -60px;
  }
  .kitchen-dog.heeler span {
    bottom: -145px;
  }
  .kitchen-status {
    font-size: 0.75rem;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
  }
  .kitchen-view {
    display: block;
    position: absolute;
    bottom: 10px;
    left: 10px;
    min-height: 44px;
    padding: 8px 13px;
    border-color: #d9d9cc;
    border-radius: 22px;
    font-size: 0.875rem;
    background: #fffdf9f5;
    box-shadow: 0 2px 8px #36251512;
  }
  .kitchen-view[aria-pressed='true'] {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }
  .kitchen-controls {
    margin-top: 12px;
  }
  .npc-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
  }
  .npc-shortcuts a {
    min-height: 60px;
    font-size: 0.9375rem;
    line-height: 1.35;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    gap: 8px;
  }
  .npc-shortcuts a:last-child {
    grid-column: 1 / -1;
    border: 1px solid var(--line);
  }
  .npc-shortcuts a:focus-visible {
    outline-offset: 2px;
  }
  .npc-shortcuts .shortcut-key {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    width: 23px;
    height: 23px;
    line-height: 1;
    border-radius: 50%;
    color: var(--accent);
  }
  .npc-shortcuts .icon {
    margin-left: auto;
  }
  .npc-shortcuts svg {
    display: block;
    width: 15px;
    margin: 0;
  }
  .town-instructions {
    gap: 0 12px;
    margin: 10px 0 6px;
    font-size: 0.875rem;
  }
  .instruction-desktop {
    display: none;
  }
  .instruction-touch {
    display: block;
    width: 100%;
    font-size: 0.875rem;
  }
  .town-instructions button {
    min-height: 44px;
    padding: 8px 4px;
    font-size: 0.875rem;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .town-instructions .gold-counter {
    margin-left: auto;
    font-size: 0.8125rem;
  }
  .town-message {
    font-size: 0.875rem;
    min-height: 2.8em;
  }
  .town-directory {
    margin-top: 36px;
    margin-bottom: 50px;
  }
  .directory-heading {
    display: block;
  }
  .directory-heading > p {
    margin-top: 15px;
    font-size: 1rem;
  }
  .npc-scroll > summary {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 12px;
    font-size: 1.0625rem;
    padding: 22px 0;
  }
  .npc-scroll > .npc-content {
    padding: 0 5px;
    font-size: 1rem;
  }
  .npc-content {
    overflow-wrap: anywhere;
  }
  .npc-content .scroll-link {
    min-height: 44px;
    font-size: 1rem;
  }
  .chronicle-year,
  .chronicle-role,
  .spellbook h3,
  .spellbook p {
    font-size: 0.9375rem;
  }
  .town-dialog {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: 94svh;
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    overflow-y: auto;
  }
  .dialog-frame {
    padding: 0;
  }
  .dialog-top {
    position: sticky;
    top: 0;
    z-index: 2;
    align-items: center;
    padding: 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .dialog-top > div {
    min-width: 0;
  }
  .dialog-top h2 {
    font-size: 2rem;
    margin-top: 8px;
    overflow-wrap: anywhere;
  }
  .dialog-top .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }
  .dialog-top button {
    width: 48px;
    height: 48px;
  }
  .npc-greeting {
    font-size: 1.15rem;
    padding-block: 24px;
    margin: 0 20px 24px;
  }
  #dialog-content {
    padding-inline: max(20px, env(safe-area-inset-left))
      max(20px, env(safe-area-inset-right));
  }
  .dialog-bottom {
    margin-top: 24px;
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  .dialog-bottom > span {
    display: none;
  }
  .dialog-bottom button {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }
  .impact-runes {
    gap: 14px;
  }
  .impact-runes strong {
    font-size: 2rem;
  }
  .impact-runes span {
    font-size: 0.875rem;
  }
  .gamble-panel {
    padding: 18px;
  }
  .gamble-balance {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .gamble-button {
    min-height: 48px;
    font-size: 1rem;
  }
  .gamble-odds,
  .game-currency-note,
  .loot-reveal p {
    font-size: 0.875rem;
  }
  .page-intro {
    padding: 36px 0;
    margin-bottom: 35px;
  }
  .page-intro h1 {
    font-size: clamp(2.4rem, 9vw, 3.3rem);
    overflow-wrap: anywhere;
  }
  .page-intro-bottom {
    display: block;
  }
  .page-intro-bottom p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-intro-bottom br {
    display: none;
  }
  .resume-layout {
    display: block;
  }
  .career-entry summary {
    grid-template-columns: 38px 12px minmax(0, 1fr) 16px;
    gap: 10px;
  }
  .career-company {
    font-size: 1.4rem;
  }
  .career-detail {
    font-size: 1rem;
  }
  .career-caption,
  .career-role,
  .career-instruction {
    font-size: 0.9375rem;
  }
  .career-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .expand-all {
    min-height: 44px;
    font-size: 0.875rem;
  }
  .career-end svg {
    margin-left: 48px;
  }
  .resume-aside {
    margin-top: 40px;
  }
  .resume-profile a {
    font-size: 0.9375rem;
    overflow-wrap: anywhere;
    min-height: 44px;
  }
  .skill-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    padding-inline: 15px;
  }
  .skill-groups p {
    font-size: 0.9375rem;
  }
  .resume-closing {
    display: block;
    margin: 10px 0;
  }
  .resume-closing p {
    margin-bottom: 20px;
    font-size: 1.3rem;
  }
  .site-footer > div {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .site-footer a:not(.wordmark) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.875rem;
  }
  .site-footer p {
    font-size: 0.8125rem;
  }
  .article-row {
    grid-template-columns: 25px minmax(0, 1fr) 16px;
    gap: 12px;
  }
  .article-time {
    display: none;
  }
  .article-row h3 {
    font-size: 1.25rem;
  }
  .article-row p {
    font-size: 1rem;
  }
  .article-header {
    margin-top: 40px;
  }
  .article-header h1 {
    font-size: 2.5rem;
    overflow-wrap: anywhere;
  }
  .article-deck {
    font-size: 1.1rem;
  }
  .article-byline {
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  .prose {
    font-size: 1rem;
  }
  .print-resume {
    padding: 0 20px;
  }
  .print-toolbar {
    flex-wrap: wrap;
  }
  .print-role header {
    display: block;
  }
  .print-role header span {
    display: block;
    margin-top: 6px;
  }
}
@media (max-width: 380px) {
  .npc-shortcuts a {
    padding: 10px;
    gap: 6px;
    font-size: 0.875rem;
  }
  .npc-shortcuts a:not(:last-child) > .icon {
    display: none;
  }
  .spellbook,
  .skill-groups {
    grid-template-columns: 1fr;
  }
  .impact-runes {
    grid-template-columns: 1fr;
  }
  .impact-runes > div {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .impact-runes strong {
    min-width: 92px;
  }
}
@media (hover: none) and (orientation: landscape) and (max-height: 500px) {
  .town-viewport {
    height: 320px;
    min-height: 0;
  }
  .town-dialog {
    max-height: 100dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  @page {
    margin: 14mm;
  }
  body {
    background: white;
    color: #111;
    font-size: 10pt;
  }
  .site-header,
  .site-footer,
  .skip-link,
  .print-toolbar {
    display: none !important;
  }
  .print-resume {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .print-header h1 {
    font-size: 28pt;
  }
  .print-header p {
    font-size: 12pt;
  }
  .print-header div,
  .print-role header span {
    font-size: 9pt;
  }
  .print-summary,
  .career-detail,
  .print-skills p {
    font-size: 9pt;
    line-height: 1.5;
  }
  .print-resume section > h2 {
    font-size: 14pt;
    margin: 20px 0 10px;
  }
  .print-projects article {
    margin-top: 12px;
  }
  .print-projects p {
    font-size: 9pt;
    line-height: 1.4;
  }
  .print-projects li {
    font-size: 9pt;
    line-height: 1.4;
  }
  .print-projects h3 {
    font-size: 11pt;
  }
  .print-projects a {
    font-size: 8pt;
    margin: 0;
    padding: 0;
  }
  .print-role {
    margin-top: 16px;
    break-inside: avoid;
  }
  .print-role h3 {
    font-size: 12pt;
  }
  .print-role-title {
    font-size: 10pt;
  }
  .career-detail ul {
    margin: 8px 0;
  }
  .career-detail li + li {
    margin-top: 4px;
  }
  .tags {
    margin-top: 8px;
    gap: 5px;
  }
  .tags span {
    font-size: 8pt;
    border: 0;
    padding: 0 8px 0 0;
  }
  .print-header {
    padding-bottom: 12px;
  }
  .print-summary {
    margin: 15px 0;
  }
  a {
    color: inherit;
  }
  .print-role header {
    display: flex;
  }
}
/* The complete miniature remains visible when scripting is unavailable. */
.town-viewport:not(.playing) {
  height: auto;
  min-height: 0;
  aspect-ratio: 3/2;
}
.town-viewport:not(.playing) .town-world {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
}
.town-viewport:not(.playing) .town-background {
  width: 100%;
  height: auto;
}
.town-viewport:not(.playing) .town-player {
  width: 14.0625%;
  height: 39.0625%;
}
.town-viewport:not(.playing) .character-sprite {
  width: 100%;
  height: 100%;
}
.town-viewport:not(.playing) .kitchen-dog {
  width: 10%;
  height: 16%;
}
.town-viewport:not(.playing) .town-npc {
  transform: translate(-50%, -100%);
  padding: 6px 9px;
}
.town-viewport:not(.playing) .npc-name {
  font-size: 14px;
}
.town-viewport:not(.playing) .npc-name small,
.town-viewport:not(.playing) .station-number {
  display: none;
}

@media (max-width: 699px) {
  .town-viewport:not(.playing) .town-npc {
    padding: 0;
  }
  .town-viewport:not(.playing) .station-number {
    display: grid;
  }
  .town-viewport:not(.playing) .player-name,
  .town-viewport:not(.playing) .kitchen-dog span {
    bottom: -18px;
  }
  .town-viewport:not(.playing) .kitchen-dog.heeler span {
    bottom: -42px;
  }
}
