/* Gentry Perry — personal site
   Pulled from the channel art: coral / teal / cream / navy / butter,
   pixel display type, illustrated retro-cozy motifs. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=VT323&display=swap');

@font-face {
  font-family: 'Alte Haas Grotesk Bold';
  src: url('fonts/AlteHaasGroteskBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette */
  --coral:   #E8743E;
  --coral-2: #C95820;
  --teal:    #1F8275;
  --teal-2:  #156358;
  --cream:   #F5E6C8;
  --cream-2: #FCF1D9;
  --paper:   #FDF6E3;
  --navy:    #1B2433;
  --navy-2:  #11182A;
  --slate:   #3D4F66;
  --sky:     #87B0C6;
  --butter:  #F5C84A;
  --ink:     #11182A;

  /* theme (defaults to night) */
  --bg:      var(--navy);
  --bg-2:    var(--navy-2);
  --fg:      var(--cream);
  --fg-dim:  #B7BFCC;
  --rule:    rgba(245, 230, 200, 0.14);
  --card-bg: #232E40;
  --card-bg-2: #2A3850;

  --accent:  var(--coral);

  --mono: 'VT323', ui-monospace, monospace;
  --display: 'Alte Haas Grotesk Bold', 'Alte Haas Grotesk', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;

  --r: 6px;
  --r-lg: 14px;

  --container: 1280px;
}

[data-mode="day"] {
  --bg: #FDF6E3;
  --bg-2: #F5E6C8;
  --fg: #1B2433;
  --fg-dim: #4A5468;
  --rule: rgba(27, 36, 51, 0.14);
  --card-bg: #FFFDF5;
  --card-bg-2: #F2E7C8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* scanlines overlay */
[data-scanlines="on"] .page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.07) 0,
    rgba(0,0,0,0.07) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 9000;
  mix-blend-mode: multiply;
}
[data-mode="day"][data-scanlines="on"] .page::before {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(27,36,51,0.04) 0,
    rgba(27,36,51,0.04) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* custom pixel cursor */
[data-mode] .cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-2px, -2px);
}
.page:has(.cursor) { cursor: none; }
.page:has(.cursor) a, .page:has(.cursor) button, .page:has(.cursor) input, .page:has(.cursor) textarea { cursor: none; }

/* ───── nav ───── */
.nav {
  position: sticky;
  top: 0; z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.nav-mark { color: var(--accent); animation: blink 1.1s steps(2) infinite; font-family: var(--mono); }
.nav-name { letter-spacing: -0.3px; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px;
  justify-content: center;
}
.nav-list a {
  position: relative;
  padding: 4px 2px;
  color: var(--fg-dim);
  transition: color 0.15s;
}
.nav-list a:hover { color: var(--fg); }
.nav-list .is-current a { color: var(--fg); }
.nav-list .is-current a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px; background: var(--accent);
}
.nav-status {
  display: flex; align-items: center; gap: 8px;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 18px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80; box-shadow: 0 0 10px #4ADE80;
}

