@font-face {
  font-family: "VT323";
  src: url("./fonts/vt323.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0d1518;
  --surface: #162225;
  --line: #2e3c3a;
  --text: #e2e5dc;
  --muted: #a1b2ab;
  --gold: #dcc18a;
  --pixel: "VT323", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  background: #17242b;
  color: var(--text);
  font: 16px/1.7 var(--sans);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
a:hover {
  color: var(--gold);
}
.shell {
  position: relative;
  width: min(1440px, 100%);
  margin: auto;
  padding: 0;
  background: none;
}
#journey-world {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-bottom: 150px;
}
.world-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  touch-action: pan-y;
}
#journey-world > :not(.world-layer) {
  position: relative;
  z-index: 1;
}
.header {
  width: min(1200px, calc(100% - 48px));
  margin: auto;
  min-height: 144px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 18px;
}
.identity img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  image-rendering: auto;
  border-radius: 50%;
  border: 2px solid #637568;
  padding: 3px;
}
h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1.1px;
  line-height: 1.2;
}
.email-link {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
}
.game-frame {
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  pointer-events: none;
}
.world-wrap {
  position: relative;
  aspect-ratio: 16/9;
  pointer-events: none;
}
canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  image-rendering: pixelated;
  touch-action: pan-y;
}
canvas:focus-visible {
  outline: none;
}
#journey-world:has(#world:focus-visible) .world-wrap {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}
.building-access {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.building-access button {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  background: transparent;
  border: 0;
  pointer-events: auto;
}
.building-access button:hover {
  box-shadow: inset 0 0 0 1px #e3c88e55;
  background: #e3c88e06;
}
.building-access button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.interact {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #17221ff2;
  border: 1px solid #aa976a;
  border-radius: 3px;
  padding: 7px 14px;
  color: var(--gold);
  white-space: nowrap;
  pointer-events: auto;
  font: 400 22px/1.2 var(--pixel);
  font-synthesis: none;
  box-shadow: 0 3px 12px #0004;
}
.interact[hidden] {
  display: none;
}
kbd {
  display: inline-block;
  background: #24332c;
  border: 1px solid #506254;
  border-bottom: 2px solid #425144;
  border-radius: 2px;
  padding: 0 5px;
  margin: 0 2px;
  font: 18px/1.1 var(--pixel);
  color: #d7dcc4;
}
.game-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-top: 1px solid #34463d;
  min-height: 72px;
  width: min(1050px, calc(100% - 48px));
  margin: auto;
  pointer-events: auto;
  background: #192c23f5;
  border: 2px solid #746443;
  box-shadow: 3px 3px #15251d;
}
.keyboard-hint {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #abb8ab;
  font-size: 13px;
}
.hint-dot {
  padding: 0 8px;
  color: #5e7462;
}
.game-options {
  display: flex;
  gap: 16px;
}
.game-options button {
  border: 0;
  padding: 8px 0;
  background: none;
  color: #a9b8aa;
  white-space: nowrap;
  font-size: 13px;
}
.game-options button:hover,
.game-options button[aria-pressed="true"] {
  color: var(--gold);
}
.touch-pad {
  display: none;
}
.touch-pad button {
  width: 44px;
  height: 44px;
  border: 1px solid #63745e;
  border-radius: 3px;
  background: #24372c;
  color: var(--gold);
  touch-action: none;
  user-select: none;
}
.touch-pad button:active {
  background: #4c5e42;
}
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 25px 0 10px;
  color: #b8c7ba;
  font-size: 20px;
}
.social-links > span {
  color: #56705c;
}
.reading-invitation {
  display: flex;
  justify-content: center;
  padding: 50px 20px 70px;
}
.reading-invitation a {
  position: relative;
  padding: 22px 32px 18px;
  text-align: center;
  color: #f1dfb1;
  background: repeating-linear-gradient(
    0deg,
    #6d5135 0 22px,
    #543f2c 22px 24px
  );
  border: 6px solid #a18759;
  box-shadow:
    0 0 0 3px #453926,
    6px 6px #14251cb3;
  font: 24px/1.2 var(--pixel);
}
.reading-invitation a:before,
.reading-invitation a:after {
  content: "";
  position: absolute;
  bottom: -48px;
  height: 42px;
  width: 12px;
  background: #695035;
  border-inline: 2px solid #a08352;
}
.reading-invitation a:before {
  left: 28px;
}
.reading-invitation a:after {
  right: 28px;
}
.reading-invitation strong {
  display: block;
  font-size: 32px;
  font-weight: 400;
}
.reading-invitation .billboard-detail {
  display: block;
  font: 16px/1.5 var(--sans);
  margin-top: 8px;
}

