/* OpenZT2 design language. Every page links this file and adds only data.
   A page that needs a variant uses a derivative named for its component,
   such as .article-card-preview, defined here beside the component. */

/* Fonts */
@font-face { font-family: "Bree Serif"; src: url("fonts/bree-serif-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("fonts/kalam-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

/* Tokens */
:root {
  color-scheme: light;
  /* Colours. Each token lists what it colours. Nothing outside :root
     writes a colour value. */
  --forest: #234328;        /* headings, links on light, step numbers, diagram lines, heading icons */
  --forest-dark: #172d1b;   /* header bar, hero navigation, hero fallback, scribble shadow */
  --leaf: #638845;          /* light end of the heading-icon gradient */
  --ink: #242823;           /* body text, the footer */
  --ink-soft: #4c5549;      /* ledes, standfirsts, captions, card summaries, diagram notes */
  --ink-meta: #536449;      /* article dates and categories */
  --backdrop: #182019;      /* code blocks and the backdrop behind images */
  --scrim: #303030;         /* grey backing behind text laid over screenshots */
  --shadow: #000;           /* shadows */
  --cream: #f7f6f1;         /* page background, text on the footer */
  --paper: #fffefa;         /* cards, tooltips, text on dark bars, buttons and screenshots */
  --parchment: #fffce5;     /* icons and text on forest, the O badge */
  --sage: #edf0e6;          /* panels and cards on the page, inline code, text on the code label */
  --sage-deep: #dce5d1;     /* deeper panels, masthead stripe, outline-button hover, notes on forest */
  --line: #bdc7b3;          /* borders and rules */
  --line-strong: #a7b097;   /* link underlines and the setup-step connector */
  --outline: #969d8d;       /* outline-button and tooltip borders */
  --yellow: #fff083;        /* links and highlights on dark, the release scribble */
  --hero-description: #ffe182;
  --focus: #bd7736;         /* keyboard focus ring */
  --badge-original: #46351d;
  --badge-new: #154b38;
  --badge-new-ink: #ddffe9;
  --discord-green: #008835;
  --discord-green-deep: #006c27;
  --discord-green-hover: #119346;
  --discord-green-edge: #20c567;
  --discord-green-inset: #01330f;
  --font-display: "Bree Serif", Georgia, serif;
  --font-body: "Roboto", Arial, sans-serif;
  --font-hand: "Kalam", cursive;
  --font-code: ui-monospace, SFMono-Regular, Consolas, monospace;
  --code-label-background: #263b28;
  /* Code token colours, from the Monokai palette. */
  --code-text: #f8f8f2;
  --code-comment: #88846f;
  --code-string: #e6db74;
  --code-keyword: #f92672;
  --code-constant: #ae81ff;
  --code-type: #66d9ef;
  --code-name: #a6e22e;
  --code-variable: #fd971f;
  --code-invalid: #f44747;
  --code-quiet: #cfcfc2;
  --code-meta: #75715e;
}

/* Base elements */
* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.68 var(--font-body); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--forest); }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.025em; }
h1 { max-width: 24ch; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Type scale. The default suits reading pages. The fluid derivative scales
   the whole page with the viewport, for the homepage's full-bleed layout. */
.type-scale-fluid { font-size: 85%; scroll-padding-top: 2rem; }
.type-scale-fluid body { font-size: max(14px, 1.35rem); line-height: 1.55; }
@media (min-width: 801px) { .type-scale-fluid { font-size: clamp(8.5px, .944444vw, 15.3px); } }
@media (max-width: 800px) { .type-scale-fluid body { font-size: max(14px, 1rem); } }

/* Layout and utilities */
.page-width { width: min(89.2%, 1224px); margin-inline: auto; }
@media (max-width: 800px) { .page-width { width: 89%; } }
.skip-link { position: absolute; z-index: 5; top: 1rem; left: 1rem; padding: .7rem 1rem; transform: translateY(-180%); background: var(--paper); color: var(--forest); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.6em; height: 1.6em; flex: 0 0 auto; }
.chevron { width: 1.35rem; height: 1.35rem; margin-left: auto; flex: 0 0 auto; }
@media (max-width: 480px) { .desktop-break { display: none; } }

/* Site header: a dark bar with the brand and the main navigation. */
.site-header { background: var(--forest-dark); color: var(--paper); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 76px; }
.site-brand { font: 400 1.5rem/1 var(--font-display); text-decoration: none; color: var(--paper); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem 2rem; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--yellow); }
@media (max-width: 700px) {
  .site-header-inner { align-items: flex-start; padding-block: 1rem; }
  .site-nav { gap: .45rem 1rem; font-size: .9rem; }
}
/* Hero derivative: no bar or brand, and the navigation sits on the hero
   image in a dark pill. */