/* ───── hero ───── */
.hero {
  position: relative;
}
.hero-stage {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(245,230,200,0.08) 1.5px, transparent 1.5px),
    radial-gradient(rgba(245,230,200,0.04) 1px, transparent 1px);
  background-size: 28px 28px, 14px 14px;
  background-position: 0 0, 7px 7px;
}
[data-mode="day"] .hero-bg {
  background-image:
    radial-gradient(rgba(27,36,51,0.1) 1.5px, transparent 1.5px),
    radial-gradient(rgba(27,36,51,0.05) 1px, transparent 1px);
}
.hero-ribbon {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: 70px;
  opacity: 0.85;
}
.hero-ribbon-1 { top: 22%; transform: scaleY(0.7); }
.hero-ribbon-2 { bottom: 12%; transform: scaleY(0.6); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--butter);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.4px;
}
[data-mode="day"] .hero-eyebrow { color: var(--coral-2); }
.hero-title {
  display: grid;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(88px, 11vw, 156px);
  line-height: 0.88;
  margin: 0 0 28px;
  letter-spacing: -4px;
}
.hero-word {
  display: inline-block;
  color: var(--cream);
  text-shadow: 5px 5px 0 var(--accent);
}
[data-mode="day"] .hero-word { color: var(--navy); }
.hero-word-2 {
  color: var(--accent);
  text-shadow: 5px 5px 0 var(--cream);
  margin-left: clamp(16px, 4vw, 60px);
}
[data-mode="day"] .hero-word-2 {
  text-shadow: 5px 5px 0 var(--navy);
}
.hero-tag {
  font-family: var(--body);
  font-size: clamp(17px, 1.3vw, 21px);
  font-weight: 400;
  color: var(--cream);
  max-width: 540px;
  margin-bottom: 36px;
  letter-spacing: 0;
  line-height: 1.5;
  text-wrap: pretty;
}
[data-mode="day"] .hero-tag { color: var(--slate); }
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.hero-right {
  position: relative;
  min-height: 460px;
}
.hero-win {
  position: absolute;
  background: var(--cream);
  border: 2px solid #1B2433;
  box-shadow: 6px 6px 0 #1B2433;
  font-family: var(--mono);
  color: #1B2433;
}
.hero-win-terminal {
  top: 20px;
  right: 0;
  width: 100%;
  max-width: 420px;
  background: #11182A;
  color: #F5E6C8;
}
.hero-win-terminal .win-bar { color: #1B2433; }
.hero-win-terminal .win-bar { border-bottom-color: #1B2433; }
.hero-term {
  padding: 16px 18px 18px;
  font-size: 20px;
  line-height: 1.35;
}
.hero-prompt { color: var(--coral); margin-right: 8px; }
.hero-out { color: #F5E6C8; opacity: 0.85; margin-bottom: 6px; padding-left: 14px; }
.hero-online { color: #4ADE80; opacity: 1; }

.hero-sticker {
  position: absolute;
  top: -10px;
  left: -20px;
  background: var(--butter);
  border: 2px solid #1B2433;
  box-shadow: 4px 4px 0 #1B2433;
  padding: 18px 22px 16px;
  font-family: var(--display);
  font-size: 36px;
  line-height: 0.95;
  color: #1B2433;
  transform: rotate(-7deg);
  text-align: center;
  z-index: 3;
}
.hero-sticker span {
  font-size: 22px;
  display: inline-block;
  margin-top: 4px;
}
.hero-sticker-meta { color: var(--coral-2); }
.hero-sticker-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 62px; height: 18px;
  background: rgba(245,230,200,0.7);
  border: 1px solid rgba(27,36,51,0.25);
}

.hero-pixel-card {
  position: absolute;
  right: -24px;
  bottom: -12px;
  width: 200px;
  background: var(--cream);
  border: 2px solid #1B2433;
  box-shadow: 5px 5px 0 var(--teal);
  transform: rotate(4deg);
  z-index: 2;
}
.hero-pixel-art {
  background: var(--coral);
  padding: 14px;
  border-bottom: 2px solid #1B2433;
}
.hero-pixel-label {
  font-family: var(--mono);
  font-size: 18px;
  text-align: center;
  padding: 8px 8px 10px;
  color: #1B2433;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 0;
  text-transform: lowercase;
  cursor: pointer;
  background: transparent;
  color: inherit;
  letter-spacing: 0.2px;
  transition: transform 0.12s, background 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #1B2433;
  border-color: #1B2433;
  box-shadow: 4px 4px 0 #1B2433;
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #1B2433; }
.btn-ghost {
  border-color: var(--cream);
  color: var(--cream);
  background: rgba(245,230,200,0.04);
}
.btn-ghost:hover { background: var(--cream); color: #1B2433; }

.hero-marquee {
  background: var(--accent);
  color: #1B2433;
  border-top: 2px solid #1B2433;
  border-bottom: 2px solid #1B2433;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 18px;
  padding: 8px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee-track span { padding-right: 48px; letter-spacing: 1px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───── section heads ───── */
.section-head {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(20px, 4vw, 48px);
  margin: 96px auto 36px;
  max-width: var(--container);
}
.section-num {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 1px;
}
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.0;
  margin: 0;
  color: var(--fg);
  letter-spacing: -1.5px;
}
.section-line {
  height: 1px; background: var(--rule);
}
.section-link {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-dim);
  transition: color 0.15s;
}
.section-link:hover { color: var(--accent); }

.blink { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ───── about ───── */
.about {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.win {
  position: relative;
  background: var(--cream);
  color: #1B2433;
  border: 2px solid #1B2433;
  box-shadow: 6px 6px 0 #1B2433;
  border-radius: 0;
}
.win-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 2px solid #1B2433;
  font-family: var(--mono);
  font-size: 18px;
  color: #1B2433;
}
.win-dots { display: flex; gap: 4px; }
.win-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #FCF1D9;
  border: 1.5px solid #1B2433;
}
.win-dots span:nth-child(1) { background: #FF5F57; }
.win-dots span:nth-child(2) { background: #FEBC2E; }
.win-dots span:nth-child(3) { background: #28C840; }
.win-title { text-align: center; }
.win-x { font-size: 20px; line-height: 1; padding: 0 6px; cursor: pointer; }
.win-sub {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(27,36,51,0.2);
  font-family: var(--mono);
  font-size: 18px;
  background: rgba(27,36,51,0.05);
}
.win-body { padding: 22px 24px 26px; }
.sticker {
  position: absolute;
  top: -14px; right: -10px;
  transform: rotate(8deg);
  background: var(--butter);
  border: 2px solid #1B2433;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 18px;
}

.readme p {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 14px;
  line-height: 1.55;
  text-wrap: pretty;
}
.readme p:last-child { margin-bottom: 0; }
.readme .prompt { color: var(--coral); margin-right: 8px; font-family: var(--mono); }
.readme u { text-decoration-color: var(--coral); text-underline-offset: 3px; }
.readme b { font-weight: 700; }

.chips {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
  padding-left: 6px;
}
.tape {
  display: inline-block;
  padding: 4px 14px 8px;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: #1B2433;
  border: 1.5px solid #1B2433;
  box-shadow: 2px 2px 0 #1B2433;
}

.avatar-stack {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 100px;
}
.avatar-frame {
  position: relative;
  border: 2px solid #1B2433;
  box-shadow: 8px 8px 0 #1B2433;
  background: #1F8275;
  overflow: hidden;
}
.avatar-frame img {
  width: 100%; height: auto;
  display: block;
}
.avatar-tag {
  position: absolute;
  bottom: 12px; left: 12px;
  background: var(--cream);
  border: 2px solid #1B2433;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 18px;
  color: #1B2433;
}
.speech {
  background: var(--card-bg);
  border: 2px solid var(--rule);
  padding: 18px 20px;
  position: relative;
}
.speech::before {
  content: "";
  position: absolute;
  top: -10px; left: 40px;
  width: 18px; height: 18px;
  background: var(--card-bg);
  border-left: 2px solid var(--rule);
  border-top: 2px solid var(--rule);
  transform: rotate(45deg);
}
.speech-bubble {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 14px;
}
.speech-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-dim);
}
.speech-meta span:first-child { color: #FF5F57; }

/* ───── projects ───── */
.projects {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 32px;
}
.proj-card {
  display: grid;
  gap: 18px;
}
.proj-window {
  background: var(--card-bg);
  border: 2px solid #1B2433;
  box-shadow: 8px 8px 0 var(--card-accent);
  transition: transform 0.18s, box-shadow 0.18s;
}
.proj-card:hover .proj-window {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--card-accent);
}
.proj-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  background: var(--card-accent);
  padding: 6px 12px;
  border-bottom: 2px solid #1B2433;
}
.proj-path {
  font-family: var(--mono);
  font-size: 18px;
  color: #1B2433;
}
.proj-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.proj-illus svg {
  width: 100%;
  height: 100%;
  display: block;
}
.proj-art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245,230,200,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,230,200,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.proj-art-label {
  position: absolute;
  bottom: 20px; left: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  color: #FCF1D9;
  text-shadow: 3px 3px 0 rgba(27,36,51,0.5);
  letter-spacing: -1px;
  line-height: 1;
  padding-bottom: 4px;
  max-width: 80%;
}
.proj-meta { padding: 0 4px; }
.proj-row {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-dim);
  margin-bottom: 8px;
}
.proj-tag {
  padding: 2px 8px;
  border: 1.5px solid var(--card-accent);
  color: var(--card-accent);
  background: rgba(0,0,0,0.05);
}
.proj-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  margin: 6px 0 10px;
  line-height: 1.05;
  letter-spacing: -1px;
}
.proj-desc {
  font-size: 15px;
  color: var(--fg-dim);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.proj-link {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--card-accent);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

/* ───── words / blog ───── */
.words {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 24px 8px;
}
.note {
  position: relative;
  display: block;
  padding: 22px 20px 24px;
  color: #1B2433;
  border: 2px solid #1B2433;
  box-shadow: 5px 5px 0 rgba(27,36,51,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.note:hover {
  transform: rotate(0deg) translateY(-4px) !important;
  box-shadow: 8px 10px 0 rgba(27,36,51,0.5);
}
.note-tape {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 64px; height: 22px;
  background: rgba(245,230,200,0.7);
  border: 1px solid rgba(27,36,51,0.2);
}
.note-date {
  font-family: var(--mono);
  font-size: 16px;
  color: rgba(27,36,51,0.7);
  margin-bottom: 8px;
}
.note-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 14px;
  line-height: 1.05;
  letter-spacing: -0.8px;
}
.note-excerpt {
  font-size: 14.5px;
  margin: 0 0 16px;
  line-height: 1.45;
  color: #1B2433;
}
.note-arrow {
  position: absolute;
  bottom: 14px; right: 16px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: #1B2433;
  letter-spacing: 0.2px;
}
.note-doodle {
  position: absolute;
  bottom: 16px; right: 16px;
  opacity: 0.6;
}

/* ───── the scroll ───── */
.scroll {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.masonry {
  columns: 4;
  column-gap: 18px;
  padding: 8px;
}
.tile {
  break-inside: avoid;
  margin: 0 0 18px;
  background: var(--card-bg);
  border: 2px solid #1B2433;
  box-shadow: 4px 4px 0 #1B2433;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex; flex-direction: column;
}
.tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
}
.tile-art {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.motif {
  width: 65%; max-width: 220px; height: auto;
  filter: drop-shadow(2px 2px 0 rgba(27,36,51,0.35));
}
.type-motif {
  font-family: var(--display);
  font-size: 96px;
  line-height: 0.9;
  color: #1B2433;
  text-align: center;
}
.type-motif span {
  font-size: 22px;
  color: rgba(27,36,51,0.7);
  letter-spacing: 1px;
}
.tile-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(27,36,51,0.18) 1px, transparent 1px),
    radial-gradient(rgba(245,230,200,0.08) 1px, transparent 1px);
  background-size: 5px 5px, 7px 7px;
  background-position: 0 0, 2px 2px;
  opacity: 0.5;
}
.tile-cap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 17px;
  color: var(--fg);
  background: var(--card-bg);
  border-top: 2px solid #1B2433;
}
.tile-heart { color: var(--accent); }

.scroll-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin: 28px 8px 0;
  font-family: var(--mono);
  font-size: 20px;
}
.muted { color: var(--fg-dim); }

/* ───── now / shelf ───── */
.shelf {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.shelf-card {
  background: var(--card-bg);
  border: 2px solid #1B2433;
  box-shadow: 4px 4px 0 #1B2433;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px;
  align-items: center;
}
.shelf-icon {
  width: 64px; height: 64px;
  border: 2px solid #1B2433;
  display: flex; align-items: center; justify-content: center;
}
.shelf-body { min-width: 0; }
.shelf-kind {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  text-transform: lowercase;
}
.shelf-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 4px 0 4px;
}
.shelf-by {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fg-dim);
  margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shelf-bar {
  position: relative;
  height: 8px;
  background: rgba(245,230,200,0.1);
  border: 1.5px solid #1B2433;
  overflow: hidden;
}
[data-mode="day"] .shelf-bar { background: rgba(27,36,51,0.1); }
.shelf-fill { height: 100%; }
.shelf-prog {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-dim);
  margin-top: 4px;
}

/* ───── apps ───── */
.apps {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.app-tile {
  display: block;
  background: var(--card-bg);
  border: 2px solid #1B2433;
  box-shadow: 6px 6px 0 #1B2433;
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  color: inherit;
}
.app-tile:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--accent);
}
.app-tile-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-bottom: 2px solid #1B2433;
  display: flex; align-items: center; justify-content: center;
  background-image:
    radial-gradient(rgba(27,36,51,0.15) 1px, transparent 1px);
  background-size: 12px 12px;
}
.app-icon {
  width: 64%;
  height: 64%;
  filter: drop-shadow(3px 3px 0 rgba(27,36,51,0.3));
}
.app-tile-meta {
  padding: 14px 16px 16px;
}
.app-tile-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 16px;
  margin-bottom: 6px;
}
.app-tile-kind {
  color: var(--accent);
  text-transform: lowercase;
}
.app-tile-launch {
  color: var(--fg-dim);
}
.app-tile-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 6px;
  letter-spacing: -0.6px;
}
.app-tile-desc {
  margin: 0;
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.4;
  text-wrap: pretty;
}

