/* ==========================================================================
   Deko — shared styles
   Palette pulled from the Deko logo: coral axolotl, sky-blue cat,
   watercolor washes, and the paper-plane yellow.
   ========================================================================== */

:root {
  --paper: #fff;          /* matches the logo's white ground */
  --ink: #000;
  --text: #2b2b2b;
  --muted: #5c5c5c;

  --coral: #e8616b;       /* hatching on the D and K */
  --coral-wash: #fbd5d6;  /* pink watercolor */
  --axolotl: #ffc9cc;
  --sky: #4fa6e0;         /* hatching on the e and O */
  --sky-wash: #d5ecfb;    /* blue watercolor */
  --cat: #d3f1fb;
  --plane: #f7e6ad;

  --link: #c94350;        /* coral, darkened for AA contrast on paper */
  --link-hover: #2f80bd;

  --font-display: "Grandstander", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 42rem;
  --wide: 60rem;
  --line: 2.5px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 350;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--link-hover); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - 2rem, var(--measure));
  margin-inline: auto;
}
.wrap--wide { width: min(100% - 2rem, var(--wide)); }

main { padding-bottom: 3rem; }

.section { padding-block: 2.25rem; text-align: center; }
/* keep space above and below a section equal */
.section > .wrap > :last-child { margin-bottom: 0; }

/* Hand-drawn ink divider — replaces The Oatmeal's dotted rule */
.squiggle {
  display: block;
  width: min(100% - 2rem, var(--measure));
  height: 14px;
  margin: 0 auto;
  color: var(--ink);
  opacity: .25; /* soft divider, not a hard black line */
}

/* --------------------------------------------------------------------------
   Header + nav
   -------------------------------------------------------------------------- */

.site-header { text-align: center; padding-top: 1.25rem; }

.site-logo {
  display: inline-block;
  width: min(160px, 42vw);
}
.site-logo img { width: 100%; }

.site-nav ul {
  list-style: none;
  margin: .25rem 0 1rem;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: .5rem 1rem;
}
/* Hand-drawn icon above each label; the highlight sits under the label only */
.site-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
  padding: .25rem .1rem;
}
.site-nav a span {
  padding: 0 .1rem;
  background-image: linear-gradient(var(--coral-wash), var(--coral-wash));
  background-repeat: no-repeat;
  background-size: 0% 45%;
  background-position: 0 85%;
  transition: background-size .2s ease;
}
.site-nav a:hover span,
.site-nav a[aria-current="page"] span { background-size: 100% 45%; }
.site-nav li:nth-child(even) a span { background-image: linear-gradient(var(--sky-wash), var(--sky-wash)); }

.nav-icon {
  width: 2rem;
  height: 2rem;
  color: var(--ink);
  transition: transform .15s ease;
}
.site-nav a:hover .nav-icon { transform: rotate(-6deg) translateY(-2px); }

@media (max-width: 480px) {
  .nav-icon { width: 1.7rem; height: 1.7rem; }
  .site-nav a { font-size: .875rem; }
}

/* --------------------------------------------------------------------------
   Signature element: the hatched 3D extrusion from the Deko lettering
   -------------------------------------------------------------------------- */

/* ::before = hatched extrusion behind, ::after = white face with ink outline.
   Both sit under the content inside the element's own stacking context. */
