/* Little Log website. Colours come from the app's Theme.swift and StudentPalette.swift. */

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f7f5fb;
  --surface: #ffffff;
  --ink: #1c1b22;
  --ink-2: #5a5866;
  --accent: #4f46e5;
  --accent-soft: #ecebfd;
  --on-accent: #ffffff;
  --sun: #fff1cc;
  --sun-ink: #92400e;
  --line: #e4e0ee;
  --done: #15803d;
  --ring: rgba(79, 70, 229, 0.07);
  --shadow: 0 1px 0 rgba(28, 27, 34, 0.04), 0 18px 40px -24px rgba(49, 40, 120, 0.35);

  /* The log, sampled from the app icon. Same in light and dark. */
  --wood: #ca833c;
  --wood-hi: #e8a555;
  --wood-lo: #a45a28;
  --wood-line: #643017;
  --wood-cream: #ffe7b8;
  --wood-ring: #d39b58;

  /* Student colours (StudentPalette.swift). */
  --s-blue: #2563eb;
  --s-teal: #0f766e;
  --s-orange: #f97316;
  --s-pink: #f472b6;
  --s-purple: #7e22ce;
  --s-yellow: #facc15;
  --s-green: #15803d;

  --r-tile: 28px;
  --r-chip: 20px;
  --r-small: 16px;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16151b;
    --surface: #23222a;
    --ink: #f5f4fa;
    --ink-2: #b4b2bf;
    --accent: #a5a0ff;
    --accent-soft: #2b2a44;
    --on-accent: #1c1b22;
    --sun: #3a3220;
    --sun-ink: #fbbf24;
    --line: #34323d;
    --done: #6ee7a0;
    --ring: rgba(165, 160, 255, 0.07);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16151b;
  --surface: #23222a;
  --ink: #f5f4fa;
  --ink-2: #b4b2bf;
  --accent: #a5a0ff;
  --accent-soft: #2b2a44;
  --on-accent: #1c1b22;
  --sun: #3a3220;
  --sun-ink: #fbbf24;
  --line: #34323d;
  --done: #6ee7a0;
  --ring: rgba(165, 160, 255, 0.07);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}
:root[data-theme="light"] {
  color-scheme: light;
}

@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Growth rings behind the page, like the cut end of the log. */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  width: 150vmax;
  height: 150vmax;
  right: -75vmax;
  top: -75vmax;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 46px, var(--ring) 46px 50px);
  pointer-events: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 3px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1rem;
  border-radius: var(--r-small);
}
.skip:focus {
  top: 1rem;
}
.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* ---------- The log ---------- */
.log {
  --h: 44px;
  --ln: calc(var(--h) * 0.085);
  position: relative;
  height: var(--h);
  min-width: calc(var(--h) * 1.1);
  margin-right: calc(var(--h) * 0.3);
  border: var(--ln) solid var(--wood-line);
  border-radius: calc(var(--h) * 0.42) calc(var(--h) * 0.2) calc(var(--h) * 0.2) calc(var(--h) * 0.42) / 50%;
  background: linear-gradient(180deg, var(--wood-hi) 0 20%, var(--wood) 20% 66%, var(--wood-lo) 66%);
}
/* The cut end with its rings. */
.log::after {
  content: "";
  position: absolute;
  top: calc(var(--ln) * -1);
  bottom: calc(var(--ln) * -1);
  right: calc(var(--h) * -0.3);
  width: calc(var(--h) * 0.6);
  border: var(--ln) solid var(--wood-line);
  border-radius: 50%;
  background: radial-gradient(
    ellipse closest-side,
    var(--wood-cream) 0 12%,
    var(--wood-ring) 12% 24%,
    var(--wood-cream) 24% 46%,
    var(--wood-ring) 46% 57%,
    var(--wood-cream) 57% 80%,
    var(--wood-ring) 80% 90%,
    var(--wood-cream) 90%
  );
}
/* The little branch stub. */
.log::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: calc(var(--h) * 0.75);
  width: calc(var(--h) * 0.3);
  height: calc(var(--h) * 0.3);
  border: var(--ln) solid var(--wood-line);
  border-bottom: 0;
  border-radius: 35% 45% 0 0;
  background: var(--wood);
  transform: skewX(-12deg);
}
/* Bark lines. */
.log i {
  position: absolute;
  height: var(--ln);
  border-radius: 99px;
  background: var(--wood-line);
  opacity: 0.55;
}
.log i:nth-child(1) {
  left: 12%;
  top: 30%;
  width: 34%;
}
.log i:nth-child(2) {
  left: 30%;
  top: 56%;
  width: 26%;
}
.log i:nth-child(3) {
  left: 8%;
  top: 76%;
  width: 20%;
}