/* ───── contact ───── */
.hello {
  max-width: var(--container);
  margin: 96px auto 64px;
  padding: 0 clamp(20px, 4vw, 48px);
}
.hello-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  border: 2px solid #1B2433;
  background: var(--card-bg);
  box-shadow: 10px 10px 0 var(--accent);
}
.hello-art {
  overflow: hidden;
  background: var(--coral);
}
.hello-art img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hello-form {
  padding: 44px 44px;
}
.hello-eyebrow {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 14px;
}
.hello-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 3.8vw, 52px);
  line-height: 1.0;
  margin: 0 0 18px;
  letter-spacing: -1.4px;
}
.hello-blurb {
  font-size: 15.5px;
  color: var(--fg-dim);
  margin: 0 0 28px;
  max-width: 480px;
  text-wrap: pretty;
}
.hello-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
.hello-fields .full { grid-column: 1 / -1; }
.hello-fields label {
  display: grid; gap: 6px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fg-dim);
}
.hello-fields input, .hello-fields textarea {
  font-family: var(--mono);
  font-size: 18px;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--rule);
  padding: 10px 12px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
.hello-fields input:focus, .hello-fields textarea:focus {
  border-color: var(--accent);
}
.hello-cta {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.hello-or {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-dim);
}
.hello-or a {
  color: var(--accent);
  border-bottom: 1.5px solid currentColor;
}

