/* Cell Eats City press kit. Same layout as the other desgood press kits; colours and type follow the game's
   clinical paper look (Archivo + IBM Plex Mono, both bundled in assets/; CJK text uses the system fonts). */

@font-face {
  font-family:Archivo;
  src:url('assets/Archivo.ttf') format('truetype');
  font-weight:100 900;
  font-stretch:62% 125%;
  font-display:swap
}

@font-face {
  font-family:'Plex Mono';
  src:url('assets/IBMPlexMono-SemiBold.ttf') format('truetype');
  font-weight:600;
  font-display:swap
}

:root {
  --paper:#f4f6f8;
  --grid:rgba(196,207,219,.32);
  --ink:#13263b;
  --muted:#5b6d82;
  --line:#c4cfdb;
  --accent:#01e996;
  --accent-hover:#5ef2b9;
  --sage:#e7edf2;
  --mut:#8424cf;
  --focus:#8424cf;
  --mono:'Plex Mono',ui-monospace,Menlo,monospace;
  --sans:Archivo,'Helvetica Neue',Arial,'PingFang TC','Noto Sans TC','Microsoft JhengHei',sans-serif
}

html[lang="ja"] {
  --sans:Archivo,'Helvetica Neue',Arial,'Hiragino Sans','Hiragino Kaku Gothic ProN','Yu Gothic','Noto Sans JP',Meiryo,sans-serif
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:25px
}

body {
  margin:0;
  background-color:var(--paper);
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:32px 32px;
  color:var(--ink);
  font:400 18px/1.55 var(--sans);
  overflow-x:clip
}

a {
  color:inherit;
  text-underline-offset:.22em
}

a:focus-visible,button:focus-visible,video:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:5px
}

.wrap {
  max-width:1240px;
  margin-inline:auto;
  width:auto;
  padding-inline:44px
}

.skip {
  position:absolute;
  left:20px;
  top:-70px;
  background:var(--accent);
  padding:12px;
  z-index:5
}

.skip:focus {
  top:10px
}

.masthead {
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:88px;
  border-bottom:2px solid var(--ink);
  gap:20px
}

.mast-tools {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:14px 22px
}

.langs {
  display:flex;
  flex-wrap:wrap;
  gap:6px
}

.langs button {
  font:600 13px/1 var(--mono);
  color:var(--ink);
  background:transparent;
  border:1px solid var(--ink);
  padding:7px 9px;
  cursor:pointer
}

.langs button[aria-pressed="true"] {
  background:var(--accent)
}

.brand {
  font:600 22px/1 var(--mono);
  text-decoration:none
}

.brand span {
  font:600 14px/1 var(--mono);
  letter-spacing:.12em
}

.masthead nav {
  display:flex;
  align-items:center;
  gap:28px;
  font-size:16px
}

.masthead nav a {
  text-decoration:none
}

.masthead nav a:hover {
  text-decoration:underline
}

.masthead .nav-download {
  background:var(--accent);
  border:1px solid var(--ink);
  padding:9px 13px;
  white-space:nowrap
}

.masthead .nav-download:hover {
  background:var(--accent-hover);
  text-decoration:none
}

.key-art {
  margin-top:24px;
  margin-bottom:0
}

.key-art img {
  width:100%;
  height:auto;
  display:block;
  border:1px solid var(--line)
}

.intro {
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(260px,.75fr);
  gap:80px;
  padding-top:46px;
  padding-bottom:70px
}

.eyebrow {
  font:600 14px/1.5 var(--mono);
  letter-spacing:.06em;
  color:var(--muted);
  margin:0 0 22px
}

h1,h2,h3 {
  font-weight:600;
  line-height:1.04;
  margin:0 0 24px;
  letter-spacing:-.035em
}

h1,h2,h3 {
  text-wrap:balance
}

html[lang="zh-Hant"] :is(h1,h2,h3),html[lang="ja"] :is(h1,h2,h3) {
  line-height:1.2;
  letter-spacing:0
}

/* Chrome breaks Japanese headings between phrases instead of mid-word. */
html[lang="ja"] :is(h1,h2,h3) {
  word-break:auto-phrase
}

h1 {
  font-size:clamp(42px,5.1vw,70px)
}

h2 {
  font-size:clamp(34px,4vw,54px)
}

h3 {
  font-size:26px
}

p {
  margin:0 0 20px;
  max-width:min(720px,100%);
  overflow-wrap:break-word
}

.lead {
  font-size:24px;
  line-height:1.4
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:16px 22px;
  min-height:56px;
  font-size:17px;
  font-weight:600;
  background:var(--accent);
  border:2px solid var(--ink);
  box-shadow:3px 3px 0 var(--ink);
  text-decoration:none;
  transition:transform .12s,box-shadow .12s;
  margin-top:12px
}

.button:hover {
  transform:translateY(-2px);
  box-shadow:3px 5px 0 var(--ink)
}

.button:active {
  transform:translate(2px,2px);
  box-shadow:1px 1px 0 var(--ink)
}

.button.secondary {
  background:var(--paper)
}

.download-note {
  font-size:14px;
  color:var(--muted);
  margin:15px 0 0
}

.fact-sheet {
  padding-top:44px
}

.fact-sheet h2 {
  font:600 16px/1.4 var(--mono);
  letter-spacing:.06em;
  padding-bottom:16px;
  border-bottom:2px solid var(--ink);
  margin-bottom:0
}

dl {
  margin:0
}

dl div {
  display:grid;
  grid-template-columns:94px 1fr;
  gap:18px;
  padding:15px 0;
  border-bottom:1px solid var(--line);
  font-size:16px
}