/* Reading progress: a log that grows across the top as you scroll. */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  padding: 5px 6px 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.progress.on {
  opacity: 1;
}
.log-progress {
  --h: 12px;
  --ln: 2px;
  width: calc(18px + var(--p, 0) * (100% - 24px));
}
.log-progress::before {
  display: none;
}

/* Loader: the log extends, then the page appears. Shown on the first page of a visit. */
.loader {
  display: none;
}
.loading .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 1.5rem;
  justify-items: center;
  background: var(--bg);
  /* Safety net: if the script never runs, the loader still leaves. */
  animation: loader-out 0.35s 3.2s forwards;
}
.loading .loader.out {
  animation: loader-out 0.35s forwards;
}
.loader p {
  margin: 0;
  font: 500 1.05rem var(--display);
  color: var(--ink-2);
}
.loader-track {
  width: min(72vw, 460px);
  padding-top: 24px;
}
.log-loader {
  --h: 64px;
  width: 18%;
  animation: log-grow 1.15s cubic-bezier(0.3, 0.8, 0.3, 1) 0.05s forwards;
}
@keyframes log-grow {
  60% {
    width: calc(96% - 19px);
  }
  78% {
    width: calc(88% - 19px);
  }
  100% {
    width: calc(100% - 19px);
  }
}
@keyframes loader-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- Header ---------- */
.top {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  padding: 1.5rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 60px;
  color: var(--ink);
  text-decoration: none;
  font: 600 1.35rem var(--display);
  margin-right: auto;
}
.brand img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--line);
}
.top nav {
  display: flex;
  gap: 0.25rem;
}
.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 99px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.top nav a:hover {
  background: var(--accent-soft);
}
.top nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--bg);
}
.theme {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  place-items: center;
}
.js .theme {
  display: grid;
}
.theme-sun {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sun-ink);
  box-shadow: inset -6px -2px 0 0 var(--surface);
  transition: box-shadow 0.3s;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-sun {
    box-shadow: 0 0 0 4px var(--sun);
  }
}
:root[data-theme="light"] .theme-sun {
  box-shadow: 0 0 0 4px var(--sun);
}
@media (max-width: 640px) {
  .top {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .top nav {
    order: 3;
    width: 100%;
    margin-left: -0.9rem;
  }
}

/* ---------- Buttons and chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 60px;
  padding: 0 1.6rem;
  border-radius: var(--r-chip);
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 1.1rem var(--display);
  text-decoration: none;
}
.btn.soon {
  background: var(--surface);
  color: var(--ink);
  border: 2px dashed var(--line);
}
.btn.soon::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--s-orange);
}
.btn.ghost {
  background: transparent;
  color: var(--accent);
  padding: 0 0.5rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  background: var(--sun);
  color: var(--sun-ink);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */
.hero {
  width: min(100% - 2rem, var(--wrap));
  margin: clamp(1.5rem, 5vw, 4rem) auto clamp(3rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 5rem);
  line-height: 0.98;
}
.hero h1 span {
  display: block;
}
.hero h1 .done {
  color: var(--accent);
}
.lede {
  margin: 1.4rem 0 1.8rem;
  max-width: 34rem;
  font-size: 1.2rem;
  color: var(--ink-2);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.hero-log {
  margin-top: 3.2rem;
  max-width: 250px;
}
.hero-log .log {
  --h: 52px;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

/* The try-it card: a small copy of the app's two taps. */
.demo {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.25rem 0.5rem 0.9rem;
}
.demo-head strong {
  font: 600 1.5rem var(--display);
}
.demo-head span {
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.95rem;
}
.demo-hint {
  margin: 0 0.5rem 0.9rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.student {
  --c: var(--s-blue);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.2rem;
  min-height: 132px;
  padding: 1rem 0.5rem;
  border-radius: var(--r-tile);
  border: 0;
  background: var(--c);
  color: #fff;
  font: 600 1.2rem var(--display);
  cursor: pointer;
  transition: transform 0.15s;
}
.student:hover {
  transform: translateY(-2px);
}
.student:active {
  transform: scale(0.97);
}
.student b {
  font-size: 2.9rem;
  line-height: 1.1;
  font-weight: 400;
}
.c-sky {
  --c: #0369a1;
}
.c-teal {
  --c: var(--s-teal);
}
.c-green {
  --c: var(--s-green);
}
.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip {
  min-height: 60px;
  padding: 0 1.15rem;
  border-radius: var(--r-chip);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 700 1.02rem var(--body);
  cursor: pointer;
}
.chip.good {
  background: var(--sun);
  border-color: transparent;
}
.chip.good::before {
  content: "★ ";
  color: var(--sun-ink);
}
.chip.back {
  background: transparent;
  color: var(--ink-2);
}
.chip:active {
  transform: scale(0.97);
}
.demo-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: var(--r-chip);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.98rem;
}
.demo-toast button {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  font: 800 0.95rem var(--body);
  cursor: pointer;
}
.demo-feed {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.demo-feed li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border-radius: var(--r-small);
  background: var(--bg);
  font-size: 0.98rem;
}
.demo-feed time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--accent);
}
.demo-note {
  margin: 0.9rem 0.5rem 0.2rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}
[hidden] {
  display: none !important;
}

/* ---------- Sections ---------- */
.section {
  width: min(100% - 2rem, var(--wrap));
  margin: 0 auto clamp(4rem, 9vw, 7rem);
}
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}
.section-head p {
  margin: 0.9rem 0 0;
  color: var(--ink-2);
  font-size: 1.15rem;
}

