:root {
  --bridal-heath: #fff8f1;
  --heavy-metal: #1d1e1c;
  --blaze-orange: #fa5d00;
  --surface: #fffdf8;
  --surface-warm: #fff1e5;
  --border: #e8dfd4;
  --muted: #7a756e;
  --shadow: 0 18px 55px rgba(29, 30, 28, 0.08);
  --ui-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-font: "Lora", Georgia, Cambria, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--heavy-metal);
  background: var(--bridal-heath);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  color: var(--heavy-metal);
  background: var(--bridal-heath);
}

a {
  color: var(--blaze-orange);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.55rem 0.8rem;
  background: var(--heavy-metal);
  color: var(--bridal-heath);
  border-radius: 999px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  font-family: var(--ui-font);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner,
.site-main,
.footer-inner {
  width: min(100% - 48px, 720px);
  margin-inline: auto;
}

.header-inner {
  width: min(100% - 48px, 780px);
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  color: var(--heavy-metal);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-title span {
  color: var(--blaze-orange);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.88rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.25rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--heavy-metal);
}

.site-main {
  padding-block: 4.5rem 6rem;
}

.blog-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--ui-font);
  color: var(--blaze-orange);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-intro h1 {
  margin: 0;
  color: var(--heavy-metal);
  font-family: var(--body-font);
  font-size: clamp(2rem, 4vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.post-title {
  margin: 0;
  color: var(--heavy-metal);
  font-family: var(--body-font);
  font-size: clamp(1.75rem, 3vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.blog-intro p:not(.eyebrow) {
  max-width: 74ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 0.97rem;
  line-height: 1.6;
}

.article-index {
  max-width: 720px;
}

.article-index h2 {
  margin: 0 0 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.article-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.article-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--heavy-metal);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.article-row:hover {
  opacity: 0.7;
}

.article-row:hover .article-title {
  color: var(--blaze-orange);
}

.article-row-inner {
  display: flex;
  flex-direction: column;
}

.article-title {
  color: var(--heavy-metal);
  font-family: var(--body-font);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.article-excerpt {
  display: block;
  margin-top: 0.375rem;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 0.875rem;
  line-height: 1.5;
}

.article-meta {
  color: var(--muted);
  flex-shrink: 0;
  font-family: var(--ui-font);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-family: var(--ui-font);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  font-family: var(--ui-font);
  border: 1px solid color-mix(in srgb, var(--blaze-orange) 32%, var(--border));
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  color: var(--blaze-orange);
  background: rgba(250, 93, 0, 0.07);
  font-size: 0.78rem;
  font-weight: 700;
}

.read-link,
.back-link,
.post-nav-link {
  font-weight: 700;
}

.post {
  width: min(100%, 880px);
  margin-inline: auto;
}

.post-header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.post-title {
  max-width: 22ch;
  margin-bottom: 1rem;
}

.post-tags {
  margin-top: 1rem;
}

.post-featured-image {
  max-width: 760px;
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
}

.post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--heavy-metal);
  box-shadow: var(--shadow);
}

.post-excerpt {
  max-width: 66ch;
  margin: 0 0 clamp(1.5rem, 4vw, 2.4rem);
  color: var(--muted);
  font-family: var(--body-font);
  font-size: clamp(1.04rem, 2vw, 1.18rem);
  line-height: 1.68;
}

.post-content {
  max-width: 72ch;
  font-family: var(--body-font);
  font-size: clamp(1.04rem, 2vw, 1.18rem);
  line-height: 1.74;
}

.post-content > * + * {
  margin-top: 1.15rem;
}

.post-content h2,
.post-content h3 {
  font-family: var(--body-font);
  color: var(--heavy-metal);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.post-content h2 {
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  font-weight: 700;
}

.post-content h3 {
  margin-top: 1.8rem;
  font-size: 1.18rem;
  font-weight: 700;
}

.post-content p,
.post-content li {
  color: var(--heavy-metal);
}

.post-content blockquote {
  margin-left: 0;
  padding-left: 1.2rem;
  border-left: 4px solid var(--blaze-orange);
  color: var(--muted);
}

.post-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: var(--ui-font);
  font-size: 0.92rem;
}

.post-content th,
.post-content td {
  border: 1px solid var(--border);
  padding: 0.78rem;
  vertical-align: top;
}

.post-content th {
  background: var(--surface-warm);
  text-align: left;
}

.post-content pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--heavy-metal);
  color: var(--bridal-heath);
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.post-content :not(pre) > code {
  border-radius: 0.35rem;
  padding: 0.1rem 0.3rem;
  background: var(--surface-warm);
  color: var(--heavy-metal);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-nav-link {
  max-width: 45%;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .article-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .post-title {
    max-width: 100%;
  }

  .post-nav {
    flex-direction: column;
  }

  .post-nav-link {
    max-width: none;
  }
}
