@font-face {
  font-family: "Hubot Sans";
  src: url("fonts/HubotSans.ttf") format("truetype");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/MonaSans.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

/* mediakit.apysyk.com. Tokens and type follow the apysyk.com design tokens. The build prepends the
   @font-face rules, with weight and width ranges read from the font files. */

:root {
  --bg: #000;
  --ink: #f4f5f1;
  --ink-2: rgba(244, 245, 241, 0.8);
  --ink-3: rgba(244, 245, 241, 0.64);
  --line: rgba(244, 245, 241, 0.1);
  --line-2: rgba(244, 245, 241, 0.18);
  --line-3: rgba(244, 245, 241, 0.32);
  --apy: #58a02d;
  --apy-2: #6dbb3a;
  --apy-glow: #8ee05a;
  --surface: #08110a;
  --surface-2: #0d180f;
  --on-green: #041003;
  --font-display: "Hubot Sans", "Mona Sans", system-ui, sans-serif;
  --font-text: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --shell: 1440px;
  --gutter: clamp(20px, 4.4vw, 72px);
  --gap: clamp(14px, 1.6vw, 24px);
  --header-h: 76px;
  --radius: 18px;
  --section-pad: clamp(72px, 9vw, 144px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 979px) {
  :root {
    /* Phones and tablets: the header gains a second row with the section links. */
    --header-h: 108px;
  }
}

@media (min-width: 1920px) {
  :root {
    --shell: 1680px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--font-mono);
}

::selection {
  background: var(--apy);
  color: #000;
}

:focus-visible {
  outline: 2px solid var(--apy-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--apy);
  color: #000;
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: none;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 106%;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-wrap: balance;
}

.display em {
  font-style: normal;
  color: var(--apy-2);
}

/* 0.98, not the site cover's 0.88: the "y" of "Apysyk" would touch the "d" of "brand" below it. */
.display--cover {
  font-size: clamp(2.9rem, 8.4vw, 9rem);
  font-stretch: 110%;
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.display--xl {
  font-size: clamp(2rem, 5vw, 5.4rem);
}

.display--l {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 0.96;
}

@media (max-width: 480px) {
  .display {
    font-stretch: 100%;
  }
}

.lead {
  font-size: clamp(1.06rem, 1.2vw, 1.25rem);
  line-height: 1.52;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.body {
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}

.eyebrow,
.label,
.size,
.subhead {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 0.74rem;
  color: var(--apy-2);
}

.eyebrow--dot {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
}

.eyebrow--dot::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--apy-glow);
  box-shadow: 0 0 12px var(--apy);
}

.label {
  font-size: 0.72rem;
  color: var(--ink-2);
}

.size {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.subhead {
  margin: clamp(48px, 5vw, 72px) 0 20px;
  font-size: 0.78rem;
  color: var(--ink);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--apy);
  color: var(--on-green);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.button:hover {
  background: var(--apy-2);
}

/* Full-strength near-black on the green: a lighter tone would fall under 4.5:1. */
.button .dl__meta {
  font-weight: 500;
  color: var(--on-green);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-3);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.button--ghost .dl__meta {
  color: var(--ink-3);
}

.dl {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}

.dl:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line-3);
}

.dl__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-3);
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.07);
}

.copy.is-copied {
  color: var(--apy-glow);
  box-shadow: inset 0 0 0 1px rgba(142, 224, 90, 0.5);
}