/* Feature tiles: uneven on purpose, like the Home grid with different students. */
.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.6rem;
  border-radius: var(--r-tile);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tile h3 {
  font-size: 1.45rem;
}
.tile p {
  margin: 0;
  color: var(--ink-2);
}
.tile.big {
  grid-column: span 3;
}
.tile.wide {
  grid-column: span 4;
}
.tile.tint {
  background: var(--accent-soft);
  border-color: transparent;
}
.tile.sunny {
  background: var(--sun);
  border-color: transparent;
}
.tile.sunny p {
  color: var(--ink);
}
.tile .art {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.92rem;
}
.tint .pill,
.sunny .pill {
  background: var(--surface);
  border-color: transparent;
}
.pill.abc {
  width: 40px;
  justify-content: center;
  padding: 0;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  font-family: var(--display);
  font-size: 1.1rem;
}
.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
}
.wave i {
  width: 6px;
  border-radius: 99px;
  background: var(--accent);
  height: 30%;
}
.wave i:nth-child(3n) {
  height: 90%;
}
.wave i:nth-child(3n + 1) {
  height: 55%;
}
.wave i:nth-child(5n) {
  height: 20%;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
}
.bars i {
  width: 22px;
  border-radius: 8px 8px 3px 3px;
  background: var(--sun-ink);
  opacity: 0.85;
}
.bars i:nth-child(1) {
  height: 35%;
}
.bars i:nth-child(2) {
  height: 55%;
}
.bars i:nth-child(3) {
  height: 45%;
}
.bars i:nth-child(4) {
  height: 80%;
}
.bars i:nth-child(5) {
  height: 100%;
}
@media (max-width: 860px) {
  .tile,
  .tile.big,
  .tile.wide {
    grid-column: span 6;
  }
}

/* Screenshots */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 270px);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem max(1rem, calc((100vw - var(--wrap)) / 2)) 1.5rem;
  scrollbar-width: thin;
}
.shots figure {
  margin: 0;
  scroll-snap-align: center;
}
.shots img {
  width: 100%;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.shots figcaption {
  margin-top: 0.9rem;
  font: 500 1.05rem/1.3 var(--display);
  text-align: center;
}
.shot-dark,
:root[data-theme="dark"] .shot-light {
  display: none;
}
:root[data-theme="dark"] .shot-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light {
    display: none;
  }
  :root:not([data-theme="light"]) .shot-dark {
    display: block;
  }
}

/* Privacy block */
.private {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: 44px;
  background: var(--ink);
  color: var(--bg);
}
.private h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.private p {
  color: color-mix(in srgb, var(--bg) 78%, var(--ink));
  font-size: 1.15rem;
  margin-top: 1rem;
}
.private a {
  color: var(--bg);
}
.label {
  align-self: start;
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--r-tile);
  padding: 1.5rem;
}
.label h3 {
  font-size: 1.3rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--ink);
}
.label ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.label li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.label li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.label li span {
  color: var(--done);
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .private {
    grid-template-columns: 1fr;
    border-radius: 32px;
  }
}