.portfolio-reading {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  pointer-events: none;
}
.reading-section {
  pointer-events: auto;
  width: 58%;
  margin: 200px 0 0 9%;
  padding: 38px 42px 42px;
  border: 2px solid #9c865d;
  outline: 4px solid #354231;
  background: #172921f5;
  box-shadow: 6px 7px #13251ad6;
  scroll-margin-top: 32px;
}
.reading-section:nth-of-type(even) {
  margin-left: auto;
  margin-right: 9%;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-bottom: 26px;
}
.section-number {
  font: 20px var(--pixel);
  color: #81948a;
}
h2 {
  margin: 0;
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -1px;
  line-height: 1.2;
}
h3 {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 12px;
}
p {
  color: #acbdb4;
  margin: 0 0 20px;
  line-height: 1.8;
}
.section-lead {
  font-size: 18px;
  color: #ced8cc;
  max-width: 760px;
  margin-bottom: 28px;
  line-height: 1.75;
}
.section-body > p {
  max-width: 760px;
}
.section-body > h3 {
  margin-top: 36px;
}
.about-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 28px 0;
  color: #b6c7bc;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.about-details span {
  border-bottom: 1px solid #405345;
  padding-bottom: 5px;
}
.quote {
  padding: 2px 0 2px 19px;
  border-left: 2px solid #7a8b69;
  color: #cfcaac;
  margin: 30px 0;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.project-card {
  background: #142123;
  border: 1px solid #2e4139;
  border-radius: 5px;
  padding: 28px;
}
.project-card h3 {
  margin-top: 20px;
  font-size: 23px;
  color: #e1dfcc;
}
.project-card p {
  margin-bottom: 24px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: #a0b49b;
}
.text-link,
.project-card a {
  color: var(--gold);
  font-size: 14px;
  border-bottom: 1px solid #746d4d;
  padding-bottom: 3px;
  display: inline-block;
}
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 28px;
}
.timeline {
  border-left: 1px solid #455947;
  padding-left: 28px;
  margin: 35px 0;
}
.timeline article {
  position: relative;
  padding-bottom: 36px;
}
.timeline article:last-child {
  padding-bottom: 0;
}
.timeline article:before {
  content: "";
  position: absolute;
  top: 7px;
  left: -33px;
  width: 9px;
  height: 9px;
  background: #a5b786;
  border: 2px solid var(--bg);
  border-radius: 50%;
}
.timeline small {
  font-size: 12px;
  color: #b6b797;
  letter-spacing: 0.07em;
}
.timeline h3 {
  margin-top: 9px;
}
.timeline p {
  max-width: 720px;
  margin: 0;
}
.tech-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 30px 0;
}
.tech-list article {
  border-top: 1px solid #344739;
  padding-top: 20px;
}
.tech-list h3 {
  color: #d6d4b5;
  font-size: 18px;
}
.tech-list p {
  margin: 0;
}
.volunteering {
  margin-top: 36px;
}
.volunteer-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.volunteer-list article {
  padding-top: 20px;
  border-top: 1px solid #344739;
}
.volunteer-list small {
  font-size: 13px;
  color: #9aafa0;
}
.volunteer-list h4 {
  margin: 10px 0 7px;
  font-size: 18px;
  font-weight: 500;
}
.volunteer-role {
  color: #d1d3b5;
  font-size: 14px;
  margin-bottom: 13px;
}
.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: absolute;
  top: -80px;
  left: 20px;
  padding: 12px;
  background: var(--surface);
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
dialog {
  padding: 0;
  width: min(850px, calc(100% - 32px));
  max-height: 85dvh;
  background: #152225;
  color: var(--text);
  border: 1px solid #657662;
  border-radius: 6px;
  box-shadow: 0 25px 100px #0008;
}
dialog::backdrop {
  background: #070f15c7;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  color: #b5c2a3;
  font: 18px var(--pixel);
}
.panel-top button {
  border: 0;
  background: none;
  font-size: 20px;
  padding: 8px;
}
.panel-content {
  padding: 30px;
}
.panel-content h2 {
  margin-bottom: 25px;
  color: #ded7b8;
}
.panel-content .section-lead {
  font-size: 17px;
}
.panel-content .project-card {
  padding: 22px;
}
.panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  font-size: 12px;
  color: var(--muted);
}
.panel-footer button {
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 12px;
}
.panel-footer kbd {
  margin-left: 8px;
}
@media (max-width: 1100px) {
  .keyboard-hint {
    gap: 12px;
    flex-wrap: wrap;
  }
  .game-options {
    gap: 12px;
  }
}
@media (max-width: 700px) {
  .shell {
    padding: 0 16px;
  }
  .header {
    min-height: 110px;
    padding: 18px 0;
    flex-wrap: wrap;
    gap: 10px;
  }
  .identity {
    gap: 13px;
  }
  .identity img {
    width: 76px;
    height: 76px;
  }
  h1 {
    font-size: 27px;
  }
  .email-link {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
    padding: 0;
    font-size: 13px;
    margin-top: -10px;
  }
  .game-bottom {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px;
    gap: 16px;
  }
  .keyboard-hint {
    width: 100%;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
  }
  .hint-dot {
    padding: 0 5px;
  }
  .touch-pad {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    gap: 5px;
  }
  .touch-pad [data-move="up"] {
    grid-column: 2;
  }
  .touch-pad [data-move="left"] {
    grid-row: 2;
    grid-column: 1;
  }
  .touch-pad [data-move="down"] {
    grid-row: 2;
    grid-column: 2;
  }
  .touch-pad [data-move="right"] {
    grid-row: 2;
    grid-column: 3;
  }
  .game-options {
    flex-direction: column;
    gap: 6px;
    margin-left: 12px;
  }
  .interact {
    bottom: 8px;
    font-size: 20px;
    padding: 5px 9px;
  }
  .reading-invitation {
    padding: 12px 12px 38px;
  }
  .reading-invitation a {
    font-size: 18px;
  }
  .reading-section {
    padding: 36px 4px 42px;
  }
  h2 {
    font-size: 29px;
  }
  .section-lead {
    font-size: 17px;
  }
  .project-grid,
  .tech-list,
  .volunteer-list {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 23px;
  }
  .panel-content {
    padding: 22px;
  }
  .panel-footer button {
    margin-left: auto;
  }
}
@media (pointer: coarse) and (min-width: 701px) {
  .touch-pad {
    display: flex;
    gap: 5px;
  }
  .keyboard-hint {
    flex-direction: column;
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.house-label {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border: 1px solid #8f805b;
  border-radius: 2px;
  background: #2a3028f2;
  color: #f1deb1;
  font: 400 22px/1 var(--pixel);
  font-synthesis: none;
  white-space: nowrap;
  box-shadow: 0 2px 4px #0004;
  pointer-events: none;
}
.building-access button:hover .house-label,
.building-access button:focus-visible .house-label {
  border-color: #dfc791;
  color: #fff1cd;
}
@media (max-width: 700px) {
  .house-label {
    font-size: 20px;
    padding: 2px 6px;
    top: calc(100% + 2px);
  }
  .header {
    min-height: 146px;
  }
  .email-link {
    font-size: 12px;
  }
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.email-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex: 0 0 auto;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.social-emoji {
  font-size: 21px;
  line-height: 1;
}
.panel-footer {
  justify-content: flex-end;
}

.controls-slot {
  min-height: 76px;
}
.social-links {
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 22px auto 0;
  padding: 10px 22px;
  background: #263a29f5;
  border: 1px solid #6c7350;
  box-shadow: 3px 3px #17291c;
}
.project-card {
  background: #1c3028;
  border-color: #475940;
}
@media (max-width: 700px) {
  .shell {
    padding: 0;
    background: none;
  }
  .header {
    min-height: 146px;
    width: calc(100% - 40px);
  }
  .world-wrap {
    aspect-ratio: 16/9;
  }
  .controls-slot {
    min-height: 208px;
  }
  .game-bottom {
    width: calc(100% - 32px);
  }
  .reading-invitation {
    padding: 40px 22px 55px;
  }
  .reading-invitation a {
    padding: 17px 15px 12px;
    font-size: 24px;
  }
  .reading-invitation .billboard-detail {
    font-size: 16px;
  }
  .portfolio-reading {
    padding: 0;
    background: none;
  }
  .reading-section,
  .reading-section:nth-of-type(even) {
    width: calc(100% - 32px);
    margin: 190px 16px 0;
    padding: 28px 22px 32px;
  }
  .social-links {
    gap: 17px;
  }
}

/* The baked scene is only for readers without scripts; everyone else gets
   the live canvas, so the 1.3 MB image never competes with the opening. */
html:not(.js) #journey-world {
  background-image: url("./art/journey.png");
}
#journey-world {
  background-size: 100% auto;
  background-repeat: repeat-y;
  image-rendering: pixelated;
}
.reading-section,
.game-bottom,
.social-links,
.reading-invitation {
  image-rendering: auto;
}

/* Sky and controls stay in normal document flow; nothing follows scrolling. */
.sky-header {
  padding-bottom: 20px;
}
.controls-slot {
  min-height: 0;
}
.game-bottom {
  position: static;
  transform: none;
  margin: 16px auto 8px;
}
.header {
  min-height: 150px;
}
.identity {
  padding: 8px 12px;
  border: 1px solid #4a635d;
  background: #17242be8;
  border-radius: 4px;
}
.email-link {
  align-self: flex-end;
  margin-bottom: 16px;
  padding: 7px 12px;
  background: #17242bf2;
  border: 1px solid #4a635d;
  border-radius: 3px;
}
.social-links {
  width: 100%;
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 28px 12% 60px;
  background: none;
  border: 0;
  box-shadow: none;
}
.social-links a {
  position: relative;
  justify-content: center;
  min-width: 170px;
  padding: 13px 19px;
  background: repeating-linear-gradient(
    0deg,
    #6d5135 0 21px,
    #543f2c 21px 23px
  );
  border: 5px solid #a18759;
  box-shadow:
    0 0 0 2px #453926,
    4px 4px #14251cb3;
  color: #f1dfb1;
  font: 26px/1.2 var(--pixel);
}
.social-links a:after {
  content: "";
  position: absolute;
  left: calc(50% - 6px);
  bottom: -39px;
  height: 34px;
  width: 12px;
  background: #695035;
  border-inline: 2px solid #a08352;
  pointer-events: none;
}
.social-links a:hover {
  color: #fff2ca;
  border-color: #c4a571;
}
@media (max-width: 700px) {
  .sky-header {
    padding-bottom: 14px;
  }
  .controls-slot {
    min-height: 0;
  }
  .header {
    min-height: 148px;
  }
  .identity {
    padding: 5px 7px;
    gap: 10px;
  }
  .identity img {
    width: 76px;
    height: 76px;
  }
  h1 {
    font-size: 26px;
  }
  .email-link {
    justify-content: flex-end;
    padding: 4px 8px;
    width: auto;
    margin-left: auto;
    margin-top: 0;
  }
  .social-links {
    padding: 24px 16px 54px;
    gap: 14px;
  }
  .social-links a {
    min-width: 0;
    flex: 1;
    padding: 10px 9px;
    font-size: 24px;
  }
}

/* Quiet HUD, sky projections, and stepped stone-and-earth surfaces. */
.game-bottom {
  background: linear-gradient(
    90deg,
    transparent,
    #17242b78 25%,
    #17242b78 75%,
    transparent
  );
  border: 0;
  box-shadow: none;
}
.keyboard-hint,
.game-options button {
  color: #ccd5c5;
  text-shadow: 2px 2px #17242b;
}
kbd,
.touch-pad button {
  border: 0;
  border-radius: 0;
  background: #314339a6;
  box-shadow:
    0 2px #536354,
    2px 0 #405248,
    -2px 0 #405248;
}
.header {
  min-height: 190px;
}
.identity,
.email-link,
.contact {
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #f0eed6;
  text-shadow:
    2px 2px #19272d,
    0 0 14px #c9dbba66;
}
.identity {
  padding: 12px 16px;
}
.identity h1 {
  font: 40px/1.1 var(--pixel);
  letter-spacing: 0;
}
.identity img {
  border: 0;
  padding: 0;
  box-shadow: 0 0 24px #d2dfb348;
}
.identity::before,
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -20px -26px;
  background: radial-gradient(
    ellipse,
    #c5d5ae2e 10%,
    #bacfa91a 50%,
    transparent 72%
  );
  clip-path: polygon(
    8% 20%,
    20% 20%,
    20% 8%,
    80% 8%,
    80% 20%,
    92% 20%,
    92% 80%,
    80% 80%,
    80% 92%,
    20% 92%,
    20% 80%,
    8% 80%
  );
}
.identity::after,
.contact::after {
  content: "";
  position: absolute;
  z-index: -2;
  pointer-events: none;
  top: 50%;
  left: 0;
  width: 100%;
  height: 230px;
  background: linear-gradient(#c7dab321, #c7dab30b 75%, transparent);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 8%,
    94% 8%,
    94% 16%,
    88% 16%,
    88% 24%,
    82% 24%,
    82% 32%,
    76% 32%,
    76% 40%,
    70% 40%,
    70% 48%,
    64% 48%,
    64% 56%,
    58% 56%,
    58% 72%,
    52% 72%,
    52% 100%,
    48% 100%,
    48% 72%,
    42% 72%,
    42% 56%,
    36% 56%,
    36% 48%,
    30% 48%,
    30% 40%,
    24% 40%,
    24% 32%,
    18% 32%,
    18% 24%,
    12% 24%,
    12% 16%,
    6% 16%,
    6% 8%,
    0 8%
  );
}
.email-link {
  align-self: center;
  margin: 0;
  padding: 14px 12px;
  font: 24px/1.3 var(--pixel);
}
.email-icon {
  width: auto;
  height: auto;
  font-size: 28px;
}
.reading-section,
dialog {
  border: 0;
  outline: 0;
  border-radius: 0;
  background-color: #302b24;
  background-image:
    linear-gradient(90deg, #25261dcc, #292920ed 12%, #292920ed 88%, #25261dcc),
    url("./art/earth.svg");
  background-size:
    auto,
    96px 96px;
  box-shadow:
    0 -4px #655f48,
    0 4px #454737,
    -4px 0 #454737,
    4px 0 #454737,
    0 -8px #354030,
    0 8px #243329,
    -8px 0 #354030,
    8px 0 #354030;
  clip-path: polygon(
    0 8px,
    8px 8px,
    8px 0,
    calc(100% - 8px) 0,
    calc(100% - 8px) 8px,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    8px calc(100% - 8px),
    0 calc(100% - 8px)
  );
}
.reading-section {
  background-image:
    linear-gradient(90deg, #29292066, #292920ed 14%, #292920ed 86%, #29292066),
    url("./art/earth.svg");
}
.reading-section h2 {
  font: 40px/1.15 var(--pixel);
  letter-spacing: 0;
  color: #eee2bd;
}
.project-card {
  background: #222b24b8;
  border: 0;
  border-radius: 0;
  box-shadow:
    -2px 0 #45513b,
    2px 0 #45513b,
    0 -2px #45513b,
    0 2px #35412f;
}
.timeline article:before {
  border-radius: 0;
}
.house-label,
.interact {
  border: 0;
  border-radius: 0;
  box-shadow:
    -2px 0 #706848,
    2px 0 #706848,
    0 -2px #706848,
    0 2px #4e543b;
}
.social-links a,
.reading-invitation a {
  border: 0;
  border-radius: 0;
  box-shadow:
    -4px 0 #8b754e,
    4px 0 #8b754e,
    0 -4px #8b754e,
    0 4px #705e40,
    -8px 0 #3e3d2a,
    8px 0 #3e3d2a,
    0 -8px #3e3d2a,
    0 8px #3e3d2a;
}
dialog {
  font: 24px/1.45 var(--pixel);
  color: #ede6cd;
}
dialog p {
  font: 24px/1.45 var(--pixel);
  color: #d1d6bf;
  margin-bottom: 20px;
}
.panel-content h2 {
  font: 42px/1.1 var(--pixel);
  letter-spacing: 0;
}
.panel-content h3,
.panel-content h4,
.panel-content .project-card h3 {
  font: 30px/1.15 var(--pixel);
}
.panel-content .section-lead {
  font: 26px/1.4 var(--pixel);
  color: #eee6ca;
}
.panel-content small,
.panel-content .about-details,
.panel-content .tags,
.panel-content a,
.panel-content .volunteer-role {
  font: 20px/1.3 var(--pixel);
  letter-spacing: 0;
}
.panel-top,
.panel-footer {
  border: 0;
  background: #253026a6;
  font: 20px/1.2 var(--pixel);
}
.panel-top button,
.panel-footer button {
  font: 22px/1.2 var(--pixel);
}
dialog::backdrop {
  background: #0d191ddd;
}
@media (max-width: 700px) {
  .header {
    min-height: 180px;
    gap: 16px;
  }
  .identity {
    padding: 8px 0;
  }
  .identity h1 {
    font-size: 32px;
  }
  .email-link {
    margin-left: auto;
    padding: 8px 0;
    font-size: 21px;
  }
  .email-icon {
    font-size: 24px;
  }
  .identity::after,
  .contact::after {
    height: 150px;
  }
  .identity::before,
  .contact::before {
    inset: -14px -10px;
  }
  .panel-content {
    padding: 24px;
  }
  .reading-section h2 {
    font-size: 36px;
  }
  .reading-invitation a {
    padding: 20px 15px;
  }
}

/* All text uses the native pixel font at readable, unscaled sizes. */
:root {
  --sans: "VT323", monospace;
}
body {
  font: 24px/1.45 var(--pixel);
  font-synthesis: none;
}
button,
input,
select,
textarea {
  font-family: var(--pixel);
}
p,
.reading-section p {
  font: 24px/1.45 var(--pixel);
  color: #d0d7c7;
}
h3,
.project-card h3,
.tech-list h3,
.volunteer-list h4 {
  font: 30px/1.15 var(--pixel);
}
.about-details,
.tags,
.timeline small,
.volunteer-list small,
.volunteer-role,
.project-card a,
.text-link {
  font: 20px/1.3 var(--pixel);
  letter-spacing: 0;
}
.keyboard-hint {
  font: 20px/1.2 var(--pixel);
}
kbd {
  font-size: 20px;
}
.reading-invitation .billboard-detail {
  font: 22px/1.25 var(--pixel);
}
.reading-section,
dialog {
  background-color: #282d2b;
  background-image:
    linear-gradient(90deg, #22282350, #202721ec 13%, #202721ec 87%, #22282350),
    url("./art/cave.svg");
  background-size:
    auto,
    128px 128px;
  box-shadow: none;
}
.project-card {
  background: #222a24c9;
  box-shadow: none;
}
.about-details span,
.timeline,
.tech-list article,
.volunteer-list article,
.project-card a,
.text-link {
  border: 0;
}
.timeline {
  padding-left: 20px;
}
.timeline article::before {
  left: -20px;
  width: 6px;
  height: 6px;
  border: 0;
  background: #8a9b75;
  box-shadow: 2px 2px #4e664c;
}
.project-card a,
.text-link {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #7e8963;
}
.project-card {
  padding: 24px;
}
.section-heading {
  margin-bottom: 30px;
}
.identity h1,
.email-link {
  text-shadow: 2px 2px #19272d;
}
@media (max-width: 700px) {
  .keyboard-hint {
    font-size: 18px;
  }
  .reading-section p {
    font-size: 24px;
  }
  .reading-section {
    padding: 28px 24px 32px;
  }
}
.game-bottom {
  background: none;
}

/* Weathered woodland scrolls: muted rolled edges around a quiet reading field. */
.reading-section,
dialog {
  clip-path: none;
  border: 16px solid transparent;
  border-image: url("./art/scroll-frame.svg") 24 / 16px / 0 round;
  background-color: #30382d;
  background-image:
    linear-gradient(#30382de8, #30382de8), url("./art/cave.svg");
  background-size:
    auto,
    128px 128px;
  background-clip: padding-box;
  box-shadow: none;
}
.reading-section {
  padding: 26px 30px 30px;
}
.panel-top,
.panel-footer {
  background: #30382d;
}
#journey-world {
  padding-bottom: 48px;
}
.stable-clearing {
  width: 100%;
  height: 420px;
  margin-top: 180px;
  pointer-events: none;
}
@media (max-width: 700px) {
  .reading-section {
    padding: 22px 12px 26px;
    border-width: 12px;
    border-image-width: 12px;
  }
  dialog {
    border-width: 12px;
    border-image-width: 12px;
  }
  .panel-content {
    padding: 18px;
  }
  .stable-clearing {
    height: 260px;
    margin-top: 140px;
  }
}
.reading-section,
dialog {
  border-width: 24px 8px;
  border-image-width: 24px 8px;
}
@media (max-width: 700px) {
  .reading-section,
  dialog {
    border-width: 20px 6px;
    border-image-width: 20px 6px;
  }
}

/* Aged ribbon parchment, with stepped curls and worn paper grain. */
.reading-section,
dialog {
  border-width: 30px 18px;
  border-image: url("./art/scroll-frame.svg") 32 / 30px 18px / 0 stretch;
  background-color: #5c533e;
  background-image: url("./art/parchment.svg");
  background-size: 128px 128px;
  background-clip: padding-box;
}
.reading-section p,
dialog p {
  color: #eee4ca;
}
.reading-section h2,
.panel-content h2 {
  color: #fff0c8;
}
.reading-section .tags,
.reading-section small,
.about-details,
.volunteer-role {
  color: #ded5b7;
}
.section-number {
  color: #d4c6a1;
}
.project-card {
  background: #504b3980;
}
.panel-top,
.panel-footer {
  background: #5c533e;
}
.panel-top,
.panel-footer,
.project-card a,
.text-link {
  color: #f5deaa;
}
.river-divider {
  width: 100%;
  height: 140px;
  pointer-events: none;
}
.stable-clearing {
  height: 600px;
  margin-top: 150px;
}
@media (max-width: 700px) {
  .reading-section,
  dialog {
    border-width: 24px 12px;
    border-image-width: 24px 12px;
  }
  .river-divider {
    height: 96px;
  }
  .stable-clearing {
    height: 440px;
    margin-top: 120px;
  }
}
.reading-section {
  position: relative;
}
.reading-section::before,
.reading-section::after {
  content: "";
  position: absolute;
  left: -26px;
  right: -26px;
  height: 22px;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    #62583e 0 6px,
    #796b4a 6px 10px,
    #8b7a54 10px 12px,
    #736445 12px 18px,
    #564d38 18px 22px
  );
  clip-path: polygon(
    0 4px,
    12px 4px,
    12px 0,
    calc(100% - 12px) 0,
    calc(100% - 12px) 4px,
    100% 4px,
    100% 18px,
    calc(100% - 12px) 18px,
    calc(100% - 12px) 22px,
    12px 22px,
    12px 18px,
    0 18px,
    6px 12px
  );
}
.reading-section::before {
  top: -22px;
}
.reading-section::after {
  bottom: -22px;
}
.panel-content .tags,
.panel-content small,
.panel-content .about-details,
.panel-content .volunteer-role {
  color: #ded5b7;
}
@media (max-width: 700px) {
  .reading-section::before,
  .reading-section::after {
    left: -18px;
    right: -18px;
  }
}
@media (max-width: 700px) {
  .stable-clearing {
    height: max(440px, 112.5vw);
  }
}
/* Full-width scenery and a viewport-sized animation surface. */
.shell {
  width: 100%;
  max-width: none;
}
#world {
  inset: auto 0 auto 0;
  aspect-ratio: auto;
}
.stable-clearing {
  height: max(600px, 42vw);
}
@media (max-width: 700px) {
  .stable-clearing {
    height: max(440px, 112.5vw);
  }
}
.reading-section::before,
.reading-section::after {
  height: 24px;
  background-image:
    url("./art/ribbon-ornament.svg"),
    repeating-linear-gradient(
      0deg,
      #62583e 0 6px,
      #796b4a 6px 10px,
      #8b7a54 10px 12px,
      #736445 12px 18px,
      #564d38 18px 24px
    );
  background-size:
    192px 24px,
    auto;
  background-position: center;
  clip-path: polygon(
    0 2px,
    18px 2px,
    18px 0,
    calc(100% - 18px) 0,
    calc(100% - 18px) 2px,
    100% 2px,
    calc(100% - 8px) 12px,
    100% 22px,
    calc(100% - 18px) 22px,
    calc(100% - 18px) 24px,
    18px 24px,
    18px 22px,
    0 22px,
    8px 12px
  );
}
.section-heading::after {
  content: "";
  width: 96px;
  height: 24px;
  margin-left: auto;
  background: url("./art/ribbon-ornament.svg") center / 192px 24px;
  opacity: 0.6;
}
.header {
  width: calc(100% - 48px);
}
@media (max-width: 700px) {
  .header {
    width: calc(100% - 40px);
  }
}
@media (max-width: 740px) {
  .header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 0;
  }
  .identity {
    align-self: flex-start;
  }
  .email-link {
    align-self: flex-end;
    margin-left: auto;
  }
}
.sky-header {
  display: flow-root;
}
/* Keep scenery at a stable game scale on wide screens. */
.shell {
  width: min(1440px, 100%);
  max-width: 1440px;
}
.stable-clearing {
  height: 600px;
}