.site-header-hero { background: none; }
.site-header-hero .site-header-inner { align-items: flex-start; justify-content: flex-end; gap: 3rem; min-height: 0; padding-block: 2rem 1rem; }
.site-header-hero .site-nav { gap: clamp(1rem, 2.975vw, 3.75rem); padding: .8rem 1rem; border-radius: 6px; background: color-mix(in srgb, var(--forest-dark) 88%, transparent); font-size: 1.4rem; white-space: nowrap; }
@media (max-width: 800px) {
  .site-header-hero .site-header-inner { align-items: center; gap: 1rem; padding-top: 1.1rem; }
  .site-header-hero .site-nav { gap: .5rem 1.2rem; font-size: .875rem; }
}
@media (max-width: 480px) {
  .site-header-hero .site-header-inner { width: 92%; align-items: flex-start; }
  .site-header-hero .site-nav { max-width: 100%; gap: .4rem .65rem; padding: .7rem; font-size: 12px; }
}

/* Site footer */
.site-footer { padding-block: 2.5rem; background: var(--ink); color: var(--cream); }
.site-footer a { color: var(--yellow); }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
/* Homepage derivative: the elephant screenshot, the logo and link columns. */
.site-footer-home { position: relative; padding-block: 1.25rem 4.5rem; background: linear-gradient(90deg, var(--ink) 40%, color-mix(in srgb, var(--ink) 88%, transparent) 75%, color-mix(in srgb, var(--ink) 70%, transparent)), url("elephant-at-sunset.jpg") right center / auto 100% no-repeat, var(--ink); }
.site-footer-home .footer-content { display: grid; grid-template-columns: 1.35fr .7fr .82fr 1.9fr; gap: 3rem; align-items: start; font-size: 1rem; line-height: 1.5; }
.site-footer-home .footer-brand img { width: 17rem; height: 7.2rem; object-fit: contain; object-position: left center; margin-bottom: .3rem; }
.site-footer-home .footer-brand p { font-size: .85rem; line-height: 1.3; }
.site-footer-home .footer-brand p + p { margin-top: .3rem; }
.site-footer-home nav { display: flex; flex-direction: column; padding-top: .6rem; }
.site-footer-home h3 { color: inherit; font-size: 1rem; font-weight: 500; margin-bottom: .5rem; }
.site-footer-home nav a { color: inherit; text-decoration: none; }
.site-footer-home nav a:hover { text-decoration: underline; }
.site-footer-home .developer-credit { padding-top: 1rem; }
.site-footer-home .developer-credit p { margin-bottom: .7rem; }
@media (max-width: 800px) {
  .site-footer-home .footer-content { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; font-size: .95rem; }
  .site-footer-home .footer-brand { grid-column: 1 / -1; }
  .site-footer-home .footer-brand img { width: 13rem; }
  .site-footer-home .footer-brand p { font-size: .8rem; }
  .site-footer-home .developer-credit { grid-column: 1 / -1; padding-top: 0; }
}

