/* ============================================================
   tamplat 1 — Frontend CSS  (redesign 2026-05-23, Lumi)
   Tone: Editorial-authority — warm ink + generous whitespace
   Font: Source Serif 4 (display/body-serif) + Inter (sans/meta)
   ============================================================ */

/* ── 1. Design tokens ──────────────────────────────────────── */
:root {
  /* Surface ladder */
  --bg:          #fafaf8;   /* warm off-white — 60% dominant */
  --surface-1:   #f4f3f0;   /* subtle warm grey */
  --surface-2:   #ebe9e4;   /* card bg / aside */
  --surface-hr:  #dedad4;   /* divider */

  /* Ink */
  --ink:         #1a1a18;   /* near-black */
  --ink-2:       #3d3d38;   /* secondary text */
  --ink-3:       #7a7a73;   /* muted / meta */
  --ink-4:       #b0ae a7;  /* placeholder */

  /* Accent — warm amber, muted (PBN authority, not SaaS flashy) */
  --accent:      #b45309;   /* amber-700 */
  --accent-soft: #fef3c7;   /* amber-100 */
  --accent-mid:  #d97706;   /* amber-600 */
  --brand-blue:  #2563eb;   /* prose links */

  /* Typography */
  --font-serif:  'Source Serif 4', 'Georgia', serif;
  --font-sans:   'Inter', 'system-ui', sans-serif;

  /* Spacing rhythm (8pt) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Reading width */
  --prose-width: 720px;
  --wide-width:  1400px;

  /* Transitions */
  --ease-out: cubic-bezier(0, 0, 0.58, 1);
}

/* ── 2. Base reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── 3. Header ─────────────────────────────────────────────── */
.t1-header {
  background: var(--bg);
  border-bottom: 1px solid var(--surface-hr);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(250, 250, 248, 0.92);
}

.t1-header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.t1-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}
.t1-logo:hover { color: var(--accent); transition: color 200ms var(--ease-out); }

.t1-logo-img { height: 36px; width: auto; }

.t1-tagline {
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

.t1-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  font-size: 0.875rem;
  font-weight: 500;
}

.t1-nav a {
  color: var(--ink-2);
  transition: color 200ms var(--ease-out);
  white-space: nowrap;
}
.t1-nav a:hover { color: var(--accent); }

.t1-search-form {
  display: flex;
  align-items: center;
  gap: 0;
}
.t1-search-input {
  background: var(--surface-1);
  border: 1px solid var(--surface-hr);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  color: var(--ink);
  width: 180px;
  transition: width 250ms var(--ease-out), border-color 200ms;
  outline: none;
}
.t1-search-input:focus {
  width: 240px;
  border-color: var(--accent-mid);
}
.t1-search-input::placeholder { color: var(--ink-3); }

/* Stacked header variant */
.t1-header-stacked {
  background: var(--bg);
  border-bottom: 3px double var(--surface-hr);
}
.t1-header-stacked-top {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
}
.t1-header-stacked-logo {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.t1-header-stacked-tagline {
  font-size: 0.75rem;
  color: var(--ink-3);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: var(--sp-2);
}
.t1-header-stacked-nav {
  border-top: 1px solid var(--surface-hr);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(8px);
}
.t1-header-stacked-nav-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.t1-nav-stacked {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.t1-nav-stacked a {
  color: var(--ink-2);
  transition: color 200ms;
}
.t1-nav-stacked a:hover { color: var(--accent); }

/* Centered header variant */
.t1-header-centered {
  background: var(--bg);
  border-bottom: 1px solid var(--surface-hr);
}
.t1-header-centered-top {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-6) var(--sp-4);
  text-align: center;
}
.t1-header-centered-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.t1-header-centered-nav {
  border-top: 1px solid var(--surface-1);
  background: var(--surface-1);
}
.t1-header-centered-nav-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 10px var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-6);
  font-size: 0.875rem;
  font-weight: 500;
}
.t1-header-centered-nav a {
  color: var(--ink-2);
  transition: color 200ms;
}
.t1-header-centered-nav a:hover { color: var(--accent); }

