:root {
  color-scheme: dark;
  --background: #151b18;
  --panel: #1b231f;
  --ink: #f4f0e5;
  --soft: #c5ccc4;
  --muted: #aab6aa;
  --accent: #d1e8ab;
  --line: #344039;
  --paper: #eee3c9;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(calc(100% - 3.5rem), 70rem); margin-inline: auto; }

h1, h2, h3 {
  font-weight: 650;
  letter-spacing: -.046em;
  line-height: 1.07;
  text-wrap: balance;
}

h1 { font-size: clamp(3.15rem, 7.05vw, 6.6rem); }
h2 { font-size: clamp(2.15rem, 4.15vw, 3.85rem); }
h3 { font-size: clamp(1.32rem, 2.3vw, 1.65rem); }
h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.06em; }
p, address { font-size: 1.0625rem; color: var(--soft); line-height: 1.7; }
p + p { margin-top: .95rem; }
.kicker {
  margin-bottom: .95rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.lead { max-width: 38rem; font-size: clamp(1.1rem, 2vw, 1.3rem); margin-top: 1.35rem; }

.skip-link {
  position: fixed;
  z-index: 4;
  inset: .8rem auto auto .8rem;
  padding: .7rem 1rem;
  transform: translateY(-200%);
  background: var(--accent);
  color: var(--background);
}
.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}
.site-header .wordmark { justify-self: start; }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .43rem;
  flex: none;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark strong { font-size: 2rem; font-weight: 780; letter-spacing: -.045em; }
.wordmark span { color: var(--accent); font-size: .82rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.main-nav, .footer-nav { display: flex; gap: clamp(.95rem, 2.8vw, 2rem); flex-wrap: wrap; align-items: center; }
.main-nav a, .footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--soft);
  font-size: .9375rem;
  text-decoration: none;
  text-underline-offset: .4em;
}
.main-nav a:hover, .footer-nav a:hover, nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

.language-nav {
  display: flex;
  border: 1px solid #687767;
  border-radius: .5rem;
}
.language-nav a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--soft);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.language-nav a:first-child { border-radius: .43rem 0 0 .43rem; }
.language-nav a:last-child { border-radius: 0 .43rem .43rem 0; }
.language-nav a:hover { background: var(--panel); color: var(--accent); }
.language-nav a[aria-current="true"] { background: var(--accent); color: var(--background); }
.language-nav a:focus-visible { outline-offset: 3px; z-index: 1; }

.home-hero, .studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.home-hero h1 { text-wrap: initial; }
.home-hero h1 em { display: inline-block; }
.hero-text .lead { max-width: 32rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.45rem; margin-top: 1.85rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.12rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  background: var(--accent);
  color: #192218;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #e3f3ca; }
.quiet-link, .next-section a, .legal-content a {
  color: var(--accent);
  text-underline-offset: .26em;
  text-decoration-color: #849b69;
}
.quiet-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }
.quiet-link:hover, .next-section a:hover, .legal-content a:hover { text-decoration-color: currentColor; }

.coffee-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 25rem;
  isolation: isolate;
}
.coffee-stage::before, .coffee-stage::after {
  position: absolute;
  z-index: -1;
  content: "";
  aspect-ratio: 1;
  width: min(95%, 23rem);
  border: 1px solid #70765245;
  border-radius: 50%;
  transform: translate(-5%, 4%);
}
.coffee-stage::after { width: min(86%, 21rem); transform: translate(8%, -7%); }
.coffee-card {
  display: grid;
  place-items: center;
  width: min(74%, 19.5rem);
  aspect-ratio: 1 / 1.04;
  padding: clamp(1.25rem, 4vw, 2.15rem);
  transform: rotate(7deg);
  border: 1px solid #f5ead4;
  border-radius: .2rem;
  background: var(--paper);
  box-shadow: 0 1.5rem 2.8rem #080d0b80, inset 0 0 1.8rem #cbb68b66;
}
.coffee-card img { width: 100%; }

.section { border-top: 1px solid var(--line); padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.section-heading, .section-summary, .next-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
}
.section-heading { margin-bottom: 1.6rem; }
.section-heading .section-side {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.55;
  margin-bottom: .15rem;
}
.section-summary { margin-top: 1.3rem; align-items: flex-start; }
.section-summary p { max-width: 41rem; }
.section-summary a, .next-section > a { flex: none; }

