@font-face {
  font-family: 'Hunt Titling';
  src: local('Perpetua Titling MT Bold');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Hunt Serif';
  src: url('../fonts/cormorant-garamond.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

body.hunt-theme {
  --bg: #130d10;
  --ink: #ece4d7;
  --mid: #b7a49e;
  --line: #573339;
  color: var(--ink);
  background: var(--bg);
}
body.hunt-theme #project-page { padding-top: 96px; }
body.hunt-theme .site-header {
  background: #130d10f7;
  border-bottom: 1px solid #4b2c31;
}
body.hunt-theme .site-header .brand {
  font: 500 28px 'Hunt Serif', Georgia, serif;
  letter-spacing: -.025em;
}
body.hunt-theme .header-note { color: #c7aaa0; }
#shadow-case[hidden] { display: none; }
.sh-page {
  --sh-rust: #cca08c;
  --sh-soft: #cfc0b7;
  color: #ece4d7;
  font: 17px/1.75 Arial, sans-serif;
}
.sh-page :is(h1, h2, h3, p, figure) { margin: 0; }
.sh-page :is(h2, h3) {
  font-family: 'Hunt Serif', Georgia, serif;
  font-weight: 500;
  text-wrap: balance;
}
.sh-page h2 { font-size: clamp(35px, 3.8vw, 54px); line-height: 1.08; letter-spacing: -.025em; }
.sh-page h3 { font-size: 32px; line-height: 1.2; letter-spacing: -.015em; }
.sh-page p { color: var(--sh-soft); }
.sh-page p + p { margin-top: 18px; }
.sh-page a { color: inherit; }
.sh-page button { font-family: Arial, sans-serif; }
.sh-page :is(a, button, summary):focus-visible { outline: 2px solid #d0a092; outline-offset: 5px; }
.sh-wrap { width: min(1380px, calc(100% - 88px)); margin-inline: auto; }
.sh-return { display: flex; justify-content: space-between; padding-block: 24px; font-size: 15px; }
.sh-return a { text-decoration: none; }
.sh-return a:hover { color: #d0a092; }
.sh-return span { margin-left: 15px; }
.sh-hero {
  position: relative;
  width: min(1600px, 100%);
  aspect-ratio: 1911 / 1080;
  margin: auto;
  isolation: isolate;
  background: #210b11;
  overflow: hidden;
}
.sh-hero-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#130d1030, transparent 28%, transparent 78%, #130d10);
}
.sh-hero-title { position: absolute; z-index: 1; top: 4.8%; left: 0; width: 100%; text-align: center; padding-inline: 24px; }
.sh-hero h1 {
  font: 600 clamp(54px, 6.8vw, 108px)/1.15 'Hunt Titling', 'Hunt Serif', Georgia, serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: #f0e7d7;
  text-shadow: 0 2px 22px #170407b0;
  outline: none;
}
.sh-hero-title p { font-size: 16px; color: #e0cfc0; margin-top: 6px; letter-spacing: .04em; }
.sh-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 40px; border-bottom: 1px solid #573339; padding-block: 27px; }
.sh-nav a { font-size: 15px; text-decoration: none; color: #d5beb1; }
.sh-nav a:hover { color: #fff4e7; }
.sh-intro { display: grid; grid-template-columns: 1fr; gap: 30px; padding-block: 82px; }
.sh-intro > div { max-width: none; }
.sh-intro .sh-tools { font-size: 15px; padding-top: 22px; color: #d0a092; }
.sh-contribution { grid-column: 1 / -1; max-width: 760px; padding-top: 18px; border-top: 1px solid #573339; font-size: 16px; line-height: 1.7; }
.sh-contribution strong { display: block; margin-bottom: 8px; color: #f0e7d7; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.sh-film, .sh-section { scroll-margin-top: 110px; }
.sh-film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0c090b; border: 1px solid #70424a; object-fit: contain; }
.sh-film > p { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; font-size: 15px; }
.sh-film > p span { color: #b39b91; }
.sh-section { margin-top: 108px; }
.sh-section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; margin-bottom: 45px; }
.sh-section-intro > p { max-width: 590px; }
.sh-map-layout { display: grid; grid-template-columns: .8fr 1.6fr; gap: 42px; padding: 40px; background: #29171c; border-top: 2px solid #8c5152; }
.sh-route-copy h3 { margin-bottom: 24px; }
.sh-route-copy p:last-child { font-size: 15px; color: #bfa79c; }
.sh-map { min-width: 0; align-self: center; }
.sh-map .sh-zoom { background: #1b1115; padding: 16px; }
.sh-page figcaption { font-size: 15px; line-height: 1.6; color: #c7b1a4; margin-top: 15px; }
.sh-zoom { display: block; position: relative; width: 100%; border: 0; padding: 0; cursor: zoom-in; color: #ecd9c6; background: transparent; }
.sh-zoom img { display: block; max-width: 100%; width: 100%; height: auto; }
.sh-zoom > span { position: absolute; right: 12px; bottom: 10px; display: grid; place-items: center; width: 29px; height: 29px; font-size: 21px; line-height: 1; background: #190e12d9; border: 1px solid #906057; }
.sh-zoom:hover > span { color: #fff5e9; background: #512732; }
.sh-references { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 46px; }
.sh-references article { display: grid; grid-template-columns: 40% 1fr; gap: 26px; align-items: start; }
.sh-references img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #62424b; }
.sh-references h3 { margin-bottom: 13px; font-size: 28px; }
.sh-references p { font-size: 16px; line-height: 1.7; }
.sh-cast { padding-block: 74px; background: #251218; }
.sh-character-tabs { display: flex; flex-wrap: wrap; column-gap: 26px; row-gap: 12px; padding-bottom: 22px; border-bottom: 1px solid #694149; }
.sh-character-tabs button, .sh-space-tabs button, .sh-system-tabs button { appearance: none; background: transparent; border: 0; padding: 10px 0; color: #bfa99e; font-size: 16px; line-height: 1.4; cursor: pointer; text-align: left; }
.sh-character-tabs button[aria-selected="true"] { color: #f4e7d6; box-shadow: 0 2px #c18d7b; }
.sh-character-tabs button:hover { color: #f4e7d6; }
.sh-character-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-top: 38px; min-height: 610px; }
.sh-character-art { height: 545px; display: flex; justify-content: center; align-items: end; }
.sh-character-art img { width: auto; max-width: 95%; height: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 16px 25px #10070bb0); }
.sh-character-copy { padding-bottom: 24px; max-width: 550px; }
.sh-character-copy h3 { font-size: 47px; line-height: 1.15; margin-bottom: 25px; }
.sh-character-note { padding-top: 26px; margin-top: 28px !important; border-top: 1px solid #694149; color: #bda092 !important; }
.sh-motion { padding-top: 35px; margin-top: 35px !important; border-top: 1px solid #694149; }
.sh-motion .sh-zoom { padding: 20px; background: #180d12; }
.sh-motion img { max-height: 180px; object-fit: contain; }
.sh-architecture { display: grid; grid-template-columns: .85fr 1.1fr 1.1fr; gap: 35px; margin-bottom: 60px; }
.sh-architecture .sh-zoom { height: 320px; display: grid; align-items: center; }
.sh-architecture img { width: 100%; height: 100%; max-height: 320px; object-fit: contain; }
.sh-architecture figcaption { text-align: center; }
.sh-space-tabs, .sh-system-tabs { display: flex; border-block: 1px solid #694149; }
.sh-space-tabs button, .sh-system-tabs button { padding: 18px 24px; flex: 1; text-align: center; border-right: 1px solid #573339; }
.sh-space-tabs button:last-child, .sh-system-tabs button:last-child { border-right: 0; }
.sh-space-tabs button[aria-selected="true"], .sh-system-tabs button[aria-selected="true"] { background: #784044; color: #fff1df; }
.sh-space-tabs button:hover, .sh-system-tabs button:hover { color: #fff1df; }
.sh-space-panel { background: #21161b; border: 1px solid #573339; border-top: 0; }
#sh-space-art .sh-zoom { display: grid; place-items: center; height: auto; aspect-ratio: 2 / 1; padding: 16px; background: #100c0e; }
#sh-space-art img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
#sh-space-description { max-width: 900px; padding: 28px 32px 32px; }
.sh-systems { background: #211116; padding-block: 74px; }
.sh-system-intro { display: grid; grid-template-columns: .9fr 1.2fr; gap: 70px; padding-block: 40px; }
.sh-system-intro h3 { max-width: 370px; }
.sh-graphs details { border-top: 1px solid #573339; }
.sh-graphs details:last-child { border-bottom: 1px solid #573339; }
.sh-graphs summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; list-style: none; padding: 22px 0; font-size: 19px; color: #e7d7c8; }
.sh-graphs summary::-webkit-details-marker { display: none; }
.sh-graphs summary > span { color: #c18d7b; font-size: 28px; line-height: 1; transition: transform .2s; }
.sh-graphs details[open] summary > span { transform: rotate(45deg); }
.sh-graph { padding-bottom: 32px; }
.sh-graph > p { max-width: 820px; margin-bottom: 24px; }
.sh-graph .sh-zoom { border: 1px solid #754e51; padding: 12px; background: #160e11; }
.sh-graph img { max-height: 480px; object-fit: contain; }
.sh-gameplay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px 32px; }
.sh-gameplay-grid .sh-zoom { aspect-ratio: 16 / 10; background: #0c080a; padding: 10px; border: 1px solid #573339; }
.sh-gameplay-grid img { width: 100%; height: 100%; object-fit: contain; }
.sh-footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 96px; padding-block: 36px; border-top: 1px solid #573339; }
.sh-footer a { text-decoration: none; font-size: 16px; }
.sh-footer a:last-child { font: 500 31px/1.2 'Hunt Serif', Georgia, serif; }
.sh-footer span { margin-left: 16px; color: #c18d7b; }
.sh-lightbox { position: fixed; inset: 0; margin: auto; padding: 72px 25px 25px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); width: fit-content; color: #f0e4d5; background: #160e12; border: 1px solid #9b6862; }
.sh-lightbox::backdrop { background: #090609ed; }
.sh-close { position: absolute; right: 20px; top: 17px; padding: 8px 14px; border: 1px solid #9b6862; color: #f0e4d5; background: #321c24; font: 16px Arial, sans-serif; cursor: pointer; }
.sh-lightbox-scroll { overflow: auto; max-width: calc(100vw - 84px); max-height: calc(100dvh - 145px); }
.sh-lightbox img { display: block; max-width: none; width: auto; height: auto; max-height: 76vh; object-fit: contain; }
.sh-lightbox p { font: 15px/1.5 Arial, sans-serif; padding-top: 16px; }

@media (min-width: 1400px) {
  .sh-page { font-size: 18px; }
  .sh-character-panel { min-height: 680px; }
  .sh-character-art { height: 610px; }
}
@media (max-width: 1100px) {
  .sh-wrap { width: calc(100% - 64px); }
  .sh-intro, .sh-section-intro, .sh-character-panel { gap: 40px; }
  .sh-map-layout { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
  .sh-route-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 35px; }
  .sh-route-copy h3 { margin: 0; }
  .sh-route-copy p { margin: 0; }
  .sh-route-copy p:last-child { grid-column: 2; }
  .sh-references { gap: 35px; }
  .sh-references article { grid-template-columns: 1fr; gap: 21px; }
  .sh-references img { width: min(100%, 420px); }
  .sh-character-panel { min-height: 530px; }
  .sh-character-art { height: 470px; }
  .sh-character-copy h3 { font-size: 40px; }
  .sh-architecture { gap: 24px; }
  .sh-architecture .sh-zoom, .sh-architecture img { height: 240px; max-height: 240px; }
}
@media (max-width: 700px) {
  body.hunt-theme #project-page { padding-top: 75px; }
  body.hunt-theme .site-header { padding-block: 19px; }
  body.hunt-theme .site-header .brand { font-size: 25px; }
  .sh-wrap { width: calc(100% - 40px); }
  .sh-return { padding-block: 18px; font-size: 14px; }
  .sh-hero { aspect-ratio: 1.2; min-height: 345px; }
  .sh-hero-art { object-position: 49% 50%; }
  .sh-hero-title { top: 5%; padding-inline: 10px; }
  .sh-hero h1 { font-size: clamp(40px, 10vw, 68px); line-height: 1.2; letter-spacing: -.035em; }
  .sh-hero-title p { font-size: 14px; margin-top: 8px; }
  .sh-nav { justify-content: flex-start; gap: 12px 23px; padding-block: 24px; }
  .sh-nav a { font-size: 14px; }
  .sh-intro, .sh-section-intro { grid-template-columns: 1fr; gap: 26px; }
  .sh-intro { padding-block: 52px; }
  .sh-section-intro { margin-bottom: 32px; }
  .sh-page h2 { font-size: 40px; }
  .sh-page h3 { font-size: 29px; }
  .sh-film > p { flex-direction: column; gap: 4px; font-size: 14px; margin-top: 13px; }
  .sh-section { margin-top: 65px; }
  .sh-film, .sh-section { scroll-margin-top: 90px; }
  .sh-map-layout { padding: 24px 20px; }
  .sh-route-copy { display: block; }
  .sh-route-copy h3 { margin-bottom: 20px; }
  .sh-route-copy p + p { margin-top: 18px; }
  .sh-map .sh-zoom { padding: 4px; }
  .sh-references { grid-template-columns: 1fr; gap: 35px; }
  .sh-references article { grid-template-columns: 35% 1fr; gap: 20px; }
  .sh-references h3 { font-size: 28px; }
  .sh-cast, .sh-systems { padding-block: 45px; }
  .sh-character-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
  .sh-character-tabs button { font-size: 15px; padding-block: 9px; }
  .sh-character-panel { grid-template-columns: 1fr; gap: 32px; padding-top: 30px; min-height: 0; }
  .sh-character-art { height: 410px; }
  .sh-character-art img { max-width: 90%; }
  .sh-character-copy { padding-bottom: 0; }
  .sh-character-copy h3 { font-size: 38px; }
  .sh-character-note { padding-top: 20px; margin-top: 22px !important; }
  .sh-architecture { grid-template-columns: 1fr 1fr; gap: 32px 18px; margin-bottom: 38px; }
  .sh-architecture figure:first-child { grid-column: 1 / -1; }
  .sh-architecture figure:first-child .sh-zoom, .sh-architecture figure:first-child img { height: 340px; max-height: 340px; }
  .sh-architecture .sh-zoom, .sh-architecture img { height: 165px; max-height: 165px; }
  .sh-space-tabs { flex-wrap: wrap; }
  .sh-space-tabs button { flex-basis: 50%; padding: 15px 10px; font-size: 15px; }
  .sh-space-tabs button:nth-child(2) { border-right: 0; }
  .sh-space-tabs button:nth-child(-n + 2) { border-bottom: 1px solid #573339; }
  #sh-space-art .sh-zoom { aspect-ratio: 1.6; padding: 8px; }
  #sh-space-description { padding: 22px; }
  .sh-system-tabs button { font-size: 16px; padding: 16px 8px; }
  .sh-system-intro { grid-template-columns: 1fr; gap: 20px; padding-block: 30px; }
  .sh-graphs summary { font-size: 17px; padding-block: 20px; }
  .sh-graph .sh-zoom { padding: 7px; }
  .sh-gameplay-grid { grid-template-columns: 1fr; gap: 30px; }
  .sh-gameplay-grid figcaption { margin-top: 11px; }
  .sh-footer { margin-top: 60px; padding-block: 28px; flex-direction: column; align-items: start; }
  .sh-footer a:last-child { font-size: 28px; }
  .sh-lightbox { max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding-inline: 15px; }
  .sh-lightbox-scroll { max-width: calc(100vw - 52px); }
}
@media (prefers-reduced-motion: reduce) {
  .sh-page * { scroll-behavior: auto; transition: none !important; }
}
