@font-face {
  font-family: "Shippori Mincho";
  src: url("assets/fonts/shippori-mincho-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Shippori Mincho";
  src: url("assets/fonts/shippori-mincho-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Shippori Mincho";
  src: url("assets/fonts/shippori-mincho-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --header-h: 64px;
  --gallery-gap: 2rem;
  --text: #e6e1d8;
  --muted: #8a867e;
  --emph: #ffffff;
  --accent: #8c1820;
  --line: rgba(138, 134, 126, 0.45);
  --sep: rgba(138, 134, 126, 0.25);
  --band-a: #070707;
  --band-b: #000000;
  --link: #e6e1d8;
  --glow: rgba(230, 225, 216, 0.25);
  --name-glow: rgba(230, 225, 216, 0.16);
  --vignette: rgba(230, 225, 216, 0.075);
  --font-serif: "Shippori Mincho", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-kanji: "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", "Songti SC", "SimSun", serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #dcc7a1;
  --text: #2b2118;
  --muted: #5c4c3a;
  --emph: #2b2118;
  --accent: #a3262a;
  --line: rgba(92, 76, 58, 0.45);
  --sep: rgba(92, 76, 58, 0.25);
  --band-a: #d3bb92;
  --band-b: #dcc7a1;
  --link: #2b2118;
  --glow: rgba(43, 33, 24, 0.22);
  --name-glow: rgba(255, 214, 150, 0.55);
  --vignette: rgba(255, 232, 180, 0.5);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 18%, var(--vignette), transparent 62%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 115% 95% at 50% 28%, transparent 42%, rgba(0, 0, 0, 0.5) 100%);
}

[data-theme="light"] body::after {
  background: url("assets/decor/grain.svg") repeat;
  background-size: 220px 220px;
  opacity: 0.035;
}

.ink-symbol {
  position: fixed;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  width: min(62vw, 580px);
  height: auto;
  z-index: -3;
  pointer-events: none;
  opacity: 0.075;
}

.ink-symbol path {
  fill: #2b2118;
}

.ambient-mountains {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: auto;
  z-index: -3;
  pointer-events: none;
  opacity: 0.07;
}

.ambient-sun {
  position: fixed;
  left: 64%;
  top: 27%;
  transform: translate(-50%, -50%);
  width: clamp(150px, 20vw, 280px);
  height: auto;
  z-index: -3;
  pointer-events: none;
  opacity: 0.07;
}

.ambient-branch {
  position: fixed;
  right: 0;
  top: 0;
  width: clamp(300px, 38vw, 520px);
  height: auto;
  z-index: -3;
  pointer-events: none;
  opacity: 0.32;
}

#wind-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

#wind-front {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.moon {
  position: fixed;
  left: 74%;
  top: 20%;
  transform: translate(-50%, -50%);
  width: clamp(96px, 15vw, 205px);
  z-index: -3;
  pointer-events: none;
  mix-blend-mode: screen;
}

.moon::before {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 70%);
}

/* the low ground fog around the bottom of the moon, drawn on a canvas */
.moon-mist {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 1;
  animation: moon-mist-drift 45s ease-in-out infinite alternate;
}

@media (min-width: 1100px) {
  [data-theme="dark"] .moon-mist {
    display: block;
  }
}

@keyframes moon-mist-drift {
  from {
    transform: translateX(-20px);
  }

  to {
    transform: translateX(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .moon-mist {
    animation: none;
  }
}

.moon img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.78;
  filter: brightness(0.9);
  clip-path: circle(45%);
}

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}

h1.page-title {
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  color: var(--emph);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 1.25rem;
}

p {
  margin: 0 0 1.25rem;
}

strong {
  font-weight: 500;
  color: var(--emph);
}

.mono,
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

/* a faded aside inside a paragraph */
.faint {
  opacity: 0.3;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--emph);
  text-shadow: 0 0 14px var(--glow);
}

:focus-visible {
  outline: 2px solid var(--emph);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--sep);
}

[data-theme="light"] .site-header {
  background: rgba(220, 199, 161, 0.94);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: 1100px;
}

body {
  padding-top: 64px;
}

[id] {
  scroll-margin-top: 84px;
}

