/* ==========================================================================
   Explorer Hong Kong — editorial stylesheet
   Paper, ink, rules. No framework, no preprocessor.
   ========================================================================== */

:root {
  --paper: #fdfcf9;
  --paper-2: #f5f2eb;
  --card: #ffffff;
  --ink: #14140f;
  --ink-2: #3b3b34;
  --muted: #6b6b61;
  --rule: #e3ded2;
  --rule-strong: #cdc6b6;
  --accent-fill: #b5342a;
  --accent: color-mix(in srgb, var(--accent-fill) 84%, #000);
  --accent-soft: rgba(181, 52, 42, 0.08);
  --max: 1180px;
  --narrow: 720px;
  --radius: 3px;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(20, 20, 15, 0.05);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --paper: #0f100e;
  --paper-2: #171815;
  --card: #141512;
  --ink: #f0ede5;
  --ink-2: #cbc8bf;
  --muted: #98958b;
  --rule: #2a2b25;
  --rule-strong: #3a3b33;
  --accent: color-mix(in srgb, var(--accent-fill) 55%, #fff);
  --accent-soft: rgba(224, 110, 96, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--accent-fill);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 28px;
}

.wrap-narrow {
  width: 100%;
  max-width: var(--narrow);
  margin-inline: auto;
  padding-inline: 28px;
}

@media (max-width: 620px) {
  .wrap,
  .wrap-narrow {
    padding-inline: 18px;
  }
}

.read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 95;
  pointer-events: none;
}
.read-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-fill);
  transition: width 0.1s linear;
}

/* ---------- masthead ---------------------------------------------------- */

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 20px 14px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1;
  letter-spacing: -0.015em;
  font-weight: 500;
  white-space: nowrap;
}
.wordmark em {
  font-style: italic;
  font-weight: 600;
}
.wordmark-mark {
  width: 12px;
  height: 12px;
  flex: none;
  background: var(--accent-fill);
  transform: translateY(-1px);
}

.masthead-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dateline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dateline-city {
  color: var(--ink);
  font-weight: 600;
}
.dateline-sep {
  opacity: 0.5;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.icon-btn:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="light"] .i-moon,
[data-theme="dark"] .i-sun {
  display: none;
}

.menu-btn {
  display: none;
}

/* ---------- section bar ------------------------------------------------- */

.sectionbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}

.sectionbar-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sectionbar-inner::-webkit-scrollbar {
  display: none;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.section-link:hover {
  color: var(--ink);
}
.section-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.section-dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--c, var(--accent-fill));
  border-radius: 1px;
}

@media (max-width: 760px) {
  .menu-btn {
    display: grid;
  }
  .sectionbar {
    position: static;
    display: none;
    border-top: 0;
  }
  .masthead.is-open .sectionbar {
    display: block;
  }
  .sectionbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 6px 14px;
  }
  .section-link {
    padding: 11px 2px;
    border-bottom: 1px solid var(--rule);
  }
  .dateline {
    display: none;
  }
  .masthead-inner {
    padding-block: 16px 12px;
  }
}

/* ---------- shared type ------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c, var(--accent));
}
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 1px;
}
.kicker:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kicker-sm {
  margin-bottom: 6px;
  font-size: 0.66rem;
}

.rail-title {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.tag:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.tag-plain {
  border-style: dashed;
}

/* ---------- cover art --------------------------------------------------- */

.cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: var(--c, var(--accent-fill));
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  isolation: isolate;
}

.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-initial {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  color: #fff;
  opacity: 0.32;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2%);
}

/* ---------- home: hero -------------------------------------------------- */

.hero {
  padding-top: 24px;
  padding-bottom: 12px;
}

.hero-img {
  width: 100%;
  height: clamp(200px, 32vw, 420px);
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--shadow);
}

/* ---------- home: lead -------------------------------------------------- */

.lead-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 56px;
  padding-top: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--ink);
}

