@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;900&family=Fraunces:ital,wght@1,500&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ===== 3san.fyi ===== */
:root{
  --ink:        #0D0D0D;
  --ink-2:      #171613;
  --paper:      #EFEBE1;
  --paper-2:    #E4DFCF;
  --line-dark:  #2B2A26;
  --line-light: #C9C2AE;
  --text-onink:   #EFEBE1;
  --muted-onink:  #8F8B80;
  --text-onpaper: #0D0D0D;
  --muted-onpaper:#6E6A5C;
  --prose:      #26241E;
  --rust:       #8A5A44;
  --rust-2:     #A9705A;

  --display: 'Archivo', 'Arial Black', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--ink);
  color: var(--text-onink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
a{ color: inherit; }
img{ max-width: 100%; }
:focus-visible{ outline: 2px solid var(--rust-2); outline-offset: 3px; }

/* ---------- grain texture (SVG turbulence, tiled) ---------- */
.grain{
  position: relative;
  background-color: var(--line-dark);
  overflow: hidden;
}
.grain::before{
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .5;
  mix-blend-mode: overlay;
}
/* ---------- shell / rhythm ---------- */
.band{ padding: 88px 28px; }
.band.tight{ padding: 64px 28px; }
.band.dark{ background: var(--ink); color: var(--text-onink); }
.band.paper{ background: var(--paper); color: var(--text-onpaper); }
.wrap{ max-width: min(76vw, 1120px); margin: 0 auto; }

.rule-dark{ border-top: 1px solid var(--line-dark); }
.rule-light{ border-top: 1px solid var(--line-light); }

/* ---------- pill nav, overlaid on hero image ---------- */
.pillnav{
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 60px;
}
/* home: overlays the hero top, pins to the viewport once scrolled */
.pillnav.home{
  position: sticky;
  top: 0;
  z-index: 50;
  height: 78px;
  align-items: center;
  margin-bottom: -78px;
}
.pillnav a{
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(13,13,13,.55);
  color: var(--text-onink);
  border: 1px solid rgba(239,235,225,.25);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: background .15s ease, border-color .15s ease;
}
.pillnav a:hover{ border-color: var(--rust-2); }
.pillnav a.is-first{
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
/* standalone pill bar on pages without a hero image */
.pillnav.page{
  position: sticky;
  top: 0;
  z-index: 50;
  height: 78px;
  align-items: center;
}

/* ---------- hero: contained image block with title cut into it ---------- */
.hero-visual{
  position: relative;
  overflow: hidden;
  width: min(76vw, 1120px);
  margin: 0 auto;
  aspect-ratio: 1754/1028;
  background-image: url(images/banner.jpg);
  background-size: cover;
  background-position: center;
  border-radius: 0 0 20px 20px;
}
.hero-visual.blogs{
  aspect-ratio: 1600/888;
  background-image: url(images/blogs-banner.webp);
}
.hero-visual.projects{
  aspect-ratio: 1754/923;
  background-image: url(images/projects-banner.webp);
}
.hero-visual.about{
  aspect-ratio: 3445/2039;
  background-image: url(images/about-banner.webp);
}
.hero-visual.granada{
  aspect-ratio: 4592/2583;
  background-image: url(images/alhambra.webp);
}
/* article heroes carry a long title, so the mark steps down */
.hero-visual.post .hero-mark{ font-size: clamp(22px, 3.6vw, 46px); line-height: 1.06; }
.hero-visual.magnifica{
  aspect-ratio: 780/519;
  background-image: url(images/pope-leo-xiv.webp);
}
.hero-visual.preservation{
  aspect-ratio: 3954/2212;
  background-image: url(images/media-preservation.webp);
}
.hero-visual.iran-israel{
  aspect-ratio: 1080/608;
  background-image: url(images/iran-israel-big2026.jpg);
}
.hero-visual.microslop{
  aspect-ratio: 1000/563;
  background-image: url(images/satya-nadella.jpg);
}
.hero-visual.llm-wiki{
  aspect-ratio: 1902/1004;
  background-image: url(images/llm-wiki.webp);
}
.hero-visual.ava{
  aspect-ratio: 1280/720;
  background-image: url(images/ava-banner.gif);
}
.hero-visual.projektllm{
  aspect-ratio: 1341/868;
  background-image: url(images/projektllm.png);
}
.hero-visual.host-media{
  aspect-ratio: 1000/525;
  background-image: url(images/host-media-banner.jpg);
}
.hero-visual.sannmusic{
  aspect-ratio: 1349/873;
  background-image: url(images/sannmusic-banner.webp);
}
.hero-visual.journey{
  aspect-ratio: 1200/801;
  background-image: url(images/journey-dead-banner.webp);
}
.hero-visual.journey-ch1{
  aspect-ratio: 1350/900;
  background-image: url(images/journey-ch1.webp);
}
.hero-visual.journey-ch2{
  aspect-ratio: 1600/1067;
  background-image: url(images/journey-ch2-banner.webp);
}
/* scrim so the hero copy stays legible over the art */
.hero-visual::after{
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(to top, rgba(13,13,13,.92), rgba(13,13,13,.55) 55%, transparent);
  pointer-events: none;
}
.hero-copy{
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 40px;
  z-index: 5;
}
.hero-copy .hero-mark{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 7vw, 90px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
  margin: 0 0 10px;
}
.hero-copy .hero-bio{
  font-size: 16px;
  line-height: 1.55;
  color: #eae6da;
  max-width: 62ch;
  text-shadow: 0 1px 10px rgba(0,0,0,.65);
  margin: 0;
}

@media (max-width: 640px){
  .hero-visual{
    width: calc(100% - 56px);
    min-height: 330px;
    background-position: 68% center;
    border-radius: 0 0 14px 14px;
  }
  .wrap, .foot-row{ max-width: 100%; }
}
@media (max-width: 560px){
  .pillnav{ padding: 0 16px; justify-content: safe center; overflow-x: auto; flex-wrap: nowrap; }
  .pillnav a{ flex-shrink: 0; font-size: 12.5px; padding: 7px 13px; }
}

/* ---------- section head ---------- */
.sec-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.sec-head h2{
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 0;
}
.seclink{
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(239,235,225,.25);
  transition: border-color .15s ease;
}
.seclink:hover{ border-color: var(--rust-2); }
.band.dark + .band.dark{ padding-top: 0; } /* adjacent dark bands share one 88px gap */

/* ---------- service tickets (self-hosted CTA, on a dark band) ---------- */
.ticket-cta{
  position: relative;
  margin-top: 52px;
  color: var(--text-onink);
  text-align: center;
}
#systems{ overflow-x: clip; } /* the fan may reach past the padding, but never causes sideways scroll */
.tc-headline{
  font-family: 'Fraunces', var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: -0.01em;
  margin: 0 0 46px;
}

/* the tickets: a fanned stack, the middle one in front.
   --w is one ticket's width. Every offset below is a multiple of --w, so the whole fan
   resizes as one piece and the text inside is never shrunk (that was the mobile problem). */
.stack{
  --w: clamp(240px, calc((100vw - 24px) / 1.38), 340px);
  --th: 280px;                       /* every ticket is exactly this tall, so they line up.
                                        the rows above the stub add up to 188px, so it gets 92px */
  position: relative;
  width: var(--w);
  height: calc(var(--th) + 20px);    /* ticket + shadow */
  margin: 0 auto;
}
/* each slot holds one ticket + its shadow.
   --x = distance from the middle, in ticket widths (smaller = more overlap)
   --s = its size (1 = full size)
   --z = layer order (higher = closer to you)
   --b = brightness, so the back ones sit a little dimmer
   --d = bounce offset, so they ripple instead of hopping together */
.slot{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateX(calc(var(--w) * var(--x))) scale(var(--s));
  z-index: var(--z);
  /* hairline edge that follows the notches too (paper on paper needs it to read) */
  filter: brightness(var(--b, 1)) drop-shadow(0 0 1px rgba(13,13,13,.55));
}
/* small screens + tablets: tight fan, the side tickets peek out from behind */
.slot:nth-child(1){ --x: -.31; --s: .76; --z: 1; --b: .92; --d: 0s;   }
.slot:nth-child(2){ --x: -.17; --s: .88; --z: 2; --b: .96; --d: -.1s; }
.slot:nth-child(3){ --x: 0;    --s: 1;   --z: 5;           --d: -.2s; } /* middle, in front */
.slot:nth-child(4){ --x: .17;  --s: .88; --z: 2; --b: .96; --d: -.3s; }
.slot:nth-child(5){ --x: .31;  --s: .76; --z: 1; --b: .92; --d: -.4s; }
/* wide screens: the full spread */
@media (min-width: 1040px){
  .slot:nth-child(1){ --x: -1.053; --s: .70; }
  .slot:nth-child(2){ --x: -.565;  --s: .85; }
  .slot:nth-child(4){ --x: .565;   --s: .85; }
  .slot:nth-child(5){ --x: 1.053;  --s: .70; }
}

.ticketContainer{
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Fixed height + fixed rows: the perforation always sits at the same spot (y = 176px),
   which lets the notches be real see-through cut-outs instead of dark circles. */
.ticket{
  --cy: 176px;                       /* centre of the perforation: 54 + 1 + 109 + 12 */
  --hole-l: radial-gradient(circle 12px at 0 var(--cy), #0000 11.5px, #000 12px);
  --hole-r: radial-gradient(circle 12px at 100% var(--cy), #0000 11.5px, #000 12px);
  position: relative;
  width: 100%;
  height: var(--th);
  display: grid;
  grid-template-rows: 54px 1px 109px 24px minmax(0, 1fr);
  animation: bouncingCard .6s ease-out infinite alternate;
  animation-delay: var(--d);
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  overflow: hidden;
  -webkit-mask-image: var(--hole-l), var(--hole-r);
  mask-image: var(--hole-l), var(--hole-r);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.ticketShadow{
  animation: bouncingShadow .6s ease-out infinite alternate;
  animation-delay: var(--d);
  margin-top: 4px;
  width: 95%;
  height: 12px;
  border-radius: 50%;
  background: rgba(239,235,225,.13); /* light spills onto the dark band */
  filter: blur(12px);
}

@keyframes bouncingCard{
  from{ transform: translateY(0); }
  to{ transform: translateY(-18px); }
}
@keyframes bouncingShadow{
  from{ transform: translateY(0); }
  to{ transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce){
  .ticket, .ticketShadow{ animation: none; }
}
.ticket::after{ /* paper fibre */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  opacity: .1;
  mix-blend-mode: multiply;
}
.tk-title{
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  line-height: 27px;
  letter-spacing: .01em;
  padding: 16px 16px 11px;
  text-align: left;
}
.tk-rule{
  height: 1px;
  background: var(--line-light);
  margin: 0 16px;
}
.tk-detail{
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 13px 16px 0;
  min-height: 0;
  text-align: left;
}
.tk-row{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: baseline;
}
.tk-label{
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-onpaper);
}
.tk-value{
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.tk-domain{
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}
/* perforation. The half-circle notches are cut out of the ticket by the mask above,
   so the little spans in the HTML are not needed any more. */
.tk-rip{
  display: flex;
  align-items: center;
}
.tk-notch{ display: none; }
.tk-perf{
  flex: 1;
  margin: 0 14px;
  border-top: 2px dashed var(--line-light);
}
/* the stub: serial number over the date, centred in the space under the perforation */
.tk-subdetail{
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
}
.tk-code{
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--rust);
}
.tk-date{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-onpaper);
  white-space: nowrap;
}
.tk-date sup{ font-size: 8px; }

/* the middle ticket: its message stands in for the detail rows, centred in that space */
.tk-detail-note{ align-content: center; padding: 0 16px; }
.tk-note{
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted-onpaper);
  margin: 0;
  text-align: center;
}
.tk-action{
  display: flex;
  flex-direction: column;
  justify-content: center;  /* the button sits in the middle of the short stub */
  padding: 12px 16px 14px;
  text-align: left;
}
.tk-subscribe{
  display: block;
  width: 100%;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  transition: background .15s ease;
}
.tk-subscribe:hover{ background: var(--rust); }

@media (max-width: 640px){
  .tc-headline{ margin-bottom: 34px; }
}
.panel .seclink{ border-color: var(--line-light); color: var(--text-onpaper); }
.panel .seclink:hover{ border-color: var(--rust); }

/* ---------- archive grid (blogs / projects) ---------- */
.agrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  overflow: hidden;
}
@media (max-width: 640px){
  .agrid{ border-radius: 14px; }
}

.acard{
  position: relative;
  display: block;
  background: var(--ink);
  text-decoration: none;
  color: inherit;
}

.acard .art{
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
}
.acard .overlay{
  width: 100%;
  padding: 14px 18px 16px;
  background: rgba(13,13,13,.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.acard h3{
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--text-onink);
  margin: 0 0 5px;
  transition: opacity .15s ease;
}
.acard:hover h3{ opacity: .75; }
.acard .meta{
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  color: #cfcabd;
  margin: 0;
}

@media (max-width: 640px){
  .agrid{ grid-template-columns: 1fr; }
}

/* odd-count grid: last card spans the row instead of leaving an empty cell */
.agrid > .acard:last-child:nth-child(odd){ grid-column: 1 / -1; }
.agrid > .acard:last-child:nth-child(odd) .art{ aspect-ratio: 2.6/1; }
@media (max-width: 640px){
  .agrid > .acard:last-child:nth-child(odd) .art{ aspect-ratio: 2/1; }
}

/* ---------- rowlink (index serial row) ---------- */
.rowlink{
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 16px 4px;
  border-top: 1px solid var(--line-dark);
  text-decoration: none;
  color: inherit;
  transition: padding-left .15s ease;
}
.rowlink .rl-title{
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.005em;
}
.rowlink .rl-desc{
  font-size: 14px;
  color: var(--muted-onink);
}
.rowlink .rl-status{
  margin-left: auto;
  font-size: 14px;
  color: var(--muted-onink);
  white-space: nowrap;
}
.rowlink:last-child{ border-bottom: 1px solid var(--line-dark); }
.rowlink:hover{ padding-left: 12px; }
.rowlink:hover .rl-title{ color: var(--rust-2); }

@media (max-width: 640px){
  .rowlink{ flex-direction: column; gap: 6px; }
  .rowlink .rl-status{ margin-left: 0; }
}

/* ---------- light panel (blogs / serials section on dark) ---------- */
.panel{
  background: var(--paper);
  color: var(--text-onpaper);
  border-radius: 20px;
  padding: 44px 40px 36px;
}
.panel .rowlink{ border-color: var(--line-light); }
.panel .rowlink .rl-desc,
.panel .rowlink .rl-status{ color: var(--muted-onpaper); }
.panel .rowlink:hover .rl-title{ color: var(--rust); }
@media (max-width: 640px){
  .panel{ border-radius: 14px; padding: 28px 22px 24px; }
}

/* ---------- about ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
}
.about-grid .id-mark{
  font-family: var(--display);
  font-weight: 900;
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.about-grid .id-role{
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted-onpaper);
}
.about-grid .lede{
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.socials{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}
.socials a{
  font-family: var(--mono);
  font-size: 12.5px;
  text-decoration: none;
  color: var(--text-onpaper);
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 2px;
}
.socials a:hover{ border-color: var(--rust); color: var(--rust); }

@media (max-width: 640px){
  .about-grid{ grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- footer wordmark ---------- */
.foot{
  background: var(--ink);
  padding: 40px 28px 32px;
  border-top: 1px solid var(--line-dark);
}
.foot-row{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: min(76vw, 1120px);
  margin: 0 auto;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-mark{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
}
.foot-meta{
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-onink);
  text-align: right;
}
.foot-meta p{ margin: 0 0 4px; }

/* =====================================================================
   inner pages — list pages, posts, projects, chapters, about
   ===================================================================== */

.page-head{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.crumbs{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted-onpaper);
}
.crumbs a{ color: var(--muted-onpaper); text-decoration: none; }
.crumbs a:hover{ color: var(--rust); }
.crumbs .sep{ color: var(--line-light); }

.display{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--text-onpaper);
  margin: 0;
}
.page-head .display{ margin: 0; }

.lede{
  font-size: 17px;
  line-height: 1.7;
  color: #3B382E;
  margin: 0;
}
.meta{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-onpaper);
}
.tag-row{ display: flex; flex-wrap: wrap; gap: 8px; }
.tag{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--rust);
  border: 1px solid var(--line-light);
  border-radius: 100px;
  padding: 3px 10px;
}

/* ---------- prose ---------- */
.body-text{
  font-size: 17px;
  line-height: 1.75;
  color: var(--prose);
  text-align: justify;
  hyphens: auto;
}
.body-text p{ margin: 0 0 1.25em; }
.body-text em{ font-style: italic; }
.body-text hr{
  border: 0;
  border-top: 1px solid var(--line-light);
  width: 72px;
  margin: 2.6em auto;
}
.body-text a,
.project-content a{
  color: var(--rust);
  text-decoration: underline;
  text-decoration-color: var(--line-light);
  text-underline-offset: 3px;
}
.body-text a:hover,
.project-content a:hover{ text-decoration-color: var(--rust); }

/* tables inside prose (serials) */
.table-wrap{ overflow-x: auto; margin: 1.6em 0; }
.body-text table,
.project-content table{
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
  line-height: 1.5;
}
.body-text th,
.body-text td,
.project-content th,
.project-content td{
  border: 1px solid var(--line-light);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.body-text th,
.project-content th{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-onpaper);
  background: var(--paper-2);
  white-space: nowrap;
}

/* ---------- list rows (blogs / projects / serials indexes) ---------- */
.list{
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-light);
}
.list .row{
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-light);
  text-decoration: none;
  font-size: 15px;
  color: var(--text-onpaper);
  transition: padding-left .15s ease;
}
.list .row:hover{ padding-left: 12px; }
.list .row .row-title{ flex: 1; min-width: 0; }
.list .row:hover .row-title{ color: var(--rust); }
.list .row .row-desc{ flex: 1.4; color: var(--muted-onpaper); font-size: 14px; min-width: 0; }
.list .row .row-prefix{ width: 150px; flex-shrink: 0; }
.list .row .row-detail{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-onpaper);
  white-space: nowrap;
}
.list .row .row-meta{
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-onpaper);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.list .row .arr{ color: var(--line-light); }
.list .row:hover .arr{ color: var(--rust); }
.year-label{
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted-onpaper);
  padding: 18px 4px 6px;
}
.tab-num{ font-variant-numeric: tabular-nums; }

