:root {
  --ink: #090d0e;
  --ink-raised: #111110;
  --ink-soft: #181415;
  --oxblood: #35171a;
  --oxblood-deep: #251114;
  --paper: #f2ede5;
  --mist: #c8c0b5;
  --faint: #8d857b;
  --gold: #cda768;
  --gold-bright: #e0c388;
  --line: rgba(242, 237, 229, 0.14);
  --line-strong: rgba(205, 167, 104, 0.5);
  --page: min(1200px, calc(100% - 64px));
  --article: min(790px, calc(100% - 48px));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold-bright);
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: translateY(-60px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header,
.site-footer,
.content-hero,
.journal-grid,
.journal-intro,
.related-section,
.terms-grid,
.glossary-note,
.download-cta { width: var(--page); margin-right: auto; margin-left: auto; }

/* Shared editorial navigation */
.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-logo {
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

.brand span { color: var(--gold-bright); }

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.text-link:hover { color: var(--paper); }

.site-header nav a:last-child {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(205, 167, 104, 0.75);
  color: var(--gold-bright);
}

/* Journal and glossary headers */
.content-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.72fr);
  align-items: center;
  gap: clamp(44px, 6vw, 104px);
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.content-hero-simple {
  grid-template-columns: minmax(0, 770px);
  min-height: 388px;
}

.content-hero h1,
.article-header h1 {
  margin: 11px 0 22px;
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 5.6vw, 76px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.04;
}

.content-hero > div > p:last-child {
  max-width: 610px;
  margin: 0;
  color: var(--mist);
  font-size: 18px;
  line-height: 1.72;
}

.content-hero img {
  width: min(100%, 440px);
  height: auto;
  justify-self: end;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-left: 1px solid rgba(205, 167, 104, 0.38);
  box-shadow: -24px 0 42px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  margin: 0;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: uppercase;
}

.journal-intro,
.glossary-note {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.journal-intro p,
.glossary-note p {
  max-width: 760px;
  margin: 0;
  color: var(--mist);
}

.text-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

/* The article index becomes a numbered reading list rather than a card gallery. */
.journal-grid {
  display: grid;
  counter-reset: journal;
  padding: 18px 0 94px;
}

.journal-card {
  min-height: 172px;
  display: grid;
  grid-template-columns: 64px minmax(220px, 1.25fr) minmax(180px, 0.78fr) auto;
  column-gap: 30px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.journal-card::before {
  content: counter(journal, decimal-leading-zero);
  counter-increment: journal;
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  line-height: 1.1;
}

.journal-card h2 {
  grid-column: 2;
  margin: 0;
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.22;
}

.journal-card h2 a { text-decoration: none; }
.journal-card h2 a:hover { color: var(--gold-bright); }

.journal-card > .eyebrow {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 9px;
}

.journal-card h2 { grid-row: 2; }

.journal-card > p:not(.eyebrow) {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  padding-top: 19px;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.62;
}

.journal-card > div {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 17px;
  color: var(--faint);
  font-size: 12px;
}

.journal-card > div span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 12px 2px 0;
  background: var(--faint);
  border-radius: 50%;
}

.journal-card .text-link {
  grid-column: 4;
  grid-row: 1 / span 3;
  align-self: center;
  padding-left: 18px;
}

/* Long-form articles */
.article-shell { width: var(--article); margin: 0 auto; padding: 38px 0 0; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--faint);
  font-size: 12px;
}

.breadcrumbs a { text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--gold-bright); }

.article-header { padding-top: 52px; }

.article-header h1 {
  max-width: 900px;
  font-size: clamp(46px, 6vw, 68px);
}

.article-deck {
  max-width: 680px;
  margin: 0;
  color: var(--mist);
  font-size: 19px;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 27px;
  color: var(--faint);
  font-size: 12px;
}

.article-meta a { color: var(--mist); text-underline-offset: 3px; }
.article-meta a:hover { color: var(--gold-bright); }

.article-meta span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 16px 2px 0;
  background: var(--faint);
  border-radius: 50%;
}

.article-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 46px 0 0;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.article-content { max-width: 680px; padding: 47px 0 0; }

.article-intro {
  margin: 0 0 44px;
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.48;
}

.article-section { margin-top: 44px; }

.article-section h2 {
  margin: 0 0 16px;
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.22;
}

.article-section p,
.article-section li { color: var(--mist); }

.article-section p { margin: 0 0 20px; }

.article-section ul {
  margin: 8px 0 22px;
  padding-left: 20px;
}

.article-section li { margin-bottom: 10px; }
.article-section li::marker { color: var(--gold); }

.takeaway {
  margin-top: 52px;
  padding: 29px 0 29px 28px;
  border-left: 2px solid var(--gold);
}