.lead-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.6vw, 3.55rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.lead-title a:hover {
  color: var(--accent);
}

.lead-stand {
  margin: 0 0 18px;
  max-width: 54ch;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lead-cover-link {
  display: block;
}
.lead-cover {
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
  transition: filter 0.3s var(--ease);
}
.lead-cover-link:hover .lead-cover {
  filter: brightness(1.06);
}

.rail-latest {
  border-left: 1px solid var(--rule);
  padding-left: 40px;
  align-self: start;
}

.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.latest-list li:first-child {
  padding-top: 0;
}
.latest-link {
  display: block;
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.28;
  letter-spacing: -0.005em;
}
.latest-link:hover {
  color: var(--accent);
}
.latest-meta {
  margin: 5px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-more {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.rail-more:hover span {
  display: inline-block;
  transform: translateX(3px);
  transition: transform 0.18s var(--ease);
}

@media (max-width: 900px) {
  .lead-wrap {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 28px;
  }
  .rail-latest {
    border-left: 0;
    border-top: 1px solid var(--ink);
    padding-left: 0;
    padding-top: 24px;
  }
}

/* ---------- rails + cards ---------------------------------------------- */

.rail {
  padding-top: 48px;
}

.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}
.rail-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rail-head a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  white-space: nowrap;
}
.rail-head a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 34px 30px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-width: 0;
}
.card-link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.card-cover {
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
  transition: filter 0.3s var(--ease);
}
.card-link:hover .card-cover {
  filter: brightness(1.06);
}
.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.card-link:hover .card-title {
  color: var(--accent);
}
.card-stand {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .grid,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- newsletter -------------------------------------------------- */

.newsletter {
  padding-top: 56px;
  padding-bottom: 8px;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  align-items: center;
  gap: 30px;
  padding: 30px clamp(22px, 3vw, 40px);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
}
.newsletter-inner h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.42rem;
  letter-spacing: -0.015em;
}
.newsletter-inner p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}
.newsletter-pending {
  font-size: 0.85rem !important;
  color: var(--muted);
}
.newsletter-pending code {
  font-size: 0.85em;
  padding: 2px 5px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}
.newsletter-form button {
  padding: 11px 20px;
  border: 0;
  border-radius: 3px;
  background: var(--accent-fill);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-form button:hover {
  filter: brightness(1.08);
}
.newsletter-note {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 0.9rem;
}
@media (max-width: 760px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---------- section / page heads --------------------------------------- */

.section-head {
  padding-top: 44px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 34px;
}
.section-head h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.section-blurb {
  margin: 0;
  max-width: 62ch;
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--muted);
}
.empty {
  padding: 40px 0 80px;
  color: var(--muted);
}
.section-grid {
  padding-bottom: 72px;
}

/* ---------- story ------------------------------------------------------- */

.story-head {
  padding-top: 46px;
  padding-bottom: 26px;
}
.story-head h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.story-stand {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.story-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.byline-name {
  color: var(--ink);
  font-weight: 600;
}
.story-author-bio {
  margin: 10px 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 54ch;
}

.story-cover {
  max-width: 980px;
  margin: 8px auto 0;
  padding-inline: 28px;
}
.story-cover-art {
  aspect-ratio: 21 / 9;
  box-shadow: var(--shadow);
}
.story-cover .cover-initial {
  font-size: clamp(4rem, 10vw, 8rem);
}

.story-body {
  padding-top: 40px;
}

.story-foot {
  padding-top: 40px;
  padding-bottom: 72px;
}
.story-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.story-tags-label {
  margin-right: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.related {
  padding-top: 46px;
}
.related .rail-head {
  margin-bottom: 22px;
}

/* ---------- prose ------------------------------------------------------- */

.prose {
  font-family: var(--serif);
  font-size: 1.13rem;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: var(--narrow);
  margin-inline: auto;
  padding-inline: 28px;
}

.prose > * + * {
  margin-top: 1.1em;
}
.prose > p {
  margin: 0;
}

.prose > p:first-of-type::first-letter {
  float: left;
  font-size: 3.5em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--ink);
  font-weight: 600;
}

.prose h2,
.prose h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.018em;
  scroll-margin-top: 92px;
}
.prose h2 {
  margin: 1.9em 0 0.1em;
  font-size: 1.5rem;
}
.prose h3 {
  margin: 1.6em 0 0.1em;
  font-size: 1.18rem;
}
.prose h4 {
  margin: 1.5em 0 0.1em;
  font-size: 0.82rem;
  font-family: var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-fill) 60%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.prose a:hover {
  color: var(--accent);
}
.prose strong {
  color: var(--ink);
}
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.3em;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.prose li::marker {
  color: var(--muted);
}

.prose blockquote {
  margin: 1.7em 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--accent-fill);
  color: var(--ink);
  font-size: 1.24rem;
  line-height: 1.5;
}
.prose blockquote p {
  margin: 0;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.15em 0.35em;
  border-radius: 3px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.prose pre {
  margin: 1.4em 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 4px;
  background: #14150f;
  color: #ece9e0;
  font-size: 0.86rem;
  line-height: 1.6;
}
.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.prose hr {
  margin: 2.2em auto;
  border: 0;
  border-top: 1px solid var(--rule);
}
.prose img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  margin: 1.6em 0;
}