.stable-clearing {
  margin-top: 100px;
}
.building-access button:hover {
  background: transparent;
  box-shadow: none;
}
@media (max-width: 700px) {
  .stable-clearing {
    height: max(440px, 112.5vw);
  }
}
/* Woven earth-pigment borders and woodland storytelling motifs. */
.reading-section,
dialog {
  border-image: url("./art/woven-frame.svg") 32 / 32px / 0 round;
  border-width: 32px;
}
.reading-section::before,
.reading-section::after {
  height: 48px;
  left: -40px;
  right: -40px;
  background: url("./art/forest-story-band.svg") center / 256px 48px repeat-x;
  clip-path: polygon(
    0 4px,
    12px 4px,
    12px 0,
    calc(100% - 12px) 0,
    calc(100% - 12px) 4px,
    100% 4px,
    calc(100% - 8px) 24px,
    100% 44px,
    calc(100% - 12px) 44px,
    calc(100% - 12px) 48px,
    12px 48px,
    12px 44px,
    0 44px,
    8px 24px
  );
}
.reading-section::before {
  top: -34px;
}
.reading-section::after {
  bottom: -34px;
}
.section-heading::after {
  background-image: url("./art/forest-story-band.svg");
  background-size: 192px 36px;
  width: 120px;
  height: 36px;
  opacity: 0.65;
}
@media (max-width: 700px) {
  .reading-section,
  dialog {
    border-width: 16px;
    border-image-width: 16px;
  }
  .reading-section::before,
  .reading-section::after {
    left: -24px;
    right: -24px;
    height: 36px;
    background-size: 192px 36px;
    clip-path: polygon(
      0 4px,
      8px 0,
      calc(100% - 8px) 0,
      100% 4px,
      calc(100% - 6px) 18px,
      100% 32px,
      calc(100% - 8px) 36px,
      8px 36px,
      0 32px,
      6px 18px
    );
  }
  .reading-section::before {
    top: -20px;
  }
  .reading-section::after {
    bottom: -20px;
  }
}
/* Stationary scene surfaces scroll with the document; compositions never rearrange. */
.world-layer canvas {
  position: absolute;
  left: 0;
  width: 100%;
  aspect-ratio: auto;
  image-rendering: pixelated;
  pointer-events: none;
}
.world-layer #world {
  pointer-events: auto;
}
.scene-clearing {
  width: 100%;
  aspect-ratio: 960 / var(--scene-height);
  margin-top: 120px;
  pointer-events: none;
}
.reading-section {
  margin-top: 24px;
}
.stable-clearing {
  height: auto;
  aspect-ratio: 960 / 400;
  margin-top: 90px;
}

.river-divider {
  height: auto;
  aspect-ratio: 960 / 140;
}
.game-bottom {
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 32px);
}
.keyboard-hint {
  justify-content: center;
}
.identity,
.email-link {
  color: #fff6d9;
  text-shadow:
    2px 2px #101a1e,
    0 0 10px #d9eab68c;
}
.identity::before,
.contact::before {
  background: radial-gradient(
    ellipse,
    #d4e6b75c 10%,
    #c3d7a833 55%,
    transparent 75%
  );
}
.identity::after,
.contact::after {
  background: linear-gradient(#cee2af3d, #c7dab31c 75%, transparent);
}
.identity img {
  box-shadow:
    0 0 0 2px #e7e7cb,
    0 0 30px #dbe9ae88;
}
@media (max-width: 700px) {
  .scene-clearing {
    margin-top: 70px;
  }
  .reading-section,
  .reading-section:nth-of-type(even) {
    margin-top: 24px;
  }
  .stable-clearing {
    height: auto;
    margin-top: 60px;
  }

  .river-divider {
    height: auto;
  }
  .game-bottom {
    width: calc(100% - 32px);
  }
}
/* A quiet reading grove: four scrolls, clear ink, and a fixed lunar scene. */
.moon-clearing {
  width: 100%;
  aspect-ratio: 960 / 130;
  pointer-events: none;
}
.header {
  min-height: 150px;
}
.portfolio-reading {
  width: min(1280px, calc(100% - 72px));
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px 44px;
  align-items: stretch;
}
.portfolio-reading .reading-section,
.portfolio-reading .reading-section:nth-of-type(even) {
  width: auto;
  margin: 0;
  padding: 26px 24px 30px;
}
.reading-section,
dialog {
  background-color: #31281f;
  background-image:
    linear-gradient(#31281fec, #31281fec), url("./art/parchment.svg");
}
.reading-section p,
dialog p {
  color: #f1e9d5;
  font-size: 24px;
  line-height: 1.5;
}
.reading-section h2,
.reading-section h3,
.reading-section h4,
.panel-content h2,
.panel-content h3 {
  color: #fff0c9;
}
.reading-section small,
.reading-section .tags,
.reading-section .about-details,
.reading-section .volunteer-role {
  color: #ddd3ba;
}
.reading-section .project-card {
  background: #2d251db3;
  padding: 18px 0;
}
.reading-section .project-grid,
.reading-section .volunteer-list,
.reading-section .tech-list {
  grid-template-columns: 1fr;
  gap: 24px;
}
.panel-top,
.panel-footer {
  background: #31281f;
}
.reading-invitation {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 280;
  padding: 0;
  margin-top: 40px;
  justify-content: flex-start;
  align-items: center;
}
.reading-invitation a {
  margin-left: 48%;
  width: 43%;
  padding: 22px 20px;
}
.reading-invitation .billboard-detail {
  font-size: 22px;
}
@media (max-width: 850px) {
  .portfolio-reading {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 50px;
  }
  .portfolio-reading .reading-section,
  .portfolio-reading .reading-section:nth-of-type(even) {
    padding: 24px 16px 28px;
  }
}
@media (max-width: 700px) {
  .header {
    min-height: 180px;
  }
  .reading-invitation {
    padding: 0;
    margin-top: 34px;
  }
  .reading-invitation a {
    padding: 10px 8px;
    margin-left: 46%;
    width: 48%;
  }
  .reading-invitation strong {
    font-size: 26px;
  }
  .reading-invitation .billboard-detail {
    font-size: 18px;
  }
}
.portfolio-reading .reading-section {
  min-width: 0;
}
@media (max-width: 850px) {
  .portfolio-reading {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .portfolio-reading {
    width: calc(100% - 32px);
  }
  .section-heading::after {
    width: 60px;
    flex-shrink: 1;
  }
}
/* Three fixed reading-grove landmarks, a tighter moon scene, and drift glade. */
.moon-clearing {
  aspect-ratio: 960 / 90;
}
.reading-invitation a {
  margin-left: 32%;
  width: 36%;
}
.drift-clearing {
  width: 100%;
  aspect-ratio: 960 / 360;
  margin-top: 100px;
  pointer-events: none;
}
.stable-clearing {
  aspect-ratio: 960 / 460;
}
@media (max-width: 700px) {
  .reading-invitation a {
    margin-left: 29%;
    width: 42%;
    padding: 8px;
  }
  .reading-invitation strong {
    font-size: 22px;
  }
  .reading-invitation .billboard-detail {
    font-size: 16px;
    line-height: 1.2;
  }
  .drift-clearing {
    margin-top: 70px;
  }
}

/* The opening is one compact, fixed-scale landscape; the sky shares its space. */
.shell {
  width: min(1120px, 100%);
  max-width: 1120px;
}
#journey-world > .sky-header {
  position: absolute;
  inset: 0 0 auto;
  height: 170px;
  padding: 0;
  pointer-events: none;
  z-index: 3;
}
.sky-header .moon-clearing {
  position: absolute;
  top: 0;
  left: 0;
}
.sky-header .controls-slot {
  position: absolute;
  top: 12px;
  left: 24px;
}
.controls-slot .game-bottom {
  margin: 0;
  padding: 0;
  min-height: 0;
  max-width: none;
  justify-content: flex-start;
}
.keyboard-hint {
  justify-content: flex-start;
  gap: 12px;
}
.keyboard-hint kbd {
  font-size: 16px;
  padding: 0 3px;
}
.sky-header .header {
  position: absolute;
  top: 42px;
  left: 24px;
  width: calc(100% - 48px);
  min-height: 100px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.sky-header .identity {
  padding: 6px 8px;
  gap: 12px;
}
.identity h1 {
  font-size: 34px;
}
.sky-header .email-link {
  align-self: center;
  margin: 0;
  pointer-events: auto;
}
.game-frame .social-links {
  position: absolute;
  top: 58%;
  left: 2%;
  width: 96%;
  padding: 0;
  margin: 0;
  gap: 0;
  pointer-events: none;
  z-index: 2;
}
.game-frame .social-links a {
  pointer-events: auto;
  min-width: 0;
  padding: 10px 12px;
  font-size: 25px;
}
.river-divider {
  aspect-ratio: 960 / 80;
  margin: 0;
}
.reading-invitation {
  aspect-ratio: 960 / 200;
  margin-top: 0;
  min-height: 160px;
}
.reading-invitation a {
  padding: 14px 12px;
}
@media (max-width: 740px) {
  #journey-world > .sky-header {
    position: relative;
    height: 190px;
  }
  .sky-header .header {
    top: 48px;
    left: 16px;
    width: calc(100% - 32px);
    min-height: 0;
    gap: 12px;
  }
  .sky-header .controls-slot {
    top: 10px;
    left: 16px;
    right: 16px;
  }
  .controls-slot .game-bottom {
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .keyboard-hint {
    width: auto;
    gap: 8px;
    font-size: 14px;
  }
  .keyboard-hint kbd {
    font-size: 14px;
    margin: 0 1px;
    padding: 0 2px;
  }
  .touch-pad {
    position: absolute;
    right: 0;
    top: 40px;
    grid-template-columns: repeat(3, 28px);
    gap: 2px;
  }
  .touch-pad button {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .sky-header .identity {
    gap: 10px;
  }
  .identity h1 {
    font-size: 28px;
  }
  .sky-header .email-link {
    align-self: flex-start;
    margin: 0 0 0 8px;
    width: auto;
    font-size: 17px;
  }
  .game-frame .social-links {
    top: 8%;
  }
  .game-frame .social-links a {
    padding: 6px;
    font-size: 20px;
    gap: 4px;
  }
  .game-frame .social-emoji {
    font-size: 16px;
  }
  .game-frame .social-links a:after {
    height: 18px;
    bottom: -21px;
    width: 6px;
    left: calc(50% - 3px);
  }
  .reading-invitation {
    min-height: 170px;
  }
}
/* Fit the complete opening in the viewport without changing world coordinates. */
@media (min-width: 741px) {
  .shell {
    width: min(1120px, 100%, 105svh);
  }
  #journey-world > .sky-header {
    position: relative;
    height: auto;
    aspect-ratio: 960 / 90;
  }
}
.game-frame .social-links a {
  flex: 0 0 auto;
}
@media (max-width: 740px) {
  .sky-header .moon-clearing {
    top: 105px;
  }
}
@media (max-width: 360px) {
  .identity h1 {
    font-size: 24px;
  }
  .touch-pad {
    right: -8px;
  }
  .sky-header .email-link {
    font-size: 16px;
  }
}

/* Clear night sky for the identity signals, with a lower mountain horizon. */
.shell {
  width: min(1120px, 100%);
}
#journey-world > .sky-header {
  position: relative;
  height: auto;
  aspect-ratio: 960 / 230;
  min-height: 220px;
}
.sky-header .moon-clearing {
  top: 40px;
}
.stable-clearing {
  aspect-ratio: 960 / 720;
}
.game-frame .social-links a {
  background: url("./art/hanging-sign.svg") center / 100% 100% no-repeat;
  box-shadow: none;
  border: 0;
  padding: 30px 22px 20px;
  min-width: 150px;
  color: #fff0ce;
  text-shadow: 2px 2px #332c22;
}
.game-frame .social-links a::after {
  display: none;
}
.game-frame .social-links a:hover {
  filter: brightness(1.12);
}
.reading-invitation {
  aspect-ratio: 960 / 250;
  min-height: 230px;
}
.reading-invitation a {
  background: url("./art/trail-notice.svg") center / 100% 100% no-repeat;
  box-shadow: none;
  border: 0;
  margin-left: 29%;
  width: 42%;
  padding: 28px 26px;
  color: #fff0ce;
  text-shadow: 2px 2px #332c22;
}
.reading-invitation strong {
  font-size: 30px;
  line-height: 1.1;
}
.reading-invitation a::before,
.reading-invitation a::after {
  top: calc(100% - 6px);
  height: 38px;
  width: 12px;
  border: 0;
  background: repeating-linear-gradient(
    90deg,
    #69543b 0 4px,
    #8c704a 4px 6px,
    #504630 6px 12px
  );
  clip-path: polygon(0 0, 100% 0, 100% 80%, 70% 80%, 70% 100%, 0 100%);
}
.reading-invitation a::before {
  left: 17%;
}
.reading-invitation a::after {
  right: 17%;
}
@media (max-width: 740px) {
  #journey-world > .sky-header {
    height: 300px;
    min-height: 300px;
    aspect-ratio: auto;
  }
  .sky-header .moon-clearing {
    top: 160px;
  }
  .game-frame .social-links a {
    font-size: 20px;
    padding: 19px 12px 14px;
    min-width: 100px;
  }
  .reading-invitation {
    min-height: 250px;
  }
  .reading-invitation a {
    padding: 20px 16px;
  }
  .reading-invitation strong {
    font-size: 22px;
  }
  .reading-invitation .billboard-detail {
    font-size: 16px;
  }
}

#journey-world > .sky-header {
  width: 100%;
  min-width: 0;
}
@media (max-width: 740px) {
  .reading-invitation a {
    padding-top: 30px;
    padding-bottom: 28px;
  }
}
/* A slightly lower horizon, centered controls, and inset notice lettering. */
#journey-world > .sky-header {
  aspect-ratio: 960 / 200;
  min-height: 190px;
}
.sky-header .moon-clearing {
  top: 20px;
}
.sky-header .controls-slot {
  left: 24px;
  right: 24px;
  width: calc(100% - 48px);
  display: flex;
  justify-content: center;
}
.controls-slot .game-bottom {
  justify-content: center;
}
.keyboard-hint {
  justify-content: center;
}
.reading-invitation a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 34px 30px 40px;
}
.reading-invitation strong {
  max-width: 22ch;
  font-size: 28px;
  line-height: 1.15;
}
.reading-invitation .billboard-detail {
  margin-top: 12px;
}