/* Mobile hamburger */
.t1-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  color: var(--ink);
}
.t1-burger:hover { background: var(--surface-1); }
.t1-mobile-nav {
  border-top: 1px solid var(--surface-1);
  background: var(--bg);
}
.t1-mobile-nav-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: 0.9rem;
}
.t1-mobile-nav a { color: var(--ink-2); }
.t1-mobile-nav a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .t1-nav, .t1-search-form, .t1-nav-stacked { display: none; }
  .t1-burger { display: block; }
}

/* ── 4. Hero Sections ──────────────────────────────────────── */
/* hero: banner (fullbleed image) */
.t1-hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  height: 420px;
  margin-bottom: var(--sp-12);
}
@media (min-width: 768px) { .t1-hero-banner { height: 520px; } }

.t1-hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t1-hero-banner-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #7c3aed 100%);
}
.t1-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,5,0.85) 0%, rgba(10,8,5,0.3) 55%, transparent 100%);
}
.t1-hero-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-8) var(--sp-8);
  max-width: 860px;
}
.t1-hero-banner-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: var(--sp-4);
  width: fit-content;
}
.t1-hero-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.t1-hero-banner-excerpt {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.65;
  margin-top: var(--sp-3);
  max-width: 640px;
}
.t1-hero-banner-meta {
  margin-top: var(--sp-4);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

/* hero: stack (editorial centered) */
.t1-hero-stack {
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--sp-12);
}
.t1-hero-stack-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
  font-weight: 600;
}
.t1-hero-stack-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.t1-hero-stack-title a:hover { color: var(--accent); transition: color 200ms; }
.t1-hero-stack-excerpt {
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-top: var(--sp-4);
}
.t1-hero-stack-meta {
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-top: var(--sp-4);
}

/* hero: classic (split grid) */
.t1-hero-classic {
  margin-bottom: var(--sp-12);
}
.t1-hero-classic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 768px) {
  .t1-hero-classic-grid { grid-template-columns: 1fr 1fr; }
}
.t1-hero-classic-img {
  aspect-ratio: 810/424;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
}
.t1-hero-classic-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.t1-hero-classic-wrap:hover .t1-hero-classic-img img { transform: scale(1.04); }
.t1-hero-classic-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: var(--sp-3);
}
.t1-hero-classic-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
  transition: color 200ms;
}
.t1-hero-classic-wrap:hover .t1-hero-classic-title { color: var(--accent); }
.t1-hero-classic-excerpt {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-top: var(--sp-3);
}
.t1-hero-classic-meta {
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-top: var(--sp-4);
}

/* hero: minimal */
.t1-hero-minimal {
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--surface-hr);
  margin-bottom: var(--sp-8);
}
.t1-hero-minimal-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-1);
}
.t1-hero-minimal-title {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--ink);
}