/* ---------- about identity ---------- */
.identity{
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-light);
}
.identity .photo{
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border: 1px solid var(--line-light);
  background: var(--paper-2);
}
.identity .name{
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--text-onpaper);
}
.identity .role{
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted-onpaper);
  margin-top: 4px;
}
.section{ margin-top: 48px; }
.kicker{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-onpaper);
  margin: 0;
}
.kicker::after{ content: ""; flex: 1; height: 1px; background: var(--line-light); }
.kicker.bare::after{ display: none; }
.muted{ color: var(--muted-onpaper); }

/* ---------- project pages ---------- */
.project-content h2{
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--text-onpaper);
  margin: 1.8em 0 .6em;
}
.project-content h3{
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-onpaper);
  margin: 1.6em 0 .6em;
}
.project-content p{
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--prose);
  margin: 0 0 1.1em;
  text-align: justify;
  hyphens: auto;
}
.post-note{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-onpaper);
  margin: 32px 0 0;
}
.post-note a{ color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
.project-img{
  width: 100%;
  border: 1px solid var(--line-light);
  margin: 1.5em 0;
}
.spec-block{
  border: 1px solid var(--line-light);
  background: var(--paper-2);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 12.5px;
}
.spec-label{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-onpaper);
  margin-bottom: 10px;
}
.spec-row{ display: flex; gap: 6px; padding: 4px 0; color: var(--prose); }
.spec-key{ font-family: var(--mono); color: var(--muted-onpaper); flex-shrink: 0; }