.nav-main {
  grid-column: 2;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
  color: var(--emph);
  text-shadow: 0 0 14px var(--glow);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.theme-toggle {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, filter 0.2s ease;
}

.theme-toggle:hover {
  color: var(--emph);
  filter: drop-shadow(0 0 6px var(--glow));
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}

[data-theme="light"] .icon-moon {
  display: block;
}

.hero {
  text-align: center;
  min-height: 52vh;
  padding-top: clamp(3.5rem, 12vh, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* the bio is a little wider than the rest of the column, where there is room */
@media (min-width: 988px) {
  .about {
    margin-inline: -1cm;
  }
}

/* the bio reads a little larger than the small note style */
.about .todo {
  font-size: 0.890625rem;
}

/* the home page is one screen: no scrolling on a normal desktop window */
@media (min-width: 1100px) and (min-height: 640px) {
  html.one-screen,
  html.one-screen body {
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  html.one-screen main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }

  html.home.one-screen .wrap-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 1.5rem;
  }

  html.home.one-screen .hero {
    flex: 0 0 auto;
    min-height: 0;
    padding-top: clamp(0.75rem, 3vh, 3rem);
    padding-bottom: 0;
  }

  html.home.one-screen .hero-name {
    font-size: clamp(2.5rem, min(7vw, 8vh), 4.5rem);
  }

  html.home.one-screen .hero-line {
    margin-top: calc(1rem + 1.33em);
  }

  html.home.one-screen .hero-rule {
    margin-top: 1.25rem;
  }

  /* a short window: the hero is tightened up and the bio a little smaller, so
     the sky above the glyphs stays big enough for the moon */
  @media (max-height: 849px) {
    html.home.one-screen .hero {
      padding-top: 0.5rem;
    }

    html.home.one-screen .hero-line {
      margin-top: calc(0.6rem + 1.33em);
    }

    html.home.one-screen .hero-rule {
      margin-top: 0.85rem;
    }

    html.home.one-screen .about .todo {
      font-size: 0.78125rem;
    }
  }

  /* a very short window: everything is tightened a little more */
  @media (max-height: 780px) {
    html.home.one-screen .hero {
      padding-top: 0.35rem;
    }

    html.home.one-screen .hero-line {
      margin-top: calc(0.4rem + 1.33em);
    }

    html.home.one-screen .hero-rule {
      margin-top: 0.6rem;
    }

    html.home.one-screen .about .todo {
      font-size: 0.75rem;
    }
  }

  html.home.one-screen .site-footer {
    padding-bottom: 0.5rem;
  }

  html.home.one-screen .about {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-top: clamp(0.75rem, 2vh, 2.5rem);
    padding-bottom: 0.5rem;
    line-height: 1.6;
  }

  html.contact-page.one-screen main {
    align-items: center;
    text-align: center;
  }

  html.contact-page.one-screen .site-footer {
    margin-top: auto;
    padding-top: 1rem;
  }
}

/* on a short window the home page scrolls normally again, so the bio is never
   cut off or scrolled inside its own box */
@media (min-width: 1100px) and (max-height: 699px) {
  html.home.one-screen,
  html.home.one-screen body {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  html.home.one-screen main,
  html.home.one-screen .wrap-content {
    display: block;
  }

  html.home.one-screen .about {
    overflow: visible;
  }

  /* the hero keeps its full height, so there is sky above the glyphs for the
     moon even on a short window */
  html.home.one-screen .hero {
    min-height: 52vh;
    padding-top: clamp(3.5rem, 12vh, 7rem);
  }
}

/* two characters behind the name, dark theme only */
.hero-name-wrap {
  position: relative;
}

.hero-name-wrap .hero-name {
  position: relative;
  z-index: 2;
}

.hero-kanji {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.12em;
  font-size: clamp(7rem, 23vh, 18rem);
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "MS Mincho", serif;
  color: rgba(215, 215, 210, 0.12);
}

@media (max-width: 699px) {
  .hero-kanji {
    font-size: clamp(8rem, 38vw, 14rem);
  }
}

[data-theme="light"] .hero-kanji {
  display: none;
}

/* smooth jump links, unless the visitor asked for less motion */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* the ambient layer starts invisible and fades in once the first frame is ready */
#wind-canvas,
#wind-front,
.moon,
.moon-mist,
.mist,
.shooting-stars {
  opacity: 0;
  transition: opacity 3s ease;
}

html.ambient-ready #wind-canvas,
html.ambient-ready #wind-front,
html.ambient-ready .moon,
html.ambient-ready .mist,
html.ambient-ready .shooting-stars {
  opacity: 1;
}

html.ambient-ready .moon-mist {
  opacity: 0.9;
}

/* hero decor: the dark theme mist, full viewport width, no visible edges */
.mist {
  display: none;
}

@media (min-width: 1100px) {
  .hero {
    position: relative;
  }

  [data-theme="dark"] .mist {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35vh;
    pointer-events: none;
    z-index: 1;
    background:
      radial-gradient(70% 120% at 20% 118%, rgba(206, 202, 190, 0.12), rgba(206, 202, 190, 0) 68%),
      radial-gradient(70% 120% at 80% 118%, rgba(176, 176, 172, 0.1), rgba(176, 176, 172, 0) 68%),
      radial-gradient(80% 130% at 50% 122%, rgba(235, 235, 230, 0.05), rgba(235, 235, 230, 0) 72%);
  }

  [data-theme="dark"] .mist::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 140% at 50% 126%, rgba(138, 134, 126, 0.1), rgba(138, 134, 126, 0) 70%);
    animation: mist-drift 60s ease-in-out infinite alternate;
  }

  .hero-name,
  .hero-line,
  .hero-rule {
    position: relative;
    z-index: 3;
  }
}

@keyframes mist-drift {
  from {
    transform: translateX(-30px);
  }

  to {
    transform: translateX(30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mist::before {
    animation: none;
  }
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--emph);
  text-shadow: 0 0 42px var(--name-glow), 0 0 90px var(--name-glow);
}

.hero-line {
  margin: calc(1.75rem + 1.33em) 0 calc(1.33em + 1.25rem);
  font-family: var(--font-serif);
  font-size: 1em;
  font-weight: 700;
  line-height: 1.75;
  color: var(--text);
}

.hero-rule {
  border: 0;
  border-top: 1px solid var(--accent);
  width: 2.75rem;
  margin: 2.5rem auto 0;
  opacity: 0.8;
}

.about {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding-bottom: 1.25rem;
  text-align: left;
}

.todo {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.todo-entry {
  border: 1px dashed var(--line);
  border-radius: 2px;
  padding: 1.25rem;
  opacity: 0.85;
}

.todo-entry .todo {
  font-size: 0.75rem;
}

.page {
  padding-top: clamp(3.5rem, 9vh, 6rem);
  padding-bottom: 2rem;
}

.page .lead {
  color: var(--muted);
  margin-bottom: 2rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.entry-list li:first-child {
  border-top: 1px solid var(--line);
}

.entry-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-right: 1.15rem;
}

.entry-body {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

.article-entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.article-entry:first-of-type {
  border-top: 1px solid var(--line);
}

.article-entry .article-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.article-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.75rem;
}

.article-summary {
  margin: 0 0 0.75rem;
}

.article-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-top: 0.9rem;
}

.photo-row {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin: 3.5rem 0;
}

.photo-row figure {
  margin: 0;
  width: fit-content;
}

.photo-row img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  margin-inline: auto;
}

.photo-row figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-top: 0.9rem;
}

