@font-face {
  font-family: "DisplayGothic1958";
  src: url("../DisplayGothic1958-Standard.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --text: #1b1b1a;
  --text-muted: #6b6b68;
  --heading: #17181c;
  --border: rgba(20, 20, 20, 0.1);
  --accent-red: #de3f1a;
  --accent-coral: #f15d5c;
  --accent-gold: #b3862a;
  --shadow: 0 16px 40px rgba(20, 20, 20, 0.06);
  --radius-lg: 20px;
  --radius-md: 14px;
  --nav-height: 56px;
  --max-width: 1120px;
  --measure: 680px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

/* ── Nav ─────────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav__inner {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 20px;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-nav__brand img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.site-nav__brand-word {
  font-family: "DisplayGothic1958", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--heading);
  white-space: nowrap;
  position: relative;
  top: 2px;
}

.site-nav__brand-word span {
  color: var(--accent-red);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav__links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 180ms ease;
}

.site-nav__links a:hover {
  color: var(--text);
}

.site-nav__link--active {
  color: var(--text) !important;
}

/* ── Shell / masthead ────────────────────────────────── */

.blog-shell {
  min-height: 100vh;
}

.blog-masthead,
.blog-main,
footer {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.blog-masthead {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.blog-masthead__kicker {
  margin: 0 0 12px;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
}

.blog-masthead__title {
  font-family: "DisplayGothic1958", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--heading);
}

.blog-masthead__lede {
  max-width: 60ch;
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 16px 0 0;
}

.blog-main {
  padding: 48px 0 72px;
}

/* ── Post list ───────────────────────────────────────── */

.post-list {
  display: flex;
  flex-direction: column;
}

.post-card {
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.post-card:first-child {
  padding-top: 0;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-card__pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(222, 63, 26, 0.08);
  color: var(--accent-red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-card__date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-card__title {
  display: block;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--heading);
  margin-bottom: 10px;
  transition: color 150ms ease;
}

.post-card:hover .post-card__title {
  color: var(--accent-red);
}

.post-card__excerpt {
  max-width: var(--measure);
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.post-card__more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-red);
}

.post-list-empty {
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ── Article page ────────────────────────────────────── */

.post-header {
  padding: 48px 0 28px;
}

.post-header__inner {
  width: min(var(--measure), calc(100% - 48px));
  margin: 0 auto;
}

.post-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.post-header__back:hover {
  color: var(--text);
}

.post-header__kicker {
  margin: 0 0 14px;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
}

.post-header__title {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--heading);
}

.post-header__dek {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 16px 0 0;
}

.post-header__byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-header__byline strong {
  color: var(--text);
  font-weight: 700;
}

.post-header__byline strong a {
  text-decoration: underline;
  text-decoration-color: var(--accent-red);
  text-underline-offset: 3px;
}

.post-header__byline strong a:hover {
  color: var(--accent-red);
}

.post-body-wrap {
  padding: 24px 0 80px;
}

.post-body {
  width: min(var(--measure), calc(100% - 48px));
  margin: 0 auto;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
}

.post-body > * + * {
  margin-top: 1.4em;
}

.post-body h2 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--heading);
  margin-top: 2em;
}

.post-body > h2:first-child {
  margin-top: 0;
}

.post-body h2 a {
  color: inherit;
  text-decoration-color: var(--accent-red);
  text-underline-offset: 4px;
}

.post-body .post-meta-line {
  margin-top: 0.3em;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-body .post-meta-line + p {
  margin-top: 0.75em;
}

.post-body h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--heading);
  margin-top: 1.8em;
}

.post-body p {
  margin: 1.4em 0 0;
}

.post-body a {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body strong {
  color: var(--heading);
}

.post-body blockquote {
  margin: 1.6em 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent-red);
  font-style: italic;
  color: var(--text-muted);
}

.post-body ul,
.post-body ol {
  padding-left: 1.3em;
}

.post-body li + li {
  margin-top: 0.5em;
}

.post-body img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.post-body figcaption {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6em;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

.post-footer {
  width: min(var(--measure), calc(100% - 48px));
  margin: 56px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-coral));
  color: white;
}

.button--secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

/* ── Footer ──────────────────────────────────────────── */

footer {
  padding: 32px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer nav a:hover {
  color: var(--text);
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 560px) {
  .site-nav__inner,
  .blog-masthead,
  .blog-main,
  footer {
    width: min(var(--max-width), calc(100% - 32px));
  }

  .post-header__inner,
  .post-body,
  .post-footer {
    width: min(var(--measure), calc(100% - 32px));
  }

  .site-nav__links {
    gap: 14px;
  }

  .site-nav__brand-word {
    display: none;
  }

  .post-body {
    font-size: 1.06rem;
  }
}