/* Five logs */
.icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.icons figure {
  margin: 0;
  text-align: center;
  font: 500 1rem var(--display);
}
.icons img {
  width: 100%;
  border-radius: 24%;
  border: 1px solid var(--line);
  margin-bottom: 0.6rem;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.icons figure:hover img {
  transform: rotate(-4deg) scale(1.05);
}
.icons figure:nth-child(even):hover img {
  transform: rotate(4deg) scale(1.05);
}
@media (max-width: 640px) {
  .icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.closing {
  text-align: center;
  max-width: 44rem;
}
.closing h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 1rem;
}
.closing .cta {
  justify-content: center;
  margin-top: 1.5rem;
}
.fine {
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* ---------- Document pages ---------- */
.doc {
  width: min(100% - 2rem, 46rem);
  margin: clamp(1.5rem, 5vw, 3.5rem) auto clamp(4rem, 8vw, 6rem);
}
.doc-head {
  margin-bottom: 2.5rem;
}
.doc-head h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
}
.doc-head p {
  margin: 1rem 0 0;
  color: var(--ink-2);
  font-size: 1.15rem;
}
.doc-head .log {
  --h: 22px;
  width: 120px;
  margin-top: 1.6rem;
}
.doc h2 {
  font-size: 1.7rem;
  margin: 2.6rem 0 0.8rem;
}
.doc h3 {
  font-size: 1.25rem;
  margin: 1.8rem 0 0.5rem;
}
.doc ul,
.doc ol {
  padding-left: 1.3rem;
  margin: 0 0 1.1em;
}
.doc li {
  margin-bottom: 0.45em;
}
.doc li::marker {
  color: var(--accent);
  font-weight: 800;
}
.card {
  padding: 1.5rem 1.6rem;
  border-radius: var(--r-tile);
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 1.5rem 0;
}
.card > :last-child {
  margin-bottom: 0;
}
.card h2,
.card h3 {
  margin-top: 0;
}
.card.sunny {
  background: var(--sun);
  border-color: transparent;
}
.card.tint {
  background: var(--accent-soft);
  border-color: transparent;
}
.meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 1.25rem;
  margin: 0;
}
.meta dt {
  color: var(--ink-2);
  font-weight: 700;
}
.meta dd {
  margin: 0;
  font-weight: 700;
}
.table-scroll {
  overflow-x: auto;
  margin: 1.2rem 0;
  border-radius: var(--r-small);
  border: 1px solid var(--line);
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.98rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
th {
  font-family: var(--display);
  font-weight: 600;
}
code {
  font: 600 0.92em ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--accent-soft);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}
details {
  border-bottom: 1px solid var(--line);
}
details:first-of-type {
  border-top: 1px solid var(--line);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0.5rem 0;
  cursor: pointer;
  font: 600 1.15rem var(--display);
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.3rem;
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details > :not(summary) {
  color: var(--ink-2);
}
details > :last-child {
  margin-bottom: 1.2rem;
}

/* Changelog */
.release {
  position: relative;
  padding-left: 2rem;
  border-left: 6px solid var(--wood);
  margin-left: 0.5rem;
}
.release::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 0.15rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--wood-line);
  background: radial-gradient(circle closest-side, var(--wood-cream) 0 25%, var(--wood-ring) 25% 45%, var(--wood-cream) 45%);
}
.release h2 {
  margin-top: 0;
}
.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  background: var(--sun);
  color: var(--sun-ink);
  font: 800 0.85rem var(--body);
  letter-spacing: 0;
}

/* 404 */
.lost {
  text-align: center;
}
.lost .log {
  --h: 70px;
  width: 150px;
  margin: 3rem auto 2rem;
  transform: rotate(-6deg);
}
.lost .cta {
  justify-content: center;
}

/* ---------- Footer ---------- */
.foot {
  width: min(100% - 2rem, var(--wrap));
  margin: 0 auto;
  padding: 0 0 3rem;
  color: var(--ink-2);
}
.foot-log {
  padding: 20px 0 2.5rem;
}
.log-foot {
  --h: 26px;
  width: calc(100% - 8px);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.foot-brand {
  font: 600 1.4rem var(--display);
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.foot nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0 2rem;
  align-content: start;
}
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
}
.foot-note {
  margin: 2rem 0 0;
  font-size: 0.92rem;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise {
    animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 90ms + 0.05s);
  }
  .loading .rise {
    animation-play-state: paused;
  }
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .js [data-reveal].in {
    opacity: 1;
    transform: none;
  }
  .js .demo.rise {
    animation-name: rise-tilt;
  }
  .demo-toast,
  .demo-feed li {
    animation: pop 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
  }
  .js .log-foot {
    width: 30%;
    transition: width 1.4s cubic-bezier(0.3, 0.8, 0.3, 1);
  }
  .js .in .log-foot {
    width: calc(100% - 8px);
  }
  .js .log-grow {
    animation: grow-small 1s cubic-bezier(0.3, 0.8, 0.3, 1) 0.3s both;
  }
  .loading .log-grow {
    animation-play-state: paused;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes rise-tilt {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(4deg);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
}
@keyframes grow-small {
  from {
    width: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

[data-i="1"] { --i: 1; }
[data-i="2"] { --i: 2; }
[data-i="3"] { --i: 3; }
[data-i="4"] { --i: 4; }
[data-i="5"] { --i: 5; }

.shots-section {
  margin-bottom: clamp(4rem, 9vw, 7rem);
}
.section-tight {
  margin-bottom: 0;
}
