:root {
  --ink: #102b31;
  --ink-deep: #071d24;
  --sand: #dca85e;
  --paper: #f4f0e8;
  --light: #fbf9f4;
  --muted: #667579;
  --line: rgba(16, 43, 49, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--light); color: var(--ink); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.blog-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-150%); padding: 12px 18px; background: #fff; color: var(--ink); font-weight: 700; }
.skip-link:focus { transform: none; }

.blog-header { position: relative; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.12); background: var(--ink-deep); color: #fff; }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--sand); font-family: Georgia, serif; font-size: 1.25rem; }
.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { color: #fff; font: 800 1.1rem/1 "Manrope", sans-serif; letter-spacing: .19em; }
.brand small { color: rgba(255,255,255,.57); font-size: .62rem; letter-spacing: .04em; }
.blog-header nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.blog-header nav a { color: rgba(255,255,255,.7); font-size: .78rem; font-weight: 600; text-decoration: none; }
.blog-header nav a:hover { color: var(--sand); }

.blog-hero { padding: clamp(76px, 10vw, 132px) 0 clamp(70px, 9vw, 116px); background: var(--ink-deep); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .65fr); align-items: end; gap: 60px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--sand); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 27px; height: 1px; background: currentColor; }
.blog-hero h1 { margin: 0; font: 700 clamp(3.2rem, 8vw, 7.2rem)/.89 "Manrope", sans-serif; letter-spacing: -.075em; }
.blog-hero h1 em { color: var(--sand); font-family: Georgia, serif; font-weight: 400; }
.hero-grid > p { max-width: 440px; margin: 0 0 8px; color: rgba(255,255,255,.67); font-size: clamp(1rem, 1.8vw, 1.18rem); line-height: 1.75; }

.blog-section { min-height: 460px; padding: clamp(55px, 8vw, 100px) 0 clamp(80px, 10vw, 130px); }
.blog-tools { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 42px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.category-filters button { min-height: 38px; padding: 0 15px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: .72rem; font-weight: 700; }
.category-filters button:hover, .category-filters button.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.blog-search { width: min(330px, 100%); display: grid; grid-template-columns: 1fr 48px; border-bottom: 1px solid var(--ink); }
.blog-search input { min-width: 0; height: 45px; padding: 0 4px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.blog-search button { border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.2rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-loading, .blog-empty { grid-column: 1 / -1; padding: 70px 24px; border: 1px solid var(--line); color: var(--muted); text-align: center; }
.blog-card { min-height: 355px; display: flex; flex-direction: column; padding: clamp(25px, 3vw, 36px); border: 1px solid var(--line); background: #fff; transition: transform 180ms ease, box-shadow 180ms ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(7,29,36,.1); }
.blog-card.is-featured { background: var(--sand); }
.blog-card-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 50px; }
.blog-category { color: #9a6721; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.blog-card.is-featured .blog-category { color: var(--ink); }
.blog-card time { color: var(--muted); font-size: .68rem; }
.blog-card.is-featured time { color: rgba(16,43,49,.65); }
.blog-card h2 { margin: 0 0 15px; font: 700 clamp(1.35rem, 2.3vw, 1.85rem)/1.14 "Manrope", sans-serif; letter-spacing: -.045em; }
.blog-card > p { margin: 0; color: var(--muted); line-height: 1.68; }
.blog-card.is-featured > p { color: rgba(16,43,49,.75); }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 34px; font-size: .72rem; font-weight: 700; }
.blog-card-footer a { text-decoration: none; }
.blog-card-footer a::after { content: " →"; }

.article-page { min-height: 70vh; }
.article-loading { display: grid; min-height: 520px; place-items: center; color: var(--muted); }
.article-hero { padding: clamp(65px, 9vw, 112px) 0 clamp(58px, 8vw, 96px); background: var(--ink-deep); color: #fff; }
.article-hero-inner { width: min(920px, calc(100% - 48px)); margin-inline: auto; }
.article-back { display: inline-block; margin-bottom: 52px; color: rgba(255,255,255,.62); font-size: .76rem; font-weight: 700; text-decoration: none; }
.article-back:hover { color: var(--sand); }
.article-hero h1 { max-width: 880px; margin: 15px 0 30px; font: 700 clamp(2.7rem, 7vw, 6.4rem)/.98 "Manrope", sans-serif; letter-spacing: -.065em; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; color: rgba(255,255,255,.6); font-size: .76rem; }
.article-body { width: min(760px, calc(100% - 48px)); margin-inline: auto; padding: clamp(60px, 9vw, 112px) 0 clamp(85px, 11vw, 145px); }
.article-lead { margin: 0 0 50px; color: #536469; font: 500 clamp(1.18rem, 2.2vw, 1.45rem)/1.7 "Manrope", sans-serif; }
.article-copy p { margin: 0 0 1.7em; font-family: Georgia, serif; font-size: clamp(1.08rem, 1.7vw, 1.22rem); line-height: 1.85; white-space: pre-line; }
.article-copy h2 { margin: 2.2em 0 .75em; font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.2 "Manrope", sans-serif; letter-spacing: -.045em; }
.article-copy blockquote { margin: 2.2em 0; padding: 25px 30px; border-left: 4px solid var(--sand); background: var(--paper); font: 400 clamp(1.2rem, 2.3vw, 1.5rem)/1.65 Georgia, serif; }
.article-end { margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line); }
.article-end a { font-weight: 700; text-decoration: none; }
.article-error { width: min(760px, calc(100% - 48px)); margin: 90px auto; padding: 60px 30px; border: 1px solid var(--line); text-align: center; }
.article-error h1 { font: 700 2rem "Manrope", sans-serif; }
.article-error p { color: var(--muted); }
.article-error a { display: inline-block; margin-top: 18px; padding: 14px 20px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }

.blog-footer { padding: 46px 0; background: var(--ink-deep); color: #fff; }
.blog-footer .blog-shell { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.blog-footer p { color: rgba(255,255,255,.5); font-size: .72rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-grid > p { max-width: 620px; }
  .blog-tools { align-items: stretch; flex-direction: column; }
  .blog-search { width: 100%; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .blog-shell, .article-hero-inner, .article-body { width: min(100% - 30px, 1180px); }
  .header-inner { min-height: 76px; }
  .blog-header nav { gap: 15px; }
  .blog-header nav a:not(:first-child) { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { min-height: 310px; }
  .blog-card-top { margin-bottom: 35px; }
  .blog-footer .blog-shell { align-items: flex-start; flex-direction: column; }
}