/* ── 5. Post Cards ─────────────────────────────────────────── */
/* image-top (default) */
.t1-card {
  display: block;
  text-decoration: none;
}
.t1-card-img-wrap {
  aspect-ratio: 375/220;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
}
.t1-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms var(--ease-out);
}
.t1-card:hover .t1-card-img-wrap img { transform: scale(1.04); }
.t1-card-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-hr) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.t1-card-body { padding-top: var(--sp-3); }
.t1-card-title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  transition: color 200ms;
}
.t1-card:hover .t1-card-title { color: var(--accent); }
.t1-card-meta {
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: var(--sp-2);
}
.t1-card-excerpt {
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: var(--sp-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* image-left */
.t1-card-hl {
  display: flex;
  gap: var(--sp-4);
  text-decoration: none;
}
.t1-card-hl-img {
  flex-shrink: 0;
  width: 120px;
  height: 88px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--surface-2);
}
@media (min-width: 768px) {
  .t1-card-hl-img { width: 148px; height: 104px; }
}
.t1-card-hl-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms var(--ease-out);
}
.t1-card-hl:hover .t1-card-hl-img img { transform: scale(1.05); }
.t1-card-hl-body { flex: 1; min-width: 0; }
.t1-card-hl-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  transition: color 200ms;
}
.t1-card-hl:hover .t1-card-hl-title { color: var(--accent); }
.t1-card-hl-excerpt {
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t1-card-hl-meta { font-size: 0.7rem; color: var(--ink-3); margin-top: 6px; }

/* title-only */
.t1-card-to {
  border-bottom: 1px solid var(--surface-hr);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.t1-card-to-meta { font-size: 0.7rem; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.t1-card-to-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  transition: color 200ms;
}
.t1-card-to-title a:hover { color: var(--accent); }

/* image-bg */
.t1-card-bg {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 8px;
}
.t1-card-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.t1-card-bg:hover img { transform: scale(1.06); }
.t1-card-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,5,0.85) 0%, rgba(10,8,5,0.2) 55%, transparent 100%);
}
.t1-card-bg-body {
  position: absolute;
  inset: 0;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.t1-card-bg-meta { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; margin-bottom: 4px; }
.t1-card-bg-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* bordered (editorial) */
.t1-card-bd {
  border: 1px solid var(--surface-hr);
  background: var(--bg);
  padding: var(--sp-4);
  transition: background 200ms, transform 200ms var(--ease-out);
}
.t1-card-bd:hover { background: var(--surface-1); transform: translateY(-2px); }
.t1-card-bd-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: var(--sp-3);
}
.t1-card-bd-img img { width: 100%; height: 100%; object-fit: cover; }
.t1-card-bd-title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  transition: color 200ms;
}
.t1-card-bd:hover .t1-card-bd-title { color: var(--accent); }
.t1-card-bd-foot {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--surface-hr);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* ── 6. Section headings ───────────────────────────────────── */
.t1-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--ink);
}
.t1-section-head h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.t1-section-head-link {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  transition: color 200ms;
}
.t1-section-head-link:hover { color: var(--ink); text-decoration: underline; }

/* Section head for title-only style */
.t1-section-head-to {
  border-bottom: 3px double var(--ink);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-4);
}

/* ── 7. Breadcrumbs ────────────────────────────────────────── */
.t1-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-bottom: var(--sp-6);
}
.t1-breadcrumb a { color: var(--ink-3); transition: color 200ms; }
.t1-breadcrumb a:hover { color: var(--accent); }
.t1-breadcrumb-sep { color: var(--surface-hr); }

/* ── 8. Single post layout ─────────────────────────────────── */
.t1-article-wrap {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
}

/* Article header */
.t1-article-category-link {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  transition: color 200ms;
}
.t1-article-category-link:hover { color: var(--ink); }

.t1-article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-6);
}

.t1-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--ink-3);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--surface-hr);
  margin-bottom: var(--sp-8);
}
.t1-article-meta a { color: var(--ink-2); transition: color 200ms; }
.t1-article-meta a:hover { color: var(--accent); }
.t1-article-meta-sep { color: var(--surface-hr); }

.t1-article-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
  margin-bottom: var(--sp-8);
}
.t1-article-img img { width: 100%; height: 100%; object-fit: cover; }

/* Sponsored notice */
.t1-sponsored {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.875rem;
  color: var(--accent);
  border-radius: 0 4px 4px 0;
  margin-bottom: var(--sp-6);
}

