/* ============================================================
   tyler.johnson — portfolio
   hand-written css, no dependencies. layers:
   1. tokens  2. reset  3. ocean layers  4. utilities
   5. header  6. section heads  7. hero  8. about  9. timeline
   10. projects  11. chips/skills  12. contact  13. footer
   14. reveal animation  15. project detail page  16. media queries

   palette: "ocean descent" — sunlit surface water at the top of
   the page fading to a bioluminescent abyss at the bottom.
   sea-foam text, seafoam / cyan / coral accents.
   ============================================================ */

/* ===== 1. tokens ===== */
:root {
  --bg: #062940;
  /* solid deep-water fallback (media wells, fills) */
  --bg-raised: rgba(9, 43, 66, 0.55);
  /* translucent so the depth gradient shows through cards */
  --border: #1f4d68;
  --text: #e6f1ec;
  /* sea-foam white */
  --text-muted: #9fc3cd;
  --accent: #6fd6c3;
  /* seafoam — links, buttons, focus */
  --accent-2: #8fd3f4;
  /* sunlit-water cyan — labels, eyebrows */
  --pop: #ff9b85;
  /* bright coral — badges, highlights */
  --accent-glow: rgba(111, 214, 195, 0.10);
  --pop-glow: rgba(255, 155, 133, 0.08);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --container: 70rem;
  --space-section: clamp(4.5rem, 12vh, 8rem);

  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.17rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.44rem + 0.78vw, 2.05rem);
  --step-3: clamp(2.4rem, 1.9rem + 2.5vw, 4rem);
}

/* ===== 2. reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  color-scheme: dark;
  /* anchors the abyss particle layer and clips the wave drift overdraw */
  position: relative;
  min-height: 100%;
  overflow-x: clip;
}

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

section[id] {
  scroll-margin-top: 5rem;
}

body {
  /* the descent: % stops span the document, so every page runs
     surface → abyss regardless of its height. html stays
     background-less so this propagates to the canvas and the
     negative-z decorative layers paint above it. */
  background: linear-gradient(to bottom,
      #0d4f6e 0%,
      #0a3f5c 18%,
      #072f49 45%,
      #041f34 70%,
      #020f1c 90%,
      #01070e 100%) #01070e;
  position: relative;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

ul,
ol {
  padding: 0;
}

/* ===== 3. ocean layers ===== */
/* all layers are document-anchored (absolute, not fixed) so the
   surface scrolls away as you dive. stroke color is baked into the
   wave data uri (css vars can't reach it). */

/* surface waves — drift slowly sideways; the -640px left overdraw
   is one tile width so the translateX loop never shows a gap */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: -640px;
  right: 0;
  height: min(70vh, 34rem);
  z-index: -2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='200' viewBox='0 0 640 200'%3E%3Cg fill='none' stroke='%236fd6c3' stroke-width='1.4'%3E%3Cpath stroke-opacity='.14' d='M0 40q40 -12 80 0t80 0t80 0t80 0t80 0t80 0t80 0'/%3E%3Cpath stroke-opacity='.10' d='M0 105q64 -16 128 0t128 0t128 0t128 0'/%3E%3Cpath stroke-opacity='.07' d='M0 165q80 -18 160 0t160 0t160 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 640px 200px;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  animation: wave-drift 80s linear infinite;
}

/* sunlight — a soft glow at the surface and faint diagonal god-rays
   shafting down into the upper water */
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120vh;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(110% 55% at 50% -12%, rgba(125, 216, 255, 0.12), transparent 62%),
    repeating-linear-gradient(101deg,
      transparent 0 140px,
      rgba(140, 225, 255, 0.05) 170px 210px,
      transparent 240px 380px);
  -webkit-mask-image: linear-gradient(to bottom, black 25%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 25%, transparent 95%);
  animation: ray-shimmer 14s ease-in-out infinite alternate;
}

/* bioluminescence — tiny drifting motes that only live in the deep;
   bottom-anchored so they sit in the abyss on any page length */
html::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(160vh, 100%);
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(139, 241, 255, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 65%, rgba(150, 255, 216, 0.40), transparent 60%),
    radial-gradient(2.5px 2.5px at 45% 85%, rgba(172, 160, 255, 0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 20%, rgba(139, 241, 255, 0.40), transparent 60%),
    radial-gradient(2px 2px at 10% 70%, rgba(150, 255, 216, 0.35), transparent 60%);
  background-size: 520px 520px, 460px 460px, 610px 610px, 380px 380px, 550px 550px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 55%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 55%);
  animation: plankton-bob 20s ease-in-out infinite alternate;
}

@keyframes wave-drift {
  to {
    transform: translateX(640px);
  }
}

@keyframes ray-shimmer {
  from {
    opacity: 0.55;
  }

  to {
    opacity: 1;
  }
}

