/* Material-style tokens: one teal primary carried through tonal surfaces,
   with coral, violet and amber accents on icons and metrics. */
:root {
  --primary: #006a68;
  --on-primary: #ffffff;
  --primary-container: #9df2ee;
  --on-primary-container: #00201f;
  --secondary-container: #cce8e6;
  --on-secondary-container: #051f1f;

  --tone-a-bg: #ffdad6; --tone-a-fg: #9c4044;   /* coral */
  --tone-b-bg: #e3dfff; --tone-b-fg: #5a4ea8;   /* violet */
  --tone-c-bg: #ffddb3; --tone-c-fg: #7c5800;   /* amber */
  --tone-d-bg: #9df2ee; --tone-d-fg: #00504e;   /* teal */

  /* Dot, DotHub's mascot, in DotHub's own colours. */
  --dot-body: oklch(0.56 0.12 166);
  --dot-ink: #ffffff;
  --dot-warn: oklch(0.62 0.15 70);
  --dot-danger: oklch(0.58 0.2 25);
  --dot-info: oklch(0.55 0.15 255);

  --bg: #f5fbfa;
  --surface: #ffffff;
  --surface-1: #eff5f4;
  --surface-2: #e9efee;
  --surface-3: #e3e9e8;
  --on-surface: #161d1c;
  --on-surface-variant: #3f4948;
  --outline: #6f7978;
  --outline-variant: #bec9c7;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .12), 0 1px 3px 1px rgba(0, 0, 0, .06);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .14), 0 2px 6px 2px rgba(0, 0, 0, .08);
  --shadow-3: 0 4px 8px 3px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .14);

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;

  --ease-emph: cubic-bezier(.05, .7, .1, 1);
  --ease-std: cubic-bezier(.2, 0, 0, 1);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #80d5d2;
    --on-primary: #003736;
    --primary-container: #00504e;
    --on-primary-container: #9df2ee;
    --secondary-container: #324b4a;
    --on-secondary-container: #cce8e6;

    --tone-a-bg: #7d2a2f; --tone-a-fg: #ffdad6;
    --tone-b-bg: #42368f; --tone-b-fg: #e3dfff;
    --tone-c-bg: #5e4200; --tone-c-fg: #ffddb3;
    --tone-d-bg: #00504e; --tone-d-fg: #9df2ee;

    --dot-body: oklch(0.8 0.13 166);
    --dot-ink: #07140f;
    --dot-warn: oklch(0.8 0.15 75);
    --dot-danger: oklch(0.68 0.19 25);
    --dot-info: oklch(0.76 0.12 250);

    --bg: #0e1514;
    --surface: #161d1c;
    --surface-1: #1a2120;
    --surface-2: #1f2726;
    --surface-3: #252c2b;
    --on-surface: #dde4e2;
    --on-surface-variant: #bec9c7;
    --outline: #889392;
    --outline-variant: #3f4948;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 1px 3px 1px rgba(0, 0, 0, .3);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 6px 2px rgba(0, 0, 0, .3);
    --shadow-3: 0 4px 8px 3px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .5);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --primary: #80d5d2;
  --on-primary: #003736;
  --primary-container: #00504e;
  --on-primary-container: #9df2ee;
  --secondary-container: #324b4a;
  --on-secondary-container: #cce8e6;

  --tone-a-bg: #7d2a2f; --tone-a-fg: #ffdad6;
  --tone-b-bg: #42368f; --tone-b-fg: #e3dfff;
  --tone-c-bg: #5e4200; --tone-c-fg: #ffddb3;
  --tone-d-bg: #00504e; --tone-d-fg: #9df2ee;

  --dot-body: oklch(0.8 0.13 166);
  --dot-ink: #07140f;
  --dot-warn: oklch(0.8 0.15 75);
  --dot-danger: oklch(0.68 0.19 25);
  --dot-info: oklch(0.76 0.12 250);

  --bg: #0e1514;
  --surface: #161d1c;
  --surface-1: #1a2120;
  --surface-2: #1f2726;
  --surface-3: #252c2b;
  --on-surface: #dde4e2;
  --on-surface-variant: #bec9c7;
  --outline: #889392;
  --outline-variant: #3f4948;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 1px 3px 1px rgba(0, 0, 0, .3);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 6px 2px rgba(0, 0, 0, .3);
  --shadow-3: 0 4px 8px 3px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .5);

  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  user-select: none;
  width: 1em;
  overflow: hidden;
}

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--primary); color: var(--on-primary);
  padding: 8px 16px; border-radius: var(--radius-s); z-index: 100;
  transition: top .2s var(--ease-std);
}
.skip:focus { top: 12px; }