.stack-line {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  line-height: 1.9;
  color: var(--text);
}

.link-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 2rem 0;
}

.site-footer {
  padding-bottom: 1.5rem;
}

.site-footer .footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.footer-mail {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin: 0;
}

.kanji-trail {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-kanji);
  line-height: 1;
  color: var(--muted);
  will-change: transform, opacity;
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .wrap {
    padding-inline: 1.15rem;
  }

  .site-header {
    height: 56px;
  }

  :root {
    --header-h: 56px;
  }

  body {
    padding-top: 56px;
  }

  [id] {
    scroll-margin-top: 76px;
  }

  .hero {
    min-height: 44vh;
    padding-top: clamp(2.5rem, 10vh, 5rem);
  }

  .about {
    margin-top: 2rem;
  }

  .rule {
    margin: 2.75rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.page-head {
  position: relative;
}

.page-head .page-title {
  margin-bottom: 0;
}

.page-rule {
  border: 0;
  border-top: 1px solid var(--accent);
  width: 2.75rem;
  margin: 1.5rem 0 0;
  opacity: 0.8;
}

.page-body {
  padding-top: 2.25rem;
}

.wrap-content {
  max-width: 960px;
}

.wrap-list {
  max-width: 760px;
}

.wrap-wide {
  max-width: 900px;
}

.wrap-gallery {
  max-width: 1100px;
}

.page-sports {
  position: relative;
}

.lanes {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: -1;
}

.lanes span {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--text);
  opacity: 0.05;
}