/* ───── footer ───── */
.footer {
  margin-top: 80px;
  border-top: 2px solid var(--rule);
  background: var(--bg-2);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.foot-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.8px;
}
.foot-tag {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-dim);
  margin-top: 8px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.foot-cols ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.foot-cols li { line-height: 1.3; }
.foot-cols li.foot-h {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.foot-cols a {
  color: var(--fg);
  border-bottom: 1px dotted transparent;
  transition: border-color 0.15s;
}
.foot-cols a:hover { border-bottom-color: var(--accent); }
.footer-banner {
  background: var(--accent);
  color: #1B2433;
  font-family: var(--mono);
  font-size: 18px;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid #1B2433;
}
.footer-banner span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee2 28s linear infinite;
  letter-spacing: 1.5px;
}
@keyframes marquee2 { to { transform: translateX(-100%); } }

/* ───── subpage chrome (used by blog posts, projects, apps index) ───── */
.sub-nav {
  position: sticky; top: 0; z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
}
.sub-nav-brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.4px; }
.sub-nav-mark { color: var(--accent); }
.sub-nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px; justify-content: center;
}
.sub-nav-list a {
  position: relative;
  padding: 4px 2px;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.sub-nav-list a:hover { color: var(--fg); }
.sub-nav-list .is-current a { color: var(--fg); }
.sub-nav-list .is-current a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px; background: var(--accent);
}
.sub-nav-back {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-dim);
  text-decoration: none;
}
.sub-nav-back:hover { color: var(--accent); }

/* ───── blog post ───── */
.post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 48px) 0;
}
.post-crumbs {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-dim);
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.post-crumbs a { color: var(--accent); text-decoration: none; }
.post-crumbs a:hover { text-decoration: underline; }
.post-tag {
  display: inline-block;
  padding: 2px 10px 4px;
  font-family: var(--mono);
  font-size: 16px;
  color: #1B2433;
  background: var(--butter);
  border: 1.5px solid #1B2433;
  text-transform: lowercase;
}
.post-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -2.5px;
  margin: 0 0 24px;
  text-wrap: balance;
}
.post-meta {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--fg-dim);
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 2px dashed var(--rule);
}
.post-meta strong { color: var(--fg); font-weight: 400; }
.post-meta .dot { color: var(--accent); }
.post-cover {
  background: var(--card-bg);
  border: 2px solid #1B2433;
  box-shadow: 8px 8px 0 var(--accent);
  margin: 0 0 56px;
  padding: 6px;
}
.post-cover-illus {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(27,36,51,0.2);
}
.post-cover-illus svg { width: 100%; height: 100%; display: block; }
.post-cover-inner {
  height: 280px;
  display: flex; align-items: center; justify-content: center;
  background-size: 28px 28px;
  background-position: 0 0;
  border: 1px solid rgba(245,230,200,0.2);
}
.post-cover-glyph {
  font-family: var(--display);
  font-size: 140px;
  line-height: 1;
  color: rgba(245,230,200,0.85);
  text-shadow: 6px 6px 0 rgba(27,36,51,0.4);
}

.post-body {
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--fg);
  text-wrap: pretty;
}
.post-body p {
  margin: 0 0 22px;
}
.post-body .lead {
  font-family: var(--body);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 32px;
  padding: 18px 22px;
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
}
.post-body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -1.4px;
  margin: 48px 0 18px;
  color: var(--fg);
}
.post-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin: 36px 0 14px;
  color: var(--accent);
}
.post-body blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--cream);
  color: #1B2433;
  border: 2px solid #1B2433;
  box-shadow: 5px 5px 0 #1B2433;
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1.4;
  position: relative;
}
.post-body blockquote::before {
  content: "❝";
  position: absolute;
  top: -14px; left: 18px;
  background: var(--accent);
  color: #1B2433;
  padding: 2px 8px;
  border: 2px solid #1B2433;
  font-family: var(--display);
  font-size: 22px;
}
.post-body ul, .post-body ol {
  margin: 0 0 24px;
  padding-left: 28px;
}
.post-body li { margin-bottom: 8px; }
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}
.post-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--card-bg);
  padding: 2px 8px;
  border: 1px solid var(--rule);
}
.post-body figure {
  margin: 36px 0;
  background: var(--card-bg);
  border: 2px solid #1B2433;
  box-shadow: 6px 6px 0 #1B2433;
  padding: 6px;
}
.post-body figure .fig-art {
  display: flex; align-items: center; justify-content: center;
  height: 220px;
  font-family: var(--display);
  font-size: 60px;
  color: rgba(245,230,200,0.7);
}
.post-body figure figcaption {
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fg-dim);
  border-top: 1px dashed var(--rule);
}