a:not(.button, .dl, .brand, .skip-link):hover {
  color: var(--apy-glow);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(3, 9, 4, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* The site's 28 px logo PNG holds the cube at 61% of its height with 5.6 px of side margin. */
.brand__mark {
  width: auto;
  height: 17px;
  margin: 0 15.5px 0 5.5px;
}

.brand__kit {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__list a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.nav__list a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 1279px) {
  .nav__list a {
    padding: 0 10px;
    font-size: 0.88rem;
  }
}

/* Below 980 px the section links move to a second row that scrolls sideways on its own. */
@media (max-width: 979px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0 12px;
    min-height: 0;
    padding-top: 12px;
  }

  .brand {
    height: 40px;
  }

  .button--header {
    margin-left: auto;
  }

  .nav {
    order: 3;
    flex: 1 0 100%;
    margin: 8px calc(var(--gutter) * -1) 0;
    padding: 0 calc(var(--gutter) - 10px) 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav__list a {
    height: 36px;
  }
}

@media (max-width: 599px) {
  .brand__kit {
    display: none;
  }

  .button__wide {
    display: none;
  }

  .button--header {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.86rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line);
}

.hero__art {
  position: absolute;
  top: 50%;
  right: max(-180px, calc((100vw - 1600px) / 2 - 200px));
  width: min(1100px, 80vw);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 28px;
  justify-items: start;
  padding-block: clamp(96px, 14vw, 220px) clamp(64px, 8vw, 128px);
}

.hero .display--cover {
  max-width: 8.5em;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: clamp(16px, 3vw, 40px);
}

.hero__stats div {
  display: grid;
  gap: 4px;
}

.hero__stats dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero__stats dd {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Phones: the whole lattice sits above the headline. In the art its centre is at 56% of the width, half the height. */
@media (max-width: 767px) {
  .hero__art {
    top: -14vw;
    right: auto;
    left: -34vw;
    width: 150vw;
    max-width: none;
    transform: none;
  }

  .hero__inner {
    padding-top: 78vw;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-pad);
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px var(--gap);
  margin-bottom: clamp(36px, 4vw, 56px);
}

.section__head .eyebrow {
  grid-column: 1 / -1;
}

.section__head .lead {
  justify-self: end;
  max-width: 30em;
}

@media (max-width: 767px) {
  .section__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .section__head .lead {
    justify-self: start;
  }
}

.section__action {
  margin-top: 28px;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.card {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.about__copy {
  display: grid;
  gap: var(--gap);
}

.copy-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 2.4vw, 32px);
}

.copy-card__text {
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}

.facts {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 2.4vw, 32px);
}

.facts dl {
  display: grid;
}

.facts dl div {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.facts dd {
  font-size: 1.05rem;
  font-weight: 500;
}

.facts dd a {
  color: var(--apy-2);
}

@media (max-width: 979px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Previews ---------- */

.preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
}

.preview--dark {
  background: #000;
  box-shadow: inset 0 0 0 1px var(--line);
}

.preview--light {
  background: var(--ink);
}

.preview--green {
  background: var(--apy);
}

/* Renders sit on a faint frame so a black banner still shows its edges. */
.preview--frame {
  background: #000;
  box-shadow: 0 0 0 1px var(--line-2);
}

.preview__img {
  width: 100%;
  height: auto;
}

/* A fixed tile per grid; the render sits inside at its own proportions, never upscaled, on a faint frame. */
.preview--fit {
  position: relative;
  aspect-ratio: var(--tile, 16 / 10);
  background: #020503;
  box-shadow: inset 0 0 0 1px var(--line);
}

.preview--fit .preview__img {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  margin: auto;
  box-shadow: 0 0 0 1px var(--line-2);
}

/* ---------- Logo ---------- */

.grid--logos {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.logo-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 10px 10px 22px;
}

.logo-card .preview {
  aspect-ratio: 16 / 9;
}

/* Sized by width, which always resolves: the lockup and the wordmark span most of the tile, the mark sits at about 40% of its height. */
.logo-card .preview img {
  width: 68%;
  height: auto;
}

.logo-card .preview--wordmark img {
  width: 52%;
}

.logo-card .preview--mark img {
  width: 22%;
}

.logo-card__body {
  display: grid;
  gap: 14px;
  padding-inline: 12px;
}

.grid--avatars {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  max-width: 760px;
}

.preview__img--avatar {
  aspect-ratio: 1;
}

.rules {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--gap);
  margin-top: clamp(48px, 5vw, 72px);
}

.rule {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(22px, 2.4vw, 32px);
}

.rule .body em {
  font-style: normal;
  font-family: var(--font-mono);
  color: var(--apy-glow);
}

.clearspace {
  margin-top: 16px;
  padding: clamp(16px, 3vw, 40px);
  border-radius: calc(var(--radius) - 6px);
  background: #000;
}

.clearspace__svg {
  width: 100%;
  height: auto;
}

.minsize {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 40px;
  margin-top: 16px;
  padding: 40px 32px 28px;
  border-radius: calc(var(--radius) - 6px);
  background: #000;
}

.minsize figure {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.minsize__mark {
  width: auto;
  height: 24px;
}

.minsize__lockup {
  width: 96px;
  height: auto;
}

@media (max-width: 979px) {
  .rules {
    grid-template-columns: minmax(0, 1fr);
  }
}

.donts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: var(--gap);
}

.dont {
  display: grid;
  gap: 12px;
}

.dont p {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.dont__demo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* A red-free "no" mark: a diagonal rule across each example. */
.dont__demo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 1px),
    rgba(244, 245, 241, 0.55) calc(50% - 1px),
    rgba(244, 245, 241, 0.55) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

.dont__demo img {
  width: auto;
  height: 44%;
}

/* Recolored to orange: purple would read as critical severity, which the brand never uses. */
.dont__demo--recolor img {
  filter: hue-rotate(-80deg) saturate(1.4);
}

.dont__demo--stretch img {
  transform: scaleX(1.6);
}

.dont__demo--rotate img {
  transform: rotate(-24deg);
}

.dont__demo--effects img {
  filter: drop-shadow(6px 10px 6px rgba(142, 224, 90, 0.9));
}

.dont__demo--outline img {
  filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink));
}