/* Section title: the large heading of a homepage section. The icon
   derivative leads it with a round heading icon. */
.section-title { overflow-wrap: anywhere; font-size: clamp(1.7rem, 3.3vw, 2.9rem); line-height: 1.13; letter-spacing: -.045em; }
.section-title-with-icon { display: flex; align-items: center; gap: 1.5rem; }
.heading-icon { display: flex; align-items: center; justify-content: center; width: 5.75rem; height: 5.75rem; border-radius: 50%; background: linear-gradient(120deg, var(--leaf), var(--forest)); color: var(--parchment); flex: 0 0 auto; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 14%, transparent); }
.heading-icon .icon { width: 3.35rem; height: 3.35rem; }
@media (max-width: 800px) {
  .section-title { font-size: 2.15rem; }
  .heading-icon { width: 4.4rem; height: 4.4rem; }
  .heading-icon .icon { width: 2.8rem; height: 2.8rem; }
}
@media (max-width: 480px) {
  .section-title-with-icon { gap: .9rem; }
  .heading-icon { width: 3.7rem; height: 3.7rem; }
  .heading-icon .icon { width: 2.3rem; height: 2.3rem; }
}

/* Buttons and links */
.button { display: inline-flex; justify-content: flex-start; align-items: center; gap: 1rem; min-height: 5.4rem; padding: 1rem 1.8rem; border: 1px solid transparent; border-radius: 7px; font-weight: 500; font-size: 1.7rem; line-height: 1.2; text-decoration: none; }
.button-discord { color: var(--paper); border: 2px solid var(--discord-green-edge); background: linear-gradient(var(--discord-green), var(--discord-green-deep)); box-shadow: 0 3px 8px color-mix(in srgb, var(--shadow) 30%, transparent), inset 0 0 0 3px color-mix(in srgb, var(--discord-green-inset) 50%, transparent); }
.button-discord:hover { background: var(--discord-green-hover); text-decoration: none; }
.button-discord img { width: 2rem; height: 2rem; }
.button-outline { background: transparent; color: var(--forest); border: 1px solid var(--outline); }
.button-outline:hover { background: var(--sage-deep); }
.text-link { display: flex; align-items: center; gap: 1rem; font-size: 1.3rem; line-height: 1.35; }
.text-link > span { min-width: 0; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: .14em; }
.text-link .icon { width: 1.75rem; height: 1.75rem; }
.article-link { display: inline-block; margin-top: .6rem; color: var(--forest); font-weight: 500; }
@media (max-width: 800px) {
  .button { font-size: 1.1rem; min-height: 3.65rem; padding: .7rem 1.2rem; gap: .7rem; }
  .button-discord { font-size: 14px; min-height: 44px; padding: .6rem .7rem; gap: .5rem; }
  .text-link { font-size: 1rem; }
}
@media (max-width: 480px) { .text-link { font-size: .9rem; gap: .7rem; } }

/* Article metadata: date and category. */
.article-meta { color: var(--ink-meta); font-size: .95rem; }

/* Article card: a devblog article's image, title, summary and link. */
.article-card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.article-card-image { display: block; min-height: 270px; background: var(--backdrop); }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; }
.article-card-image-contain img { object-fit: contain; }
.article-card-copy { align-self: center; padding: clamp(1.6rem, 5vw, 3.5rem); }
.article-card-title { margin-bottom: .35rem; font: 400 clamp(1.35rem, 2vw, 1.65rem)/1.2 var(--font-display); letter-spacing: -.025em; }
.article-card-title a { text-decoration: none; }
.article-card-title a:hover { text-decoration: underline; }
.article-card .article-meta { margin-bottom: .85rem; }
.article-card-copy > p:not(.article-meta) { margin-bottom: 1em; color: var(--ink-soft); }
@media (max-width: 700px) {
  .article-card { grid-template-columns: 1fr; }
  .article-card-image { min-height: 0; }
}
/* Preview derivative: the compact, stacked card on the homepage. */
.article-card-preview { display: flex; flex-direction: column; border-radius: 10px; background: var(--sage); }
.article-card-preview .article-card-image { flex: 1 1 auto; min-height: 0; }
.article-card-preview .article-card-copy { display: flex; flex-direction: column; flex: 0 0 auto; align-self: stretch; padding: 1.5rem; }
.article-card-preview .article-card-title { margin-bottom: 0; font-size: max(20px, 1.65rem); line-height: 1.35; letter-spacing: 0; }
.article-card-preview .article-meta { margin: .35rem 0 0; font-size: 15px; }
.article-card-preview .article-card-copy > p:not(.article-meta) { margin: .75rem 0 0; color: inherit; }
.article-card-preview .article-link { margin-top: auto; padding-top: 1.5rem; }

