:root {
  --cream: #f1eee6;
  --paper: #faf8f2;
  --black: #090909;
  --gray: #6f6f6f;
  --line: #cfcac0;
  --white: #fff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: "Inter", sans-serif;
  text-rendering: optimizeLegibility;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
p { line-height: 1.75; }
h1, h2, h3 { margin-top: 0; }
h1, h2, h3, .display {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .94;
  text-transform: uppercase;
}

.container { width: min(calc(100% - 34px), var(--max)); margin-inline: auto; }
.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1001;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--black);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}

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

.logo { width: 128px; padding: 6px 10px; background: var(--white); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { border-bottom: 2px solid transparent; padding: 8px 0; }
.nav-links a:hover { border-color: var(--black); }
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.blog-hero {
  padding: clamp(72px, 10vw, 140px) 0;
  border-bottom: 1px solid var(--black);
  background: var(--paper);
}
.eyebrow { margin-bottom: 16px; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.blog-hero h1 { max-width: 900px; margin-bottom: 28px; font-size: clamp(4.5rem, 11vw, 10rem); }
.blog-hero p { max-width: 650px; margin-bottom: 0; color: #333; font-size: 1.06rem; }

.posts { padding: 80px 0 110px; }
.latest-posts-title { margin-bottom: 38px; font-size: clamp(3rem, 6vw, 5.5rem); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { overflow: hidden; border: 1px solid var(--black); background: var(--paper); transition: transform .3s ease, box-shadow .3s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 20px 45px rgba(9,9,9,.12); }
.post-card a { display: flex; min-height: 100%; flex-direction: column; }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; }
.post-body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 22px; color: var(--gray); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-card h2 { margin-bottom: 16px; font-size: clamp(2rem, 3vw, 2.8rem); }
.post-card p { color: #333; font-size: .9rem; }
.read-more { margin-top: auto; padding-top: 14px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.article-hero {
  border-bottom: 1px solid var(--black);
  background: var(--paper);
}
.article-hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 620px; }
.article-heading { display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 7vw, 92px) clamp(22px, 6vw, 78px) clamp(42px, 7vw, 92px) 0; }
.article-heading h1 { margin-bottom: 28px; font-size: clamp(3.7rem, 7vw, 7rem); }
.article-heading p { max-width: 650px; color: #333; font-size: 1.08rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 18px; color: var(--gray); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-image { min-height: 520px; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; justify-content: center; gap: 70px; padding: 82px 0 110px; }
.article-content { min-width: 0; }
.article-content h2 { margin: 58px 0 20px; font-size: clamp(2.7rem, 5vw, 4.5rem); }
.article-content h3 { margin: 38px 0 16px; font-size: clamp(2rem, 3.3vw, 3rem); }
.article-content p, .article-content li { color: #202020; font-size: 1.02rem; line-height: 1.82; }
.article-content ul, .article-content ol { display: grid; gap: 10px; padding-left: 22px; }
.article-content a { text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { margin: 34px 0; overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--black); color: var(--white); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.article-content blockquote {
  margin: 42px 0;
  padding: 28px 30px;
  border-left: 5px solid var(--black);
  background: var(--paper);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.55;
}
.article-content .note { margin: 34px 0; padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.article-content .note strong { display: block; margin-bottom: 8px; text-transform: uppercase; }
.toc { position: sticky; top: 110px; align-self: start; padding-left: 22px; border-left: 1px solid var(--black); }
.toc strong { display: block; margin-bottom: 14px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.toc a { display: block; margin: 10px 0; color: #444; font-size: .82rem; line-height: 1.4; }
.toc a:hover { color: #000; }

.article-cta { margin-top: 64px; padding: clamp(34px, 6vw, 64px); background: var(--black); color: var(--white); text-align: center; }
.article-cta h2 { margin: 0 auto 20px; font-size: clamp(3rem, 6vw, 5.5rem); }
.article-cta p { max-width: 620px; margin: 0 auto 24px; color: #d2d2d2; }
.article-cta .btn { border-color: var(--white); background: var(--white); color: var(--black); text-decoration: none; }

footer { padding: 45px 0 25px; border-top: 1px solid var(--black); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; }
.footer-logo { width: 150px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; align-content: start; font-size: .84rem; font-weight: 700; text-transform: uppercase; }
.copyright { margin-top: 35px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--gray); font-size: .76rem; }

@media (max-width: 900px) {
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .article-hero-inner { grid-template-columns: 1fr; }
  .article-heading { padding-left: 0; }
  .article-image { min-height: 440px; }
  .article-layout { grid-template-columns: minmax(0, 760px); }
  .toc { display: none; }
}

@media (max-width: 650px) {
  .nav { min-height: 68px; }
  .logo { width: 112px; }
  .nav-links a:not(.btn) { display: none; }
  .posts { padding: 58px 0 80px; }
  .posts-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .article-heading h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .article-image { min-height: 58vh; }
  .article-layout { padding: 56px 0 80px; }
  .article-content p, .article-content li { font-size: .98rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

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