/* ── 9. Prose typography ───────────────────────────────────── */
.t1-prose {
  font-family: var(--font-serif);
  font-size: 1.09375rem;
  line-height: 1.78;
  color: var(--ink-2);
}
.t1-prose p { margin-bottom: 1.5em; }
.t1-prose p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5em;
  font-weight: 700;
  float: left;
  line-height: 0.82;
  margin-right: 0.1em;
  margin-top: 0.08em;
  color: var(--ink);
}
.t1-prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
  padding-top: 0.5em;
  border-top: 1px solid var(--surface-hr);
}
.t1-prose h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.t1-prose h4 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}
.t1-prose a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-decoration-color: rgba(37,99,235,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 200ms;
}
.t1-prose a:hover { text-decoration-color: var(--brand-blue); }
.t1-prose ul { list-style: disc; padding-left: 1.6em; margin-bottom: 1.2em; }
.t1-prose ol { list-style: decimal; padding-left: 1.6em; margin-bottom: 1.2em; }
.t1-prose li { margin-bottom: 0.4em; }
.t1-prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75em 0 0.75em 1.25em;
  margin: 1.8em 0;
  font-style: italic;
  color: var(--ink-2);
  font-size: 1.1em;
  line-height: 1.7;
}
.t1-prose blockquote p { margin-bottom: 0; }
.t1-prose code {
  background: var(--surface-1);
  border: 1px solid var(--surface-hr);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: var(--accent);
}
.t1-prose pre {
  background: #0f0e0c;
  color: #e8e5df;
  padding: 1.2em 1.4em;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875em;
  line-height: 1.6;
  margin: 1.8em 0;
}
.t1-prose pre code { background: transparent; border: none; padding: 0; color: inherit; font-size: 1em; }
.t1-prose img {
  border-radius: 8px;
  margin: 1.8em auto;
  max-width: 100%;
}
.t1-prose figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-top: -0.8em;
  margin-bottom: 1.8em;
  font-family: var(--font-sans);
}
.t1-prose hr {
  border: none;
  border-top: 1px solid var(--surface-hr);
  margin: 2.5em 0;
}
.t1-prose strong { color: var(--ink); font-weight: 700; }
.t1-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  margin: 1.8em 0;
}
.t1-prose th {
  background: var(--surface-1);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6em 0.75em;
  text-align: left;
  border-bottom: 2px solid var(--surface-hr);
}
.t1-prose td {
  padding: 0.6em 0.75em;
  border-bottom: 1px solid var(--surface-1);
}

/* ── 10. Author card ───────────────────────────────────────── */
.t1-author-card {
  margin-top: var(--sp-12);
  padding: var(--sp-8);
  background: var(--surface-1);
  border: 1px solid var(--surface-hr);
  border-radius: 8px;
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
}
.t1-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--surface-hr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}
.t1-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t1-author-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.t1-author-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}
.t1-author-name a { transition: color 200ms; }
.t1-author-name a:hover { color: var(--accent); }
.t1-author-bio {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-top: 4px;
}

/* ── 11. Tags row ──────────────────────────────────────────── */
.t1-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
}
.t1-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border: 1px solid var(--surface-hr);
  border-radius: 20px;
  color: var(--ink-2);
  background: var(--surface-1);
  transition: background 200ms, color 200ms, border-color 200ms;
}
.t1-tag:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-soft);
}

/* ── 12. Table of Contents (ToC) ───────────────────────────── */
.t1-toc {
  background: var(--surface-1);
  border: 1px solid var(--surface-hr);
  border-radius: 8px;
  padding: var(--sp-6);
  font-size: 0.875rem;
  margin-bottom: var(--sp-8);
}
.t1-toc-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-3);
}
.t1-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.t1-toc li {
  counter-increment: toc;
  padding: 3px 0;
}
.t1-toc a {
  color: var(--ink-2);
  transition: color 200ms;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.t1-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.7rem;
  color: var(--ink-3);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.t1-toc a:hover { color: var(--accent); }

/* ── 13. Related posts ─────────────────────────────────────── */
.t1-related {
  margin-top: var(--sp-12);
  padding-top: var(--sp-12);
  border-top: 1px solid var(--surface-hr);
}
.t1-related-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--sp-6);
  text-align: center;
}
.t1-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 640px) {
  .t1-related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 14. Comments section ──────────────────────────────────── */
.t1-comments {
  margin-top: var(--sp-12);
  padding-top: var(--sp-12);
  border-top: 1px solid var(--surface-hr);
  scroll-margin-top: 80px;
}
.t1-comments-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: var(--sp-6);
  color: var(--ink);
}
.t1-comment {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--surface-1);
}
.t1-comment-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: 4px;
}
.t1-comment-name { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.t1-comment-date { font-size: 0.75rem; color: var(--ink-3); }
.t1-comment-body { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.65; }

/* Comment form */
.t1-comment-form { margin-top: var(--sp-8); }
.t1-comment-form-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--sp-4);
  color: var(--ink);
}
.t1-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 640px) { .t1-form-row { grid-template-columns: 1fr; } }
.t1-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-4);
}
.t1-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}
.t1-input,
.t1-textarea {
  background: var(--bg);
  border: 1px solid var(--surface-hr);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--ink);
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
  width: 100%;
}
.t1-input:focus,
.t1-textarea:focus {
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(180,83,9,0.12);
}
.t1-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.t1-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 200ms, transform 150ms;
}
.t1-btn-submit:hover { background: var(--accent); transform: translateY(-1px); }
.t1-btn-submit:active { transform: translateY(0); }

