:root {
  --bg: #fbfbf8;
  --ink: #171717;
  --ink-strong: #050505;
  --muted: #525252;
  --soft: #737373;
  --line: #e6e2da;
  --surface: #ffffff;
  --surface-soft: #f5f3ed;
  --accent: #1f5eff;
  --shadow-border: 0 0 0 1px rgba(23,23,23,.09);
  --shadow-card: 0 0 0 1px rgba(23,23,23,.09), 0 16px 40px rgba(23,23,23,.05);
  --focus: #1f5eff;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

img {
  max-width: 100%;
  height: auto;
}

.shell {
  width: min(var(--max), 100% - 48px);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 248, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  letter-spacing: -0.05em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  color: #333;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink-strong);
}

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 14px;
}

.hero {
  text-align: left;
  padding: 24px 0 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow, .card-number {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--soft);
}

.hero h1 {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-copy {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-border);
}

.section {
  padding: 62px 0 82px;
}

.first-section {
  padding-top: 42px;
}

.section-bordered {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.sidebar-card {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.sidebar-card h2 {
  margin: 10px 0 12px;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.sidebar-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 18px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading.compact {
  display: block;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

.latest-column {
  min-width: 0;
}

.feature-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.feature-card h3 {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.feature-card .card-number {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

.post-index {
  display: grid;
  gap: 12px;
}

.post-row-link {
  display: grid;
  grid-template-columns: 110px 110px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  text-decoration: none;
  border-radius: 16px;
  box-shadow: var(--shadow-border);
  background: var(--surface);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.post-row-thumb {
  width: 110px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.post-row-thumb-empty {
  background: var(--surface-soft);
}

.post-row-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.post-row-date, .post-row-arrow {
  color: var(--soft);
  font-size: 14px;
  white-space: nowrap;
}

.post-row-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.post-row-title {
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.post-row-excerpt {
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.post-page {
  max-width: 860px;
  padding-top: 74px;
  padding-bottom: 92px;
}

.post-hero {
  margin-bottom: 34px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.back-link:hover {
  color: var(--ink);
}

.post-title {
  margin: 18px 0 22px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.97;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.post-dek {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
  margin: 0 0 28px;
}

.post-meta-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: 14px;
}

.post-meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1f4ed8;
  font-weight: 600;
}

.post-cover {
  margin: 36px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--surface-soft);
}

.post-cover img {
  display: block;
  width: 100%;
}

.post-content {
  color: #282828;
  font-size: 18px;
  line-height: 1.78;
}

.post-content > *:first-child {
  margin-top: 0;
}

.post-content h2 {
  margin-top: 2.3em;
  margin-bottom: 0.55em;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.post-content h3 {
  margin-top: 2em;
  margin-bottom: 0.45em;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.post-content p, .post-content ul, .post-content ol {
  margin: 1.05em 0;
}

.post-content li {
  margin: 0.35em 0;
}

.post-content a {
  color: #1f5eff;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-content blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--ink);
  color: var(--muted);
}

.post-content code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: #f1f0ea;
  border-radius: 5px;
  padding: 2px 5px;
}

.post-content pre {
  overflow-x: auto;
  border-radius: 14px;
  padding: 18px;
  background: #171717;
  color: #f5f5f5;
  box-shadow: var(--shadow-card);
}

.post-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.post-content th, .post-content td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

.post-after {
  margin-top: 56px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 34px;
}

.footer-brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.footer-grid p {
  max-width: 500px;
  margin: 0;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-content: start;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 880px) {
  .shell {
    width: min(100% - 32px, var(--max));
  }
  .site-nav {
    gap: 12px;
    font-size: 13px;
  }
  .hero {
    padding: 20px 0 36px;
  }
  .hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }
  .hero-copy {
    font-size: 18px;
  }
  .section {
    padding: 42px 0 60px;
  }
  .section-heading, .post-row-link, .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar-card {
    position: static;
    order: 2;
  }
  .post-row-arrow {
    justify-self: start;
  }
  .footer-grid {
    display: grid;
  }
  .post-page {
    padding-top: 52px;
  }
  .post-content {
    font-size: 17px;
  }
}
@media (max-width: 520px) {
  .site-brand span:last-child {
    display: none;
  }
  .site-nav a:nth-child(2) {
    display: none;
  }
  .post-title {
    font-size: 42px;
  }
}
/* ====== Variant gallery (home page only) ====== */
.variant-section {
  padding: 28px 0;
  border-top: 4px solid var(--ink);
}

.variant-section + .variant-section {
  margin-top: 0;
}

.variant-header {
  margin-bottom: 24px;
}

.variant-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 4px;
  font-weight: 600;
}

.variant-header h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* --- Variant 1: two-row card --- */
.v1-grid {
  display: grid;
  gap: 16px;
}

.v1-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  box-shadow: var(--shadow-border);
  background: var(--surface);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.v1-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.v1-row1 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}

.v1-title {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.v1-date {
  color: var(--soft);
  font-size: 13px;
  white-space: nowrap;
}

.v1-row2 {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}

.v1-thumb {
  width: 240px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.v1-thumb-empty {
  background: var(--surface-soft);
}

.v1-excerpt {
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

/* --- Variant 2: image-dominant card (3-up grid) --- */
.v2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.v2-card {
  display: grid;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding-bottom: 8px;
}

.v2-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.v2-thumb-empty {
  background: var(--surface-soft);
}

.v2-body {
  display: grid;
  gap: 6px;
}

.v2-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--soft);
  text-transform: uppercase;
}

.v2-title {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.v2-excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* --- Variant 3: magazine side-by-side --- */
.v3-grid {
  display: grid;
  gap: 20px;
}

.v3-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-border);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.v3-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.v3-thumb {
  width: 320px;
  aspect-ratio: 3/2;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.v3-thumb-empty {
  background: var(--surface-soft);
}

.v3-body {
  display: grid;
  gap: 10px;
}

.v3-date {
  font-family: "IBM Plex Mono", monospace;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v3-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.v3-excerpt {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.v3-arrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
}

/* --- Variant 4: compact list with 180x120 thumb --- */
.v4-list {
  display: grid;
  gap: 12px;
}

.v4-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  box-shadow: var(--shadow-border);
  background: var(--surface);
  align-items: center;
}

.v4-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.v4-thumb {
  width: 180px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.v4-thumb-empty {
  background: var(--surface-soft);
}

.v4-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.v4-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--soft);
  text-transform: uppercase;
}

.v4-title {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.v4-excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* --- Variant 5: 3-up grid (square thumbs) --- */
.v5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.v5-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.v5-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.v5-thumb-empty {
  background: var(--surface-soft);
}

.v5-body {
  display: grid;
  gap: 4px;
  padding: 4px 2px;
}

.v5-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--soft);
  text-transform: uppercase;
}

.v5-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

@media (max-width: 880px) {
  .v2-grid {
    grid-template-columns: 1fr;
  }
  .v3-card {
    grid-template-columns: 1fr;
  }
  .v3-thumb {
    width: 100%;
  }
  .v5-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .v1-row2 {
    grid-template-columns: 1fr;
  }
  .v1-thumb {
    width: 100%;
    height: 200px;
  }
  .v4-row {
    grid-template-columns: 1fr;
  }
  .v4-thumb {
    width: 100%;
    height: 180px;
  }
}

/*# sourceMappingURL=style.css.map */