/* Page masthead: the title band of an index page. */
.page-masthead { padding-block: clamp(4rem, 9vw, 8rem); background: linear-gradient(105deg, var(--sage) 0 63%, var(--sage-deep) 63%); border-bottom: 1px solid var(--line); }
.page-masthead h1 { margin-bottom: .5rem; }
.page-masthead p { max-width: 46rem; font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--ink-soft); }
@media (max-width: 700px) { .page-masthead { background: var(--sage); } }
.article-list { display: grid; gap: 1.5rem; padding-block: 4rem 6rem; }

/* Article */
.article-header { padding-block: clamp(4rem, 9vw, 7.5rem) 3.5rem; border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 28ch; margin-bottom: .5rem; }
.article-header .article-meta { margin-bottom: .85rem; }
.article-standfirst { max-width: 48rem; color: var(--ink-soft); font-size: clamp(1.15rem, 2.3vw, 1.45rem); }
.article-body { width: min(90%, 760px); margin-inline: auto; padding-block: 3.5rem 6rem; }
.article-body p { margin-bottom: 1em; }
.article-body > p, .article-body > ul { font-size: 1.08rem; }
.article-body > h2 { margin: 3rem 0 .85rem; }
.article-body li + li { margin-top: .65rem; }
.article-body :not(pre) > code { padding: .12em .35em; border: 1px solid var(--line); border-radius: 4px; background: var(--sage); color: var(--forest); font-size: .92em; overflow-wrap: anywhere; }