/* ---------- slideshow (comic post) ---------- */
.slideshow{ position: relative; margin: 32px 0; }
.slideshow .slide{ display: none; }
.slideshow .slide.active{ display: block; }
.slideshow .slide img{ width: 100%; border: 1px solid var(--line-light); }
.slideshow-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-onpaper);
  font-variant-numeric: tabular-nums;
}
.slideshow-controls button{
  font-family: var(--mono);
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--text-onpaper);
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.slideshow-controls button:hover:not(:disabled){ border-color: var(--rust); color: var(--rust); }
.slideshow-controls button:disabled{ opacity: .35; cursor: default; }
.slide-counter{ min-width: 60px; text-align: center; }

/* ---------- chapter navigation ---------- */
.chapter-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}
.chapter-nav a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 45%;
  font-size: 13.5px;
  color: var(--text-onpaper);
  text-decoration: none;
  transition: color .15s ease;
}
.chapter-nav a:hover{ color: var(--rust); }
.chapter-nav .cn-label{
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-onpaper);
  margin-bottom: 3px;
}
.chapter-nav .cn-prev{ text-align: left; }
.chapter-nav .cn-next{ text-align: right; margin-left: auto; }
.chapter-nav .cn-disabled{ visibility: hidden; }
.chapter-nav .arr{ color: var(--line-light); }
.chapter-nav a:hover .arr{ color: var(--rust); }

@media (max-width: 640px){
  .identity{ gap: 16px; }
  .identity .photo{ width: 72px; height: 72px; }
  .identity .name{ font-size: 24px; }
  .list .row{ flex-wrap: wrap; gap: 4px 14px; }
  .list .row .row-prefix{ width: auto; }
  .display{ font-size: 34px; }
  .chapter-nav a{ max-width: 48%; font-size: 12.5px; }
}