@media (max-width: 740px) {
  #journey-world > .sky-header {
    height: 270px;
    min-height: 270px;
    aspect-ratio: auto;
  }
  .sky-header .moon-clearing {
    top: 140px;
  }
  .sky-header .controls-slot {
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
  }
  .controls-slot .game-bottom {
    width: 100%;
  }
  .reading-invitation a {
    min-height: 210px;
    padding: 32px 16px 38px;
  }
  .reading-invitation strong {
    font-size: 22px;
  }
}
@media (max-width: 740px) {
  .sky-header .moon-clearing {
    top: 160px;
  }
}

/* Roof names are painted straight onto the shingles: worn whitewash
   with a shingle shadow beneath, and no plaque around them. */
.house-label {
  top: 18%;
  transform: translate(-50%, -50%);
  padding: 0;
  background: none;
  box-shadow: none;
  color: #e6d8b2d9;
  letter-spacing: 1px;
  text-shadow:
    0 2px 0 #1e1a1699,
    0 -1px 0 #ffffff1a;
}
.building-access button:hover .house-label,
.building-access button:focus-visible .house-label {
  color: #fff1cd;
}
.interact {
  top: 92%;
  bottom: auto;
}
.reading-invitation a {
  padding: 36px 30px;
  text-align: center;
}
.reading-invitation .billboard-detail {
  margin: 12px 0 0;
}
@media (max-width: 700px) {
  .house-label {
    top: 18%;
    font-size: 16px;
    padding: 0;
  }
  .interact {
    font-size: 18px;
    padding: 5px 8px;
    max-width: calc(100% - 12px);
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 740px) {
  .reading-invitation a {
    padding: 32px 16px;
  }
}
@media (max-width: 740px) {
  .game-frame .social-links {
    top: 0;
  }
}
@media (max-width: 900px) {
  .game-frame .social-links {
    top: 0;
  }
}
@media (max-width: 360px) {
  .game-frame .social-links a {
    min-width: 110px;
    padding: 16px 8px 10px;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
  }
}

/* Four topic scrolls scattered through the grove, each with its own banner. */
.scroll-about {
  --scroll-tint: #3b1d21f0;
  --scroll-solid: #3b1d21;
  --ribbon: #8c2a2f;
  --ribbon-hi: #b4473f;
  --ribbon-dark: #521419;
  --ribbon-edge: #d8b064;
  --accent: #f3c58f;
}
.scroll-projects {
  --scroll-tint: #1d2b21f0;
  --scroll-solid: #1d2b21;
  --ribbon: #2f6a45;
  --ribbon-hi: #4c8a58;
  --ribbon-dark: #173d27;
  --ribbon-edge: #c9b073;
  --accent: #bfe0a2;
}
.scroll-career {
  --scroll-tint: #1b2335f0;
  --scroll-solid: #1b2335;
  --ribbon: #2d4f8c;
  --ribbon-hi: #4a6fae;
  --ribbon-dark: #172b55;
  --ribbon-edge: #d7bd78;
  --accent: #b9cdf2;
}
.scroll-gamedev {
  --scroll-tint: #2c2036f0;
  --scroll-solid: #2c2036;
  --ribbon: #693c7e;
  --ribbon-hi: #8b5a9c;
  --ribbon-dark: #3c1f4c;
  --ribbon-edge: #d6b36f;
  --accent: #e2bff0;
}
/* Two columns of equal scrolls that stack without gaps; the right column
   starts a little lower so the pairs stay staggered. */
.portfolio-reading {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}
.reading-column {
  display: flex;
  flex-direction: column;
  gap: 64px;
  min-width: 0;
}
.reading-column + .reading-column {
  padding-top: 120px;
}
.portfolio-reading .reading-section {
  margin-top: 0;
}
.portfolio-reading .reading-section {
  background-color: var(--scroll-solid);
  background-image:
    radial-gradient(ellipse at 50% 0, #ffffff0d, transparent 60%),
    linear-gradient(var(--scroll-tint), var(--scroll-tint)),
    url("./art/parchment.svg");
}
.portfolio-reading .section-heading {
  position: relative;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin: 0 -58px 30px;
  padding: 8px 58px 10px;
  background: linear-gradient(
    var(--ribbon-edge) 0 3px,
    var(--ribbon-hi) 3px 7px,
    var(--ribbon) 7px calc(100% - 9px),
    var(--ribbon-dark) calc(100% - 9px) calc(100% - 3px),
    var(--ribbon-edge) calc(100% - 3px)
  );
  box-shadow: 0 6px 0 #0000004d;
}
/* Folded swallowtail ends tuck behind the band like an old scroll banner. */
.portfolio-reading .section-heading::before,
.portfolio-reading .section-heading::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: -14px;
  width: 54px;
  margin: 0;
  opacity: 1;
  z-index: -1;
  background: linear-gradient(
    var(--ribbon-edge) 0 3px,
    var(--ribbon-dark) 3px calc(100% - 3px),
    var(--ribbon-edge) calc(100% - 3px)
  );
}
.portfolio-reading .section-heading::before {
  left: -40px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0 100%,
    18px 50%
  );
}
.portfolio-reading .section-heading::after {
  right: -40px;
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - 18px) 50%,
    100% 100%,
    0 100%
  );
}
.portfolio-reading .section-heading h2 {
  font-family: var(--pixel);
  font-size: 46px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #f8e3a4;
  text-shadow:
    2px 2px 0 var(--ribbon-dark),
    0 4px 0 #00000059;
}
.portfolio-reading .section-number {
  order: -2;
  font: 20px var(--pixel);
  color: var(--ribbon-edge);
}
.ribbon-emblem {
  order: -1;
  width: 32px;
  height: 32px;
  flex: none;
  shape-rendering: crispEdges;
  filter: drop-shadow(2px 2px 0 #00000066);
}
.portfolio-reading .reading-section h3,
.portfolio-reading .reading-section h4 {
  color: var(--accent);
}
.portfolio-reading .reading-section .project-card {
  background: #00000029;
  box-shadow: inset 3px 0 0 var(--ribbon);
  padding: 18px 16px;
}
.portfolio-reading .timeline article::before {
  background: var(--ribbon-edge);
}
.hobbies {
  margin-top: 28px;
}
.hobby-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.hobby-list li {
  position: relative;
  padding-left: 22px;
  color: #f1e9d5;
  font-size: 22px;
  line-height: 1.4;
}
.hobby-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--ribbon-edge);
  box-shadow: 2px 2px 0 var(--ribbon-dark);
}
.hobby-list strong {
  color: var(--accent);
  font-weight: 400;
}
@media (max-width: 850px) {
  .portfolio-reading {
    display: flex;
    flex-direction: column;
    gap: 64px;
  }
  /* Stacked, the scrolls simply follow the page order. */
  .reading-column {
    display: contents;
  }
  .reading-column + .reading-column {
    padding-top: 0;
  }
  .portfolio-reading .reading-section.scroll-about,
  .portfolio-reading .reading-section.scroll-projects {
    margin-right: 7%;
  }
  .portfolio-reading .reading-section.scroll-career,
  .portfolio-reading .reading-section.scroll-gamedev {
    margin-left: 7%;
  }
}
@media (max-width: 700px) {
  .portfolio-reading .section-heading {
    margin: 0 -32px 24px;
    padding: 6px 30px 8px;
    min-height: 48px;
    gap: 8px;
  }
  .portfolio-reading .section-heading::before,
  .portfolio-reading .section-heading::after {
    width: 22px;
    top: 10px;
    bottom: -10px;
  }
  .portfolio-reading .section-heading::before {
    left: -12px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
  }
  .portfolio-reading .section-heading::after {
    right: -12px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
  }
  .portfolio-reading .section-heading h2 {
    font-size: 36px;
  }
  .ribbon-emblem {
    width: 24px;
    height: 24px;
  }
  .portfolio-reading .reading-section.scroll-about,
  .portfolio-reading .reading-section.scroll-projects {
    margin-right: 4%;
  }
  .portfolio-reading .reading-section.scroll-career,
  .portfolio-reading .reading-section.scroll-gamedev {
    margin-left: 4%;
  }
  .hobby-list li {
    font-size: 20px;
  }
}

/* Opening title screen and cutscene. */
html.intro-open {
  overflow: hidden;
}
/* The camera moves the page itself; the temple margins stay in front of
   it, so the opening is framed the same way from title to hero. */