dt {
  color:var(--muted)
}

dd {
  margin:0;
  overflow-wrap:anywhere
}

.section {
  border-top:2px solid var(--ink);
  padding-top:36px;
  padding-bottom:62px
}

.section>p:not(.eyebrow) {
  font-size:21px
}

.trailer-file,.gameplay-feature video {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  background:#0b1220;
  border:1px solid var(--line)
}

.trailer-file {
  margin:8px 0 22px
}

.contact-actions {
  display:flex;
  flex-wrap:wrap;
  gap:16px
}

.steps {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:36px;
  margin-top:38px;
  margin-bottom:40px
}

.steps p {
  font-size:18px
}

.step-number {
  display:block;
  color:var(--mut);
  font:600 18px/1.4 var(--mono);
  margin-bottom:18px
}

.steps h3 {
  line-height:1.14;
  letter-spacing:-.02em
}

.gameplay-feature {
  margin:0
}

figcaption {
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
  margin-top:12px
}

.gameplay-feature figcaption {
  display:flex;
  justify-content:space-between;
  gap:18px
}

.demo-section {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:74px
}

.demo-numbers {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-content:center
}

.demo-numbers div {
  display:flex;
  flex-direction:column-reverse;
  gap:0;
  border:0;
  padding:0
}

.demo-numbers dd {
  font:600 72px/1.2 var(--mono);
  color:#00915a
}

.demo-numbers dt {
  font-size:16px
}

.section-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px
}

.section-heading h2 {
  margin-bottom:0
}

.heading-links {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px
}

.text-link {
  font-size:16px
}

.media-note {
  font-size:16px!important;
  margin:24px 0 26px
}

.screenshots {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px
}

.screenshots figure {
  margin:0
}

.screenshots img {
  display:block;
  width:100%;
  height:auto;
  border:1px solid var(--line);
  transition:opacity .15s
}

.screenshots a:hover img {
  opacity:.88
}

.asset-grid {
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:72px;
  align-items:center;
  margin-top:32px
}

.logo-preview {
  padding:28px 36px;
  background:#fff;
  border:1px solid var(--line);
  margin-bottom:16px
}

.logo-preview img {
  display:block;
  width:100%;
  max-width:340px;
  height:auto;
  margin-inline:auto
}

.asset-links>a {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
  text-decoration:none
}

.asset-links>a:hover {
  background:var(--sage)
}

.asset-links>a:first-child {
  border-top:2px solid var(--ink)
}

.asset-links>a span:last-child {
  font:600 14px/1.5 var(--mono);
  white-space:nowrap
}

.asset-credit {
  font-size:14px;
  color:var(--muted);
  margin:18px 0 0
}

#contact a {
  overflow-wrap:anywhere
}

footer {
  border-top:2px solid var(--ink);
  padding-block:26px 40px;
  display:flex;
  justify-content:space-between;
  font-size:14px;
  color:var(--muted)
}

img {
  max-width:100%;
  height:auto
}

@media(max-width:760px) {
  .wrap {
    padding-inline:18px
  }
  .masthead {
    min-height:76px;
    flex-wrap:wrap;
    padding-block:18px;
    gap:14px
  }
  .masthead nav {
    gap:22px
  }
  .brand {
    font-size:20px
  }
  .intro {
    grid-template-columns:1fr;
    gap:24px;
    padding-top:32px;
    padding-bottom:45px
  }
  .intro p {
    max-width:100%
  }
  .fact-sheet {
    padding-top:12px
  }
  .lead {
    font-size:22px
  }
  html[lang="zh-Hant"] h1,html[lang="ja"] h1 {
    font-size:36px
  }
  html[lang="zh-Hant"] .section h2,html[lang="ja"] .section h2 {
    font-size:30px
  }
  html[lang="zh-Hant"] .steps h3,html[lang="ja"] .steps h3 {
    font-size:22px
  }
  .key-art {
    margin-top:18px
  }
  .section {
    padding-bottom:42px
  }
  .button {
    max-width:100%
  }
  .steps {
    grid-template-columns:1fr;
    gap:20px
  }
  .step-number {
    margin-bottom:10px
  }
  .gameplay-feature figcaption {
    display:block
  }
  .gameplay-feature figcaption .fig-links {
    display:block;
    margin-top:7px
  }
  .demo-section {
    grid-template-columns:1fr;
    gap:18px
  }
  .demo-numbers {
    gap:18px;
    margin-bottom:8px
  }
  .demo-numbers dd {
    font-size:56px
  }
  .screenshots {
    grid-template-columns:1fr;
    gap:25px
  }
  .section-heading {
    align-items:start;
    flex-direction:column;
    gap:20px
  }
  .heading-links {
    align-items:flex-start
  }
  .asset-grid {
    grid-template-columns:1fr;
    gap:28px
  }
  .asset-links>a {
    min-height:64px
  }
  footer {
    gap:20px;
    flex-wrap:wrap
  }
}

@media(max-width:520px) {
  .masthead nav {
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:12px 16px;
    width:100%;
    font-size:14px
  }
  .masthead .nav-download {
    padding:8px 10px
  }
}

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

@media print {
  body {
    background:white;
    color:black;
    font-size:12pt
  }
  .wrap {
    max-width:none
  }
  .masthead nav,.button,.screenshots,.gameplay-feature,.asset-grid,.download-note,.skip,.trailer-file,.contact-actions {
    display:none
  }
  #media,section[aria-labelledby="assets-title"] {
    display:none
  }
}