.game-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: .6rem;
  border: 1px solid #52604d;
  background: var(--panel);
}
.hall-photo { width: 100%; aspect-ratio: 2.16; object-fit: cover; object-position: center 61%; }
.game-frame::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, #100e0ce6, #1e1b1640 43%, transparent 72%); }
.game-frame--plain::after { display: none; }
.game-frame--plain .hall-photo { aspect-ratio: 16/9; }
.game-logo {
  position: absolute;
  z-index: 1;
  bottom: clamp(.55rem, 2.5vw, 1.9rem);
  left: clamp(.7rem, 2.6vw, 2rem);
  width: clamp(10rem, 37%, 26rem);
  filter: drop-shadow(0 .28rem .65rem #070a09a0);
}
.game-figure > figcaption { color: var(--muted); font-size: .8125rem; margin-top: .63rem; }
.home-story, .game-description, .studio-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .95rem clamp(2rem, 6vw, 5rem);
}
.home-story .quiet-link { margin-top: .65rem; }
.page-intro { padding-block: clamp(3rem, 6vw, 5.25rem) 2rem; }
.page-intro h1 { font-size: clamp(2.95rem, 6.8vw, 5.6rem); }
.game-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.45rem; color: var(--accent); font-size: .9375rem; margin-top: 1.1rem; }
.game-meta span + span::before { content: "·"; margin-right: 1.45rem; color: var(--muted); }
.game-description { margin-top: clamp(2.1rem, 5vw, 4.2rem); }
.studio-hero h1 { font-size: clamp(2.95rem, 6.7vw, 5.5rem); }

.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 1.25rem; }
.gallery-card { min-width: 0; }
.gallery-image { position: relative; display: block; border: 1px solid #52604d; border-radius: .55rem; overflow: hidden; }
.gallery-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery-image:hover { border-color: var(--accent); }
.zoom-icon {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #e3ead08c;
  background: #151b18e6;
  color: var(--ink);
  font-size: 1.43rem;
}
.gallery-image:hover .zoom-icon { color: var(--background); background: var(--accent); }
.gallery-card figcaption { padding: .9rem 0 0; }
.gallery-card figcaption p { margin-top: .45rem; font-size: 1rem; }
.next-section { align-items: center; }
.next-section h2 { font-size: clamp(1.75rem, 3.6vw, 2.65rem); }
.next-section p { margin-top: .45rem; }
.next-section > a { padding: .6rem 0; overflow-wrap: anywhere; }
dialog {
  width: min(72rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: .8rem;
  background: var(--panel);
  color: var(--ink);
}
dialog::backdrop { background: #090c0be8; }
.viewer-header { display: flex; gap: .7rem; justify-content: space-between; align-items: center; padding: .2rem .2rem .8rem; }
.viewer-header h2 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
.viewer-header button { border: 1px solid #88987d; border-radius: .35rem; background: var(--background); color: var(--accent); padding: .55rem .8rem; cursor: pointer; }
.viewer-header button:hover { color: var(--background); background: var(--accent); }
.viewer-image { width: 100%; max-height: calc(100dvh - 7rem); object-fit: contain; background: var(--background); border-radius: .35rem; }

.legal-content { max-width: 44rem; padding-bottom: clamp(2.75rem, 6vw, 5.5rem); }
.legal-content section { border-top: 1px solid var(--line); padding-block: 1.45rem; }
.legal-content h2 { font-size: 1.45rem; margin-bottom: .65rem; }
address { font-style: normal; }
address + p { margin-top: .65rem; }

.site-footer { min-height: 7.4rem; border-top: 1px solid var(--line); padding-block: 1.3rem; }
.footer-brand { display: grid; gap: .65rem; }
.footer-brand .wordmark strong { font-size: 1.62rem; }
.footer-brand small { color: var(--muted); font-size: .8125rem; }

@media (max-width: 780px) {
  .wrap { width: calc(100% - 2.5rem); }
  .home-hero, .studio-hero { grid-template-columns: 1fr; padding-top: 3.3rem; gap: 1rem; }
  .coffee-stage { min-height: 18rem; }
  .coffee-stage::before { width: 16rem; }
  .coffee-stage::after { width: 14rem; }
  .coffee-card { width: 12.75rem; padding: 1.3rem; }
  .section-heading, .section-summary { align-items: flex-start; flex-direction: column; }
  .section-summary { gap: .45rem; }
  .home-story, .game-description, .studio-story { grid-template-columns: 1fr; }
  .hall-photo { aspect-ratio: 1.6; }
  .game-meta { gap: .4rem 1rem; }
  .game-meta span + span::before { margin-right: 1rem; }
}
@media (max-width: 580px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    gap: .35rem .65rem;
    padding-block: .65rem .35rem;
  }
  .site-header .wordmark { grid-column: 1 / -1; min-height: 2.25rem; align-content: center; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 2rem); }
  .wordmark { gap: .34rem; }
  .wordmark strong { font-size: 1.62rem; }
  .wordmark span { font-size: .75rem; letter-spacing: .09em; }
  .main-nav, .footer-nav { gap: .72rem; }
  .main-nav a, .footer-nav a { font-size: .875rem; }
  .gallery-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .next-section, .site-footer { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .footer-nav { gap: 1.22rem; }
}
@media (max-width: 350px) {
  .home-hero h1, .studio-hero h1 { font-size: 2.8rem; }
}