/* App bar */
.appbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  transition: background .25s var(--ease-std), box-shadow .25s var(--ease-std);
}
.appbar.is-scrolled { background: var(--surface-2); box-shadow: var(--shadow-1); }
.appbar__inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.brand__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary); color: var(--on-primary);
  font-size: 15px; letter-spacing: .02em;
}
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 16px; border-radius: 999px;
  color: var(--on-surface-variant);
  transition: background .2s var(--ease-std), color .2s var(--ease-std);
}
.nav a:hover { background: var(--surface-3); color: var(--on-surface); }
.nav a.is-active { background: var(--secondary-container); color: var(--on-secondary-container); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: var(--on-surface-variant);
  cursor: pointer; text-decoration: none; flex: none;
  position: relative; overflow: hidden;
  transition: background .2s var(--ease-std);
}
.icon-btn:hover { background: var(--surface-3); color: var(--on-surface); }
.icon-btn .ms { font-size: 22px; }

/* Layout */
main { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section__head { max-width: 760px; margin-bottom: 32px; }
.section__head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section__sub { margin-top: 16px; color: var(--on-surface-variant); font-size: 18px; }
.overline {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}

/* Cards */
.card {
  border-radius: var(--radius-m);
  padding: 24px;
  position: relative;
  transition: box-shadow .3s var(--ease-std), transform .3s var(--ease-std), background .3s var(--ease-std);
}
.card--elevated { background: var(--surface-1); box-shadow: var(--shadow-1); }
.card--outlined { background: var(--surface); border: 1px solid var(--outline-variant); }
.card--filled { background: var(--surface-3); }
.card--primary { background: var(--primary); color: var(--on-primary); border-radius: var(--radius-l); }
.card--outlined:hover, .card--elevated:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border-radius: var(--radius-s);
  border: 1px solid var(--outline-variant);
  font-size: 13px; font-weight: 600; color: var(--on-surface-variant);
  background: var(--surface);
}
.chip--status {
  background: var(--secondary-container); color: var(--on-secondary-container); border-color: transparent;
  margin-bottom: 24px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #1eb980;
  box-shadow: 0 0 0 0 rgba(30, 185, 128, .5);
  animation: pulse 2.4s var(--ease-std) infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 185, 128, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(30, 185, 128, 0); } }
.tag {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--on-surface-variant);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none;
  border: 0; cursor: pointer; position: relative; overflow: hidden;
  transition: box-shadow .2s var(--ease-std), background .2s var(--ease-std);
}
.btn .ms { font-size: 20px; }
.btn--filled { background: var(--primary); color: var(--on-primary); }
.btn--filled:hover { box-shadow: var(--shadow-1); }
.btn--tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn--tonal:hover { box-shadow: var(--shadow-1); }
.btn--on-primary { background: var(--on-primary); color: var(--primary); }
.btn--on-primary:hover { box-shadow: var(--shadow-2); }
.btn--outline-on-primary { background: transparent; color: var(--on-primary); border: 1px solid currentColor; }
.btn--outline-on-primary:hover { background: color-mix(in srgb, var(--on-primary) 12%, transparent); }
.btn::after, .icon-btn::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .2s; }
.btn:hover::after, .icon-btn:hover::after { opacity: .06; }

.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .22;
  transform: scale(0); animation: ripple .55s var(--ease-std) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
  padding: 56px 0 40px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; letter-spacing: -0.035em; }