/* ── 15. Sidebar ───────────────────────────────────────────── */
.t1-sidebar-section {
  background: var(--surface-1);
  border: 1px solid var(--surface-hr);
  border-radius: 8px;
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.t1-sidebar-heading {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  border-bottom: 1px solid var(--surface-hr);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.t1-sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.875rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--surface-1);
  transition: color 200ms;
}
.t1-sidebar-cat-item:hover { color: var(--accent); }
.t1-sidebar-cat-count {
  font-size: 0.75rem;
  color: var(--ink-3);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 10px;
}
.t1-sidebar-cat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-right: 6px;
}
.t1-sidebar-archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* newspaper-bordered sidebar */
.t1-sidebar-newspaper {
  border: 2px solid var(--ink);
  padding: var(--sp-4);
  margin-bottom: var(--sp-6);
  font-family: var(--font-serif);
}
.t1-sidebar-newspaper-head {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-family: var(--font-sans);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-3);
  border-bottom: 2px solid var(--ink);
}
.t1-sidebar-np-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed var(--surface-hr);
  font-size: 0.9375rem;
}
.t1-sidebar-np-item:last-child { border-bottom: none; }
.t1-sidebar-np-item a { color: var(--ink); transition: color 200ms; font-style: italic; }
.t1-sidebar-np-item a:hover { color: var(--accent); }

/* Sticky left sidebar for single post */
.t1-sticky-sidebar {
  font-size: 0.875rem;
  color: var(--ink-2);
}
.t1-sticky-sidebar-section {
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--surface-1);
}
.t1-sticky-sidebar-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.t1-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--surface-hr);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--ink-2);
  background: var(--bg);
  transition: background 200ms, color 200ms;
}
.t1-share-btn:hover { background: var(--surface-1); color: var(--accent); }

/* ── 16. Category page ─────────────────────────────────────── */
.t1-category-header {
  background: var(--surface-1);
  border-bottom: 1px solid var(--surface-hr);
  padding: var(--sp-8) var(--sp-6);
  margin-bottom: var(--sp-8);
}
.t1-category-header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}
.t1-category-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-2);
}
.t1-category-name {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--ink);
}
.t1-category-desc {
  color: var(--ink-2);
  font-size: 1rem;
  margin-top: var(--sp-2);
  max-width: 600px;
}

/* ── 17. 404 / empty states ────────────────────────────────── */
.t1-empty {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  color: var(--ink-3);
}
.t1-empty-num {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  color: var(--surface-hr);
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.t1-empty-title {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.t1-empty-sub {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 460px;
  margin: 0 auto var(--sp-6);
  color: var(--ink-2);
}

/* ── 18. Pagination ────────────────────────────────────────── */
.t1-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-8);
}
.t1-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--surface-hr);
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--ink-2);
  background: var(--bg);
  transition: background 200ms, color 200ms, border-color 200ms;
}
.t1-page-btn:hover { background: var(--surface-1); border-color: var(--accent); color: var(--accent); }
.t1-page-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.t1-page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ── 19. Footer ────────────────────────────────────────────── */