.lanes span:nth-child(1) { top: 7%; }
.lanes span:nth-child(2) { top: 19%; }
.lanes span:nth-child(3) { top: 31%; }
.lanes span:nth-child(4) { top: 43%; }
.lanes span:nth-child(5) { top: 55%; }
.lanes span:nth-child(6) { top: 67%; }
.lanes span:nth-child(7) { top: 79%; }
.lanes span:nth-child(8) { top: 91%; }

.group-label {
  margin: 3.5rem 0 1.25rem;
}

.rows-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rows-list li {
  display: grid;
  grid-template-columns: 7rem 1.3fr 1fr;
  column-gap: 1.5rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.rows-list li:first-child {
  border-top: 1px solid var(--line);
}

.row-year,
.row-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.row-result {
  color: var(--text);
}

.measured {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
}

.wave-divider {
  display: block;
  width: 100%;
  height: 12px;
  color: var(--line);
  opacity: 0.7;
  margin: 3.5rem 0 0;
}

.rows {
  display: grid;
  grid-template-columns: 7rem 1fr;
  column-gap: 1.5rem;
  row-gap: 0.85rem;
  margin: 1.75rem 0 0;
}

.rows dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.9;
}

.rows dd {
  margin: 0;
}

.rows dd .link-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.project {
  display: block;
  width: 100%;
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
}

.project-summary {
  max-width: 70ch;
}

.project > .rows {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.75rem 1.5rem;
  margin: 1.75rem 0 0;
}

.project > .rows dd {
  max-width: 80ch;
}

.project > .shot-frame {
  width: fit-content;
  max-width: min(100%, 560px);
  margin-top: 1.5rem;
  margin-left: 10rem;
}

.project > .shot-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 440px;
}

@media (max-width: 639px) {
  .project > .rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .project > .shot-frame {
    margin-left: 0;
  }
}

.project-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.85rem;
  font-size: 1.5rem;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.22rem 0.55rem;
}

.project-summary {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.project-shot {
  margin: 1.75rem 0 0;
}

.project-shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(380px, 100%);
}

.entry-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.stack-block {
  border: 1px solid var(--line);
  padding: 1.5rem;
  margin: 2.5rem -1.5rem;
}

.article-entry {
  display: grid;
  grid-template-columns: 7rem 1fr;
  column-gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.article-entry:first-of-type {
  border-top: 1px solid var(--line);
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
}

.jump-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  display: inline-block;
  padding: 0.55rem 0;
  border-bottom: 1px solid transparent;
}

.jump-links a:hover {
  color: var(--emph);
  border-bottom-color: var(--line);
}

.gallery {
  display: block;
  column-count: 3;
  column-gap: var(--gallery-gap);
}

.gallery figure {
  break-inside: avoid;
  margin: 0 0 var(--gallery-gap);
}

/* shooting stars: above the star field, below the page content */
.shooting-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.shooting-star {
  position: absolute;
  display: none;
  width: 180px;
  height: 3px;
  opacity: 0;
}

.shooting-star-run {
  animation: shooting-star-run var(--st, 1s) linear both;
}

