@font-face {
  font-family: Atkinson;
  src: url('assets/body.ttf') format('truetype');
  font-display: swap;
}
@font-face { font-family: Grenze; src: url('assets/heading.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: AlegreyaButton; src: url('assets/button.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root { color-scheme: dark; --bg: #050505; --text: #e4e0d4; --muted: #a09f95; --line: #323232; --accent: #c2ac79; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(ellipse at 50% 0%, #0e0e0e 0%, #070707 45%, #020202 100%) fixed; background-color: var(--bg); color: var(--text); font: 16px/1.6 Atkinson, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: #f0d79d; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
::selection { background: #78663d; color: white; }
.shell { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: fixed; z-index: 10; left: 12px; top: 12px; padding: 10px 20px; background: var(--text); color: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-block: 25px; color: #94948a; font-size: 12px; }
.studio-page { min-height: 100svh; display: flex; flex-direction: column; }
.studio-main { padding-top: 58px; padding-bottom: 65px; flex: 1; }
.studio-brand { width: 200px; margin: 0 auto; }
.studio-brand img { width: 100%; mix-blend-mode: screen; }
.not-found-title { text-align: center; font: 600 34px/1.2 Atkinson, Arial, sans-serif; margin-top: 12vh; }
.not-found-page .studio-description a { color: var(--accent); }
.studio-description { text-align: center; color: #c4c1b5; margin-top: 22px; margin-bottom: 43px; font-size: 15px; line-height: 1.8; }
.studio-description a { color: var(--text); }
.game-card { display: block; max-width: 700px; margin-inline: auto; border: 1px solid #504835; background: #171717; transition: border-color .2s; }
.game-card:hover { border-color: #ab9460; }
.game-card > img { width: 100%; aspect-ratio: 1232/706; object-fit: contain; }
.game-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 22px; border-top: 1px solid #343128; font-size: 13px; }
.game-card-bottom > span:first-child { color: #b5b0a1; }
.game-card-bottom > span:last-child { color: #dcc89b; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 27px; border-bottom: 1px solid #2c2c2c; font-size: 13px; }
.studio-link { color: #c2c0b4; }
.header nav { display: flex; gap: 30px; }
.game-intro { text-align: center; padding: 46px 0 30px; }
.game-brand { max-width: 490px; margin: 0 auto 20px; }
.game-brand img { width: 100%; }
.release { color: #e4dcc7; position: relative; isolation: isolate; display: table; margin-inline: auto; min-width: 270px; }
.release-date { display: block; font-size: 28px; line-height: 1.3; letter-spacing: .02em; color: #e6b85c; background: linear-gradient(#f7df9b 5%,#ddb258 52%,#ad782f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 12px #d37e2526); }
.release-platform { display: block; margin-top: 6px; color: #b1ad9f; font-size: 12px; }
.trailer { position: relative; width: 100%; border: 1px solid #534a36; background: #000; box-shadow: 0 18px 60px #0006; }
.trailer video { width: 100%; height: auto; display: block; aspect-ratio: 16/9; }
.video-error { padding-top: 14px; color: #e4c6a3; font-size: 14px; }
.play-trailer { position: absolute !important; left: 50%; top: 50%; transform: translate(-50%,-50%); }
[hidden] { display: none !important; }
.about { padding-block: 36px 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.about p { color: #c5c5b9; font-size: 15px; line-height: 1.8; }
.actions { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.cairn-button { --slab-shell: url('assets/buttons/slab_normal.png'); --slab-ink: #e2d8bd; --slab-hot: #f5eacc; --slab-cut: #9a84476b; --cut-inset: 6px; position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 0; border-radius: 0; padding: 10px 22px 14px; background: transparent; color: var(--slab-ink); font: 700 18px/1.15 AlegreyaButton, Arial, sans-serif; text-shadow: 0 1px 2px #000, 1px 0 1px #000, -1px 0 1px #000; text-align: center; white-space: nowrap; transition: color .08s; }
.cairn-button::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: -2px -14px -20px; border-style: solid; border-width: 12px 30px 30px; border-image: var(--slab-shell) 12 30 30 30 fill / 12px 30px 30px stretch; }
.slab-face { position: absolute; z-index: -2; pointer-events: none; inset: 1px 1px 5px; background: url('assets/buttons/stone.png') -70px -105px / 256px 256px repeat; }
.slab-face::before { content: ''; position: absolute; inset: 0; background: #fff0d2; opacity: 0; transition: opacity .08s; }
.slab-face::after { content: ''; position: absolute; inset: var(--cut-inset); border: 1px solid var(--slab-cut); box-shadow: inset 0 5px 7px #0006; transition: border-color .08s; }
.slab-label { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.cairn-primary { --slab-ink: #edd28c; --slab-hot: #ffe7a6; --slab-cut: #d8b661b8; }
.cairn-small { --cut-inset: 4px; min-height: 40px; padding: 8px 14px 12px; font-size: 15px; }
.cairn-button:is(:hover,:focus-visible) { --slab-shell: url('assets/buttons/slab_hover.png'); --slab-cut: #d8b661f2; color: var(--slab-hot); }
.cairn-button:is(:hover,:focus-visible) .slab-face { box-shadow: 0 0 24px #d8b66129; }
.cairn-button:is(:hover,:focus-visible) .slab-face::before { opacity: .06; }
.cairn-button:focus-visible { outline: none; }
.cairn-button:focus-visible::after { content: ''; position: absolute; pointer-events: none; inset: -13px; border: 22px solid transparent; border-image: url('assets/buttons/focus_brackets.png') 22 / 22px stretch; }
.cairn-button:active { --slab-shell: url('assets/buttons/slab_pressed.png'); color: #c9ae7a; }
.cairn-button:active .slab-face,.cairn-button:active .slab-label { transform: translateY(3px); }
.cairn-button:active .slab-face { box-shadow: none; }
.cairn-button:active .slab-face::after { box-shadow: inset 0 8px 12px #000d; }
.systems { padding: 15px 0 65px; }
.systems-header { padding-bottom: 12px; border-bottom: 1px solid #302b21; }
.feature-row { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: center; gap: 45px; padding: 58px 0; border-bottom: 1px solid #292720; }
.feature-row.reverse { grid-template-columns: minmax(0,1fr) minmax(0,1.55fr); }
.feature-row.reverse .feature-media { order: 2; }
.feature-copy h3,.progression-heading h3 { font: 600 34px/1.12 Grenze, Georgia, serif; color: #e4d5b7; margin: 0 0 17px; }
.feature-copy p,.progress-panel > p { font-size: 15px; line-height: 1.85; color: #b8b9ae; }
.feature-media { min-width: 0; border: 1px solid #4a4231; background: #080808; box-shadow: 0 10px 35px #0005; }
.feature-video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }
.progression { padding: 58px 0; border-bottom: 1px solid #292720; }
.progression-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.progression-heading h3 { margin: 0; }
.progression-tabs { display: flex; gap: 8px; flex-shrink: 0; }
.cairn-tab { --slab-shell: url('assets/buttons/slab_tab.png'); --slab-ink: #a9a190; min-height: 46px; padding: 9px 16px 15px; font-size: 16px; }
.cairn-tab .slab-face { filter: brightness(.86); background-position: -135px -64px; }
.cairn-tab .slab-face::after { inset: auto 16px 8px; height: 2px; border: 0; box-shadow: none; }
.cairn-tab:is(:hover,:focus-visible) { --slab-shell: url('assets/buttons/slab_tab_hover.png'); }
.cairn-tab[aria-selected="true"] { --slab-shell: url('assets/buttons/slab_open.png'); --slab-ink: #f3e7c7; --slab-hot: #f3e7c7; }
.cairn-tab[aria-selected="true"] .slab-face { filter: none; }
.cairn-tab[aria-selected="true"] .slab-face::after { background: #d8b661; box-shadow: 0 0 0 2px #d8b6612e; }
.cairn-tab[aria-selected="true"]:active .slab-face,.cairn-tab[aria-selected="true"]:active .slab-label { transform: none; }
.progress-panel { max-width: 840px; margin-inline: auto; }
.progress-panel > p { max-width: 700px; margin: 22px auto 0; text-align: center; }
.screenshots { padding-bottom: 75px; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding-bottom: 21px; }
.section-header h2 { font-size: 18px; font-weight: 400; }
.section-header > span { font-size: 11px; color: #95988a; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.screenshot { position: relative; display: block; border: 1px solid #383838; background: #171717; overflow: hidden; }
.screenshot img { width: 100%; aspect-ratio: 16/9; transition: filter .2s; }
.screenshot:hover { border-color: #8f7b4c; }
.screenshot:hover img { filter: brightness(1.08); }
.screenshot-label { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 12px; color: #b8bbaa; }
.screenshot-label > span { color: #bca677; }
.lightbox { border: 1px solid #85724c; padding: 64px 14px 14px; width: min(1500px,95vw); max-height: 95vh; color: var(--text); background: #121212; }
.lightbox::backdrop { background: #000e; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox p { padding-top: 12px; font-size: 13px; text-align: center; }
.close { position: absolute; right: 14px; top: 14px; width: 40px; padding: 0 0 4px; font: 22px/1 Arial, sans-serif; }
@media (min-width: 1500px) { .studio-main { padding-top: 75px; } .studio-brand { width: 220px; } }
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .header { font-size: 12px; padding-block: 20px; }
  .header nav { gap: 22px; }
  .header { align-items: flex-start; }
  .header nav { gap: 10px 15px; flex-wrap: wrap; justify-content: flex-end; }
  .game-intro { padding-top: 37px; padding-bottom: 25px; }
  .game-brand { max-width: 440px; margin-bottom: 17px; }
  .release-date { font-size: 24px; }
  .release-platform { font-size: 11px; }
  .about { flex-direction: column; align-items: flex-start; gap: 23px; padding-block: 28px 43px; }
  .about p { font-size: 14px; }
  .about br { display: none; }
  .actions .cairn-button { padding-inline: 16px; font-size: 17px; }
  .systems-header .motion-toggle { flex-shrink: 0; padding-inline: 12px; font-size: 14px; }
  .gallery { gap: 15px; }
  .screenshot-label { font-size: 10px; padding: 9px 10px; }
  .screenshots { padding-bottom: 45px; }
  .systems { padding-bottom: 40px; }
  .feature-row,.feature-row.reverse { grid-template-columns: 1fr; gap: 23px; padding: 35px 0; }
  .feature-row.reverse .feature-media { order: 0; }
  .feature-copy h3,.progression-heading h3 { font-size: 30px; margin-bottom: 12px; }
  .feature-copy p,.progress-panel > p { font-size: 14px; }
  .progression { padding: 35px 0; }
  .progression-heading { flex-direction: column; align-items: flex-start; gap: 17px; }
  .progression-heading h3 { margin: 0; }
  .progression-tabs { width: 100%; }
  .progression-tabs button { flex: 1; min-width: 0; padding-inline: 8px; font-size: 15px; white-space: normal; }
  .footer { font-size: 10px; padding-block: 23px; }
  .studio-main { padding-block: 44px 45px; }
  .studio-brand { width: 185px; }
  .studio-description { font-size: 13px; margin-block: 15px 32px; }
  .game-card-bottom { padding: 13px 15px; font-size: 11px; }
}
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } .section-header > span { font-size: 10px; } .screenshot-label { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
/* Studio-only composition; Cairn button materials remain shared with the game page. */
.studio-page:not(.not-found-page) .studio-main { padding-block: 48px 44px; }
.studio-identity { display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: center; gap: 34px; max-width: 800px; margin-inline: auto; }
.studio-emblem { width: 190px; mix-blend-mode: screen; }
.studio-identity h1 { margin: 0 0 12px; color: #e9dfc8; font: 600 52px/1.05 Grenze, Georgia, serif; }
.studio-identity p { color: #b9b8ae; font-size: 16px; line-height: 1.75; }
.studio-showcase { margin-top: 38px; }
.studio-eyebrow { margin-bottom: 14px; color: #b5a482; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.studio-featured { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); border: 1px solid #4d4432; background: #0d0d0d; box-shadow: 0 16px 50px #0005; }
.studio-feature-art { display: grid; align-content: center; background: #080808; }
.studio-feature-art img { width: 100%; }
.studio-feature-art:focus-visible { outline-offset: -3px; }
.studio-game-info { padding: 30px 32px 34px; border-left: 1px solid #302b23; }
.studio-game-info h2 { color: #e4d5b7; font: 600 36px/1.1 Grenze, Georgia, serif; margin: 0 0 14px; }
.studio-game-summary { color: #b9b9ae; font-size: 15px; line-height: 1.75; }
.studio-release { margin-block: 22px 26px; }
.studio-release > span { display: block; color: #aaa99d; font-size: 12px; margin-bottom: 4px; }
.studio-release .release-date { font-size: 26px; }
.studio-game-actions { display: grid; gap: 14px; }
.studio-game-actions > div { display: flex; gap: 14px; }
.studio-game-actions > div > a { flex: 1; min-width: 0; padding-inline: 14px; }
.studio-game-actions .cairn-button { font-size: 17px; }
.studio-footer { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 25px; border-top: 1px solid #323232; padding-block: 28px 24px; }
.studio-footer h2 { margin: 0 0 7px; color: #d5cbb5; font: 600 25px/1.15 Grenze, Georgia, serif; }
.studio-contact-link { color: #b7b5a9; font-size: 15px; overflow-wrap: anywhere; }
.studio-footer > .cairn-button { margin-right: 14px; }
.studio-copyright { grid-column: 1/-1; color: #83847b; font-size: 11px; }
@media (max-width: 850px) {
  .studio-identity { grid-template-columns: 150px minmax(0,1fr); gap: 24px; }
  .studio-emblem { width: 150px; }
  .studio-identity h1 { font-size: 42px; }
  .studio-game-info { padding-inline: 24px; }
  .studio-featured { grid-template-columns: 1fr; }
  .studio-feature-art img { max-height: 440px; object-fit: contain; }
  .studio-game-info { border-left: 0; border-top: 1px solid #302b23; }
  .studio-game-actions { max-width: 420px; }
}
@media (max-width: 480px) {
  .studio-page:not(.not-found-page) .studio-main { padding-block: 25px 34px; }
  .studio-identity { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .studio-emblem { width: 145px; margin-inline: auto; }
  .studio-identity h1 { font-size: 37px; margin-bottom: 10px; }
  .studio-identity p { font-size: 14px; }
  .studio-showcase { margin-top: 30px; }
  .studio-game-info { padding: 24px 24px 30px; }
  .studio-game-info h2 { font-size: 33px; }
  .studio-game-summary { font-size: 14px; }
  .studio-footer { grid-template-columns: 1fr; gap: 20px; }
  .studio-footer > .cairn-button { justify-self: start; margin: 0; }
}

.press-main { padding-block: 40px 70px; max-width: 860px; }
.press-title { font: 600 40px/1.15 Grenze, Georgia, serif; color: #e8d5a6; margin-bottom: 18px; }
.press-lead { color: #c4c1b5; font-size: 16px; margin-bottom: 18px; }
.press-main a:not(.cairn-button) { color: var(--accent); }
.press-section { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 34px; }
.press-section h2 { font: 600 26px/1.2 Grenze, Georgia, serif; color: #e8d5a6; margin-bottom: 16px; }
.press-section p + p, .press-section p + ul { margin-top: 14px; }
.press-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0; }
.press-facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.press-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.press-features { padding-left: 20px; color: #c4c1b5; }
.press-features li + li { margin-top: 6px; }
.press-downloads { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.press-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.press-downloads a { display: flex; flex-direction: column; gap: 6px; color: var(--text) !important; }
.press-downloads img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #111; border: 1px solid var(--line); }
.press-shots img { object-fit: cover; }
.press-downloads small { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .press-main { padding-block: 28px 50px; }
  .press-title { font-size: 32px; }
  .press-facts { grid-template-columns: 1fr; }
  .press-downloads, .press-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