/* Shared footer link strip */
.t1-footer-link-strip {
  border-top: 1px solid var(--surface-hr);
  background: var(--surface-1);
  padding: var(--sp-4) var(--sp-6);
}
.t1-footer-link-strip-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 2.2;
}
.t1-footer-link-strip a { color: var(--ink-3); transition: color 200ms; }
.t1-footer-link-strip a:hover { color: var(--accent); }
.t1-footer-link-sep { color: var(--surface-hr); }

/* light-minimal footer */
.t1-footer-minimal {
  background: var(--bg);
  border-top: 1px solid var(--surface-hr);
  padding: var(--sp-6) var(--sp-6);
}
.t1-footer-minimal-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: 0.875rem;
}
.t1-footer-minimal-copy { color: var(--ink-3); }
.t1-footer-minimal-nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.t1-footer-minimal-nav a { color: var(--ink-3); transition: color 200ms; }
.t1-footer-minimal-nav a:hover { color: var(--accent); }

/* cream-bordered footer */
.t1-footer-cream {
  background: #fdf8f0;
  border-top: 3px solid var(--accent);
  margin-top: var(--sp-16);
}
.t1-footer-cream-grid {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  border-bottom: 1px solid #e8dfd0;
}
@media (min-width: 768px) {
  .t1-footer-cream-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.t1-footer-cream-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}
.t1-footer-cream-tagline { font-size: 0.9rem; color: var(--ink-2); line-height: 1.65; }
.t1-footer-col-head {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--ink);
  margin-bottom: var(--sp-3);
}
.t1-footer-col-link {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-2);
  padding: 3px 0;
  transition: color 200ms;
}
.t1-footer-col-link:hover { color: var(--accent); }
.t1-footer-cream-related {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-6);
  font-size: 0.875rem;
  line-height: 2;
  color: var(--ink-3);
}
.t1-footer-cream-related a { color: var(--accent); transition: color 200ms; }
.t1-footer-cream-related a:hover { color: var(--ink); }
.t1-footer-cream-bottom {
  padding: var(--sp-3) var(--sp-6);
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-3);
  background: #f7ede0;
}