.post-end {
  margin: 56px 0 0;
  padding: 22px 0 22px;
  border-top: 2px dashed var(--rule);
  border-bottom: 2px dashed var(--rule);
  text-align: center;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--accent);
}
.post-share {
  display: flex; justify-content: space-between; align-items: center;
  margin: 28px 0;
  font-family: var(--mono);
  font-size: 18px;
  flex-wrap: wrap; gap: 12px;
}
.post-share .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-share .tags span {
  padding: 2px 10px;
  border: 1.5px solid var(--rule);
  color: var(--fg-dim);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 48px 0 80px;
}
.post-nav a {
  display: block;
  padding: 18px 22px;
  background: var(--card-bg);
  border: 2px solid #1B2433;
  box-shadow: 5px 5px 0 #1B2433;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--mono);
  transition: transform 0.18s, box-shadow 0.18s;
}
.post-nav a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--accent);
}
.post-nav .label {
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 6px;
}
.post-nav .pn-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.6px;
}
.post-nav .next { text-align: right; }

/* ───── project case study ───── */
.case-hero {
  position: relative;
  border-bottom: 2px solid var(--rule);
}
.case-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 48px) 32px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.case-meta-row {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-dim);
  margin-bottom: 18px;
}
.case-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -3px;
  margin: 0 0 18px;
  text-wrap: balance;
}
.case-blurb {
  font-family: var(--body);
  font-size: 17px;
  color: var(--fg-dim);
  margin: 0 0 28px;
  max-width: 480px;
  text-wrap: pretty;
  line-height: 1.55;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  font-family: var(--mono);
}
.case-stat {
  background: var(--card-bg);
  border: 2px solid var(--rule);
  padding: 12px 14px;
}
.case-stat .k {
  font-size: 16px;
  color: var(--fg-dim);
}
.case-stat .v {
  font-size: 22px;
  color: var(--fg);
  margin-top: 4px;
}
.case-art {
  border: 2px solid #1B2433;
  box-shadow: 10px 10px 0 var(--accent);
  background: var(--card-bg);
  padding: 8px;
}
.case-art-illus {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.case-art-illus svg { width: 100%; height: 100%; display: block; }
.case-art-inner {
  height: 400px;
  display: flex; align-items: center; justify-content: center;
  background-image:
    linear-gradient(to right, rgba(245,230,200,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,230,200,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
}
.case-art-label {
  font-family: var(--display);
  font-size: 82px;
  color: rgba(245,230,200,0.85);
  text-shadow: 4px 4px 0 rgba(27,36,51,0.4);
  letter-spacing: -1px;
  text-align: center;
  padding: 0 24px;
  line-height: 0.95;
}

.case-section {
  max-width: var(--container);
  margin: 64px auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.case-section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -1.5px;
  margin: 0 0 24px;
  color: var(--fg);
}
.case-section p {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  max-width: 720px;
  color: var(--fg);
  text-wrap: pretty;
}
.case-section.tight p { margin-bottom: 16px; }
.case-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.case-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.case-frame {
  background: var(--card-bg);
  border: 2px solid #1B2433;
  box-shadow: 6px 6px 0 #1B2433;
  padding: 6px;
}
.case-frame-illus {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background-image:
    linear-gradient(to right, rgba(245,230,200,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,230,200,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.case-frame-illus svg { width: 100%; height: 100%; display: block; }
.case-frame-illus .case-frame-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(27,36,51,0.85);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 14px;
  padding: 2px 8px;
}
.case-frame figcaption {
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fg-dim);
  border-top: 1px dashed var(--rule);
}

.case-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.case-step {
  background: var(--card-bg);
  border: 2px solid #1B2433;
  box-shadow: 4px 4px 0 var(--accent);
  padding: 18px 18px 20px;
}
.case-step .num {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
}
.case-step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.6px;
  margin: 4px 0 8px;
}
.case-step p {
  font-size: 14.5px;
  color: var(--fg-dim);
  margin: 0;
  text-wrap: pretty;
}

.case-quote {
  max-width: 920px;
  margin: 80px auto;
  padding: 0 clamp(20px, 4vw, 48px);
  text-align: center;
}
.case-quote q {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--fg);
  quotes: none;
  display: block;
  text-wrap: balance;
}
.case-quote .who {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
  margin-top: 18px;
}

.case-palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.case-swatch {
  aspect-ratio: 1 / 1;
  border: 2px solid #1B2433;
  display: flex; align-items: flex-end;
  padding: 8px;
  font-family: var(--mono);
  font-size: 14px;
  color: #1B2433;
  box-shadow: 3px 3px 0 #1B2433;
}
.case-swatch.dark { color: var(--cream); }

/* ───── apps index page ───── */
.apps-page-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 48px) 24px;
}
.apps-page-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -3px;
  margin: 14px 0 18px;
}
.apps-page-hero p {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 400;
  color: var(--fg-dim);
  max-width: 560px;
  margin: 0 0 28px;
  line-height: 1.5;
}
.apps-page-filters {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 18px;
  margin-bottom: 36px;
}
.apps-filter {
  padding: 6px 14px;
  background: var(--card-bg);
  border: 2px solid var(--rule);
  cursor: default;
}
.apps-filter.is-current {
  background: var(--accent);
  color: #1B2433;
  border-color: #1B2433;
}
.apps-page-grid {
  max-width: var(--container);
  margin: 0 auto 80px;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ───── shared subpage hero + filters + sub-section ───── */
.page-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 48px) 24px;
}
.page-hero-eyebrow {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.5px;
}
.page-hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -3px;
  margin: 14px 0 22px;
  text-wrap: balance;
}
.page-hero-blurb {
  font-family: var(--body);
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 580px;
  margin: 0 0 32px;
  line-height: 1.55;
  text-wrap: pretty;
}
.page-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 0 0 8px;
}
.page-filter {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 16px;
  background: var(--card-bg);
  color: var(--fg);
  border: 1.5px solid var(--rule);
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 0.2px;
}
.page-filter:hover { border-color: var(--accent); color: var(--accent); }
.page-filter.is-current {
  background: var(--accent);
  color: #1B2433;
  border-color: #1B2433;
}