html.intro-open .temple {
  z-index: 2;
}
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: none;
  font-family: var(--pixel);
  color: #f3ead2;
}
/* Title: a still, pre-blurred night ocean and one scroll to unroll. */
.intro-title-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 24px 16px;
  overflow: hidden;
}
/* The night sea fills the page column; the temple margins frame it. */
.intro-night {
  position: absolute;
  inset: 0 var(--gutter, 0px);
  overflow: hidden;
  background: #050b12;
}
.intro-backdrop {
  animation: intro-ink 0.8s ease-out both;
}
.intro-backdrop,
.intro-glints {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The sea breathes: two glint layers sway and trade brightness. */
.intro-glints {
  animation: intro-swell 7s ease-in-out infinite alternate;
}
.intro-glints + .intro-glints {
  animation-duration: 5.3s;
  animation-direction: alternate-reverse;
}
@keyframes intro-swell {
  from {
    opacity: 0.35;
    transform: translate3d(-10px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(10px, 2px, 0);
  }
}
.intro-title-screen::after {
  content: "";
  position: absolute;
  inset: 0 var(--gutter, 0px);
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, #03070aaa 100%);
  pointer-events: none;
}
.intro-night,
.intro-start {
  transition: opacity 0.4s steps(4);
}
.intro.is-playing .intro-title-screen {
  pointer-events: none;
}
.intro.is-playing .intro-night,
.intro.is-playing .intro-title-screen::after {
  opacity: 0;
}
.intro-start {
  --plank-w: min(600px, calc(100vw - 48px));
  position: relative;
  z-index: 1;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #f0dcaa;
  font: 400 clamp(30px, 5.2vw, 50px) / 1.05 var(--pixel);
  transform-origin: 50% -40vh;
  animation: plank-drop 1.25s cubic-bezier(0.3, 0.7, 0.4, 1) 0.25s both;
}
/* Once it has landed, the board keeps swaying gently on its ropes. */
.intro-start .intro-plank {
  transform-origin: 50% -40vh;
  animation: plank-sway 4.8s ease-in-out 1.5s infinite alternate;
}
/* A broken board from the village, painted to size by plank.js. */
.intro-plank {
  position: relative;
  display: block;
  background: var(--plank) center / 100% 100% no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 calc(4 * var(--plank-px, 3px)) 0 #00000066);
}
.intro-start .intro-plank {
  width: var(--plank-w);
  padding: 40px 34px 44px;
}
/* Two ropes run up out of sight. */
.intro-start .intro-plank::before,
.intro-start .intro-plank::after {
  content: "";
  position: absolute;
  bottom: calc(100% - 3 * var(--plank-px, 3px));
  left: 16%;
  width: calc(2 * var(--plank-px, 3px));
  height: 100vh;
  background: repeating-linear-gradient(
    180deg,
    #a07a48 0 calc(2 * var(--plank-px, 3px)),
    #5a4128 0 calc(4 * var(--plank-px, 3px))
  );
  box-shadow: calc(1 * var(--plank-px, 3px)) 0 0 #241b12;
}
.intro-start .intro-plank::after {
  left: auto;
  right: 16%;
}
.intro-start-label {
  display: block;
  text-align: center;
  letter-spacing: 2px;
  text-shadow:
    3px 3px 0 #2b1f14,
    0 0 14px #f2c36a33;
  animation: intro-ink 0.6s steps(6) 1.2s both;
}
@keyframes plank-drop {
  from {
    opacity: 0;
    transform: translateY(-110vh) rotate(-5deg);
  }
  8% {
    opacity: 1;
  }
  58% {
    transform: translateY(14px) rotate(2.4deg);
  }
  74% {
    transform: translateY(-6px) rotate(-1.4deg);
  }
  88% {
    transform: translateY(2px) rotate(0.6deg);
  }
  to {
    transform: none;
  }
}
@keyframes plank-sway {
  from {
    rotate: -0.7deg;
  }
  to {
    rotate: 0.7deg;
  }
}
@keyframes intro-ink {
  from {
    opacity: 0;
  }
}
.intro-start:hover .intro-start-label,
.intro-start:focus-visible .intro-start-label {
  color: #fff3cf;
  text-shadow:
    3px 3px 0 #2b1f14,
    0 0 18px #f2c36a99;
}
.intro-start:focus-visible {
  outline: none;
}
.intro-start:focus-visible .intro-plank {
  outline: 3px dashed #f6cf5a;
  outline-offset: 10px;
}
/* Starting yanks the plank back up on its ropes as the camera swoops in;
   a click while the village is still getting ready lifts it straight away. */
.intro.is-starting .intro-start,
.intro.is-playing .intro-start {
  animation: plank-lift 0.45s cubic-bezier(0.5, 0, 0.9, 0.6) both;
}
@keyframes plank-lift {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(-110vh) rotate(3deg);
  }
}
.intro-skip {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  font: 22px var(--pixel);
  letter-spacing: 1px;
  color: #e8dfc6;
  background: none;
  border: 0;
  text-shadow: 2px 2px 0 #000000a6;
  pointer-events: auto;
  animation: intro-ink 0.5s steps(5) 1.4s both;
}
/* Skipping is offered once, on the title; the cutscene plays clean. */
.intro.is-playing .intro-skip {
  display: none;
}
.intro-skip:hover,
.intro-skip:focus-visible {
  color: #ffe08d;
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.intro-dialog {
  --paper: min(800px, calc(100vw - 32px));
  position: absolute;
  left: 50%;
  bottom: max(36px, 4.5vh);
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  color: #3b2412;
}
.intro-dialog[hidden] {
  display: none;
}
/* The greeting is painted on a broken plank too; it swings up into place. */
.intro-dialog .intro-plank {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: var(--paper);
  padding: 26px 30px 30px;
  transform-origin: 50% 120%;
  animation: plank-rise 0.7s cubic-bezier(0.3, 0.75, 0.4, 1.15) both;
}
@keyframes plank-rise {
  from {
    opacity: 0;
    transform: translateY(70%) rotate(3deg);
  }
  20% {
    opacity: 1;
  }
  70% {
    transform: translateY(-6px) rotate(-1deg);
  }
  to {
    transform: none;
  }
}
.intro-dialog img {
  flex: none;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px #2a1e14,
    0 0 0 6px #d8b064;
}
.intro-dialog-body {
  min-width: 0;
  flex: 1;
}
.intro-speaker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 18px 4px;
  font: 400 30px / 1 var(--pixel);
  color: #f8e3a4;
  background: #8c2a2f;
  box-shadow:
    0 -3px 0 #d8b064,
    0 3px 0 #d8b064;
}
.intro-line {
  min-height: 3em;
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.35;
  color: #f6e7c4;
  text-shadow: 2px 2px 0 #2b1f14;
}
.intro-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 18px;
  margin: 14px 0 0;
  font-size: 20px;
  color: #dcc394;
  text-shadow: 1px 1px 0 #2b1f14;
}
.intro-controls[hidden] {
  display: none;
}
.intro-controls kbd {
  display: inline-block;
  min-width: 22px;
  margin: 0 2px;
  padding: 0 4px;
  font: inherit;
  text-align: center;
  color: #f3ead2;
  background: #4b3826;
  box-shadow: 0 2px 0 #1d140c;
}
.intro-continue {
  padding: 6px 16px;
  font: 24px var(--pixel);
  color: #fff3cf;
  background: #8c2a2f;
  border: 0;
  box-shadow:
    0 0 0 3px #2a1e14,
    0 0 0 5px #d8b064;
}
.intro-continue span {
  display: inline-block;
  animation: intro-bob 0.6s steps(2) infinite alternate;
}
@keyframes intro-bob {
  to {
    transform: translateY(4px);
  }
}
.intro-continue:hover,
.intro-continue:focus-visible {
  color: #ffe08d;
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
@media (max-width: 600px) {
  /* On phones the words wrap round the portrait to keep the plank short. */
  .intro-dialog .intro-plank {
    display: block;
    padding: 18px 18px 20px;
  }
  .intro-start .intro-plank {
    padding: 30px 22px 32px;
  }
  .intro-dialog img {
    float: left;
    width: 56px;
    height: 56px;
    margin: 0 14px 6px 0;
  }
  .intro-speaker {
    font-size: 26px;
  }
  .intro-line {
    font-size: 21px;
    min-height: 0;
  }
  .intro-controls {
    clear: both;
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro-night,
  .intro-glints,
  .intro-start,
  .intro-plank,
  .intro-start-label,
  .intro-skip,
  .intro-continue span,
  .intro-dialog {
    animation: none !important;
  }
  .intro.is-starting .intro-start,
  .intro.is-playing .intro-start {
    visibility: hidden;
  }
}
.intro.is-starting .intro-start,
.intro.is-playing .intro-start {
  pointer-events: none;
}
.intro-touch {
  display: none;
}
@media (pointer: coarse) {
  .intro-keys {
    display: none;
  }
  .intro-touch {
    display: inline;
  }
}

/* Inside a cabin the roof labels would float over the room. */
.world-wrap.is-inside .building-access,
.world-wrap.is-transitioning .building-access {
  visibility: hidden;
}
/* The reading sign belongs to the village green, so it is not in the room. */
@media (min-width: 741px) {
  #journey-world:has(.world-wrap.is-inside) .reading-invitation a,
  #journey-world:has(.world-wrap.is-transitioning) .reading-invitation a {
    visibility: hidden;
  }
}

.open-note {
  color: var(--accent);
}

/* Email and profiles share one pool of light in the header. */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  padding: 4px 18px 10px;
  pointer-events: auto;
}
.sky-header .contact .email-link {
  align-self: center;
  margin: 0;
  padding: 8px 4px 2px;
}
.header .social-links {
  position: static;
  display: flex;
  justify-content: center;
  gap: 22px;
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  transform: none;
}
.header .social-links a {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 2px;
  font: 22px/1.2 var(--pixel);
  color: #fff6d9;
  background: none;
  border: 0;
  border-image: none;
  box-shadow: none;
  transform: none;
  text-shadow:
    2px 2px #101a1e,
    0 0 10px #d9eab68c;
}
.header .social-links a::before,
.header .social-links a::after {
  content: none;
}
.header .social-links a:hover,
.header .social-links a:focus-visible {
  color: #ffe08d;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.header .social-emoji {
  font-size: 20px;
}
@media (max-width: 740px) {
  .contact {
    align-self: flex-end;
  }
}
@media (max-width: 700px) {
  .header .social-links a {
    font-size: 18px;
  }
  .header .social-emoji {
    font-size: 16px;
  }
}

/* Reading copy uses a smoother pixel face; headings keep VT323. */
@font-face {
  font-family: "Pixelify Sans";
  src: url("./fonts/pixelify-sans.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --reading: "Pixelify Sans", "VT323", monospace;
}
.reading-section .section-body p,
.reading-section .section-body li,
dialog .section-body p,
dialog .section-body li {
  font-family: var(--reading);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0;
  word-spacing: 0.18em;
}
.section-body p .text-link {
  font: inherit;
}
@media (max-width: 700px) {
  .reading-section .section-body p,
  .reading-section .section-body li,
  dialog .section-body p,
  dialog .section-body li {
    font-size: 16px;
  }
}
.intro:focus {
  outline: none;
}

/* The hero fits the screen: on desktop the shell scales with the viewport
   height so the sky and the whole village (and its E prompt) are in view
   once the opening scene ends. The sky is trimmed to 150 world units and
   the moon rises with it, keeping its place behind the mountains. */
#journey-world {
  container-type: inline-size;
  --cp: max(2px, calc(100cqw / 480));
}
@media (min-width: 741px) {
  .shell {
    width: min(1120px, 100%, max(760px, calc((100svh - 6px) * 960 / 690)));
  }
  #journey-world > .sky-header {
    aspect-ratio: 960 / 150;
    min-height: 0;
  }
  .sky-header .moon-clearing {
    top: -3.42cqw;
  }
  .sky-header .controls-slot {
    top: 8px;
  }
}

/* Four moonlit clouds carry the name and contact details. */
/* One moss-grown carved column fills each margin from edge to edge;
   only a few fireflies move over it, and they rest when motion is reduced. */
.temple {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.temple-side {
  position: absolute;
  top: 0;
}
.pillar {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.temple-firefly {
  position: absolute;
  width: var(--px);
  height: var(--px);
  background: #e9f5a0;
  box-shadow:
    0 0 calc(3 * var(--px)) calc(1 * var(--px)) #d7ef7a66,
    0 0 calc(9 * var(--px)) #c6e06a33;
  opacity: 0;
  animation: temple-firefly 9s steps(36, end) infinite;
}
@keyframes temple-firefly {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  15%,
  40% {
    opacity: 1;
  }
  55% {
    opacity: 0.2;
    transform: translate(calc(14 * var(--px)), calc(-22 * var(--px)));
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-6 * var(--px)), calc(-44 * var(--px)));
  }
}
@media (prefers-reduced-motion: reduce) {
  .temple-firefly {
    animation: none;
    opacity: 0.7;
  }
}
.sky-header .header {
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  pointer-events: none;
}
.sky-header .contact,
.sky-header .header .social-links {
  position: absolute;
  inset: 0;
  isolation: auto;
  align-self: stretch;
  justify-self: stretch;
  display: block;
  padding: 0;
  margin: 0;
  pointer-events: none;
}
.identity::after,
.contact::before,
.contact::after {
  content: none;
}
.sky-header .header .sky-cloud {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 0;
  isolation: isolate;
  color: #fff3d6;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  text-shadow:
    2px 2px 0 #24323a,
    0 0 10px #10202880;
}
.sky-header .header .sky-cloud::before,
.sky-header .header .sky-cloud::after {
  content: "";
  position: absolute;
  z-index: -1;
  /* Puffs on every side, so no cloud ends in a straight cut. */
  inset: calc(-12 * var(--cp)) calc(-13 * var(--cp));
  border-style: solid;
  border-width: calc(16 * var(--cp));
  border-image: url("./art/cloud.svg") 16 fill / calc(16 * var(--cp)) round;
  background: none;
  clip-path: none;
  image-rendering: pixelated;
  pointer-events: none;
}
/* Each cloud is one outline: no loose puff floating on top. */
.sky-header .header .sky-cloud::after {
  content: none;
}
.sky-header .identity {
  left: 2.6cqw;
  top: max(3.4cqw, 30px);
  gap: 1.3cqw;
  padding: 0.5cqw 1.2cqw 0.5cqw 0.6cqw;
}
.sky-header .identity img {
  width: clamp(64px, 9.1cqw, 102px);
  height: clamp(64px, 9.1cqw, 102px);
  box-shadow:
    0 0 0 2px #2e3f46,
    0 0 0 4px #bccbc4,
    0 0 18px #dbe9ae55;
}
.sky-header .identity h1 {
  font-size: clamp(26px, 3.5cqw, 40px);
}
.sky-header .contact .email-link {
  right: 2.6cqw;
  top: 4.2cqw;
  gap: 0.8cqw;
  padding: 0.4cqw 0.9cqw;
  font-size: clamp(18px, 2.35cqw, 26px);
}
.sky-header .email-icon {
  font-size: 1.15em;
}
.sky-header .header .social-links {
  font-size: clamp(18px, 2.2cqw, 25px);
}
.sky-header .header .social-links a.sky-cloud {
  gap: 0.6cqw;
  padding: 0.3cqw 0.9cqw;
  font-size: inherit;
  text-shadow:
    2px 2px 0 #24323a,
    0 0 10px #10202880;
}
.sky-header .header .social-links a.cloud-github {
  z-index: 2;
  left: 31cqw;
  top: 11.4cqw;
}
.sky-header .header .social-links a.cloud-linkedin {
  z-index: 2;
  right: 30cqw;
  top: 10.6cqw;
}
.sky-header .sky-cloud:hover,
.sky-header .sky-cloud:focus-visible {
  color: #ffe08d;
  text-decoration: none;
}
.sky-header .header .sky-cloud:hover::before,
.sky-header .header .sky-cloud:hover::after,
.sky-header .header .sky-cloud:focus-visible::before,
.sky-header .header .sky-cloud:focus-visible::after {
  filter: brightness(1.18);
}
.sky-header .sky-cloud:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: calc(6 * var(--cp));
}
@media (max-width: 740px) {
  .sky-header .identity {
    left: 12px;
    top: 50px;
    gap: 10px;
    padding: 4px 10px 4px 4px;
  }
  .sky-header .identity img {
    width: 76px;
    height: 76px;
  }
  .sky-header .identity h1 {
    font-size: 26px;
  }
  .sky-header .contact .email-link {
    right: 12px;
    top: 150px;
    gap: 6px;
    padding: 2px 8px;
    font-size: 17px;
  }
  .sky-header .header .social-links {
    font-size: 18px;
  }
  .sky-header .header .social-links a.sky-cloud {
    gap: 5px;
    padding: 2px 8px;
  }
  .sky-header .header .social-links a.cloud-github {
    left: 12px;
    top: 214px;
  }
  .sky-header .header .social-links a.cloud-linkedin {
    right: 12px;
    top: 214px;
  }
}
/* Every cloud keeps its outermost puffs on screen. */
.sky-header .header .identity::before {
  left: calc(-1 * min(13 * var(--cp), 2.6cqw - 4px));
}
.sky-header .header .email-link::before {
  right: calc(-1 * min(13 * var(--cp), 2.6cqw - 4px));
}
@media (max-width: 740px) {
  .sky-header .header .sky-cloud::before {
    inset: calc(-12 * var(--cp)) calc(-10 * var(--cp));
  }
  .sky-header .header .identity::before {
    left: calc(-10 * var(--cp));
  }
  .sky-header .header .email-link::before {
    right: calc(-10 * var(--cp));
  }
  .sky-header .header .identity,
  .sky-header .header .social-links a.cloud-github {
    margin-left: calc(10 * var(--cp) - 8px);
  }
  .sky-header .contact .email-link,
  .sky-header .header .social-links a.cloud-linkedin {
    margin-right: calc(10 * var(--cp) - 8px);
  }
}
@media (max-width: 360px) {
  .sky-header .identity h1 {
    font-size: 22px;
  }
  .sky-header .contact .email-link {
    font-size: 15px;
  }
}

/* The reading sign stands on the green just below the fountain on desktop,
   in the opening view; phones keep it, full size, below the river. The
   village treats it as solid, and it turns translucent when the player
   walks behind it. */