/* dark-4col footer */
.t1-footer-dark {
  background: #17161a;
  color: #b0aea8;
  margin-top: var(--sp-16);
}
.t1-footer-dark-grid {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 768px) {
  .t1-footer-dark-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.t1-footer-dark-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--sp-2);
}
.t1-footer-dark-tagline { font-size: 0.875rem; line-height: 1.65; color: rgba(255,255,255,0.5); }
.t1-footer-dark-col-head {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-3);
}
.t1-footer-dark-col-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  padding: 3px 0;
  transition: color 200ms;
}
.t1-footer-dark-col-link:hover { color: #fff; }
.t1-footer-dark-link-strip {
  background: #0d0c0e;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.t1-footer-dark-link-strip-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-6);
  font-size: 0.8125rem;
  line-height: 2;
  color: rgba(255,255,255,0.35);
}
.t1-footer-dark-link-strip a { color: #e87c3b; transition: color 200ms; }
.t1-footer-dark-link-strip a:hover { color: #f59e0b; }
.t1-footer-dark-bottom {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-6);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* colored-inline footer */
.t1-footer-colored {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  margin-top: var(--sp-16);
}
.t1-footer-colored-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-10) var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-6);
}
.t1-footer-colored-brand { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.t1-footer-colored-tagline { font-size: 0.875rem; max-width: 360px; }
.t1-footer-colored-nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: 0.875rem; align-items: center; }
.t1-footer-colored-nav a { color: rgba(255,255,255,0.7); transition: color 200ms; }
.t1-footer-colored-nav a:hover { color: #fff; }
.t1-footer-colored-link-strip {
  border-top: 1px solid rgba(255,255,255,0.12);
}
.t1-footer-colored-link-strip-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-6);
  font-size: 0.8125rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.5);
}
.t1-footer-colored-link-strip a { color: rgba(255,255,255,0.6); transition: color 200ms; }
.t1-footer-colored-link-strip a:hover { color: #fff; }
.t1-footer-colored-bottom {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-6);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* newspaper-cols footer */
.t1-footer-np {
  background: #f0ece4;
  color: #1a1914;
  margin-top: var(--sp-16);
  border-top: 6px double #1a1914;
}
.t1-footer-np-grid {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  font-family: var(--font-serif);
  border-bottom: 1px solid #d0c9be;
}
@media (min-width: 768px) { .t1-footer-np-grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.t1-footer-np-brand { font-size: 1.5rem; font-weight: 900; font-style: italic; }
.t1-footer-np-tagline { font-size: 0.875rem; font-style: italic; color: #4a4940; margin-top: 4px; }
.t1-footer-np-est { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: #7a7a6a; margin-top: var(--sp-4); font-family: var(--font-sans); }
.t1-footer-np-col-head {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-3);
  border-bottom: 2px solid #1a1914;
}
.t1-footer-np-link {
  display: block;
  font-style: italic;
  padding: 3px 0;
  font-size: 0.9375rem;
  color: #1a1914;
  transition: color 200ms;
  border-bottom: 1px dashed #d0c9be;
}
.t1-footer-np-link:hover { color: var(--accent); }
.t1-footer-np-link-strip {
  background: #1a1914;
  color: rgba(255,255,255,0.5);
}
.t1-footer-np-link-strip-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-6);
  font-size: 0.8125rem;
  line-height: 2;
}
.t1-footer-np-link-strip a { color: rgba(255,255,255,0.6); transition: color 200ms; }
.t1-footer-np-link-strip a:hover { color: #fff; }
.t1-footer-np-bottom {
  text-align: center;
  padding: var(--sp-3) var(--sp-6);
  font-size: 0.75rem;
  color: #6b6b5a;
  font-style: italic;
  font-family: var(--font-serif);
}

/* ── 20. Write for us / static page ───────────────────────── */
.t1-page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
}
.t1-page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: var(--sp-6);
}

/* ── 21. Banner widget ─────────────────────────────────────── */
.t1-banner-wrap {
  margin: var(--sp-6) 0;
  text-align: center;
}
.t1-banner-wrap img { max-width: 100%; border-radius: 4px; }

/* ── 22. Search page ───────────────────────────────────────── */
.t1-search-hero {
  background: var(--surface-1);
  border-bottom: 1px solid var(--surface-hr);
  padding: var(--sp-8) var(--sp-6);
  margin-bottom: var(--sp-8);
}
.t1-search-hero-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}
.t1-search-hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sp-2);
}
.t1-search-hero-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
}
.t1-search-form-full {
  margin-top: var(--sp-4);
  display: flex;
  gap: var(--sp-2);
  max-width: 480px;
}
.t1-search-form-full input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--surface-hr);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--ink);
  outline: none;
  transition: border-color 200ms;
}
.t1-search-form-full input:focus { border-color: var(--accent-mid); }
.t1-search-form-full button {
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms;
}
.t1-search-form-full button:hover { background: var(--accent); }

/* ── 23. Flash messages (frontend) ────────────────────────── */
.t1-flash {
  padding: var(--sp-3) var(--sp-4);
  border-radius: 6px;
  font-size: 0.9375rem;
  margin-bottom: var(--sp-4);
}
.t1-flash-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.t1-flash-error   { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }

/* ── 24. Utility ───────────────────────────────────────────── */
.t1-container { max-width: var(--wide-width); margin: 0 auto; padding: 0 var(--sp-6); }
.t1-container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--sp-6); }
.t1-section { padding: var(--sp-8) 0; }