.hatched {
  position: relative;
  border: var(--line) solid transparent;
  border-radius: 14px;
  isolation: isolate;
}
.hatched::before,
.hatched::after {
  content: "";
  position: absolute;
  inset: calc(var(--line) * -1);
  border: var(--line) solid var(--ink);
  border-radius: inherit;
  z-index: -1;
}
.hatched::before {
  transform: translate(9px, 9px);
  background: repeating-linear-gradient(-45deg, var(--coral) 0 2.5px, #fff 2.5px 6px);
}
.hatched::after { background: #fff; }
.hatched--sky::before {
  background: repeating-linear-gradient(-45deg, var(--sky) 0 2.5px, #fff 2.5px 6px);
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  padding: .6rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s ease;
}
.btn.hatched::before { transform: translate(5px, 5px); transition: transform .12s ease; }
.btn:hover { color: var(--ink); transform: translate(2px, 2px); }
.btn:hover::before { transform: translate(3px, 3px); }
.btn:active { transform: translate(5px, 5px); }
.btn:active::before { transform: translate(0, 0); }

/* --------------------------------------------------------------------------
   Watercolor wash behind headings (SVG filter defined in each page)
   -------------------------------------------------------------------------- */

.wash {
  position: relative;
  display: inline-block;
  padding: .1em .5em;
  isolation: isolate;
}
.wash::before {
  content: "";
  position: absolute;
  inset: -.15em -.2em;
  background: var(--coral-wash);
  border-radius: 45% 55% 50% 50% / 60% 45% 55% 40%;
  filter: url(#watercolor);
  opacity: .9;
  z-index: -1;
}
.wash--sky::before { background: var(--sky-wash); border-radius: 55% 45% 40% 60% / 50% 60% 40% 50%; }

/* --------------------------------------------------------------------------
   Home: intro
   -------------------------------------------------------------------------- */

.intro h1 { margin-bottom: .75rem; }
/* Dumble and Neko waving, sitting right on top of the heading */
.intro-wave {
  width: min(240px, 62%);
  height: auto;
  margin: 0 auto .35rem;
}
.intro p { color: var(--text); }
.intro .where { color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   Home: the latest
   -------------------------------------------------------------------------- */

.latest-card {
  margin: 1.5rem auto 0;
  padding: 2rem 1.5rem 2.25rem;
  max-width: 36rem;
}
.latest-card img {
  width: min(320px, 85%);
  margin: -.5rem auto 1rem;
}
.latest-card .latest-art { width: min(160px, 50%); margin: 0 auto 1rem; }
.latest-card h3 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); }
.latest-card p { max-width: 30rem; margin-inline: auto; }

.signup {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
}
.signup input {
  flex: 1 1 14rem;
  max-width: 20rem;
  font: inherit;
  font-size: 1rem;
  padding: .65rem 1rem;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}
.signup input::placeholder { color: #767676; }
.signup-note { min-height: 1.5em; margin-top: .75rem; font-size: .95rem; color: var(--muted); }
.signup-privacy { margin: .25rem 0 0; font-size: .8rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Comic grid (home "Popular" + comics archive)
   -------------------------------------------------------------------------- */

.comic-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  text-align: left;
}
@media (max-width: 640px) {
  .comic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
}

.comic a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.comic-thumb {
  aspect-ratio: 1;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--coral-wash);
}
.comic:nth-child(even) .comic-thumb { background: var(--sky-wash); }
.comic:nth-child(3n) .comic-thumb { background: var(--plane); }
.comic-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* thumbnails marked thumbFit: "contain" show whole, smaller and centered on white */
.comic-grid .comic .comic-thumb:has(.thumb-contain),
.more-grid .more-tile:has(.thumb-contain) a { background: #fff; }
.comic-thumb img.thumb-contain,
.more-tile img.thumb-contain { object-fit: contain; padding: 10%; }

/* Placeholder art until real comic thumbnails are added */
.comic-thumb .placeholder {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}
.comic-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-top: .65rem;
}
.comic-meta { display: block; font-size: .875rem; color: var(--muted); margin-top: .15rem; }
.comic a:hover .comic-title { color: var(--link); }
.comic a:hover .comic-thumb { transform: rotate(-1.2deg); }
.comic-thumb { transition: transform .15s ease; }

.sort-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}
.sort-tabs button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background: none;
  border: var(--line) solid transparent;
  border-radius: 999px;
  padding: .3rem 1rem;
  color: var(--ink);
  cursor: pointer;
}
.sort-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--cat); }
/* each selected tab takes its own colour; topics match their tags */
.sort-tabs button[data-view="latest"][aria-pressed="true"] { background: #ffd6dc; }
.sort-tabs button[data-view="popular"][aria-pressed="true"] { background: #e8e0fa; }
.sort-tabs button[data-view="popsci"][aria-pressed="true"] { background: #ffe0cc; }
.sort-tabs button[data-view="biology"][aria-pressed="true"] { background: #d6ecff; }
.sort-tabs button[data-view="fun"][aria-pressed="true"] { background: #fff2b3; }
.sort-tabs button:hover { border-color: var(--ink); }
/* separates the two ways of browsing (Latest/Popular) from the topics */
.tab-divider {
  align-self: center;
  width: 2px;
  height: 1.4rem;
  margin-inline: .35rem;
  background: var(--ink);
  border-radius: 2px;
  opacity: .25;
}

.comic-topic {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 0 .5rem;
  margin-right: .45rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}
.comic-topic--biology { background: #d6ecff; }
.comic-topic--chemistry { background: #fdf0c4; }
.comic-topic--medicine { background: #e8e0fa; }
.comic-topic--popsci { background: #ffe0cc; }
.comic-topic--fun { background: #fff2b3; }

.comics-empty { margin-top: 2rem; color: var(--muted); }
.comic-views:not(:empty)::before { content: " · "; }

/* A single comic's page (comics/<slug>.html) */
.comic-page-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .25rem;
  margin: 0 0 .6rem;
  font-size: .9rem;
  color: var(--muted);
}
.comic-page h1 { text-wrap: balance; }
.comic-bonus h2 { text-align: center; text-wrap: balance; margin-bottom: 1.5rem; }
.comic-page-teaser { max-width: 36rem; margin: 0 auto 1.5rem; }
/* The comic: images stacked top to bottom with no gaps, about 700px wide, read by scrolling */
.comic-strip {
  max-width: 700px;
  margin: 0 auto;
}
.comic-strip img {
  display: block;
  width: 100%;
  height: auto;
}
/* comics made of wide slides: shown larger, with a small gap between slides */
.comic-strip--wide {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.comic-strip--placeholder {
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--coral-wash);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
  color: var(--ink);
}
.comic-page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
  max-width: 760px;
  margin: 1.75rem auto 0;
  font-family: var(--font-display);
  font-weight: 600;
}
.comic-page-nav a { color: var(--ink); }
.comic-page-nav a:hover { color: var(--link); }
.comic-nav-all { margin-inline: auto; }

/* Extra drawings after a comic: 2 per row (1 on phones), click to open full size */
.comic-gallery-intro {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
  color: var(--ink);
  text-wrap: balance;
}
.comic-gallery-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.comic-gallery-grid a {
  display: block;
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform .15s ease;
}
.comic-gallery-grid a:hover { transform: rotate(-1deg); }
.comic-gallery-grid img { display: block; width: 100%; height: auto; }
@media (max-width: 520px) {
  .comic-gallery-grid { grid-template-columns: 1fr; }
}

/* "More comics" at the bottom of each comic page */
.more-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.more-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.more-tile a {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: .75rem;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  background: var(--coral-wash);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform .15s ease;
}
.more-tile--1 a { background: var(--sky-wash); }
.more-tile--2 a { background: var(--plane); }
.more-tile a:hover { transform: rotate(-1.5deg); color: var(--ink); }
.more-tile img { width: 100%; height: 100%; object-fit: cover; }
.more-tile:has(img) a { padding: 0; }
.more-tile-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.95rem, .8rem + .6vw, 1.2rem);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}
@media (max-width: 600px) {
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pager {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.pager a, .pager span {
  min-width: 2.25rem;
  padding: .2rem .55rem;
  border-radius: 8px;
  text-align: center;
  color: var(--ink);
  text-decoration: none;
}
.pager a:hover { background: var(--coral-wash); }
.pager [aria-current="page"] { border: var(--line) solid var(--ink); background: var(--axolotl); }

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

.anim-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0 10px 0 0; /* room for the hatched shadow */
  display: grid;
  /* sized for vertical Shorts: 4 across on desktop, 2 on phones */
  grid-template-columns: repeat(auto-fill, minmax(min(42%, 12.5rem), 1fr));
  gap: 2.25rem 1.75rem;
  text-align: left;
}
.anim-grid .comic-title { font-size: 1rem; }
.more-link { margin-top: 2.5rem; }
.anim-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}
.animation--tall .anim-frame { aspect-ratio: 9 / 16; }
.animation--square .anim-frame { aspect-ratio: 1; }

.anim-frame video,
.anim-frame iframe,
.anim-frame .yt-load,
.anim-frame .anim-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cat);
}
.animation .comic-title { margin-top: 1.1rem; }
.animation:nth-child(even) .anim-placeholder { background: var(--axolotl); }
.anim-frame video { object-fit: cover; background: #000; }

/* Instagram embed: the 9:16 video sits inside a wider 4:5 box under a ~54px profile bar.
   Enlarge and shift the iframe so only the video shows inside the card. */
.anim-frame .ig-crop {
  display: block;
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}
.anim-frame .ig-crop iframe {
  position: absolute;
  top: -54px;
  left: -21.1%;
  width: 142.2%;
  height: calc(100% + 54px + 260px);
  border-radius: 0;
  background: #fff;
}
/* A square Instagram video in a tall card: a square window, centred vertically.
   Square videos fill the embed's full width, so no side trim. */
.anim-frame .ig-window {
  position: absolute;
  left: 0;
  right: 0;
  top: 21.875%;   /* (16/9 - 1) / 2 of the card's height */
  height: 56.25%; /* the card's width */
  overflow: hidden;
}
.anim-frame .ig-window iframe { left: 0; width: 100%; }

.yt-load { position: relative; padding: 0; cursor: pointer; }
.yt-load img { width: 100%; height: 100%; object-fit: cover; }

.anim-placeholder {
  display: grid !important;
  place-content: center;
  justify-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

/* hand-drawn-style play button */
.play-icon {
  width: 3.5rem;
  height: 3.5rem;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: #fff;
  position: relative;
}
.play-icon::after {
  content: "";
  position: absolute;
  left: 40%;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: .6rem 0 .6rem 1rem;
  border-color: transparent transparent transparent var(--coral);
}
.yt-load .play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.yt-load:hover .play-icon { background: var(--plane); }

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

.contact-card {
  max-width: 32rem;
  margin: 2rem auto 0;
  padding: 1.75rem 1.25rem 1.25rem;
}
.contact-label { margin: 0; color: var(--muted); }
.contact-email {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 1.4vw, 1.6rem);
  overflow-wrap: anywhere;
  margin: .2rem 0 1.25rem;
}
.contact-email a { color: var(--ink); text-decoration-color: var(--coral); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.copy-note { min-height: 1.5em; margin: .9rem 0 0; font-size: .95rem; color: var(--muted); }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  padding: 1.5rem 1.4rem 1.25rem;
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: .6rem .8rem;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; }
.contact-form .btn { align-self: center; }
.contact-status { min-height: 1.5em; margin: 0; text-align: center; font-size: .95rem; color: var(--muted); }
.contact-backup { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

.contact-follow { font-size: 1.35rem; margin-top: 2.75rem; }
.contact-socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   Our History — paper plane flight path timeline
   -------------------------------------------------------------------------- */

.history-hero { text-align: center; padding-top: 1.5rem; overflow-x: clip; } /* plane starts off-screen right */
.history-hero .plane {
  position: relative;
  width: min(420px, 90%);
  margin: 0 auto 1rem;
}
.history-hero .plane img { width: 100%; }

/* "Dumble" / "Neko" labels laid over the plane image */
.plane-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.plane-label text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  fill: currentColor;
}
.plane-label path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plane-label--dumble { color: #e8616b; }
.plane-label--neko { color: #2f8fd6; }
.history-hero p { max-width: 34rem; margin-inline: auto; }
.history-hero p:last-child { margin-bottom: 0; }

/* Meet the team: one card per person, side by side, stacked on phones */
.team-list {
  list-style: none;
  margin: 1.75rem auto 0;
  padding: 0 10px 0 0; /* room for the hatched shadow */
  max-width: 660px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}
.team-card {
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
}
.team-card h3 { margin: .75rem 0 .1rem; }
.team-role {
  margin: 0 0 .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.team-detail {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.team-detail li + li { margin-top: .3rem; }
.team-linkedin {
  display: inline-block;
  margin-top: .9rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 5px;
  transition: transform .15s ease;
}
.team-linkedin svg { display: block; width: 100%; height: 100%; }
.team-linkedin:hover { transform: translateY(-2px); }
.team-avatar {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--axolotl);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
}
.team-avatar--sky { background: var(--cat); }
img.team-avatar { object-fit: cover; }
.team-portrait {
  width: min(150px, 60%);
  height: auto;
  margin: 0 auto;
}
@media (max-width: 520px) {
  .team-list { grid-template-columns: 1fr; }
}

/* Origin comic: 2 panels per row (close to full size, so the lettering stays readable), 1 on phones */
.origin-comic { padding-top: 2.25rem; }
.story-panels {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 660px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: center;
}
.story-panels img { width: 100%; height: auto; }
@media (max-width: 600px) {
  .story-panels { grid-template-columns: 1fr; gap: 1rem; }
}

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  max-width: 44rem;
  padding-right: 10px; /* room for the hatched shadow on small screens */
  text-align: left;
}
/* the dashed flight path */
.timeline::before {
  content: "";
  position: absolute;
  top: .5rem;
  bottom: 2rem;
  left: 1.1rem;
  border-left: 3px dashed var(--ink);
}
.milestone {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 2.25rem;
}
.milestone:last-child { margin-bottom: 0; }
.milestone::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .35rem;
  width: 1.4rem;
  height: 1.4rem;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--axolotl);
}
.milestone:nth-child(even)::before { background: var(--cat); }
.milestone-year {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--plane);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  padding: 0 .75rem;
  margin-bottom: .5rem;
}
.milestone-card { padding: 1.1rem 1.25rem .4rem; }
.milestone-card h3 { margin-bottom: .35rem; }

.timeline-end {
  text-align: center;
  margin-top: 1rem;
}

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

.site-footer {
  text-align: center;
  padding: 1.25rem 0 2.25rem;
  font-size: .95rem;
  color: var(--muted);
}
/* links, social icons and copyright evenly spaced */
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.site-footer .wrap > * { margin: 0; }
.site-footer .copyright { font-size: .5em; } /* half the footer text size */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.25rem;
}
.footer-nav a { color: var(--text); font-weight: 400; }
.social { display: flex; justify-content: center; gap: 1rem; }
.social a {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
}
/* color the symbol only; the circle stays plain */
.social a:hover { background: var(--cat); }
.social a[aria-label*="Instagram"] svg { color: #a033c9; }
.social a[aria-label*="TikTok"] svg { color: #00a8a3; }
.social a[aria-label*="YouTube"] svg { color: #ff0000; }
.social a[aria-label*="Facebook"] svg { color: #1877f2; }
.social svg { width: 1.15rem; height: 1.15rem; }

/* --------------------------------------------------------------------------
   Page-load moment: the plane flies in once on the history page
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .fly-in {
    animation: fly-in 1.1s cubic-bezier(.2, .8, .25, 1) both;
  }
  /* plane faces left, so it flies in nose-first from the right */
  @keyframes fly-in {
    from { transform: translate(40vw, 30px) rotate(8deg); opacity: 0; }
    60%  { opacity: 1; }
    to   { transform: none; }
  }

  /* after the plane lands (1.1s): arrows draw in, then names and arrowheads pop in */
  .plane-label .label-arrow {
    stroke-dasharray: 1;
    animation: draw-arrow .45s ease-out both;
  }
  .plane-label text,
  .plane-label .label-head {
    animation: pop-in .3s ease-out both;
  }
  .plane-label--dumble .label-arrow { animation-delay: 1.2s; }
  .plane-label--dumble text,
  .plane-label--dumble .label-head { animation-delay: 1.55s; }
  .plane-label--neko .label-arrow { animation-delay: 1.5s; }
  .plane-label--neko text,
  .plane-label--neko .label-head { animation-delay: 1.85s; }
  @keyframes draw-arrow {
    from { stroke-dashoffset: 1; }
    to   { stroke-dashoffset: 0; }
  }
  @keyframes pop-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
  }
}

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

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .site-nav ul { gap: .1rem 1rem; }
  .latest-card { padding-inline: 1.1rem; }
  .milestone { padding-left: 3rem; }
}