/* Figure: breaks out of the article column to show a wide image. */
.article-body figure { width: min(1160px, 92vw); margin: 3rem 50%; transform: translateX(-50%); }
.article-body figure > a { display: block; overflow: hidden; border-radius: 9px; background: var(--backdrop); }
.article-body figcaption { margin-top: 1rem; color: var(--ink-soft); }
.article-body figcaption h2, .article-body figcaption h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
/* Terminal derivative: a narrower figure for terminal captures. */
.article-body .figure-terminal { width: min(900px, 92vw); }
/* Diagram derivative: stays in the article column. */
.article-body .figure-diagram { width: auto; margin: 2.5rem 0; transform: none; }
.figure-diagram svg { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.figure-diagram figcaption { max-width: 520px; margin-inline: auto; }
/* Comparison before: an earlier capture, collapsed under a summary. */
.comparison-before { width: min(1160px, 92vw); margin: 2rem 50%; padding-block: 1rem; transform: translateX(-50%); border-block: 1px solid var(--line); }
.comparison-before summary { cursor: pointer; color: var(--forest); font-weight: 500; }
.article-body .comparison-before figure { width: 100%; margin: 1rem 0 0; transform: none; }

/* Diagram: inline SVG drawn in the site's colours. */
.diagram { font-family: var(--font-body); }
.diagram-box { fill: var(--sage); stroke: var(--line); }
.diagram-box-emphasis { fill: var(--forest); stroke: none; }
.diagram-label { fill: var(--forest); font-size: 16px; font-weight: 600; }
.diagram-note { fill: var(--ink-soft); font-size: 13px; }
.diagram-label-inverse { fill: var(--parchment); }
.diagram-note-inverse { fill: var(--sage-deep); }
.diagram-arrow { stroke: var(--forest); stroke-width: 2; }
.diagram-arrow-head { fill: var(--forest); }

/* Code example: a labelled block of source, highlighted at build time. */
.code-example { min-width: 0; margin-block: 2rem; }
.code-example-label { padding: .45rem 1.25rem; border-radius: 8px 8px 0 0; background: var(--code-label-background); color: var(--sage); font: 500 14px/1.5 var(--font-body); }
.code-example pre { margin: 0; padding: 1.25rem; overflow: auto; white-space: pre; border-radius: 0 0 8px 8px; background: var(--backdrop); color: var(--code-text); font: 14px/1.65 var(--font-code); }
.code-comment { color: var(--code-comment); }
.code-string { color: var(--code-string); }
.code-keyword { color: var(--code-keyword); }
.code-constant { color: var(--code-constant); }
.code-type { color: var(--code-type); }
.code-name { color: var(--code-name); }
.code-variable { color: var(--code-variable); }
.code-invalid { color: var(--code-invalid); }
.code-quiet { color: var(--code-quiet); }
.code-meta { color: var(--code-meta); }
.code-italic { font-style: italic; }
.code-bold { font-weight: 700; }
.code-underline { text-decoration: underline; }

/* Screenshots: author credits and O/N origin badges with tooltips. */
.game-screenshot { position: relative; min-width: 0; }
.screenshot-author-credit { position: absolute; right: 64px; bottom: 12px; z-index: 4; max-width: calc(100% - 88px); padding: 6px 10px; border-radius: 4px; background: color-mix(in srgb, var(--scrim) 72%, transparent); color: var(--paper); font: 400 14px/1.4 var(--font-body); }
.screenshot-origin { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: inline-flex; }
.screenshot-origin button { width: 44px; height: 44px; padding: 0; border: 2px solid var(--parchment); border-radius: 50%; background: var(--badge-original); color: var(--parchment); font: 700 20px/1 var(--font-body); cursor: help; box-shadow: 0 2px 6px color-mix(in srgb, var(--shadow) 35%, transparent); }
.screenshot-origin[data-origin="new"] button { background: var(--badge-new); color: var(--badge-new-ink); border-color: var(--badge-new-ink); }
.screenshot-origin-tooltip { position: fixed; z-index: 100; width: min(320px, calc(100vw - 24px)); padding: 12px 16px; border: 1px solid var(--outline); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 4px 16px color-mix(in srgb, var(--shadow) 30%, transparent); font: 400 16px/1.5 var(--font-body); text-align: left; visibility: hidden; }
.screenshot-origin:is(:hover, :focus-within):not([data-dismissed]) .screenshot-origin-tooltip { visibility: visible; }
.screenshot-origin-inline { position: relative; right: auto; bottom: auto; vertical-align: middle; margin-right: .4rem; }
.screenshot-credits { margin-top: 1.5rem; font-size: 14px; }
@media (max-width: 800px) {
  .game-screenshot { width: 100%; }
  .screenshot-author-credit { overflow-wrap: anywhere; }
}

/* Homepage layout */
.hero { position: relative; isolation: isolate; color: var(--paper); min-height: min(46vw, 760px); padding-bottom: 4.5rem; background: var(--forest-dark) url("lion-in-savannah.jpg") center center / cover no-repeat; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 52% 0 0; background: color-mix(in srgb, var(--scrim) 82%, transparent); mask-image: linear-gradient(to right, var(--shadow) 85%, transparent); }
.hero-content { width: min(43%, 600px); margin-left: 4%; margin-right: auto; }
.hero-logo { width: 100%; max-width: 440px; margin: 0; line-height: 0; }
.hero-description { margin-top: 1.55rem; font-size: clamp(1.3rem, 2.3vw, 2.05rem); line-height: 1.5; font-weight: 500; color: var(--hero-description); }
.release-announcement { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 1.8rem; }
.release-scribble { position: relative; padding-left: 3rem; color: var(--yellow); font-family: var(--font-hand); font-size: clamp(1.7rem, 2.2vw, 2.6rem); line-height: 1.12; transform: rotate(-4deg); text-shadow: 0 2px 3px var(--forest-dark); }
.scribble-arrow { position: absolute; width: 2.5rem; height: 4.4rem; left: -.15rem; top: -.6rem; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.discord-invitation { padding-top: 1.5rem; text-align: center; }
.discord-address { display: block; margin-top: .7rem; font-size: 1.25rem; text-decoration: none; text-shadow: 0 2px 3px var(--shadow); }
.roadmap { padding-block: 3rem; }
.roadmap p { max-width: 46rem; margin-top: 1rem; font-size: 1.3rem; line-height: 1.55; }
.roadmap a { color: var(--forest); }
.features-and-setup { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; padding-block: 3rem; }
.feature-list { display: grid; gap: 2.9rem; margin: 3.2rem 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 5.75rem 1fr; gap: 1.5rem; align-items: start; }
.feature-list li > .icon { color: var(--forest); width: 3.4rem; height: 3.4rem; justify-self: center; }
.feature-list h3, .setup-steps h3 { font-size: 1.6rem; font-weight: 600; }
.feature-list p { margin-top: .3rem; line-height: 1.48; }
.getting-started { align-self: start; background: var(--sage); padding: 2.1rem 2.2rem 1.8rem; border-radius: 12px; color: var(--ink); }
.getting-started .heading-icon { width: 4.85rem; height: 4.85rem; }
.getting-started .heading-icon .icon { width: 2.7rem; height: 2.7rem; }
.setup-steps { list-style: none; padding: 0 0 0 .8rem; counter-reset: setup; margin: 2rem 0 1.8rem; }
.setup-steps li { position: relative; padding: 0 0 2.4rem 4.6rem; counter-increment: setup; }
.setup-steps li:last-child { padding-bottom: 0; }
.setup-steps li::before { content: counter(setup); position: absolute; left: 0; top: -.2rem; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 2px solid var(--cream); border-radius: 50%; color: var(--paper); background: var(--forest); font-weight: 500; font-size: 1.5rem; }
.setup-steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.4rem; top: 2.7rem; bottom: .2rem; width: 1px; background: var(--line-strong); }
.setup-steps p { margin-top: .4rem; }
.devblog-preview { padding-block: 3rem 4rem; }
.devblog-preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.7rem; }
.devblog-preview-heading > a { color: var(--forest); font-weight: 500; }
.devblog-preview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr); gap: 1.25rem; }
.creators { display: grid; grid-template-columns: 42% 58%; background: linear-gradient(100deg, var(--sage), var(--cream) 45%); }
.creators-content { padding: 2.5rem 4.5rem 2.7rem max(5.4vw, calc((100vw - 1224px) / 2)); }
.creators .section-title { align-items: flex-start; }
.creators .heading-icon { width: 5.65rem; height: 5.65rem; }
.creators p { margin-top: 2rem; max-width: 30rem; }
.creator-links { display: grid; gap: .8rem; margin-top: 1.65rem; max-width: 30rem; }
.creator-links .button { font-size: 1.4rem; min-height: 4.15rem; padding: .85rem 1.3rem; }
.giant-panda-habitat { width: 100%; height: 100%; min-height: 30rem; object-fit: cover; border-radius: 14px 0 0 14px; }
.release-and-community { padding-block: 2rem; }
.community-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "heading screenshot" "content screenshot"; grid-template-rows: auto 1fr; column-gap: 3rem; border-radius: 12px; padding: 2rem 2rem 4.5rem; background: linear-gradient(90deg, var(--sage-deep) 45%, color-mix(in srgb, var(--sage-deep) 82%, transparent)), url("antelopes-in-savannah.jpg") right center / cover no-repeat; }
.community-card h2 { grid-area: heading; }
.community-card .community-content { grid-area: content; }
.community-card .contribute-screenshot { grid-area: screenshot; align-self: start; }
.community-content { margin-left: 7.25rem; }
.community-content p { margin-top: -.3rem; max-width: 29rem; }
.community-links { display: grid; gap: .65rem; max-width: 24rem; width: 80%; margin-top: 1.65rem; margin-left: -3.3rem; }
.community-links .text-link { color: var(--forest); text-decoration: none; }
.community-links .text-link > span { flex: 1; border-bottom: 1px solid var(--line-strong); padding-bottom: .3rem; }
.contribute-screenshot { margin-top: 1.5rem; }
.contribute-screenshot > img { width: 100%; height: auto; border-radius: 8px; }