.page-grid-section {
  max-width: var(--container);
  margin: 36px auto 64px;
  padding: 0 clamp(20px, 4vw, 48px);
}
.page-grid-section-wide {
  max-width: 1400px;
}

.page-section {
  max-width: var(--container);
  margin: 56px auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.page-sub-h {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.page-sub-num {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 1px;
}
.page-sub-h h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.8px;
}
.page-sub-line {
  height: 1px; background: var(--rule);
}
.page-sub-count {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--fg-dim);
}

/* ───── post list (used on blog page for older items) ───── */
.post-list {
  display: grid;
  gap: 4px;
  border-top: 2px solid var(--rule);
}
.post-list-row {
  display: grid;
  grid-template-columns: 140px 2.4fr 1fr 80px 80px;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s, padding 0.18s;
}
.post-list-row:not(.is-disabled):hover {
  background: var(--card-bg);
  padding-left: 18px;
}
.post-list-row.is-disabled { opacity: 0.55; }
.post-list-date {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--fg-dim);
}
.post-list-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.5px;
  color: var(--fg);
}
.post-list-tag span {
  display: inline-block;
  padding: 2px 10px 3px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.4px;
  border: 1.5px solid #1B2433;
}
.post-list-meta {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--fg-dim);
}
.post-list-link {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent);
  text-align: right;
}
.post-list-row.is-disabled .post-list-link { color: var(--fg-dim); }
@media (max-width: 720px) {
  .post-list-row { grid-template-columns: 1fr; gap: 4px; }
  .post-list-tag, .post-list-meta { display: none; }
}

/* ───── project card fallback (no illustration yet) ───── */
.proj-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background-image:
    radial-gradient(rgba(245,230,200,0.15) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.proj-fallback-tag {
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  color: #FCF1D9;
  text-shadow: 4px 4px 0 rgba(27,36,51,0.4);
  letter-spacing: -1px;
}
.proj-card.is-disabled {
  opacity: 0.7;
  pointer-events: none;
}
.proj-card.is-disabled .proj-link { color: var(--fg-dim); }

/* ───── index cards (home) ───── */
.index-cards {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.index-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--card-bg);
  border: 2px solid #1B2433;
  box-shadow: 8px 8px 0 #1B2433;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.index-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--card-accent);
}
.index-card-art {
  position: relative;
  aspect-ratio: 16 / 8;
  border-bottom: 2px solid #1B2433;
  overflow: hidden;
}
.index-card-art svg { width: 100%; height: 100%; display: block; }
.index-card-meta {
  padding: 22px 24px 26px;
  display: grid;
  gap: 8px;
}
.index-card-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 16px;
  margin-bottom: 4px;
}
.index-card-kind {
  color: var(--card-accent);
  letter-spacing: 0.5px;
}
.index-card-count {
  color: var(--fg-dim);
}
.index-card-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1;
  margin: 0;
  letter-spacing: -1.6px;
}
.index-card-desc {
  font-family: var(--body);
  font-size: 16px;
  color: var(--fg-dim);
  margin: 4px 0 12px;
  line-height: 1.5;
  text-wrap: pretty;
  max-width: 480px;
}
.index-card-go {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--card-accent);
  letter-spacing: 0.5px;
}

/* ───── 3-col index grid override ───── */
.index-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ───── hero about collapsible ───── */
.hero-tag-sub {
  font-size: 0.85em;
  opacity: 0.7;
}
.hero-about {
  margin-top: 28px;
  max-width: 520px;
  animation: fadeSlideIn 0.22s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-about .win { font-size: 15px; }
.hero-about .readme a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ───── footer contact + login ───── */
.foot-contact {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 17px;
}
.foot-contact a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}
.footer-login {
  display: flex;
  justify-content: flex-end;
  padding: 0 clamp(20px, 4vw, 48px) 14px;
}
.login-btn {
  font-family: var(--mono);
  font-size: 14px;
  background: transparent;
  border: none;
  color: var(--rule);
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.4;
  transition: opacity 0.2s, color 0.2s;
}
.login-btn:hover {
  opacity: 1;
  color: var(--accent);
}

/* ───── login modal ───── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 42, 0.82);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: 420px;
  margin: 20px;
  animation: fadeSlideIn 0.22s ease;
}
.login-form {
  display: grid;
  gap: 16px;
}
.login-prompt {
  font-family: var(--mono);
  font-size: 20px;
  color: #1B2433;
}
.login-prompt .prompt { color: var(--coral); margin-right: 8px; }
.login-input {
  font-family: var(--mono);
  font-size: 22px;
  background: #1B2433;
  color: var(--cream);
  border: 2px solid #1B2433;
  padding: 10px 14px;
  outline: none;
  width: 100%;
  letter-spacing: 3px;
  transition: border-color 0.15s;
}
.login-input:focus { border-color: var(--accent); }
.login-err {
  font-family: var(--mono);
  font-size: 18px;
  color: #FF5F57;
}
.login-actions {
  display: flex;
  gap: 10px;
}

/* ───── make page bento grid ───── */
.make-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 80px;
}
.make-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}
.make-breadcrumb {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--fg-dim);
  flex: 1;
}
.make-breadcrumb span { color: var(--accent); }
.bento {
  columns: 3;
  column-gap: 20px;
}
@media (max-width: 900px) { .bento { columns: 2; } }
@media (max-width: 560px) { .bento { columns: 1; } }
.bento-item {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--card-bg);
  border: 2px solid #1B2433;
  box-shadow: 5px 5px 0 #1B2433;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.bento-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--accent);
}
.bento-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 2px solid #1B2433;
  font-family: var(--mono);
  font-size: 17px;
  background: var(--card-bg-2);
}
.bento-type {
  color: var(--accent);
  flex: 1;
}
.bento-date { color: var(--fg-dim); font-size: 15px; }
.bento-body { padding: 18px 18px 20px; }
.bento-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}
.bento-preview {
  font-family: var(--body);
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bento-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid #1B2433;
}
.bento-folder .bento-bar { background: var(--teal); color: #1B2433; }
.bento-folder .bento-type { color: #1B2433; }
.bento-folder-count {
  font-family: var(--mono);
  font-size: 15px;
  color: rgba(27,36,51,0.7);
  padding: 0 18px 14px;
}
.bento-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--fg-dim);
  border: 2px dashed var(--rule);
}