@keyframes plankton-bob {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-14px);
  }
}

/* ===== 4. utilities ===== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: var(--accent-2);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  border-radius: 0 0 6px 6px;
}

.skip-link:focus {
  top: 0;
}

/* ===== 5. header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 21, 34, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 3.75rem;
}

.brand {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  color: var(--text);
  white-space: nowrap;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
  color: var(--accent);
}

.brand-mark {
  color: var(--pop);
  display: inline-flex;
  align-self: center;
  margin-right: 0.15em;
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-block: 0.35rem;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

/* ===== 6. section heads ===== */
section {
  padding-block: calc(var(--space-section) / 2);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}

.section-num {
  white-space: nowrap;
}

.section-head h2 {
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-head .rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  align-self: center;
}

/* ===== 7. hero ===== */
.hero {
  min-height: calc(88vh - 3.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-block: var(--space-section);
}

.eyebrow {
  letter-spacing: 0.12em;
}

.hero h1 {
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-tagline {
  max-width: 38em;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
}

.hero-tagline strong {
  color: var(--text);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  color: var(--text-muted);
}

.hero-chips li::before {
  content: "·";
  color: var(--accent-2);
  margin-right: 0.6em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

/* welcome photo next to the hero text; stacks under the text on phones */
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  display: grid;
  gap: 1.5rem;
}

.hero-photo {
  margin: 0;
  max-width: 34rem;
}

.hero-photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.hero-photo figcaption {
  margin-top: 0.6rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  background: var(--accent-glow);
  box-shadow: 0 0 24px var(--accent-glow);
}

.icon-link {
  color: var(--text-muted);
  display: inline-flex;
  transition: color 0.2s;
}

.icon-link:hover,
.icon-link:focus-visible {
  color: var(--accent);
}

/* ===== 8. about ===== */
.about-grid {
  display: grid;
  gap: 2rem;
}

.about-grid figure img {
  border: 1px solid var(--border);
  border-radius: 8px;
}

.about-grid figcaption {
  margin-top: 0.6rem;
  color: var(--text-muted);
}

.about-text p + p {
  margin-top: 1rem;
}

.edu {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.edu dt {
  color: var(--accent-2);
  letter-spacing: 0.08em;
}

.edu dd {
  margin: 0;
}

/* ===== 9. experience timeline ===== */
.timeline {
  list-style: none;
  border-left: 1px solid var(--border);
  display: grid;
  gap: 3rem;
}

.timeline > li {
  position: relative;
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
}

.timeline > li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow), 0 0 0 3px var(--bg);
}

.entry-head h3 {
  font-size: var(--step-1);
  line-height: 1.2;
}

.entry-head .role {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.1em 0.6em;
  border: 1px solid var(--pop);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--pop);
}

.timeline article > p {
  max-width: 62em;
}

.highlight {
  margin-block: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 155, 133, 0.06);
  border-left: 2px solid var(--pop);
  border-radius: 0 6px 6px 0;
  max-width: 62em;
}

.highlight-label {
  margin-bottom: 0.4rem;
}

.highlight p:last-child {
  color: var(--text-muted);
}

.tech-tags {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

/* ===== 10. projects ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.card-media {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card-body h3 {
  font-size: var(--step-1);
  line-height: 1.25;
}

.card-body h3 a {
  color: var(--text);
}

/* stretched link — whole card is clickable */
.card-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card-body h3 a:hover,
.card-body h3 a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.card-body p {
  color: var(--text-muted);
  font-size: var(--step-0);
}

.card-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15em 0.7em;
  vertical-align: middle;
  white-space: nowrap;
}

.card-body .tech-tags {
  margin-top: auto;
}