@media (min-width: 1700px) { .hero-content { padding-top: 1rem; } }
@media (max-width: 800px) {
  .hero { min-height: 560px; padding-bottom: 76px; background-position: 40% center; }
  .hero::before { inset: 0 44% 0 0; background: color-mix(in srgb, var(--scrim) 86%, transparent); mask-image: linear-gradient(to right, var(--shadow) 78%, transparent); }
  .hero-content { width: 48%; padding-top: 1rem; }
  .hero-logo { max-width: 230px; }
  .hero-description { margin-top: 1rem; font-size: 14px; }
  .release-announcement { flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 1.2rem; }
  .release-scribble { font-size: 1.5rem; padding-left: 1.5rem; }
  .scribble-arrow { width: 1.6rem; }
  .discord-invitation { padding: 0; }
  .discord-address { font-size: 12px; overflow-wrap: anywhere; }
  .features-and-setup { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-list { gap: 1.8rem; }
  .feature-list li { grid-template-columns: 4.4rem 1fr; gap: 1.2rem; }
  .feature-list li > .icon { width: 2.65rem; height: 2.65rem; }
  .feature-list h3, .setup-steps h3 { font-size: 1.125rem; }
  .getting-started { padding: 1.8rem; }
  .getting-started .heading-icon { width: 3.8rem; height: 3.8rem; }
  .devblog-preview-grid { grid-template-columns: 1fr; }
  .creators { grid-template-columns: 1fr; }
  .creators-content { padding: 2rem 5.5vw; }
  .creators .heading-icon { width: 4.4rem; height: 4.4rem; }
  .creators p, .creator-links { max-width: none; }
  .creator-links .button { font-size: 1.1rem; }
  .giant-panda-habitat { min-height: 0; height: auto; border-radius: 0; }
  .community-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "content" "screenshot"; grid-template-rows: auto; }
  .community-content { margin-left: 5.6rem; }
  .community-content p { margin-top: .6rem; }
  .community-links { width: 72%; margin-left: 0; }
}
@media (max-width: 480px) {
  .hero::before { right: 36%; }
  .hero-content { width: 56%; }
  .hero-logo { max-width: 200px; }
  .hero-description { max-width: 20rem; }
  .features .section-title, .getting-started .section-title { font-size: 1.8rem; }
  .feature-list li { grid-template-columns: 3.7rem 1fr; gap: .9rem; }
  .feature-list li > .icon { width: 2.3rem; height: 2.3rem; }
  .getting-started { padding: 1.3rem; }
  .setup-steps { padding-left: 0; }
  .setup-steps li { padding-left: 3.2rem; }
  .devblog-preview-heading { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .creators .heading-icon { width: 3.7rem; height: 3.7rem; }
  .community-card { padding: 1.4rem 1.4rem 4.5rem; }
  .community-card .section-title { font-size: 1.85rem; }
  .community-content { margin-left: 0; }
  .community-content p { margin-top: 1rem; }
}