.takeaway p:last-child {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.48;
}

.related-section { padding: 96px 0 0; }
.related-section > div:first-child { margin-bottom: 22px; }

.related-section h2 {
  margin: 7px 0 0;
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.15;
}

.related-grid { display: grid; }

.related-card {
  min-height: 124px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 32px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.related-card:hover { border-color: var(--line-strong); }
.related-card:hover strong { color: var(--gold-bright); }

.related-card > span,
.related-card small { color: var(--faint); font-size: 12px; }

.related-card strong {
  grid-column: 1;
  margin-top: 7px;
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.28;
  transition: color 180ms ease;
}

.related-card small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--gold-bright);
  font-weight: 700;
}

/* Glossary terms read as a compact, skimmable reference. */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 60px;
  padding: 24px 0 94px;
}

.term-card {
  min-height: 142px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.term-card h2 {
  margin: 0 0 10px;
  color: var(--gold-bright);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.term-card p {
  margin: 0;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.65;
}

/* Download is a full editorial band instead of an elevated card. */
.download-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.42fr);
  gap: 54px;
  align-items: center;
  margin-top: 100px;
  margin-bottom: 76px;
  padding: 52px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.download-cta h2 {
  max-width: 560px;
  margin: 8px 0 12px;
  color: var(--paper);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}

.download-cta p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--mist);
}

.store-links { display: flex; flex-direction: column; gap: 9px; }

.store-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.store-link:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.store-link span { color: var(--gold); }

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 0 46px;
  border-top: 1px solid var(--line);
}

.site-footer p { max-width: 410px; margin: 8px 0 0; color: var(--faint); font-size: 12px; }

.site-footer .owner-link {
  color: var(--gold-bright);
  font-weight: 700;
  text-underline-offset: 3px;
}

.site-footer .owner-link:hover { color: var(--paper); }

@media (max-width: 820px) {
  :root { --page: min(100% - 36px, 1200px); --article: min(100% - 36px, 790px); }

  .site-header { min-height: 67px; }
  .site-header nav a:not(:last-child) { display: none; }
  .site-header nav { gap: 12px; }
  .brand { font-size: 21px; }

  .content-hero { min-height: 0; grid-template-columns: 1fr; gap: 32px; padding: 62px 0; }
  .content-hero-simple { padding-bottom: 50px; }
  .content-hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .content-hero > div > p:last-child { font-size: 16px; }
  .content-hero img { width: min(240px, 70vw); border-left: 0; border-top: 1px solid rgba(205, 167, 104, 0.38); box-shadow: 0 -16px 32px rgba(0, 0, 0, 0.14); justify-self: start; }

  .journal-intro,
  .glossary-note,
  .site-footer { align-items: flex-start; flex-direction: column; }

  .journal-grid { padding-bottom: 68px; }
  .journal-card { grid-template-columns: 42px minmax(0, 1fr); row-gap: 0; min-height: 0; column-gap: 14px; }
  .journal-card::before { grid-row: 1 / span 4; font-size: 18px; }
  .journal-card > .eyebrow,
  .journal-card h2,
  .journal-card > p:not(.eyebrow),
  .journal-card > div,
  .journal-card .text-link { grid-column: 2; grid-row: auto; }
  .journal-card > .eyebrow { margin-bottom: 7px; }
  .journal-card h2 { font-size: 23px; }
  .journal-card > p:not(.eyebrow) { padding-top: 12px; font-size: 14px; }
  .journal-card > div { margin-top: 15px; }
  .journal-card .text-link { min-height: 34px; margin-top: 5px; padding-left: 0; }

  .article-shell { padding-top: 28px; }
  .article-header { padding-top: 38px; }
  .article-header h1 { font-size: clamp(42px, 12vw, 58px); }
  .article-deck { font-size: 17px; }
  .article-image { margin-top: 36px; aspect-ratio: 2 / 1; }
  .article-content { padding-top: 36px; }
  .article-intro { font-size: 23px; }
  .article-section { margin-top: 38px; }
  .article-section h2 { font-size: 28px; }
  .takeaway { margin-top: 42px; padding-left: 20px; }
  .takeaway p:last-child { font-size: 21px; }
  .related-section { padding-top: 72px; }
  .related-section h2 { font-size: 34px; }

  .terms-grid { grid-template-columns: 1fr; padding-bottom: 68px; }
  .term-card { min-height: 0; }

  .download-cta { grid-template-columns: 1fr; gap: 31px; margin-top: 74px; margin-bottom: 58px; padding: 42px 0; }
  .download-cta h2 { font-size: 35px; }
  .store-links { width: 100%; }
  .store-link { width: 100%; }

  .site-footer nav { gap: 12px 20px; }
}

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