/* ───── scroll page ───── */
.scroll-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 80px;
}
.scroll-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 24px;
  flex-wrap: wrap;
}
.scroll-folders {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.scroll-folder-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--card-bg);
  border: 2px solid #1B2433;
  box-shadow: 3px 3px 0 #1B2433;
  font-family: var(--mono);
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
}
.scroll-folder-chip:hover,
.scroll-folder-chip.is-current {
  background: var(--accent);
  color: #1B2433;
  transform: translate(-1px, -1px);
}
.scroll-grid {
  columns: 4;
  column-gap: 16px;
}
@media (max-width: 1100px) { .scroll-grid { columns: 3; } }
@media (max-width: 720px)  { .scroll-grid { columns: 2; } }
.scroll-img-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border: 2px solid #1B2433;
  box-shadow: 4px 4px 0 #1B2433;
  overflow: hidden;
  background: var(--card-bg);
  transition: transform 0.18s, box-shadow 0.18s;
}
.scroll-img-item:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--accent);
}
.scroll-img-item img {
  width: 100%;
  display: block;
}
.scroll-empty {
  text-align: center;
  padding: 80px 20px;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--fg-dim);
  border: 2px dashed var(--rule);
}

/* ───── edit mode badge ───── */
.edit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent);
  color: #1B2433;
  border: 2px solid #1B2433;
  box-shadow: 3px 3px 0 #1B2433;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
}
.edit-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1B2433;
  animation: blink 1.1s steps(2) infinite;
}
.btn-new {
  background: var(--teal);
  color: var(--cream);
  border-color: #1B2433;
  box-shadow: 3px 3px 0 #1B2433;
}
.btn-new:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 #1B2433; }

/* ═══════════════════════════════════════
   POST EDITOR
   ═══════════════════════════════════════ */

.ed-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 48px) 80px;
}

/* ── header bar ── */
.ed-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  font-family: var(--mono);
  font-size: 18px;
}
.ed-back {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.15s;
}
.ed-back:hover { opacity: 0.7; }

/* ── title ── */
.ed-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin: 0 0 14px;
  text-wrap: balance;
}
.ed-title--editable {
  cursor: text;
  border-bottom: 2px dashed var(--rule);
  padding-bottom: 4px;
  transition: border-color 0.15s;
}
.ed-title--editable:hover { border-color: var(--accent); }
.ed-title-input {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.0;
  letter-spacing: -2.5px;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent);
  color: var(--fg);
  width: 100%;
  outline: none;
  padding: 0 0 4px;
  margin: 0 0 14px;
}

/* ── meta ── */
.ed-meta {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--fg-dim);
  margin-bottom: 48px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ed-meta-sep { opacity: 0.7; }

/* ── block list ── */
.ed-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ed-empty {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--fg-dim);
  text-align: center;
  padding: 60px 0;
  border: 2px dashed var(--rule);
}

/* ── individual block ── */
.ed-block {
  margin-bottom: 28px;
}
.ed-block--editable {
  border: 2px solid var(--rule);
  transition: border-color 0.15s;
}
.ed-block--editable:focus-within {
  border-color: var(--accent);
}
.ed-block--editable:hover {
  border-color: rgba(232, 116, 62, 0.4);
}

/* block top bar (type label + controls) */
.ed-block-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  background: var(--card-bg-2);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 15px;
}
.ed-block-type {
  color: var(--accent);
  letter-spacing: 0.5px;
}
.ed-block-controls {
  display: flex;
  gap: 4px;
}
.ed-ctrl {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 16px;
  padding: 2px 8px;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.ed-ctrl:hover {
  background: var(--card-bg);
  color: var(--fg);
  border-color: var(--fg-dim);
}
.ed-ctrl--del:hover {
  background: #FF5F57;
  color: #fff;
  border-color: #FF5F57;
}

/* block body */
.ed-block-body {
  padding: 18px 20px 20px;
}
.ed-block-body--img { padding: 0; }

/* ── text block ── */
.ed-text-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  outline: none;
  padding: 0;
  min-height: 60px;
}
.ed-text-view {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  min-height: 24px;
}
.ed-text-view p { margin: 0 0 0.6em; }
.ed-text-view p:last-child { margin-bottom: 0; }
.ed-text-view--clickable {
  cursor: text;
  border-radius: 2px;
}
.ed-text-view--clickable:hover {
  background: rgba(245,230,200,0.04);
}
[data-mode="day"] .ed-text-view--clickable:hover {
  background: rgba(27,36,51,0.04);
}
.ed-placeholder {
  color: var(--fg-dim);
  font-style: italic;
  opacity: 0.6;
}
.ed-saving {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  opacity: 0.7;
  margin-left: 8px;
  animation: blink 1.1s steps(2) infinite;
}

/* ── image block ── */
.ed-image {
  width: 100%;
  display: block;
}
.ed-upload-zone {
  border: 2px dashed var(--rule);
  padding: 36px 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 17px;
  color: var(--fg-dim);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ed-upload-zone:hover {
  border-color: var(--accent);
  background: rgba(232,116,62,0.05);
  color: var(--fg);
}
.ed-replace-btn {
  display: block;
  width: 100%;
  padding: 8px;
  background: var(--card-bg-2);
  border: none;
  border-top: 1px solid var(--rule);
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  transition: background 0.12s, color 0.12s;
}
.ed-replace-btn:hover {
  background: var(--accent);
  color: #1B2433;
}

/* ── video block ── */
.ed-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.ed-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── audio block ── */
.ed-audio-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ed-audio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 17px;
  color: var(--fg);
}
.ed-audio-icon {
  color: var(--accent);
  font-size: 20px;
}
.ed-audio-size {
  font-size: 14px;
  color: var(--fg-dim);
  margin-left: 4px;
}
.ed-audio {
  width: 100%;
  accent-color: var(--accent);
}