.lede { margin-top: 24px; font-size: 19px; color: var(--on-surface-variant); max-width: 620px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__panel { padding: 8px; border-radius: var(--radius-l); }
.panel__head {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px 8px; font-size: 13px; font-weight: 700;
  color: var(--on-surface-variant); letter-spacing: .04em; text-transform: uppercase;
}
.panel__head .ms { color: var(--primary); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stats li {
  background: var(--surface); border-radius: 20px; padding: 16px 20px;
  display: grid; gap: 2px;
}
.stats li:nth-child(1) .stat__value { color: var(--tone-a-fg); }
.stats li:nth-child(2) .stat__value { color: var(--tone-b-fg); }
.stats li:nth-child(3) .stat__value { color: var(--tone-c-fg); }
.stats li:nth-child(4) .stat__value { color: var(--tone-d-fg); }
.stat__value { font: 700 24px/1.2 var(--mono); letter-spacing: -0.02em; }
.stat__unit { font-size: 15px; font-weight: 500; }
.stat__label { font-size: 14px; color: var(--on-surface-variant); line-height: 1.45; }
.arrow { opacity: .55; font-weight: 500; }

/* Case study steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.step h3 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
.step p { color: var(--on-surface-variant); font-size: 15px; }
.step strong { color: var(--on-surface); }
.step__icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
}
.step__icon .ms { font-size: 24px; }
.tone-a { background: var(--tone-a-bg); color: var(--tone-a-fg); }
.tone-b { background: var(--tone-b-bg); color: var(--tone-b-fg); }
.tone-c { background: var(--tone-c-bg); color: var(--tone-c-fg); }
.tone-d { background: var(--tone-d-bg); color: var(--tone-d-fg); }
.step--result { background: var(--primary-container); color: var(--on-primary-container); }
.step--result p { color: inherit; opacity: .85; }
.step--result .step__icon { background: var(--on-primary-container); color: var(--primary-container); }
.step .big-metric { font: 700 30px/1.2 var(--mono); margin-bottom: 8px; opacity: 1; letter-spacing: -0.03em; }

.step code, .mini code {
  font: 600 .88em/1.4 var(--mono);
  background: var(--surface-2); color: var(--on-surface);
  padding: 1px 5px; border-radius: 5px;
}
code.nowrap { white-space: nowrap; }

/* Smaller case studies under the lead one */
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.mini { display: flex; flex-direction: column; gap: 12px; }
.mini h3 { font-size: 20px; font-weight: 700; }
.mini > p:not(.mini__metric) { color: var(--on-surface-variant); font-size: 15px; flex: 1; }
.mini__metric {
  display: flex; align-items: center; gap: 8px;
  font: 700 15px/1.4 var(--mono); color: var(--primary);
  padding-top: 12px; border-top: 1px solid var(--outline-variant);
}

/* Feature */
.feature {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px; padding: 16px; border-radius: var(--radius-l);
}
.feature:hover { transform: none; }
.feature__media { position: relative; border-radius: 20px; overflow: hidden; background: #111; align-self: start; }
.feature__media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media__caption {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 12px; font-weight: 600; backdrop-filter: blur(6px);
  pointer-events: none; transition: opacity .3s;
}
.feature__media.is-playing .media__caption { opacity: 0; }
.feature__body { padding: 16px 16px 16px 0; display: flex; flex-direction: column; gap: 20px; }
.feature__body > p { font-size: 17px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15px; color: var(--on-surface-variant); }
.checks .ms { color: var(--primary); font-variation-settings: "FILL" 1; margin-top: 2px; }

/* Projects grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.project { display: flex; flex-direction: column; gap: 12px; }
.project__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.project h3 { font-size: 20px; font-weight: 700; }
.project p { color: var(--on-surface-variant); font-size: 15px; flex: 1; }

/* Experience */
.timeline { display: grid; gap: 12px; }
.role { display: grid; grid-template-columns: 200px 1fr; gap: 8px 32px; }
.role__meta { display: flex; flex-direction: column; gap: 2px; grid-row: span 2; }
.role__when { font: 700 14px/1.4 var(--mono); color: var(--primary); }
.role__where { font-size: 13px; color: var(--on-surface-variant); }
.role h3 { font-size: 19px; font-weight: 700; }
.role .at { font-weight: 500; color: var(--on-surface-variant); }
.role p { color: var(--on-surface-variant); font-size: 15px; }

.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.skills__group { background: var(--surface-1); border-radius: var(--radius-m); padding: 20px; }
.skills__group h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--on-surface-variant); margin-bottom: 12px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 48px; }
.contact:hover { transform: none; }
.contact .overline { color: inherit; opacity: .8; }
.contact h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.contact p:not(.overline) { margin-top: 16px; opacity: .9; font-size: 17px; }
.contact__actions { display: grid; gap: 12px; }
.contact__actions .btn { width: 100%; }
.contact__links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Dot, ported from DotHub's components/dot. Idle it blinks now and then; on an Email click it hops
   and puts on the party hat. With reduced motion it still changes face, it just doesn't move. */
.dot { overflow: visible; display: block; }
.dot-body { fill: var(--dot-body); }
.dot-shine { fill: #fff; opacity: .22; }
.dot-ink { fill: var(--dot-ink); }
.dot-line { fill: none; stroke: var(--dot-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dot-cheek { fill: var(--dot-danger); opacity: .35; }
.dot-char, .dot-eyes { transform-box: fill-box; }
.dot-eyes { transform-origin: center; }
.dot-char { transform-origin: 50% 100%; }
/* Headphones, as Dot wears them in DotHub; the party hat replaces them, as it does there. */
.dot-band { fill: none; stroke: var(--on-surface); stroke-width: 2.2; stroke-linecap: round; }
.dot-cups { fill: var(--dot-info); }
.dot[data-mood="offer"] .dot-headphones { display: none; }
.dot .face, .dot .party-hat { display: none; }
.dot[data-mood="calm"] .face--calm,
.dot[data-mood="attention"] .face--attention,
.dot[data-mood="offer"] .face--offer,
.dot[data-mood="offer"] .party-hat { display: inline; }

/* Peeking over the top edge of the DotHub card, paws on the edge. */
#projects .section__head { margin-bottom: 56px; }
.dot-peek { position: absolute; right: 56px; bottom: 100%; width: 64px; height: 46px; pointer-events: none; }
.dot-peek__clip { position: absolute; inset: 0; overflow: hidden; }
.dot-peek .dot {
  position: absolute; top: 0; left: 0; width: 64px; height: 64px;
  transform: translateY(2px);
  transition: transform .5s var(--ease-emph);
}
.feature:hover .dot-peek .dot { transform: translateY(-4px); }
.dot-paw {
  position: absolute; bottom: -5px; left: 15px;
  width: 11px; height: 10px; border-radius: 50%;
  background: var(--dot-body);
}
.dot-paw--r { left: 38px; }

/* Perched on the contact card's Email button, with a soft shadow so it lifts off the teal. */
.contact__actions { position: relative; padding-top: 48px; }
.dot-perch { position: absolute; top: -15px; right: 28px; width: 72px; height: 72px; pointer-events: none; }
.dot-perch .dot { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .28)); }
.party-hat path:first-child { fill: var(--dot-warn); }
.party-hat .hat-stripes { fill: none; stroke: var(--dot-danger); stroke-width: 1.4; opacity: .7; }
.party-hat circle { fill: var(--dot-danger); }

@media (prefers-reduced-motion: no-preference) {
  .dot[data-mood="calm"] .dot-eyes,
  .dot[data-mood="attention"] .dot-eyes { animation: dot-blink 6.5s ease-in-out infinite; }
  .dot-hop { animation: dot-hop 640ms cubic-bezier(.23, 1, .32, 1); }
}
@keyframes dot-blink {
  0%, 94%, 100% { transform: scaleY(1); }
  96.5% { transform: scaleY(.12); }
}
@keyframes dot-hop {
  0% { transform: none; }
  30% { transform: translateY(-16%) scale(.96, 1.04); }
  60% { transform: scale(1.06, .94); }
  80% { transform: scale(.98, 1.02); }
  100% { transform: none; }
}

/* Footer */
.footer {
  max-width: 1160px; margin: 0 auto; padding: 24px 24px 48px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--on-surface-variant); font-size: 14px;
}
.footer__top { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }
.footer__top:hover { color: var(--primary); }

/* Scroll reveal: a short decelerating rise */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-emph), transform .6s var(--ease-emph), box-shadow .3s var(--ease-std);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card--outlined:hover, .card--elevated:hover { transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .minis { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__body { padding: 8px; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .nav { display: none; }
  .brand + .icon-btn, #theme-toggle { margin-left: auto; }
  .contact { grid-template-columns: 1fr; padding: 32px 24px; }
  .role { grid-template-columns: 1fr; }
  .role__meta { grid-row: auto; flex-direction: row; gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  main { padding: 0 16px; }
  .appbar__inner { padding: 10px 16px; }
  .section { padding: 48px 0; }
  .steps, .skills { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; }
  .contact__links { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .footer { padding: 24px 16px 40px; }
}