/* Grid helpers */
.t1-grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
@media (min-width: 640px) { .t1-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .t1-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.t1-grid-3 { display: grid; grid-template-columns: repeat(1, 1fr); gap: var(--sp-5); }
@media (min-width: 640px) { .t1-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .t1-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.t1-grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 640px) { .t1-grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* Sidebar layout wrappers */
.t1-layout-right { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); }
.t1-layout-left  { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); }
@media (min-width: 1024px) {
  .t1-layout-right { grid-template-columns: 1fr 300px; }
  .t1-layout-left  { grid-template-columns: 300px 1fr; }
}
.t1-layout-left-main { order: 1; }
@media (min-width: 1024px) { .t1-layout-left-main { order: 2; } }

/* Read progress bar */
.t1-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 100;
  transition: width 100ms linear;
}

/* Scroll to top */
.t1-scroll-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms, transform 300ms;
  z-index: 40;
}
.t1-scroll-top.visible { opacity: 1; transform: translateY(0); }
.t1-scroll-top:hover { background: var(--accent); }

/* ── 25. Prose class compatibility shim ────────────────────── */
/* existing .prose selectors from old code — upgraded to t1-prose values */
.prose { font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.78; color: var(--ink-2); }
.prose h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-top: 2em; margin-bottom: 0.6em; }
.prose h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-top: 1.8em; margin-bottom: 0.5em; }
.prose p  { line-height: 1.78; margin-bottom: 1.4em; }
.prose a  { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 2px; }
.prose ul { list-style: disc; padding-left: 1.6em; margin-bottom: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.6em; margin-bottom: 1.2em; }
.prose img { border-radius: 8px; margin: 1.8em auto; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.25em; margin: 1.8em 0; font-style: italic; color: var(--ink-2); font-size: 1.05em; }
.prose code { background: var(--surface-1); border: 1px solid var(--surface-hr); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.875em; color: var(--accent); }
.prose pre { background: #0f0e0c; color: #e8e5df; padding: 1.2em 1.4em; border-radius: 8px; overflow-x: auto; margin: 1.8em 0; }

/* 5-LAYER GATE self-lint
 * L1 FOUNDATION
 *   ✅ Hick: nav ≤7 items
 *   ✅ Fitts: comment submit ≥44px hit area
 *   ✅ Gestalt: proximity grouping via spacing, not borders
 *   ✅ Grid: 8pt system (sp-1=4, sp-2=8, sp-3=12 ...)
 *   ✅ Typography: line-height 1.78 prose, 1.4 headings, 45-75ch max-width implied by 720px
 *   ✅ States: hover/focus/active/disabled defined per component
 *   ✅ Micro: 200-350ms all transitions
 *   ✅ Nielsen: error flash classes, progress indicator
 * L2 CORRECTNESS
 *   ✅ DTCG: CSS vars semantic naming (--bg / --surface-1 / --accent)
 *   ✅ WCAG 2.2: focus outline 3px accent on inputs, contrast ink-on-bg ~15:1
 *   ✅ APCA: body ink #3d3d38 on #fafaf8 Lc ≈80, muted #7a7a73 Lc ≈45
 *   ✅ ARIA: form labels explicit, img alt in templates
 *   ✅ CWV: transform-only transitions, no layout thrash
 * L3 DISTINCTIVE
 *   ✅ Font: Source Serif 4 display + Inter body — not Inter-only
 *   ✅ Color: warm ink #1a1a18 on #fafaf8 + amber accent — not blue-default
 *   ✅ Motion: read-progress bar (1 high-impact) + scale hover (subtle)
 *   ✅ Composition: reading-width 720px intentional, not full-bleed grid
 *   ✅ Detail: drop-cap first para, double-ruled section heads
 * L4 SIGNATURE
 *   ✅ Tone: editorial-authority — Stratechery / Medium mood
 *   ✅ Differentiator: drop-cap + serif prose + warm paper background
 *   ✅ Brand-lock: warm amber accent throughout, ink-dark not slate
 * L5 INDUSTRY 2025
 *   ✅ 60-30-10: bg 60% / surface+sidebar 30% / accent 10%
 *   ✅ Token 3-tier: primitive (--ink) → semantic (--accent) → component (.t1-btn-submit)
 *   ✅ CSS custom prop state calc pattern applied
 */