@media (max-width: 620px) {
  .prose {
    padding-inline: 18px;
    font-size: 1.08rem;
  }
  .story-cover {
    padding-inline: 18px;
  }
}

/* ---------- latest archive --------------------------------------------- */

.latest-archive {
  padding-bottom: 80px;
}
.month-title {
  margin: 34px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}
.month-group:first-child .month-title {
  margin-top: 0;
}
.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.story-list a {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.18s var(--ease), color 0.18s var(--ease);
}
.story-list a:hover {
  padding-left: 8px;
  color: var(--accent);
}
.story-list-date {
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.story-list-kicker {
  display: block;
  margin-bottom: 2px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.story-list-title {
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.3;
}
.story-list-time {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .story-list a {
    grid-template-columns: 58px 1fr;
  }
  .story-list-time {
    display: none;
  }
}

/* ---------- about / 404 ------------------------------------------------ */

.about-body {
  padding-bottom: 80px;
}
.notfound {
  padding-top: 80px;
  padding-bottom: 110px;
}
.notfound-code {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 15vw, 8rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--rule-strong);
}
.notfound h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* ---------- footer ------------------------------------------------------ */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--ink);
  background: var(--paper-2);
  padding-top: 44px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 34px;
}
.footer-word {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
}
.footer-note {
  margin: 0 0 8px;
  max-width: 38ch;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}
.footer-cols {
  display: flex;
  gap: 56px;
}
.footer-cols > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-label {
  margin: 0 0 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-cols a {
  font-size: 0.9rem;
  color: var(--ink-2);
}
.footer-cols a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 26px;
  border-top: 1px solid var(--rule);
}
.footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
@media (max-width: 760px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-cols {
    gap: 40px;
  }
}

/* ---------- search ------------------------------------------------------ */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: start center;
  padding: 10vh 18px 18px;
  background: color-mix(in srgb, #0a0a08 55%, transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.search-overlay[hidden] {
  display: none;
}
.search-modal {
  width: 100%;
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent-fill);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.5);
  animation: pop 0.16s var(--ease);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--rule);
}
.search-bar svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 17px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.search-bar input:focus {
  outline: none;
}
.search-close {
  padding: 5px 9px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 56vh;
  overflow-y: auto;
}
.search-results li a {
  display: block;
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule);
}
.search-results li:last-child a {
  border-bottom: 0;
}
.search-results li a:hover,
.search-results li.is-active a {
  background: var(--paper-2);
}
.search-result-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--ink);
}
.search-result-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-hint {
  margin: 0;
  padding: 4px 18px 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
