/* Served from here, so no visitor's address goes to a font server. SIL Open Font License: fonts/OFL-*.txt. */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(fonts/cormorant-garamond.woff2) format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/cormorant-garamond-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/inter.woff2) format("woff2");
}

:root {
  --bg: #0e0d0c;
  --bg-raised: #171513;
  --line: #2a2622;
  --text: #e8e2d6;
  --muted: #9a9183;
  --accent: #d9a04a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(217, 160, 74, .07), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 20;
  background: var(--accent); color: var(--bg); padding: .5rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 13, 12, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 2rem; height: 2rem; }
.brand span { font: 600 1.05rem/1 var(--serif); letter-spacing: .28em; text-transform: uppercase; }
.top nav { display: flex; align-items: center; gap: 1.75rem; font-size: .9rem; }
.top nav .sect { color: var(--muted); text-decoration: none; }
.top nav .sect:hover { color: var(--text); }

/* Language switch: a two-part control, the current language filled. */
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
}
.lang-switch a {
  padding: .3rem .7rem; border-radius: 999px; text-decoration: none; color: var(--muted);
  transition: color .15s, background-color .15s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { background: var(--text); color: var(--bg); }

/* Hero */
.hero { text-align: center; padding-top: 6.5rem; padding-bottom: 7.5rem; }
.hero img { width: 7.5rem; height: 7.5rem; margin-bottom: 2rem; }
.hero h1 {
  margin: 0; font: 500 clamp(2.6rem, 8vw, 4.75rem)/1 var(--serif);
  letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em;
}
.hero p { margin: 1.75rem auto 0; max-width: 32rem; color: var(--muted); font-size: 1.15rem; }
.hero .tagline { font: italic 400 1.5rem/1.4 var(--serif); color: var(--accent); margin-top: 1.25rem; }
.button {
  display: inline-block; margin-top: 2.5rem; padding: .8rem 1.6rem;
  border: 1px solid var(--accent); border-radius: 2px; color: var(--accent); text-decoration: none;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  transition: background-color .15s, color .15s;
}
.button:hover { background: var(--accent); color: var(--bg); }

/* Sections */
section { padding: 5.5rem 0; border-top: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 1rem; color: var(--accent);
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
h2, .doc h1 { margin: 0 0 1.5rem; font: 500 clamp(1.9rem, 4vw, 2.6rem)/1.15 var(--serif); }
.prose { max-width: 40rem; color: var(--muted); }
.prose p { margin: 0 0 1.1rem; }

/* The game */
.game {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.game-head { display: grid; grid-template-columns: 12rem 1fr; gap: 2.5rem; align-items: center; }
.door {
  aspect-ratio: 3 / 4; border-radius: 4rem 4rem 0 0;
  background: radial-gradient(circle at 50% 78%, rgba(217, 160, 74, .38), transparent 45%), #0a0908;
  border: 1px solid var(--line);
}
.door.cover { display: block; width: 100%; height: auto; border-radius: 4px; }
.game h3 {
  margin: 0; font: 500 clamp(2.4rem, 6vw, 3.4rem)/1 var(--serif); letter-spacing: .06em;
  font-variant-numeric: lining-nums; /* Cormorant's old-style zero reads as a lowercase o */
}
.meta { margin: .6rem 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  border: 1px solid var(--line); border-radius: 999px; padding: .15rem .7rem;
  color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.tag.live { border-color: rgba(217, 160, 74, .45); color: var(--accent); }
.game .pitch { margin: 0; font: italic 400 1.35rem/1.45 var(--serif); color: var(--text); }
.features {
  list-style: none; margin: 2.5rem 0 0; padding: 2.5rem 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem;
}
.features li { padding-left: 1.25rem; position: relative; color: var(--muted); }
.features li::before {
  content: ""; position: absolute; left: 0; top: .6rem; width: .45rem; height: .45rem;
  background: var(--accent); transform: rotate(45deg);
}
.features strong { display: block; color: var(--text); font-weight: 600; margin-bottom: .2rem; }

/* Contact */
.mail {
  display: inline-block; margin-top: .5rem;
  font: 500 clamp(1.4rem, 4vw, 2rem)/1.3 var(--serif);
  text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: .15rem;
  word-break: break-all;
}
.mail:hover { color: var(--accent); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .85rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 44rem) {
  .top nav .sect { display: none; }
  .hero { padding-top: 4.5rem; padding-bottom: 5.5rem; }
  .hero h1 { letter-spacing: .2em; margin-right: -.2em; }
  .game-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .door { width: 10rem; }
  .features { grid-template-columns: 1fr; }
}

/* Spaced out, the name needs about 8.3em: at 2.6rem it ran past the edge of a 360px phone. */
@media (max-width: 26rem) { .hero h1 { font-size: calc(11.5vw - .4rem); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Company layout */
.kicker {
  margin: 0 0 1.75rem; color: var(--muted);
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.actions .button { margin-top: 0; }
.button.solid { background: var(--accent); color: var(--bg); }
.button.solid:hover { background: transparent; color: var(--accent); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: start; }
.facts {
  margin: 0; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 4px; padding: 1.75rem 2rem;
}
.facts div { display: flex; justify-content: space-between; gap: 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; text-align: right; font-weight: 600; font-size: .95rem; }
.facts dd a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.facts dd a:hover { color: var(--accent); }
.lede { max-width: 40rem; margin: 0 0 1.5rem; font: italic 400 1.4rem/1.45 var(--serif); color: var(--text); }
.tenets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.tenets div { border-top: 1px solid var(--accent); padding-top: 1rem; }
.tenets h3 { margin: 0 0 .45rem; font: 500 1.4rem/1.2 var(--serif); }
.tenets p { margin: 0; color: var(--muted); font-size: .95rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards article {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 4px; padding: 1.75rem;
}
.cards .num { font: 500 1.1rem/1 var(--serif); color: var(--accent); font-variant-numeric: lining-nums; }
.cards h3 { margin: .9rem 0 .6rem; font: 500 1.5rem/1.2 var(--serif); }
.cards p { margin: 0; color: var(--muted); font-size: .97rem; }

section > .wrap > .features { border-top: 0; padding-top: 0; margin-top: 2.5rem; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.contact-grid div { border-top: 1px solid var(--accent); padding-top: 1rem; }
.contact-grid strong { display: block; margin-bottom: .3rem; }
.contact-grid p { margin: 0; color: var(--muted); font-size: .95rem; }

footer.site-footer { padding: 3.5rem 0 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.foot-grid .brand { margin-bottom: .9rem; }
.foot-grid p { margin: 0; max-width: 22rem; }
.foot-grid h4 {
  margin: 0 0 .8rem; color: var(--text);
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem;
}

@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards, .contact-grid, .tenets { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}

/* Screenshot gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery a {
  display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #0a0908;
}
.gallery img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .4s ease, opacity .2s;
}
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { margin-top: .6rem; color: var(--muted); font-size: .88rem; }
.gallery figcaption strong { color: var(--text); font-weight: 600; }

.viewer {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh;
}
.viewer::backdrop { background: rgba(5, 5, 4, .92); }
.viewer img { display: block; max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 3px; }
.viewer p { margin: .75rem 0 0; color: var(--muted); text-align: center; font-size: .9rem; }
.viewer button {
  position: fixed; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-raised); color: var(--text); font-size: 1.2rem; cursor: pointer;
}

@media (max-width: 44rem) {
  .gallery { grid-template-columns: 1fr; }
}

/* Mailing list, closing the game card */
.signup { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.signup label { display: block; margin-bottom: .8rem; font: 500 1.5rem/1.2 var(--serif); }
.signup-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.signup input[type="email"] {
  flex: 1 1 16rem; min-width: 0; padding: .8rem 1rem;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 2px;
  font: inherit; font-size: 1rem;
}
.signup input[type="email"]::placeholder { color: var(--muted); opacity: .7; }
.signup input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.signup .button { margin-top: 0; cursor: pointer; font-family: var(--sans); }
.signup .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.signup-note { margin: .8rem 0 0; color: var(--muted); font-size: .85rem; max-width: 36rem; }
@media (max-width: 30rem) { .signup .button { flex: 1 1 100%; } }

/* A page of running text: the privacy policy */
.doc .prose h2 { margin: 2.25rem 0 .5rem; font-size: 1.45rem; color: var(--text); }
.doc .prose ul { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.doc .prose li { margin-bottom: .5rem; }
.doc .prose li strong { color: var(--text); font-weight: 600; }

/* The devlog: its index, and a post read at length */
.top nav .sect { white-space: nowrap; }
.top nav .sect[aria-current="page"] { color: var(--text); }
/* Five sections and the language switch only just fit a tablet's width. */
@media (max-width: 58rem) { .top nav { gap: 1rem; } }
.posts { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.posts a {
  display: grid; grid-template-columns: 16rem 1fr; gap: 1.75rem; align-items: center; text-decoration: none;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 4px; padding: 1.25rem;
  transition: border-color .15s;
}
.posts a:hover { border-color: rgba(217, 160, 74, .45); }
.posts img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.posts h2 { margin: .35rem 0 .5rem; font-size: 1.75rem; }
.posts p { margin: 0; color: var(--muted); font-size: .97rem; }
.post-meta { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.post { padding-top: 4.5rem; border-top: 0; }
.post .eyebrow a { text-decoration: none; }
.post .column { max-width: 42rem; margin: 0 auto; }
.post h1 { margin: 0 0 1.25rem; font: 500 clamp(2.3rem, 6vw, 3.6rem)/1.08 var(--serif); }
.post .dek { margin: 0 0 1.5rem; font: italic 400 1.45rem/1.45 var(--serif); color: var(--text); }
.post .body { color: #cdc5b7; }
.post .body p, .post .body ul, .post .body ol { margin: 0 0 1.25rem; }
.post .body li { margin-bottom: .45rem; }
.post .body h2 { margin: 3.5rem 0 1rem; font-size: clamp(1.7rem, 3.5vw, 2.1rem); color: var(--text); }
.post .body h3 { margin: 2.25rem 0 .6rem; font: 600 1.05rem/1.4 var(--sans); color: var(--text); }
.post .body strong { color: var(--text); font-weight: 600; }
.post .body a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post .body code {
  font: .9em/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 2px; padding: .1em .35em;
}
.post .body blockquote {
  margin: 1.75rem 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--accent);
  font: italic 400 1.3rem/1.5 var(--serif); color: var(--text);
}
.post .body blockquote cite { display: block; margin-top: .4rem; font: 400 .85rem/1.5 var(--sans); color: var(--muted); font-style: normal; }
.post .note {
  margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--bg-raised);
  border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 2px; font-size: .97rem;
}
.post .note p:last-child, .post .note ul:last-child { margin-bottom: 0; }
.post .note .eyebrow { margin-bottom: .5rem; }
.post .note ul { padding-left: 1.1rem; }
.post .formula {
  margin: 1.5rem 0; padding: 1rem 1.25rem; overflow-x: auto; white-space: nowrap;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 2px;
  font: .92rem/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text);
}
.post .toc { margin: 2rem 0 0; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: 2px; font-size: .95rem; }
.post .toc ol { margin: 0; padding-left: 1.25rem; columns: 2 14rem; column-gap: 2rem; }
.post .toc li { margin-bottom: .3rem; break-inside: avoid; }
.post .toc a { color: var(--text); text-decoration: none; }
.post .toc a:hover { color: var(--accent); }
.post .credits { margin-top: 3rem; font-size: .9rem; color: var(--muted); }

/* Figures leave the column for the page's full width; the viewer opens them full screen. */
.shot { margin: 2.5rem 0; }
.shot.wide { width: min(64rem, calc(100vw - 3rem)); margin-left: 50%; transform: translateX(-50%); }
.shot a { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #0a0908; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: .6rem; color: var(--muted); font-size: .88rem; }
.shot figcaption strong { color: var(--text); font-weight: 600; }
.shot .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; }
.shot .row figcaption { margin-top: .35rem; }
.shot .row figure { margin: 0; }

.post-end { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.post-end .signup { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 44rem) {
  .posts a { grid-template-columns: 1fr; gap: 1rem; }
  .post { padding-top: 3rem; }
}