@keyframes shooting-star-run {
  from {
    transform: rotate(var(--sa, 0deg)) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  to {
    transform: rotate(var(--sa, 0deg)) translateX(var(--sd, 500px));
    opacity: 0;
  }
}

@keyframes gallery-drift-slow {
  from {
    transform: translateY(6px);
  }

  to {
    transform: translateY(-6px);
  }
}

@keyframes gallery-drift {
  from {
    transform: translateY(10px);
  }

  to {
    transform: translateY(-10px);
  }
}

@keyframes gallery-drift-fast {
  from {
    transform: translateY(8px);
  }

  to {
    transform: translateY(-8px);
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
    .wrap-gallery .gallery img {
      animation: gallery-drift linear both;
      animation-timeline: view();
      animation-range: cover;
    }

    .wrap-gallery .gallery figure:nth-child(3n+1) img {
      animation-name: gallery-drift-slow;
    }

    .wrap-gallery .gallery figure:nth-child(3n+2) img {
      animation-name: gallery-drift;
    }

    .wrap-gallery .gallery figure:nth-child(3n+3) img {
      animation-name: gallery-drift-fast;
    }
  }
}

.gallery figure a {
  display: block;
  text-decoration: none;
}

.photo {
  margin: 3.5rem auto;
  width: fit-content;
  max-width: 100%;
}

.photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  margin-inline: auto;
}

.photo figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-top: 0.9rem;
}

.contact {
  text-align: center;
  padding-top: clamp(3rem, 8vh, 5rem);
}

.contact-email {
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 3.5vw, 1.65rem);
  letter-spacing: 0.02em;
  display: inline-block;
  padding: 0.75rem 0.25rem;
  margin: 2.5rem 0;
}

.contact-list {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.contact-list a {
  display: inline-block;
  padding: 0.75rem 0.5rem;
}

.contact-note {
  margin: 2.5rem 0 0;
}

/* contact page: one column, every block in normal flow */
.contact-page {
  --g: clamp(0.75rem, 2.5vh, 1.75rem);
}

.contact-page .page-head {
  text-align: center;
  margin-bottom: calc(var(--g) * 2);
}

.contact-page .title-row {
  justify-content: center;
}

.contact-page .page-rule {
  margin: 1.5rem auto 0;
}

.contact-page .contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0;
}

.contact-page .contact-email {
  font-size: clamp(1.4rem, 3.2vh, 2rem);
  white-space: nowrap;
  margin: 0 0 calc(var(--g) * 1.5);
}

.contact-page .contact-list {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 2.5rem;
  row-gap: 0.5rem;
  margin: 0 0 calc(var(--g) * 1.5);
}

.contact-page .contact-note {
  max-width: 52ch;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 639px) {
  .contact-page .contact-email {
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .rows-list li {
    grid-template-columns: 1fr;
    row-gap: 0.35rem;
  }

  .rows {
    grid-template-columns: 1fr;
    row-gap: 0.35rem;
  }

  .rows dd {
    margin-bottom: 0.85rem;
  }

  .article-entry {
    grid-template-columns: 1fr;
    row-gap: 0.55rem;
  }

  .gallery {
    column-count: 1;
  }

  .jump-links a {
    padding: 1rem 0.25rem;
  }

  .footer-mail a {
    display: inline-block;
    padding: 0.75rem 0;
  }

  .article-link {
    display: inline-block;
    padding: 0.65rem 0;
  }
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 2rem;
  margin: 2.5rem 0;
}

.links-row a {
  display: inline-block;
  padding: 0.35rem 0;
}

.rows-list .row-meta {
  display: block;
  text-transform: none;
  letter-spacing: 0.03em;
  margin-top: 0.3rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .stack-block {
    margin-inline: -1.15rem;
    padding: 1.15rem;
  }

  .links-row a {
    padding: 0.75rem 0;
    margin-right: 1.5rem;
  }
}

.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.plain li:first-child {
  border-top: 1px solid var(--line);
}

.title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
}

.page-kanji {
  flex: none;
  font-family: var(--font-kanji);
  font-size: 2rem;
  line-height: 1;
  opacity: 0.3;
  color: var(--text);
  pointer-events: none;
}

.section {
  position: relative;
  margin-top: 4rem;
  padding: 3rem 0;
}

.section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: -1;
  background: var(--sep);
  box-shadow: 0 0 0 100vmax var(--sep);
  clip-path: polygon(-100vw 0, 200vw 0, 200vw 100%, -100vw 100%);
  pointer-events: none;
}

.album {
  position: relative;
  margin-top: 4rem;
  padding: 3rem 0;
}