/* ===== 11. chips / skills ===== */
.skills-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.skills-grid h3 {
  margin-bottom: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.chips li {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  transition: border-color 0.2s, color 0.2s;
}

.chips li:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ===== 12. contact ===== */
.contact-lede {
  max-width: 42em;
  font-size: var(--step-1);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-label {
  color: var(--text-muted);
  min-width: 6.5rem;
}

/* ===== 13. footer ===== */
.site-footer {
  margin-top: var(--space-section);
  border-top: 1px solid var(--border);
  padding-block: 1.75rem;
}

.site-footer .mono {
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ===== 14. reveal animation (gated on .js so no-js users see everything) ===== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== 15. project detail page ===== */
.project-hero {
  padding-block: clamp(3rem, 8vh, 5rem) 0;
  display: grid;
  gap: 1.25rem;
}

.project-hero h1 {
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.project-lede {
  max-width: 46em;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
}

.project-lede strong {
  color: var(--text);
}

.prose {
  max-width: 62em;
  display: grid;
  gap: 1rem;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
}

.prose ul {
  list-style: disc;
  padding-left: 1.4em;
  display: grid;
  gap: 0.5rem;
}

.prose ul strong {
  color: var(--accent);
}

figure.diagram {
  margin-block: 0.5rem 1rem;
}

figure.diagram img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

figure.diagram video {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  display: block;
}

figure.diagram figcaption {
  margin-top: 0.6rem;
  color: var(--text-muted);
}

/* ===== 16. media queries ===== */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }

  .hero-photo {
    justify-self: end;
  }

  .photo-panel {
    grid-template-columns: minmax(240px, 42%) 1fr;
    align-items: center;
  }

  .about-grid {
    /* photo column scales with the viewport: 280px on a tablet, ~40% of the grid on a desktop */
    grid-template-columns: minmax(280px, 40%) 1fr;
    align-items: start;
  }

  .about-grid figure {
    position: sticky;
    top: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ===== 404 page ===== */
.error-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1.25rem;
  padding: 2rem;
}

.error-page h1 {
  font-family: var(--font-mono);
  font-size: var(--step-2);
  color: var(--pop);
  letter-spacing: 0.05em;
}

.error-page p {
  color: var(--text-muted);
}

/* ===== 17. equations + pseudocode (swarm page) ===== */
.prose pre {
  margin: 0;
  padding: 0.9rem 1.1rem;
  max-width: 62em;
  overflow-x: auto;
  background: rgba(3, 20, 34, 0.55);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre;
  tab-size: 4;
}

.prose pre code {
  font-size: inherit;
  color: inherit;
}

.prose pre .cm {
  color: var(--text-muted);
}

.prose pre .kw {
  color: var(--accent-2);
}

.prose .eq {
  margin: 0;
  padding: 0.6rem 1.1rem;
  max-width: 62em;
  overflow-x: auto;
  border-left: 2px solid var(--accent);
  background: var(--accent-glow);
  border-radius: 0 6px 6px 0;
  font-size: 1rem;
  line-height: 1.6;
}

.prose .eq .katex-display {
  margin: 0.35rem 0;
  text-align: left;
}

.prose .eq .katex-display > .katex {
  text-align: left;
}

.prose .eq .katex {
  font-size: 1.18em;
  color: var(--text);
}

.prose .eq .note {
  color: var(--text-muted);
  font-family: var(--font-body);
  white-space: normal;
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
}

.prose .block-label {
  margin-bottom: -0.5rem;
}

.prose table.spec {
  border-collapse: collapse;
  max-width: 62em;
  font-size: 0.92rem;
}

.prose table.spec th,
.prose table.spec td {
  text-align: left;
  padding: 0.4rem 0.9rem 0.4rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose table.spec th {
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.prose .table-wrap {
  overflow-x: auto;
  max-width: 62em;
}

/* ===== 18. personal page ===== */
/* this page leaves the ocean behind: one of the collages is the page
   background, and the text sits in dark glass panels on top of it. */
body.personal {
  background: #121010;
  color: #f1ede6;
}

/* switch off the surface waves, sun rays and plankton for this page */
body.personal::before,
body.personal::after {
  content: none;
}

html:has(body.personal)::after {
  content: none;
}

/* the image url is set inline on the div in personal.html so it resolves
   relative to the page, not to this stylesheet */
.collage-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #121010;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.collage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 8, 8, 0.35), rgba(10, 8, 8, 0.15) 40%, rgba(10, 8, 8, 0.55));
}

body.personal .site-header {
  background: rgba(12, 10, 10, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.personal .brand,
body.personal .nav-links a {
  color: #e9e3da;
}

body.personal .nav-links a:hover,
body.personal .nav-links a:focus-visible,
body.personal .nav-links a[aria-current] {
  color: #ffb79f;
}

.personal-main {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 8vh, 5rem);
  max-width: 52rem;
}

.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(12, 10, 10, 0.68);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: grid;
  gap: 1rem;
}

.panel h1 {
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.panel h2 {
  font-size: var(--step-2);
  line-height: 1.15;
}

.readme-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  font-size: var(--step-1);
  line-height: 1.5;
}

.readme-list li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
}

.readme-list .emoji {
  flex: none;
  width: 1.5em;
  text-align: center;
}

.readme-list.plain {
  font-size: var(--step-0);
  color: #d9d2c7;
}

.readme-list.plain li {
  display: list-item;
  list-style: disc;
  margin-left: 1.2em;
}

/* panels with a photo beside the text */
.photo-panel {
  gap: 1.25rem;
}

.photo-panel figure {
  margin: 0;
}

.photo-panel img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.photo-panel figcaption {
  margin-top: 0.5rem;
  color: #bdb5aa;
}

.photo-panel p {
  font-size: var(--step-0);
  color: #d9d2c7;
  line-height: 1.55;
}

.photo-panel p + p {
  margin-top: 0.75rem;
}

body.personal .site-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

body.personal .site-footer .mono {
  color: #bdb5aa;
}