.dont__demo--busy {
  background:
    repeating-linear-gradient(45deg, #6dbb3a 0 10px, #f4f5f1 10px 20px, #8a8a8c 20px 30px);
}

/* ---------- Color ---------- */

.grid--swatches {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.swatch {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.swatch__chip {
  aspect-ratio: 16 / 10;
  margin: 10px 10px 0;
  border-radius: calc(var(--radius) - 8px);
}

/* Dark chips would vanish into the card: outline them. */
.swatch__chip--black,
.swatch__chip--surface,
.swatch__chip--deep-green {
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.swatch__chip--apysyk-green {
  background: #58a02d;
}

.swatch__chip--green-2 {
  background: #6dbb3a;
}

.swatch__chip--green-glow {
  background: #8ee05a;
}

.swatch__chip--black {
  background: #000;
}

.swatch__chip--surface {
  background: #08110a;
}

.swatch__chip--ink {
  background: #f4f5f1;
}

.swatch__chip--deep-green {
  background: #041003;
}

.swatch__body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 20px 16px;
}

.swatch__role {
  font-size: 0.92rem;
}

.swatch__values {
  display: grid;
  margin-top: 6px;
}

.swatch__values div {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  padding-block: 8px;
  border-top: 1px solid var(--line);
}

.swatch__values dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.swatch__values dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.swatch__values code {
  font-size: 0.86rem;
}

/* ---------- Typography ---------- */

.type {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
}

.specimen {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 20px;
  padding: clamp(22px, 2.4vw, 32px);
}

.specimen__meta {
  display: grid;
  gap: 6px;
}

.specimen__sample {
  align-self: center;
  padding-block: 12px;
}

.specimen__sample--display {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 4.4rem);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-wrap: balance;
}

.specimen__sample--display em {
  font-style: normal;
  color: var(--apy-2);
}

.specimen__sample--text {
  font-family: var(--font-text);
  font-size: 1.3rem;
  line-height: 1.45;
}

.specimen__sample--mono {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--apy-2);
}

.specimen__links {
  font-size: 0.88rem;
  color: var(--ink-3);
}

.type__credits {
  margin-top: 24px;
  font-size: 0.88rem;
}

.type__credits a,
.specimen__links a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}

@media (max-width: 1179px) {
  .type {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .specimen--hubot {
    grid-column: 1 / -1;
  }
}

@media (max-width: 679px) {
  .type {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Banners and wallpapers ---------- */

.asset-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 10px 10px 18px;
}

.asset-card .preview {
  align-self: start;
}

.asset-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: end;
  align-items: center;
  gap: 4px 12px;
  padding-inline: 10px;
}

.asset-card__body .size {
  grid-row: 2;
}

.asset-card__body .dl {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.grid--social,
.grid--ads {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.grid--ads {
  --tile: 4 / 3;
}

.grid--social {
  grid-auto-flow: dense;
}

/* Two columns plus the gap, at the height of a 16:10 tile: about 3.3:1 at every grid width. */
@media (min-width: 800px) {
  .asset-card--span {
    grid-column: span 2;
    --tile: 3.3;
  }
}

/* Phones: a leaderboard in a tall tile would shrink to a sliver; its tile takes the strip's own shape. */
@media (max-width: 599px) {
  .asset-card--strip .preview--fit {
    aspect-ratio: auto;
    padding: 12px;
  }

  .asset-card--strip .preview--fit .preview__img {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
}

.grid--email {
  --tile: 3 / 1;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
}

.grid--covers {
  --tile: 1200 / 700;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.wall-group + .wall-group {
  margin-top: clamp(40px, 4vw, 64px);
}

.wall-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  margin: clamp(48px, 5vw, 72px) 0 20px;
}

.wall-group__head .subhead {
  margin: 0;
}

.wall-group__head .body {
  font-size: 0.95rem;
}

.grid--walls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 899px) {
  .grid--walls {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wall-card {
  display: grid;
  gap: 18px;
  padding: 10px 10px 20px;
}

/* Portrait previews stay small beside their size list. */
.wall-group--phone .wall-card,
.wall-group--tablet .wall-card {
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  align-items: start;
}

.wall-group--tablet .wall-card {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
}

@media (max-width: 479px) {
  .wall-group--phone .wall-card,
  .wall-group--tablet .wall-card {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }
}

.wall-card__body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-inline: 10px;
}

.wall-group--phone .wall-card__body,
.wall-group--tablet .wall-card__body {
  padding-top: 10px;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Downloads ---------- */

.zips {
  display: grid;
  border-top: 1px solid var(--line);
}

.zip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.zip > div {
  display: grid;
  gap: 6px;
}

.zip--main .card__title {
  font-size: 1.5rem;
}

.zip .size {
  margin-left: 6px;
}

/* ---------- Contact ---------- */

.section--contact {
  display: grid;
  gap: 24px;
}

.section--contact .display {
  max-width: 14em;
  overflow-wrap: anywhere;
}

/* The address sits inside the heading: an underline, not only the color, marks it as a link. */
.section--contact a {
  color: var(--apy-2);
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.12em;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-3);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 36px 48px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
  }
}