.album::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: -1;
  background: var(--sep);
  box-shadow: 0 0 0 100vmax var(--sep);
  clip-path: polygon(-100vw 0, 200vw 0, 200vw 100%, -100vw 100%);
  pointer-events: none;
}

.section-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  padding-top: 1.15rem;
}

.section-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--accent);
}

.section-kanji {
  flex: none;
  font-family: var(--font-kanji);
  font-size: 2rem;
  line-height: 1;
  opacity: 0.3;
  color: var(--text);
  pointer-events: none;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.album-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.section-desc {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.sub-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text);
  margin: 2.25rem 0 1.15rem;
}

.sub-label:first-child {
  margin-top: 0;
}

.sport-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-right: 0.75rem;
}

.rows-list li,
.plain li,
.project,
.article-entry,
.hack-entry,
.cert-row,
.award-entry,
.role-entry {
  border-color: var(--sep);
}

.rows-list li:first-child,
.plain li:first-child,
.data-list li:first-child,
.article-entry:first-of-type,
.hack-entry:first-of-type,
.cert-row:first-of-type,
.award-entry:first-of-type,
.role-entry:first-of-type {
  border-top-color: var(--sep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* the frame is the image: a quiet 1px line on the image itself */
.strip img,
.wide-photo img,
.shot-frame img,
.cert-thumb img,
.entry-img img,
.photo img,
.photo-row img,
.project-shot img {
  border: 1px solid var(--sep);
}

/* gallery images: an outline keeps the box exactly the photo, so the rows of
   the photography wall line up */
.gallery img {
  border: 0;
  outline: 1px solid var(--sep);
  outline-offset: -1px;
}

/* wrappers around an image hug the image, never a box of their own */
.shot-frame,
.shot-frame > a,
.cert-thumb,
.entry-img,
.entry-img > a,
.strip a,
.wide-photo,
.wide-photo > a,
.photo,
.photo > a,
.gallery figure a {
  display: block;
  width: fit-content;
  max-width: 100%;
  line-height: 0;
  padding: 0;
  background: none;
  border: 0;
  text-decoration: none;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.25rem 0;
  align-items: flex-start;
}

.strip a {
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.strip img {
  display: block;
  width: auto;
  height: auto;
  max-height: 200px;
  max-width: 100%;
}

.strip a:only-child {
  margin-inline: auto;
}

.strip a:only-child img {
  width: auto;
  height: auto;
  max-height: 480px;
}

.wide-photo {
  margin: 2.25rem auto;
  width: fit-content;
  max-width: 100%;
}

.wide-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  margin-inline: auto;
}

.wide-photo a,
.photo a,
.shot-frame,
.cert-thumb {
  text-decoration: none;
  display: block;
}

.shot-frame {
  margin: 1.75rem 0 0;
  max-width: min(380px, 100%);
}

.shot-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.cert-thumb {
  flex: 0 0 auto;
  width: fit-content;
  max-width: min(340px, 100%);
}

.cert-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.timeline {
  border-left: 1px solid var(--sep);
  padding-left: 1.75rem;
  margin: 2.25rem 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: baseline;
  padding: 0 0 1rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item > .timeline-year {
  grid-column: 1;
}

.timeline-item > .sub-label {
  grid-column: 2;
  margin: 0;
}

.timeline-year {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* leadership: roles on the left, the Secretaries photo on the right */
@media (min-width: 900px) {
  #leadership {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 3rem;
    align-items: start;
  }

  #leadership .section-head {
    grid-column: 1 / -1;
  }

  #leadership .timeline {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  #leadership .strip {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: start;
    margin: 0;
    max-width: min(460px, 100%);
  }

  #leadership .strip img {
    height: auto;
    max-height: none;
    max-width: 100%;
  }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 2.5rem;
  margin: 2.25rem 0;
}

.rows-list.two-col-rows li {
  grid-template-columns: 1.3fr 1fr;
}

.rows-list li.no-year {
  grid-template-columns: 1.3fr 1fr;
}

.rows-list li.no-year .row-year {
  display: none;
}

.pb-block {
  border: 1px solid var(--sep);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  display: inline-block;
}

.pb-block .measured {
  display: block;
  margin-top: 0.55rem;
}