@media (min-width: 741px) {
  #journey-world > .reading-invitation {
    position: static;
    aspect-ratio: 960 / 190;
    min-height: 0;
  }
  .reading-invitation a {
    position: absolute;
    z-index: 2;
    /* Centred on the fountain (x 482), from village y 382 downwards. */
    left: calc(50.2cqw - 12.4cqw);
    top: calc(15.625cqw + 39.8cqw);
    width: 24.8cqw;
    min-height: 0;
    margin: 0;
    padding: max(21px, 2.1cqw) max(12px, 1.4cqw) max(22px, 2.2cqw);
    transition: opacity 0.25s steps(3);
  }
  .reading-invitation.is-see-through a {
    opacity: 0.45;
  }
  .reading-invitation strong {
    max-width: none;
    font-size: clamp(16px, 2.2cqw, 25px);
    line-height: 1.05;
    text-wrap: balance;
  }
  .reading-invitation .billboard-detail {
    margin: 0.5cqw 0 0;
    font-size: clamp(14px, 1.65cqw, 19px);
    line-height: 1.15;
  }
  .reading-invitation a::before,
  .reading-invitation a::after {
    top: calc(100% - 4px);
    width: 1.1cqw;
    height: 2.2cqw;
  }
  .reading-invitation a::before {
    left: 18%;
  }
  .reading-invitation a::after {
    right: 18%;
  }
}

/* Roof names live on painted billboards; the label is an invisible,
   clickable twin of the board that only glows on hover or focus. */
.building-access .house-label.is-billboard {
  left: var(--sign-left);
  top: var(--sign-top);
  width: var(--sign-width);
  height: var(--sign-height);
  transform: none;
  padding: 0;
  overflow: hidden;
  color: transparent;
  text-shadow: none;
  background: none;
  box-shadow: none;
  pointer-events: auto;
}
.building-access button:hover .house-label.is-billboard {
  color: transparent;
  background: #ffe0a014;
  box-shadow: 0 0 calc(5 * var(--cp)) #f2c36a55;
}
.building-access button:focus-visible {
  outline: none;
}
.building-access button:focus-visible .house-label.is-billboard {
  color: transparent;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  /* Too small for painted letters: a plaque of the same wood covers the board. */
  .building-access .house-label.is-billboard {
    left: calc(var(--sign-left) + var(--sign-width) / 2);
    top: calc(var(--sign-top) + var(--sign-height) / 2);
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    padding: 1px 5px 2px;
    overflow: visible;
    font-size: 13px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f0dcaa;
    text-shadow: 1px 1px 0 #2b1f14;
    background: #6b4f31;
    box-shadow:
      inset 0 1px 0 #a07a48,
      inset 0 -1px 0 #4c3722,
      0 0 0 1px #241b12;
  }
  .building-access button:hover .house-label.is-billboard,
  .building-access button:focus-visible .house-label.is-billboard {
    color: #fff3cf;
    background: #7b5a37;
  }
}

/* No frame and no controls bar: keyboard focus on the village shows a
   brief key reminder at the foot of the play area, then lets it fade. */
#journey-world:has(#world:focus-visible) .world-wrap {
  outline: none;
}
.walk-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.5%;
  margin: 0;
  padding: 1px 10px 3px;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  color: #ffe08d;
  background: #1d150ecc;
  box-shadow: 0 0 0 2px #4c3722;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.walk-hint kbd {
  padding: 0 4px;
  border: 1px solid #c9a35a;
  color: #fff3cf;
  font: inherit;
}
#journey-world:has(#world:focus-visible) .walk-hint {
  visibility: visible;
  animation: walk-hint 5s steps(5, end) forwards;
}
@keyframes walk-hint {
  0%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #journey-world:has(#world:focus-visible) .walk-hint {
    animation: none;
    opacity: 1;
  }
}

/* Key phrases sit on a steady pixel marker, already lit when they appear. */
mark.kw {
  --kw-ink: #e7c46e;
  padding: 0 0.12em;
  margin: 0 -0.12em;
  color: #fff0c2;
  background: linear-gradient(
      transparent 42%,
      color-mix(in srgb, var(--kw-ink) 32%, transparent) 42% 94%,
      transparent 94%
    )
    no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-shadow: 0 0 6px #f2c36a40;
  /* Never swept in on scroll, in the page or the reading book. */
  animation: none;
  transition: none;
}

/* The door prompt follows the player, standing under their feet, and
   pops up each time they reach a cabin, lectern or doorway. */
