:root {
  --ink: #0e1726;
  --ink-2: #16223a;
  --paper: #f6f7f9;
  --paper-2: #ffffff;
  --bronze: #b08a52;
  --bronze-text: #77572d;
  --bronze-soft: #c9a876;
  --slate: #5b6776;
  --line: #dfe3e8;
  --line-dark: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a { color: inherit; }

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
}

.site-header {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 22px 28px;
}

.site-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  font-size: 0.85rem;
  gap: 24px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #fff; }

.writing-hero {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(14, 23, 38, 0.3), rgba(14, 23, 38, 0.88)),
    repeating-linear-gradient(90deg, transparent 0 12.5%, rgba(176, 138, 82, 0.08) 12.5% calc(12.5% + 1px));
  color: #fff;
  overflow: hidden;
  padding: 88px 28px 82px;
  position: relative;
}

.writing-hero::before,
.writing-hero::after {
  border: 1px solid rgba(176, 138, 82, 0.2);
  border-radius: 50%;
  content: "";
  height: 480px;
  position: absolute;
  right: -180px;
  top: -260px;
  width: 480px;
}

.writing-hero::after {
  height: 680px;
  right: -280px;
  top: -350px;
  width: 680px;
}

.hero-inner,
.hub,
.article-head-inner,
.article,
.site-footer-inner {
  margin: 0 auto;
  max-width: 760px;
}

.article-head-inner {
  margin: 0 auto;
  max-width: 760px;
}

.eyebrow,
.article-kicker {
  color: var(--bronze-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.writing-hero h1,
.article-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}

.writing-hero h1 { font-size: clamp(3rem, 9vw, 5.6rem); }

.writing-hero .intro {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  margin: 26px 0 0;
  max-width: 56ch;
}

.bronze-rule {
  background: var(--bronze);
  height: 2px;
  margin: 34px 0 0;
  width: 54px;
}

.hub { padding: 80px 28px 96px; }

.hub-intro {
  color: var(--slate);
  margin: 0 0 48px;
  max-width: 60ch;
}

.post-list { border-top: 1px solid var(--line); }

.post-card {
  display: grid;
  gap: 10px 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 34px 0;
  text-decoration: none;
}

.post-card + .post-card { border-top: 1px solid var(--line); }

.post-card:hover .post-title { color: var(--bronze-text); }

.post-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  transition: color 0.2s;
}

.post-summary {
  color: var(--slate);
  grid-column: 1;
  margin: 0;
  max-width: 58ch;
}

.post-date {
  color: var(--bronze-text);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  padding-top: 6px;
  white-space: nowrap;
}

.article-header {
  background: var(--ink);
  color: #fff;
  padding: 76px 28px 70px;
}

.article-kicker { margin-bottom: 26px; }

.article-title { font-size: clamp(2.55rem, 7vw, 4.8rem); }

.article-deck {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
  margin: 26px 0 0;
  max-width: 58ch;
}

.article-meta {
  align-items: center;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.58);
  display: flex;
  font-size: 0.78rem;
  gap: 14px;
  letter-spacing: 0.04em;
  margin-top: 36px;
  padding-top: 22px;
}

.article { padding: 68px 28px 92px; }

.article-body { max-width: 680px; }

.article-body > p {
  color: #253041;
  margin: 0 0 1.35em;
}

.article-body > p:first-child::first-letter {
  color: var(--bronze-text);
  float: left;
  font-family: "Fraunces", Georgia, serif;
  font-size: 4.1rem;
  line-height: 0.8;
  margin: 0.14em 0.12em 0 0;
}

.article-body strong { color: var(--ink); }

.pull-quote {
  border-left: 2px solid var(--bronze);
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.35;
  margin: 44px 0;
  padding: 4px 0 4px 28px;
}

.diagram-section {
  border-top: 1px solid var(--line);
  margin-top: 58px;
  padding-top: 50px;
}

.diagram-section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 14px;
}

.diagram-intro {
  color: var(--slate);
  margin: 0 0 30px;
}

.diagram-grid { display: grid; gap: 30px; }

.diagram {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.diagram img {
  display: block;
  height: auto;
  width: 100%;
}

.diagram figcaption {
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.86rem;
  padding: 16px 18px 18px;
}

.article-footer {
  border-top: 1px solid var(--line);
  margin-top: 58px;
  padding-top: 26px;
}

.article-footer a,
.back-link {
  color: var(--bronze-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.64);
  padding: 46px 28px;
}

.site-footer-inner {
  display: flex;
  font-size: 0.78rem;
  justify-content: space-between;
}

.site-footer a { color: #fff; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header-inner { align-items: flex-start; }
  .site-nav { gap: 18px; }
  .writing-hero { padding-bottom: 68px; padding-top: 68px; }
  .hub { padding-bottom: 76px; padding-top: 62px; }
  .post-card { grid-template-columns: 1fr; }
  .post-date { grid-row: 1; padding-top: 0; }
  .post-summary { grid-column: 1; }
  .article-header { padding-bottom: 58px; padding-top: 58px; }
  .article { padding-bottom: 72px; padding-top: 52px; }
  .site-footer-inner { display: grid; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