/* ── link block ── */
.ed-url-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.ed-url-input {
  flex: 1;
  font-family: var(--mono);
  font-size: 17px;
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--rule);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.ed-url-input:focus { border-color: var(--accent); }
.ed-link-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ed-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--card-bg);
  border: 2px solid var(--rule);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s, background 0.15s;
}
.ed-link-card:hover {
  border-color: var(--accent);
  background: var(--card-bg-2);
}
.ed-link-card-inner { flex: 1; min-width: 0; }
.ed-link-host {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.ed-link-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-link-preview {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ed-link-url {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-link-arrow {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── add block button + picker ── */
.ed-add-wrap {
  margin: 8px 0 16px;
}
.ed-add-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 2px dashed var(--rule);
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 17px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ed-add-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,116,62,0.04);
}
.block-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 2px solid var(--accent);
  animation: fadeSlideIn 0.16s ease;
}
.block-picker-btn {
  padding: 8px 16px;
  background: var(--bg);
  border: 1.5px solid var(--rule);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.block-picker-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1B2433;
}
.block-picker-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--fg-dim);
  font-size: 22px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}
.block-picker-close:hover { color: var(--fg); }

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

/* ───── archive page ───── */
.archive-tabs {
  display: flex; gap: 8px; margin-bottom: 18px;
}
.archive-tabs .tab {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  background: var(--card-bg);
  color: var(--fg);
  border: 2px solid var(--rule);
  cursor: pointer;
}
.archive-tabs .tab.is-current {
  background: var(--accent);
  color: #1B2433;
  border-color: #1B2433;
}
.archive-tag-filter {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 15px;
  margin-bottom: 32px;
}
.archive-section {
  max-width: var(--container);
  margin: 0 auto 64px;
  padding: 0 clamp(20px, 4vw, 48px);
}
.archive-section-h {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.archive-section-num {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 1px;
}
.archive-section-h h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  margin: 0;
  letter-spacing: -1px;
}
.archive-section-line {
  height: 1px;
  background: var(--rule);
}
.archive-section-count {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fg-dim);
}

.archive-table {
  display: grid;
  gap: 4px;
  border-top: 2px solid var(--rule);
}
.arch-row {
  display: grid;
  grid-template-columns: 80px 80px 2.4fr 1fr 1.6fr 80px;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
  position: relative;
}
.arch-row:not(.arch-head):hover {
  background: var(--card-bg);
}
.arch-row.is-disabled {
  opacity: 0.55;
  cursor: default;
}
.arch-head {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--bg-2);
  padding: 8px;
  border-bottom: 2px solid var(--rule);
}
.arch-thumb {
  width: 80px;
  height: 50px;
  background: var(--card-bg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #1B2433;
}
.arch-thumb svg { width: 100%; height: 100%; display: block; }
.arch-thumb-glyph {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.arch-thumb-note {
  position: relative;
  background-image:
    linear-gradient(to bottom, rgba(27,36,51,0.08) 1px, transparent 1px);
  background-size: 100% 8px;
}
.arch-thumb-date {
  font-family: var(--mono);
  font-size: 14px;
  color: #1B2433;
  text-align: center;
  padding: 4px 6px;
  background: rgba(245,230,200,0.7);
  border: 1.5px solid #1B2433;
}
.arch-cell { font-family: var(--body); font-size: 15px; line-height: 1.3; }
.arch-year {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--fg-dim);
}
.arch-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.4px;
  color: var(--fg);
}
.arch-tag span {
  display: inline-block;
  padding: 2px 10px 3px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.4px;
  border: 1.5px solid #1B2433;
}
.arch-kind {
  color: var(--fg-dim);
}
.arch-link {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent);
  text-align: right;
}
.arch-row.is-disabled .arch-link { color: var(--fg-dim); }
@media (max-width: 900px) {
  .arch-row { grid-template-columns: 60px 1fr; grid-template-rows: auto auto; gap: 4px 14px; padding: 14px 8px; }
  .arch-thumb { grid-row: 1 / span 2; width: 60px; height: 60px; }
  .arch-head { display: none; }
  .arch-year, .arch-kind, .arch-link { font-size: 13px; }
  .arch-title { font-size: 18px; }
  .arch-tag { display: none; }
}

/* ───── responsive (loose) ───── */
@media (max-width: 1100px) {
  .proj-grid, .about-grid, .hello-grid { grid-template-columns: 1fr; }
  .hero-content { grid-template-columns: 1fr; gap: 32px; }
  .hero-right { min-height: 360px; max-width: 460px; }
  .masonry { columns: 3; }
  .notes-grid { grid-template-columns: repeat(2, 1fr); }
  .shelf-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .avatar-stack { position: static; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .case-hero-inner { grid-template-columns: 1fr; }
  .case-art-inner { height: 280px; }
  .case-process { grid-template-columns: repeat(2, 1fr); }
  .case-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .apps-page-grid { grid-template-columns: repeat(2, 1fr); }
  .case-palette { grid-template-columns: repeat(3, 1fr); }
  .post-nav { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-list, .nav-status { display: none; }
  .masonry { columns: 2; }
  .notes-grid { grid-template-columns: 1fr; }
  .shelf-grid { grid-template-columns: 1fr; }
  .hello-fields { grid-template-columns: 1fr; }
  .hello-form { padding: 28px 24px; }
  .hero-sticker { font-size: 26px; padding: 14px 16px; }
  .hero-sticker span { font-size: 18px; }
  .hero-pixel-card { width: 150px; }
  .apps-grid { grid-template-columns: 1fr; }
}