.world-wrap .interact {
  top: 0;
  bottom: auto;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  max-width: none;
  animation: prompt-pop 0.28s steps(4, end) both;
}
@keyframes prompt-pop {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.85);
  }
}
@media (max-width: 700px) {
  .world-wrap .interact {
    font-size: 16px;
    padding: 3px 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-wrap .interact {
    animation: none;
  }
}
/* Touch screens walk with the arrow pad, so the key reminder stays away. */
@media (pointer: coarse), (max-width: 740px) {
  .walk-hint {
    display: none;
  }
}

/* Lanternlight finishes: the existing village, cloud silhouettes, scrolls,
   woven borders and cutscenes keep their original geometry and animation. */
:root {
  --gold: #f2cf85;
  --night-ink: #17243a;
}
body {
  background-color: #08182e;
}
.sky-header .header .sky-cloud,
.sky-header .header .social-links a.sky-cloud {
  color: var(--night-ink);
  text-shadow: 0 1px 0 #f9f1d338;
}
.sky-header .header .sky-cloud::before {
  filter: brightness(1.82) saturate(0.4);
  -webkit-filter: brightness(1.82) saturate(0.4);
}
.sky-header .header .sky-cloud:hover,
.sky-header .header .sky-cloud:focus-visible {
  color: #253e65;
}
.sky-header .header .sky-cloud:hover::before,
.sky-header .header .sky-cloud:focus-visible::before {
  filter: brightness(1.98) saturate(0.4);
  -webkit-filter: brightness(1.98) saturate(0.4);
}
.sky-header .identity img {
  box-shadow:
    0 0 0 2px #33435a,
    0 0 0 4px #efe2bc,
    0 0 24px #f4d79745;
}
.sky-header .email-icon {
  color: #1b4b8d;
  text-shadow: 0 1px 0 #fff0c8;
}
.sky-header .sky-cloud:focus-visible {
  outline-color: #ffe3a0;
  box-shadow: 0 0 0 2px #17243a;
}
.reading-invitation a {
  color: #fff2d0;
  text-shadow:
    2px 2px 0 #352016,
    0 0 10px #ffcf7b24;
  filter: drop-shadow(0 4px 0 #08162666);
}
.reading-invitation a:hover,
.reading-invitation a:focus-visible {
  color: #fff9e8;
  filter: brightness(1.1) drop-shadow(0 4px 0 #08162666);
}
.portfolio-reading .reading-section {
  background-image:
    radial-gradient(ellipse at 12% 0, #ffc86c20, transparent 54%),
    radial-gradient(ellipse at 100% 100%, #78a6bd0c, transparent 55%),
    linear-gradient(var(--scroll-tint), var(--scroll-tint)),
    url("./art/parchment.svg");
  background-size:
    auto,
    auto,
    auto,
    128px 128px;
  box-shadow:
    inset 0 2px 0 #ffdca515,
    inset 2px 0 0 #ffdca50c,
    0 10px 20px #0612205c;
}
.reading-section::before,
.reading-section::after {
  filter: brightness(1.12) saturate(1.1);
}
.portfolio-reading .section-heading {
  box-shadow:
    inset 0 3px 0 #ffe8a63b,
    inset 0 -3px 0 #2014214d,
    0 6px 0 #06101d70,
    0 10px 16px #00000024;
}
.portfolio-reading .section-heading h2 {
  color: #fff0be;
  text-shadow:
    2px 2px 0 var(--ribbon-dark),
    0 4px 0 #00000059,
    0 0 14px #ffd38818;
}
.ribbon-emblem {
  filter: drop-shadow(2px 2px 0 #00000066) drop-shadow(0 0 5px #ffcc731f);
}
.portfolio-reading .reading-section .project-card {
  background: linear-gradient(120deg, #ffce7510, #06122038 72%);
  box-shadow:
    inset 3px 0 0 var(--ribbon),
    inset 0 1px 0 #ffdca515,
    inset 0 -1px 0 #00000026;
}
.reading-section .quote {
  color: #f5e1b8;
  border-left-color: var(--ribbon-edge);
  text-shadow: 0 0 12px #ffcf7b16;
}
.reading-section .text-link,
.reading-section .project-card a,
.panel-content .text-link,
.panel-content .project-card a {
  color: #f5d994;
  text-decoration-color: #c7a86a;
}
.reading-section a:hover,
.panel-content a:hover {
  color: #fff2cf;
  text-decoration-color: currentColor;
}
dialog {
  background-image:
    radial-gradient(ellipse at 0 0, #ffd08814, transparent 55%),
    linear-gradient(#31281ff2, #25242bf2), url("./art/parchment.svg");
  background-size:
    auto,
    auto,
    128px 128px;
  box-shadow: 0 20px 80px #0208179c;
}
dialog::backdrop {
  background: #051126e0;
}
.panel-top,
.panel-footer {
  background: #32271f;
  box-shadow: inset 0 1px 0 #f3d39418;
}
.panel-top button:hover,
.panel-footer button:hover {
  color: #fff1c7;
}
.world-wrap .interact,
.walk-hint {
  color: #ffe3a0;
  background: #292018ed;
  box-shadow:
    0 -2px 0 #d0a668,
    -2px 0 0 #9c743f,
    2px 0 0 #9c743f,
    0 2px 0 #654728,
    0 5px 0 #07132366;
}
.touch-pad button {
  color: #ffe7b2;
  background: #26394be8;
  box-shadow:
    0 2px #876f4d,
    2px 0 #56656d,
    -2px 0 #56656d;
}
.touch-pad button:active {
  background: #465345;
}

/* One deliberate pixel type hierarchy: readable prose, compact game labels.
   These families retain the established sizes, line heights and cloud bounds. */
.section-body :is(p, li, blockquote) {
  font-family: var(--reading);
}
.sky-header .header .sky-cloud,
.sky-header .header .social-links a.sky-cloud,
.section-heading,
.panel-top,
.panel-footer,
.house-label,
.interact,
.touch-pad button {
  font-family: var(--pixel);
}

/* Native pixel marks replace platform-dependent emoji paint, while their
   original aria-hidden text and inline dimensions remain untouched. */
.sky-header .social-emoji,
.sky-header .email-icon {
  position: relative;
  color: transparent;
  text-shadow: none;
}
.sky-header .social-emoji::before,
.sky-header .email-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  image-rendering: pixelated;
  pointer-events: none;
}
.sky-header .cloud-github .social-emoji::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath fill='%23172232' d='M4 0h8v1h2v2h1v2h1v6h-1v2h-2v1h-2v2H6v-2H3v-1H1v-2H0V5h1V3h1V1h2z'/%3E%3Cpath fill='%23fff4d5' d='M4 4V2l3 2h2l3-2v3h1v4h-2v2H5V9H3V5h1zM6 11h4v4H8v-2H6zM3 10h2v2H3v-1H2v-1z'/%3E%3Cpath fill='%23172232' d='M5 6h2v2H5zM9 6h2v2H9z'/%3E%3C/svg%3E");
}
.sky-header .cloud-linkedin .social-emoji::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath fill='%230e77b8' d='M1 0h14v1h1v14h-1v1H1v-1H0V1h1z'/%3E%3Cpath fill='%23fff5db' d='M3 3h2v2H3zM3 7h2v6H3zM7 7h2v1h1V7h2v1h1v5h-2V9H9v4H7z'/%3E%3C/svg%3E");
}
.sky-header .email-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14' shape-rendering='crispEdges'%3E%3Cpath fill='%233a65d5' d='M1 0h16v1h1v12h-1v1H1v-1H0V1h1z'/%3E%3Cpath fill='%23fff5db' d='M2 2h14v10H2z'/%3E%3Cpath fill='%233a65d5' d='M2 2h2v2H2zM4 4h2v2H4zM6 6h2v2H6zM8 8h2v1H8zM10 6h2v2h-2zM12 4h2v2h-2zM14 2h2v2h-2zM2 10h2v2H2zM4 8h2v2H4zM12 8h2v2h-2zM14 10h2v2h-2z'/%3E%3C/svg%3E");
}

/* Lakeside lantern night: the four sky signals become planks hanging on
   iron chains, lettered in dark ink. Element boxes keep their roles; only
   the two profile links move under the boards they hang from. */
body {
  background-color: #0b1330;
}
.sky-header .header .sky-cloud,
.sky-header .header .social-links a.sky-cloud {
  color: #3a2112;
  text-shadow: 0 1px 0 #f2c58a66;
}
.sky-header .header .sky-cloud::before {
  inset: calc(-4 * var(--cp)) calc(-5 * var(--cp));
  border-width: calc(8 * var(--cp));
  border-image: url("./art/plank-sign.svg") 8 fill / calc(8 * var(--cp)) stretch;
  filter: drop-shadow(0 calc(2 * var(--cp)) 0 #0a0f2299);
  -webkit-filter: drop-shadow(0 calc(2 * var(--cp)) 0 #0a0f2299);
}
.sky-header .header .sky-cloud:hover,
.sky-header .header .sky-cloud:focus-visible {
  color: #6b2c0e;
}
.sky-header .header .sky-cloud:hover::before,
.sky-header .header .sky-cloud:focus-visible::before {
  filter: brightness(1.12) drop-shadow(0 calc(2 * var(--cp)) 0 #0a0f2299);
  -webkit-filter: brightness(1.12) drop-shadow(0 calc(2 * var(--cp)) 0 #0a0f2299);
}
/* Two chains run up from each board: to the sky for the top boards, and
   behind the board above for the profile links. */
.sky-header .header .sky-cloud::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: auto 12% calc(100% + 2 * var(--cp)) 12%;
  height: var(--chain, 80px);
  border: 0;
  border-image: none;
  background:
    url("./art/chain.svg") left bottom / calc(4 * var(--cp)) calc(8 * var(--cp)) repeat-y,
    url("./art/chain.svg") right bottom / calc(4 * var(--cp)) calc(8 * var(--cp)) repeat-y;
  image-rendering: pixelated;
  pointer-events: none;
}
.sky-header .header .identity.sky-cloud,
.sky-header .header .email-link.sky-cloud {
  --chain: 120px;
  z-index: 3;
}
.sky-header .header .social-links a.cloud-github,
.sky-header .header .social-links a.cloud-linkedin {
  z-index: 1;
}
.sky-header .identity img {
  border-radius: 50%;
}
/* Name and email hang together on the left; the two profile boards hang
   side by side on the right, matched in size. */
.sky-header .header .social-links a.sky-cloud {
  justify-content: center;
}
@media (min-width: 741px) {
  .sky-header .contact .email-link {
    left: 2.6cqw;
    right: auto;
    top: calc(max(3.4cqw, 30px) + clamp(64px, 9.1cqw, 102px) + 2.8cqw);
  }
  .sky-header .header .email-link.sky-cloud {
    --chain: 3.6cqw;
    z-index: 2;
  }
  .sky-header .header .social-links a.sky-cloud {
    top: 4.4cqw;
    min-width: 13cqw;
    --chain: 120px;
  }
  .sky-header .header .social-links a.cloud-github {
    left: auto;
    right: 19cqw;
  }
  .sky-header .header .social-links a.cloud-linkedin {
    right: 2.6cqw;
  }
}
@media (max-width: 740px) {
  .sky-header .contact .email-link {
    left: 12px;
    right: auto;
    top: 146px;
  }
  .sky-header .header .email-link.sky-cloud {
    --chain: 14px;
    z-index: 2;
  }
  .sky-header .header .social-links a.sky-cloud {
    left: auto;
    right: 12px;
    min-width: 100px;
  }
  .sky-header .header .social-links a.cloud-github {
    top: 120px;
    --chain: 70px;
  }
  .sky-header .header .social-links a.cloud-linkedin {
    top: 162px;
    --chain: 18px;
  }
  .sky-header .contact .email-link {
    margin: 0 0 0 calc(10 * var(--cp) - 8px);
  }
  .sky-header .header .social-links a.cloud-github,
  .sky-header .header .social-links a.cloud-linkedin {
    margin: 0 calc(10 * var(--cp) - 8px) 0 0;
  }
}
.sky-header .email-icon {
  color: transparent;
}

/* The lakeside campsite closes the page on a 960 × 600 clearing. */
.stable-clearing {
  aspect-ratio: 960 / 600;
}

/* The title backdrop is crisp pixel art: scaled up with hard edges, glints
   stepping rather than gliding, and no soft vignette over the scene. */
.intro-backdrop,
.intro-glints {
  image-rendering: pixelated;
}
.intro-glints {
  animation-timing-function: steps(6, end);
}
@keyframes intro-swell {
  from {
    opacity: 0.2;
    transform: translate3d(-4px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(4px, 0, 0);
  }
}
.intro-title-screen::after {
  content: none;
}
.intro-night {
  background: #0d1636;
}
/* The narrowest phones keep the email and the profile column side by side. */
@media (max-width: 345px) {
  .sky-header .contact .email-link {
    font-size: 13px;
    gap: 4px;
  }
  .sky-header .header .social-links a.sky-cloud {
    min-width: 98px;
  }
  .sky-header .header .social-links a.cloud-github {
    top: 138px;
    --chain: 30px;
  }
  .sky-header .header .social-links a.cloud-linkedin {
    top: 174px;
  }
}

/* Reading panels and dialogs sit in the same dark timber as the margins and
   the hanging boards: an iron-cornered frame with plank lintels above and
   below, replacing the earlier woven bands. */
.reading-section,
dialog {
  border-image: url("./art/timber-frame.svg") 24 / 24px / 0 stretch;
  image-rendering: pixelated;
}
.reading-section::before,
.reading-section::after {
  height: 24px;
  left: -20px;
  right: -20px;
  background: url("./art/timber-beam.svg") left top / 64px 24px repeat-x;
  clip-path: none;
  filter: none;
  image-rendering: pixelated;
}
.reading-section::before {
  top: -20px;
}
.reading-section::after {
  bottom: -20px;
}
@media (max-width: 700px) {
  .reading-section,
  dialog {
    border-image-width: 16px;
  }
  .reading-section::before,
  .reading-section::after {
    left: -12px;
    right: -12px;
    height: 16px;
    background-size: 43px 16px;
  }
  .reading-section::before {
    top: -14px;
  }
  .reading-section::after {
    bottom: -14px;
  }
}

/* The name is lettered like every other board: the same pixel face, ink and
   faint highlight, one step larger as the page heading. */
.sky-header .header .identity h1 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(24px, 3.1cqw, 34px);
  letter-spacing: 0.02em;
  color: #3a2112;
  text-shadow: 0 1px 0 #f2c58a66;
  font-synthesis: none;
  -webkit-font-smoothing: none;
}
@media (max-width: 740px) {
  .sky-header .header .identity h1 {
    font-size: 24px;
  }
}
@media (max-width: 360px) {
  .sky-header .header .identity h1 {
    font-size: 21px;
  }
}

/* The greeting sits in a carved walnut panel from the same workshop as the
   hanging boards: an iron-studded frame, a quiet dark field, a name plaque,
   the portrait in its blue ring and wooden keycaps. */
.intro-dialog {
  --dp: 3px;
  bottom: max(28px, 4vh);
}
.intro-dialog .intro-plank {
  --plank: none;
  position: relative;
  gap: 22px;
  align-items: flex-start;
  width: min(840px, calc(100vw - 24px));
  /* The carved frame is 12 art pixels deep; the content starts inside it. */
  padding: calc(12 * var(--dp) + 12px) calc(12 * var(--dp) + 16px) calc(12 * var(--dp) + 10px);
  background: none;
  border: 0;
  border-image: url("./art/dialog-panel.svg") 16 fill / calc(16 * var(--dp)) stretch;
  filter: drop-shadow(0 calc(3 * var(--dp)) 0 #0a0f22aa);
  image-rendering: pixelated;
}
.intro-dialog img {
  width: 84px;
  height: 84px;
  margin-top: 4px;
  /* Like the hero board, the portrait sits on the wood with no ring. */
  background: none;
  box-shadow: none;
}
.intro-dialog-body {
  padding-top: 2px;
}
.intro-speaker {
  margin: 0 0 12px;
  padding: 4px 18px 6px;
  font: 400 26px / 1 var(--pixel);
  letter-spacing: 0.02em;
  color: #3a2112;
  background: none;
  border-image: url("./art/plank-sign.svg") 8 fill / 9px stretch;
  box-shadow: none;
  text-shadow: 0 1px 0 #f2c58a66;
}
.intro-line {
  min-height: 4.8em;
  font-family: var(--reading);
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.65;
  letter-spacing: 0.01em;
  word-spacing: 0.12em;
  color: #f1e3c4;
  text-shadow: 0 2px 0 #120a0c;
}
.intro-controls {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 2px solid #120a0c;
  box-shadow: inset 0 2px 0 #6e362266;
  font: 400 19px / 1.2 var(--pixel);
  color: #d8c09a;
  text-shadow: 0 2px 0 #120a0c;
}
.intro-controls kbd {
  min-width: 24px;
  margin: 0 1px;
  padding: 1px 5px 3px;
  color: #3a2112;
  background: none;
  border-image: url("./art/plank-sign.svg") 8 fill / 6px stretch;
  box-shadow: none;
  text-shadow: none;
}
.intro-continue {
  padding: 8px 20px 10px;
  font: 400 24px / 1 var(--pixel);
  color: #3a2112;
  background: none;
  border: 0;
  border-image: url("./art/plank-sign.svg") 8 fill / 9px stretch;
  box-shadow: none;
  filter: drop-shadow(0 3px 0 #0a0f22aa);
  cursor: pointer;
}
.intro-continue:hover,
.intro-continue:focus-visible {
  color: #6b2c0e;
  filter: brightness(1.1) drop-shadow(0 3px 0 #0a0f22aa);
  outline: 2px solid #ffe3a0;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .intro-dialog {
    --dp: 2px;
  }
  .intro-dialog .intro-plank {
    padding: calc(12 * var(--dp) + 8px) calc(12 * var(--dp) + 6px) calc(12 * var(--dp) + 6px);
  }
  .intro-dialog img {
    width: 56px;
    height: 56px;
    margin: 2px 16px 8px 2px;
  }
  .intro-speaker {
    font-size: 22px;
  }
  .intro-line {
    font-size: 16px;
    min-height: 0;
  }
  .intro-controls {
    font-size: 17px;
  }
}

/* Chains hang from two iron eyelets set symmetrically into each board's top
   edge; app.js measures how far each must reach. */
.sky-header .header .sky-cloud::after {
  z-index: 0;
  inset: auto calc(4 * var(--cp)) calc(100% + 1 * var(--cp)) calc(4 * var(--cp));
  height: var(--chain, 0px);
  background:
    url("./art/eyelet.svg") left bottom / calc(6 * var(--cp)) calc(6 * var(--cp)) no-repeat,
    url("./art/eyelet.svg") right bottom / calc(6 * var(--cp)) calc(6 * var(--cp)) no-repeat,
    url("./art/chain.svg") calc(1 * var(--cp)) calc(100% - 4 * var(--cp)) / calc(4 * var(--cp)) calc(8 * var(--cp)) repeat-y,
    url("./art/chain.svg") calc(100% - 1 * var(--cp)) calc(100% - 4 * var(--cp)) / calc(4 * var(--cp)) calc(8 * var(--cp)) repeat-y;
  width: auto;
  min-width: 0;
  margin: 0;
  transform: none;
}
/* Name and email boards share one width and a centred, even inset. */
@media (min-width: 741px) {
  .sky-header .header .identity.sky-cloud,
  .sky-header .header .email-link.sky-cloud {
    min-width: 31cqw;
    justify-content: center;
  }
  .sky-header .identity {
    gap: 1.4cqw;
    padding: 0.6cqw 1.4cqw;
  }
  .sky-header .contact .email-link {
    padding: 0.5cqw 1.4cqw;
    top: calc(max(3.4cqw, 30px) + clamp(64px, 9.1cqw, 102px) + 4.4cqw);
  }
}
@media (max-width: 740px) {
  .sky-header .identity {
    padding: 4px 12px;
  }
  .sky-header .contact .email-link {
    top: 158px;
  }
  .sky-header .header .identity h1 {
    font-size: 22px;
  }
}
@media (min-width: 380px) and (max-width: 740px) {
  .sky-header .header .identity.sky-cloud,
  .sky-header .header .email-link.sky-cloud {
    min-width: 226px;
    justify-content: center;
  }
  .sky-header .header .social-links a.sky-cloud {
    min-width: 92px;
  }
}
@media (min-width: 346px) and (max-width: 379px) {
  .sky-header .contact .email-link {
    font-size: 15px;
  }
  .sky-header .header .social-links a.sky-cloud {
    min-width: 92px;
  }
  .sky-header .header .social-links a.cloud-github {
    top: 138px;
  }
  .sky-header .header .social-links a.cloud-linkedin {
    top: 174px;
  }
}
@media (max-width: 360px) {
  .sky-header .header .identity h1 {
    font-size: 20px;
  }
}

/* While a reading panel or a minigame is open the page itself holds still:
   only the panel scrolls, and it never hands its scroll on to the page.
   The scrollbar's gutter stays reserved so locking never shifts the
   village sideways. */
html.is-page-locked {
  overflow: hidden;
  overscroll-behavior: none;
  scrollbar-gutter: stable;
}
#panel {
  overscroll-behavior: contain;
}

/* The name and email boards hang one size smaller, so they read as part of
   the night sky rather than a panel over it: same boards, same order and
   lettering, about two thirds of the footprint. */
@media (min-width: 741px) {
  .sky-header .header .identity.sky-cloud,
  .sky-header .header .email-link.sky-cloud {
    min-width: 21.5cqw;
  }
  .sky-header .identity {
    top: max(2.8cqw, 26px);
    gap: 1cqw;
    padding: 0.4cqw 1.1cqw;
  }
  .sky-header .identity img {
    width: clamp(48px, 6.1cqw, 68px);
    height: clamp(48px, 6.1cqw, 68px);
  }
  .sky-header .header .identity h1 {
    font-size: clamp(19px, 2.25cqw, 25px);
  }
  .sky-header .contact .email-link {
    top: calc(max(2.8cqw, 26px) + clamp(48px, 6.1cqw, 68px) + 3.4cqw);
    gap: 0.6cqw;
    padding: 0.35cqw 1.1cqw;
    font-size: clamp(14px, 1.7cqw, 19px);
  }
}
@media (max-width: 740px) {
  .sky-header .identity {
    gap: 8px;
    padding: 3px 10px;
  }
  .sky-header .identity img {
    width: 46px;
    height: 46px;
  }
  .sky-header .header .identity h1 {
    font-size: 19px;
  }
  .sky-header .contact .email-link {
    top: 124px;
    font-size: 15px;
  }
}
@media (min-width: 380px) and (max-width: 740px) {
  .sky-header .header .identity.sky-cloud,
  .sky-header .header .email-link.sky-cloud {
    min-width: 198px;
  }
}
@media (max-width: 360px) {
  .sky-header .header .identity h1 {
    font-size: 18px;
  }
  .sky-header .contact .email-link {
    font-size: 13px;
  }
}

/* Hidden extras: the arcade cabinets, the camper, the sword memorial, the
   drifting pickup and the fisherman can be clicked. Each hides a "Click me!" plank that shows on hover, focus or
   when the player stands close, and always on touch screens. */
.egg-spot {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}
.egg-spot:focus-visible {
  outline: 2px dashed #ffe3a0;
  outline-offset: 3px;
}
.egg-tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  padding: 3px 10px 5px;
  font: 400 18px / 1 var(--pixel);
  letter-spacing: 0.02em;
  color: #3a2112;
  white-space: nowrap;
  text-shadow: 0 1px 0 #f2c58a66;
  border: 0 solid transparent;
  border-image: url("./art/plank-sign.svg") 8 fill / 7px stretch;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 #0a0f22aa);
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* A stepped pixel pointer under the plank. */
.egg-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 2px);
  width: 10px;
  height: 8px;
  margin-left: -5px;
  background: #60351f;
  clip-path: polygon(0 0, 100% 0, 100% 25%, 80% 25%, 80% 50%, 60% 50%, 60% 75%, 40% 75%, 40% 50%, 20% 50%, 20% 25%, 0 25%);
}
.egg-spot:hover .egg-tag,
.egg-spot:focus-visible .egg-tag,
.egg-spot.is-near .egg-tag,
.egg-spot[aria-expanded="true"] .egg-tag {
  opacity: 1;
  visibility: visible;
  animation: egg-bob 1.1s steps(2, end) infinite;
}
@media (pointer: coarse) {
  .egg-spot .egg-tag {
    opacity: 1;
    visibility: visible;
    animation: egg-bob 1.1s steps(2, end) infinite;
  }
}
@keyframes egg-bob {
  50% {
    transform: translate(-50%, -3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .egg-spot .egg-tag {
    animation: none !important;
  }
}
/* The cabinets are only there inside the Game Dev cabin. */
.egg-arcade {
  display: none;
}
.world-wrap.is-inside[data-room="gamedev"]:not(.is-transitioning) .egg-arcade {
  display: block;
}
.drift-clearing,
.stable-clearing {
  position: relative;
}
.egg-car {
  transform: translate(-50%, -62%);
}
.egg-car .egg-tag {
  bottom: calc(100% + 2px);
}
/* The camper and the memorial sit on the page beside the reading sign,
   placed in village units over the page itself. */
#journey-world > .egg-camper,
#journey-world > .egg-memorial {
  position: absolute;
  z-index: 2;
}
.egg-camper[hidden],
.egg-memorial[hidden] {
  display: none;
}
.minigame-exit,
.minigame-pad {
  padding: 5px 14px 7px;
  font: 400 21px / 1 var(--pixel);
  color: #3a2112;
  text-shadow: 0 1px 0 #f2c58a66;
  background: none;
  border: 0 solid transparent;
  border-image: url("./art/plank-sign.svg") 8 fill / 8px stretch;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 #0a0f22aa);
  cursor: pointer;
}
.minigame-exit:hover,
.minigame-exit:focus-visible,
.minigame-pad.is-held {
  color: #6b2c0e;
  filter: brightness(1.12) drop-shadow(0 3px 0 #0a0f22aa);
  outline: 2px solid #ffe3a0;
  outline-offset: 3px;
}

/* The minigame stage covers the paused, hidden portfolio: nothing but the
   game box, its score above, one controls hint below and a small exit. */
html.is-minigame body > :not(.minigame):not(.minigame-iris) {
  visibility: hidden;
}
.minigame-iris {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 140;
  width: 100vw;
  height: 100vh;
  image-rendering: pixelated;
}
.minigame {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 10px;
  padding: max(52px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
  font-family: var(--pixel);
  color: #f1e3c4;
  background: #0b1330;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.minigame-exit {
  position: absolute;
  z-index: 2;
  left: max(12px, env(safe-area-inset-left));
  top: max(12px, env(safe-area-inset-top));
  padding: 3px 10px 5px;
  font-size: 18px;
}
/* The score hangs in a small plank of the cabin billboards' wood, centred
   right over the game box. */
.minigame-score {
  flex: none;
  min-width: 104px;
  margin: 0;
  padding: 4px 18px 6px;
  font: 400 30px / 1 var(--pixel);
  letter-spacing: 0.06em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #ffe7b4;
  text-shadow: 2px 2px 0 #2b1f14;
  border: 8px solid transparent;
  border-image: url("./art/hanging-board.svg") 8 fill / 8px round;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 #050a1899);
}
/* Score plank, game box and controls hint form one centred column. */
.minigame-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  outline: none;
}
.minigame-frame {
  flex: none;
}
.minigame-frame {
  position: relative;
  box-shadow:
    0 0 0 3px #120a0c,
    0 0 0 7px #7c4a2a,
    0 0 0 9px #bf8848,
    0 0 0 12px #40281f;
}
.minigame-canvas {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  image-rendering: pixelated;
  touch-action: none;
}
.minigame.is-paused .minigame-canvas {
  filter: brightness(0.5);
}
/* Big pixel lettering straight on the game, no panel behind it. */
.minigame-banner {
  position: absolute;
  inset: 50% 0 auto;
  margin: 0;
  font: 400 clamp(26px, 5vw, 44px) / 1 var(--pixel);
  letter-spacing: 0.06em;
  text-align: center;
  color: #ffe3a0;
  text-shadow:
    3px 3px 0 #120a0c,
    -2px -2px 0 #120a0c,
    2px -2px 0 #120a0c,
    -2px 2px 0 #120a0c;
  transform: translateY(-50%);
  pointer-events: none;
}
.minigame-banner[hidden] {
  display: none;
}
.minigame-hint {
  flex: none;
  margin: 0;
  min-height: 18px;
  font: 400 17px / 1 var(--pixel);
  letter-spacing: 0.04em;
  color: #b8a888;
}
/* Brief feedback only: a word or number rises a little and fades. */
.minigame-floats {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.minigame-float {
  position: absolute;
  font: 400 clamp(15px, 2vw, 21px) / 1 var(--pixel);
  letter-spacing: 0.04em;
  color: #ffe3a0;
  white-space: nowrap;
  text-shadow:
    2px 2px 0 #120a0c,
    -1px -1px 0 #120a0c;
  transform: translate(-50%, -50%);
  animation: minigame-float 0.9s steps(6, end) both;
}
.minigame-float.is-bad {
  color: #ff8a7a;
}
.minigame-float.is-good {
  color: #b4ecbc;
}
.minigame-float.is-big {
  font-size: clamp(19px, 2.6vw, 27px);
  color: #fff3c4;
}
@keyframes minigame-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -20%);
  }
  18%,
  65% {
    opacity: 1;
    transform: translate(-50%, -60%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -140%);
  }
}
.minigame-score.is-pop {
  animation: minigame-pop 0.32s steps(4, end);
}
.minigame-score.is-drop {
  animation: minigame-drop 0.4s steps(4, end);
}
@keyframes minigame-pop {
  40% {
    color: #fff8dc;
    transform: scale(1.22);
  }
}
@keyframes minigame-drop {
  25% {
    color: #ff8a7a;
    transform: translateX(-3px);
  }
  50% {
    color: #ff8a7a;
    transform: translateX(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .minigame-float {
    animation: minigame-fade 0.9s steps(3, end) both;
  }
  .minigame-score.is-pop,
  .minigame-score.is-drop {
    animation: none;
  }
}
@keyframes minigame-fade {
  to {
    opacity: 0;
  }
}
.minigame-touch {
  display: none;
}
.minigame-pad {
  min-width: 64px;
  min-height: 56px;
  padding: 4px 12px 6px;
  font-size: 22px;
  touch-action: none;
}
@media (pointer: coarse) {
  .minigame-touch {
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  .minigame-touch[data-layout="tap"] {
    display: none;
  }
  .minigame-touch[data-layout="dpad"] {
    display: grid;
    grid-template-columns: repeat(3, 62px);
    grid-template-areas: ". up ." "left down right";
    gap: 6px;
  }
  .minigame-touch[data-layout="dpad"] .pad-up {
    grid-area: up;
  }
  .minigame-touch[data-layout="dpad"] .pad-left {
    grid-area: left;
  }
  .minigame-touch[data-layout="dpad"] .pad-down {
    grid-area: down;
  }
  .minigame-touch[data-layout="dpad"] .pad-right {
    grid-area: right;
  }
  .minigame-touch[data-layout="drive"] {
    gap: 40px;
  }
  .minigame-touch[data-layout="drive"] .minigame-pad {
    min-width: 96px;
    min-height: 64px;
  }
  .minigame-touch[data-layout="hold"] .minigame-pad {
    width: min(360px, 100%);
    min-height: 62px;
  }
}
@media (max-width: 700px) {
  .minigame {
    padding-top: max(56px, env(safe-area-inset-top));
  }
  .minigame-score {
    font-size: 26px;
  }
}
/* Landscape phones: the pads stand beside the game. */
@media (max-height: 520px) {
  .minigame {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1fr);
    gap: 4px 10px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .minigame-screen {
    gap: 6px;
  }
  .minigame-score {
    min-width: 80px;
    padding: 2px 12px 3px;
    font-size: 22px;
  }
  .minigame-hint {
    font-size: 15px;
  }
  .minigame-touch {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    align-self: center;
  }
  .minigame-touch[data-layout="drive"] {
    gap: 12px;
  }
  .minigame-touch[data-layout="hold"] .minigame-pad {
    width: 110px;
    min-height: 110px;
  }
}

/* The portrait hangs on its board with no ring around it. */
.sky-header .identity img {
  background: none;
  box-shadow: none;
}

/* The title's lettering appears with its pixel face, never a fallback. */
.intro:not(.is-lettered) .intro-start-label,
.intro:not(.is-lettered) .intro-skip {
  visibility: hidden;
}

/* The reading sign is a quiet second choice beside the cabins: a small
   board painted by scripts/generate-sign-art.mjs from the cabin billboards'
   wood (one step dimmer), shown at the village's art pixel (--cp), so it
   keeps one size per screen and never measures, repaints or resizes
   itself. Its words are the page's own text, in the site's mixed-case
   pixel face, set on the board in the same art-pixel units. */
.reading-invitation a {
  --sign-px: var(--cp);
  --sign-w: 92;
  --sign-h: 40;
  box-sizing: border-box;
  display: block;
  width: calc(var(--sign-w) * var(--sign-px));
  height: calc(var(--sign-h) * var(--sign-px));
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-image: none;
  background: url("./art/reading-sign.svg") center / 100% 100% no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 var(--sign-px) 0 #08162666);
  color: #e6cf9f;
  text-shadow: none;
  transition: opacity 0.25s steps(3);
}
.reading-invitation a::before,
.reading-invitation a::after {
  content: none;
}
/* The lettering sits on the board itself: below the lamps (7 art pixels)
   and inside the frame, centred on both axes. */
.reading-invitation a > strong {
  position: absolute;
  left: calc(5 * var(--sign-px));
  right: calc(5 * var(--sign-px));
  top: calc(11 * var(--sign-px));
  display: block;
  max-width: none;
  margin: 0;
  font: 400 calc(6.2 * var(--sign-px)) / 1.02 var(--reading);
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  text-wrap: balance;
  color: #ecd6a6;
  text-shadow: calc(0.6 * var(--sign-px)) calc(0.6 * var(--sign-px)) 0 #2b1f14;
}
.reading-invitation a > .billboard-detail {
  position: absolute;
  left: calc(5 * var(--sign-px));
  right: calc(5 * var(--sign-px));
  top: calc(25.5 * var(--sign-px));
  display: block;
  margin: 0;
  font: 400 calc(4.6 * var(--sign-px)) / 1 var(--reading);
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: none;
  color: #c9a676;
  text-shadow: calc(0.5 * var(--sign-px)) calc(0.5 * var(--sign-px)) 0 #2b1f14;
}
.reading-invitation a:hover,
.reading-invitation a:focus-visible {
  filter: brightness(1.12) drop-shadow(0 var(--sign-px) 0 #08162666);
}
.reading-invitation a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
@media (min-width: 741px) {
  /* Centred on the fountain's path (x 482), a little below the plaza. */
  .reading-invitation a {
    position: absolute;
    left: 50.2cqw;
    top: calc(15.625cqw + 41cqw);
    transform: translateX(-50%);
  }
}
@media (max-width: 740px) {
  .reading-invitation a {
    position: relative;
    margin: 0 auto;
  }
}
/* Narrow phones: a slightly smaller art pixel keeps the board between the
   camper's fire and the memorial. */
@media (max-width: 400px) {
  .reading-invitation a {
    --sign-px: 1.75px;
  }
}

/* The hanging boards are built from the cabin billboards' wood: the same
   dark walnut, notched outline, moonlit bevel, lamp-lit top planks, seams
   and nails, lettered in cream with the billboards' hard shadow. The
   board tiles rather than stretches, so seams stay one art pixel thick. */
.sky-header .header .sky-cloud,
.sky-header .header .social-links a.sky-cloud {
  color: #ffe7b4;
  text-shadow: var(--cp) var(--cp) 0 #2b1f14;
}
.sky-header .header .sky-cloud::before {
  border-image: url("./art/hanging-board.svg") 8 fill / calc(8 * var(--cp)) round;
  filter: drop-shadow(0 calc(2 * var(--cp)) 0 #050a1899);
  -webkit-filter: drop-shadow(0 calc(2 * var(--cp)) 0 #050a1899);
}
.sky-header .header .sky-cloud:hover,
.sky-header .header .sky-cloud:focus-visible {
  color: #fffbea;
}
.sky-header .header .sky-cloud:hover::before,
.sky-header .header .sky-cloud:focus-visible::before {
  filter: brightness(1.15) drop-shadow(0 calc(2 * var(--cp)) 0 #050a1899);
  -webkit-filter: brightness(1.15) drop-shadow(0 calc(2 * var(--cp)) 0 #050a1899);
}
/* Names read naturally ("Issam Arida", "GitHub"): only the cabins'
   roof billboards are lettered in capitals. */
.sky-header .header .identity h1,
.sky-header .header .social-links a.sky-cloud {
  color: #ecd6a6;
  text-transform: none;
  letter-spacing: 0.02em;
  text-shadow: var(--cp) var(--cp) 0 #2b1f14;
}
.sky-header .header .identity h1 {
  font-family: var(--reading);
  font-size: clamp(19px, 2.5cqw, 27px);
  letter-spacing: 0.01em;
  color: #e8cf9c;
}
.sky-header .contact .email-link {
  color: #d6b682;
}
/* The name and email boards hang a step darker than the rest, so the
   village below, not the header, holds the eye. */
.sky-header .header .identity.sky-cloud::before,
.sky-header .header .email-link.sky-cloud::before {
  filter: brightness(0.78) saturate(0.9) drop-shadow(0 calc(2 * var(--cp)) 0 #050a1899);
  -webkit-filter: brightness(0.78) saturate(0.9) drop-shadow(0 calc(2 * var(--cp)) 0 #050a1899);
}
.sky-header .header .identity.sky-cloud:hover::before,
.sky-header .header .email-link.sky-cloud:hover::before,
.sky-header .header .email-link.sky-cloud:focus-visible::before {
  filter: brightness(0.92) saturate(0.9) drop-shadow(0 calc(2 * var(--cp)) 0 #050a1899);
  -webkit-filter: brightness(0.92) saturate(0.9) drop-shadow(0 calc(2 * var(--cp)) 0 #050a1899);
}
.sky-header .header .social-links a.sky-cloud::before {
  filter: brightness(0.9) drop-shadow(0 calc(2 * var(--cp)) 0 #050a1899);
  -webkit-filter: brightness(0.9) drop-shadow(0 calc(2 * var(--cp)) 0 #050a1899);
}
/* The photo itself stays true to life; only its setting dims with the
   board. */
.sky-header .identity img {
  filter: none;
}
/* The photo stays as it is, set into the board in a dark carved recess. */
.sky-header .identity img {
  box-shadow:
    0 0 0 var(--cp) #241b12,
    0 0 0 calc(2 * var(--cp)) #3c201e;
}