.rank-line {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin: 2.25rem 0 1.25rem;
}

.hack-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--sep);
}

.hack-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 0.55rem;
}

.hack-year {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.cert-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--sep);
}

.cert-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 1.5rem;
  flex: 1;
  align-items: baseline;
}

.award-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--sep);
}

.role-entry {
  padding: 2rem 0;
  border-bottom: 1px solid var(--sep);
}

.role-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

@media (max-width: 640px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .hack-entry,
  .award-entry {
    flex-direction: column-reverse;
    gap: 1.25rem;
  }

  .cert-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cert-fields {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .strip {
    flex-wrap: wrap;
  }

  .strip img {
    max-height: 150px;
  }
}

.nav-toggle {
  grid-column: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle:hover {
  color: var(--emph);
}

@media (max-width: 1000px) {
  .header-inner {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    grid-row: 1;
    justify-self: start;
  }

  .nav-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid var(--sep);
    padding: 0.35rem 1.15rem 0.85rem;
  }

  [data-theme="light"] .nav-links {
    background: rgba(220, 199, 161, 0.94);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    height: 48px;
  }
}

@media (max-width: 640px) {
  .row-meta a {
    display: inline-block;
    padding: 0.75rem 0;
  }
}

@media (max-width: 640px) {
  .page-body p a,
  .rows dd a,
  .hack-built a,
  .article-body a {
    display: inline-block;
    padding: 0.75rem 0;
  }

  .cert-thumb {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.93);
  opacity: 0;
  transition: opacity 150ms ease;
}

.lightbox.is-open {
  display: flex;
}

.lightbox.is-visible {
  opacity: 1;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 92vw;
  max-height: 88vh;
}

.lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: calc(88vh - 2.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(230, 225, 216, 0.18);
}

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #b9b4ab;
  text-align: center;
  max-width: 92vw;
}

.lightbox-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(230, 225, 216, 0.35);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  color: #e6e1d8;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lightbox-btn:hover {
  color: #ffffff;
  border-color: rgba(230, 225, 216, 0.7);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 1.25rem;
    transform: none;
  }
}

/* articles list */
.article-entry {
  grid-template-columns: 7rem 1fr auto;
  align-items: start;
}

.article-thumb {
  display: none;
  flex: none;
  text-decoration: none;
}

.article-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 80px;
}

@media (min-width: 900px) {
  .article-thumb {
    display: block;
  }
}

.nothing-published {
  color: var(--muted);
  padding: 1.75rem 0;
}

/* article page */
.article-meta {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.article-cover {
  margin: 2.25rem 0 0;
  max-width: 880px;
}

.article-cover img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  margin-inline: auto;
}

.article-body {
  max-width: 680px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.article-body blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.article-body pre {
  margin: 1.75rem 0;
  padding: 1rem 1.15rem;
  background: rgba(138, 134, 126, 0.03);
  border: 1px solid var(--sep);
  overflow-x: auto;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(138, 134, 126, 0.03);
  padding: 0.1em 0.35em;
  border: 1px solid var(--sep);
}

.article-body pre code {
  background: none;
  border: 0;
  padding: 0;
}

.article-body table {
  border-collapse: collapse;
  margin: 1.75rem 0;
  width: 100%;
}

.article-body th,
.article-body td {
  border: 1px solid var(--sep);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

.article-body figure {
  margin: 2rem 0;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: 3rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sep);
}

.article-nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.article-nav-link:hover {
  color: var(--emph);
}

/* subscribe */
.subscribe-block {
  margin: 3.5rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sep);
}

.subscribe-block .sub-label {
  margin-top: 0;
}

.subscribe-note {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.subscribe-input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.subscribe-button {
  min-height: 44px;
  padding: 0.55rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text);
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.subscribe-button:hover {
  color: var(--emph);
  border-color: var(--emph);
}

.subscribe-fineprint {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .article-entry {
    grid-template-columns: 1fr;
    row-gap: 0.55rem;
  }

  .article-body {
    font-size: 1rem;
  }
}

.entry-img {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 auto;
  width: fit-content;
  max-width: min(380px, 100%);
}

.entry-img a {
  display: block;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
}

.entry-img img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}
