
:root {
  --ink: #11120f;
  --ink-soft: #34342d;
  --muted: #66645c;
  --paper: #faf8f2;
  --paper-quiet: #f0ece2;
  --line: #d8d0c1;
  --accent: #8c7442;
  --accent-dark: #5f4d2a;
  --dark: #171812;
  --serif: Newsreader, Georgia, Times New Roman, serif;
  --sans: Inter, Avenir Next, Helvetica Neue, Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(140, 116, 66, .35); outline-offset: 4px; }

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.brand img { width: 176px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.site-header nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.site-header nav a:last-child {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(17, 18, 15, .055);
}

.blog-hero, .article-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 64px;
}
.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 56px;
  align-items: end;
}
.kicker, .meta {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.015em;
}
h1 {
  max-width: 820px;
  margin: 14px 0 0;
  font-size: clamp(46px, 7vw, 92px);
  line-height: .95;
}
.dek {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}
.hero-image {
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(17, 18, 15, .15);
  background: var(--paper-quiet);
  box-shadow: 0 24px 70px rgba(17, 18, 15, .10);
}
.hero-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.article-list {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 96px;
  display: grid;
  gap: 18px;
}
.article-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 30px;
  padding: 24px;
  border: 1px solid rgba(17, 18, 15, .13);
  border-radius: 4px;
  background: linear-gradient(135deg, #fffdf8 0%, #f8f4ea 100%);
  box-shadow: 0 12px 34px rgba(17, 18, 15, .055);
  text-decoration: none;
  align-items: center;
  transition: transform 180ms var(--ease-out), border-color 180ms ease;
}
.article-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 26px 68px rgba(17, 18, 15, .13);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out);
}
.article-card img {
  width: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(17, 18, 15, .10);
  transition: transform 220ms var(--ease-out);
}
.article-card h2 {
  margin: 7px 0 0;
  font-size: clamp(29px, 3vw, 45px);
  line-height: 1;
}
.article-card p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.read-link {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}

.article-hero { padding-bottom: 40px; }
.article-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}
.article-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 104px;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: 70px;
  align-items: start;
}
.article-body {
  color: #24251f;
  font-family: Georgia, Times New Roman, serif;
  font-size: 19px;
  line-height: 1.78;
}
.article-body h2 {
  margin: 58px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}
.article-body h3 {
  margin: 36px 0 10px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-body p, .article-body li { margin: 1.05rem 0; }
.article-body a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: .16em; }
.article-body blockquote {
  margin: 34px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
  background: var(--paper-quiet);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
}
.opus-scope, .opus-local-note, .article-cta {
  margin: 30px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: #fffdf8;
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.article-cta {
  background: var(--dark);
  color: #f5efe2;
}
.article-cta p { margin: 0 0 14px; font-family: var(--serif); font-size: 24px; line-height: 1.18; }
.article-cta a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #f5efe2;
  color: #f5efe2;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.references {
  padding-left: 1.2rem;
  color: #4b4a42;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}
.article-side {
  position: sticky;
  top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.article-side img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 20px;
}
.side-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}
.site-footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

@media (hover: hover) and (pointer: fine) {
  .site-header nav a:hover { color: var(--ink); }
  .site-header nav a:last-child:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #f5efe2;
    transform: translateY(-1px);
  }
  .article-card:hover {
    transform: translateY(-3px);
    border-color: rgba(140, 116, 66, .38);
  }
  .article-card:hover::before { opacity: 1; }
  .article-card:hover img { transform: scale(1.018); }
  .article-card:hover .read-link {
    color: var(--ink);
    border-color: var(--ink);
  }
}

.site-header nav a:last-child:active { transform: scale(.98); }
.article-card:active { transform: translateY(-1px) scale(.995); }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .site-header nav { flex-wrap: wrap; gap: 14px 18px; }
  .blog-hero, .article-layout { grid-template-columns: 1fr; }
  .blog-hero, .article-hero { padding-top: 54px; }
  .article-card { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .article-card img { width: 100%; }
  .article-side { position: static; }
  .article-body { font-size: 17px; line-height: 1.72; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header nav a,
  .article-card,
  .article-card::before,
  .article-card img,
  .read-link {
    transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease, opacity 120ms ease;
  }
  .site-header nav a:last-child:hover,
  .site-header nav a:last-child:active,
  .article-card:hover,
  .article-card:active,
  .article-card:hover img {
    transform: none;
  }
}
