:root {
  --paper: #fbfbfa;
  --mist: #eceef0;
  --mist-dark: #d8dadd;
  --ink: #211e22;
  --muted: #68636a;
  --purple: #4b234f;
  --purple-dark: #311634;
  --copper: #a75e3f;
  --copper-light: #d2a087;
  --sage: #68766f;
  --line: #c9c7c9;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--copper);
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  color: white;
  background: var(--purple-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-top: 6px solid var(--purple);
  border-bottom: 1px solid var(--line);
}

.masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 28px;
}

.edition,
.tagline,
.eyebrow,
.meta,
.nav-list,
.section-kicker,
.crumbs,
.issue-label,
.footer-label,
.search-status,
.card-number {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.edition,
.tagline {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.tagline {
  justify-self: end;
  text-align: right;
}

.brand {
  color: var(--purple-dark);
  font-size: 1.75rem;
  font-weight: normal;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

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

.primary-nav {
  background: var(--mist);
}

.nav-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-list a {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  color: white;
  background: var(--purple);
}

.nav-list .search-link {
  margin-left: 16px;
  color: var(--purple);
  border-left: 1px solid var(--line);
}

.mobile-nav {
  display: none;
}

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.issue-line {
  margin: 26px 0 20px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.55fr);
  min-height: 620px;
  background: var(--purple-dark);
}

.lead-copy {
  padding: 54px 48px 46px;
  display: flex;
  flex-direction: column;
  color: white;
}

.lead-copy .eyebrow {
  color: var(--copper-light);
}

.eyebrow,
.section-kicker,
.issue-label {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lead-copy h1 {
  max-width: 12ch;
  margin: 0 0 26px;
  font-size: 3.6rem;
  font-weight: normal;
  line-height: 1.01;
}

.lead-copy .standfirst {
  margin: 0 0 28px;
  color: #e5dfe5;
  font-size: 1.05rem;
  line-height: 1.55;
}

.lead-copy .meta {
  margin-top: auto;
  color: #cfc6cf;
  font-size: 0.71rem;
  text-transform: uppercase;
}

.read-link {
  align-self: flex-start;
  margin-top: 18px;
  color: white;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 700;
}

.lead-image,
.lead-image img {
  min-height: 620px;
  height: 100%;
}

.lead-image img {
  object-fit: cover;
}

.section-heading {
  margin: 82px 0 28px;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: end;
  gap: 34px;
  border-bottom: 1px solid var(--ink);
}

.section-heading .section-kicker {
  margin-bottom: 12px;
  color: var(--copper);
}

.section-heading h2 {
  max-width: 18ch;
  margin: 0 0 13px;
  color: var(--purple-dark);
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 1.08;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 28px;
}

.story-card {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 22px;
  align-items: start;
}

.story-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-card .eyebrow {
  margin-bottom: 9px;
  color: var(--copper);
  font-size: 0.64rem;
}

.story-card h3 {
  margin: 0 0 12px;
  color: var(--purple-dark);
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.15;
}

.story-card h3 a {
  text-decoration: none;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.story-card .meta {
  margin-top: 14px;
  font-size: 0.64rem;
  text-transform: uppercase;
}

.guide-index {
  margin: 86px 0 0;
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 28px 60px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
}

.guide-intro h2 {
  margin: 0 0 18px;
  color: var(--purple-dark);
  font-size: 2.35rem;
  font-weight: normal;
  line-height: 1.08;
}

.guide-intro p {
  max-width: 38ch;
  color: var(--muted);
}

.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.guide-list li {
  border-bottom: 1px solid var(--line);
}

.guide-list a {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: baseline;
  text-decoration: none;
}

.guide-list .card-number {
  color: var(--copper);
  font-size: 0.7rem;
}

.guide-list strong {
  color: var(--purple-dark);
  font-size: 1.03rem;
  font-weight: normal;
}

.guide-list em {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer {
  padding: 48px 0 30px;
  color: #ece7ed;
  background: var(--purple-dark);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
}

.footer-brand {
  margin: 0 0 16px;
  color: white;
  font-size: 1.55rem;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  font-size: 0.82rem;
}

.site-footer ul {
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 6px;
}

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

.footer-label {
  margin-bottom: 12px !important;
  color: var(--copper-light);
  font-size: 0.67rem !important;
  font-weight: 700;
  text-transform: uppercase;
}

.colophon {
  max-width: var(--max);
  margin: 38px auto 0;
  padding: 20px 28px 0;
  color: #bdb4be;
  border-top: 1px solid #634d65;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.64rem;
  text-transform: uppercase;
}

/* Article pages */
.crumbs {
  margin: 25px 0 42px;
  color: var(--muted);
  font-size: 0.69rem;
  text-transform: uppercase;
}

.article-header {
  max-width: 940px;
  margin: 0 auto 34px;
}

.article-header .eyebrow {
  color: var(--copper);
}

.article-header h1 {
  max-width: 16ch;
  margin: 0 0 22px;
  color: var(--purple-dark);
  font-size: 3.85rem;
  font-weight: normal;
  line-height: 1.04;
}

.article-header .dek {
  max-width: 760px;
  margin: 0 0 26px;
  color: #4d474e;
  font-size: 1.22rem;
  line-height: 1.55;
}

.article-header .meta {
  color: var(--muted);
  font-size: 0.71rem;
  text-transform: uppercase;
}

.article-figure {
  max-width: 1120px;
  margin: 0 auto 50px;
}

.article-figure img {
  max-height: 700px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-figure figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: italic;
}

.article-layout {
  max-width: 940px;
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: 150px minmax(0, 680px);
  gap: 64px;
}

.article-aside {
  position: sticky;
  top: 22px;
  align-self: start;
  padding-top: 8px;
  color: var(--muted);
  border-top: 3px solid var(--copper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  line-height: 1.5;
}

.article-aside strong {
  display: block;
  margin-bottom: 7px;
  color: var(--purple);
  text-transform: uppercase;
}

.article-body > p:first-child::first-letter {
  float: left;
  margin: 8px 9px 0 0;
  color: var(--copper);
  font-size: 4.4rem;
  line-height: 0.72;
}

.article-body h2 {
  margin: 58px 0 16px;
  color: var(--purple-dark);
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.18;
}

.article-body h3 {
  margin: 34px 0 10px;
  color: var(--purple);
  font-size: 1.35rem;
  font-weight: normal;
  line-height: 1.25;
}

.article-body h4 {
  margin: 26px 0 8px;
  color: var(--ink);
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 26px;
  padding-left: 25px;
}

.article-body li {
  margin-bottom: 9px;
}

.article-body blockquote {
  margin: 38px 0;
  padding: 24px 0 24px 28px;
  color: var(--purple-dark);
  border-left: 5px solid var(--copper);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
}

.article-body .practice {
  margin: 35px 0;
  padding: 26px 28px;
  background: var(--mist);
  border-top: 3px solid var(--purple);
}

.article-body .practice h3 {
  margin-top: 0;
}

.article-end {
  margin-top: 58px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.article-end a {
  color: var(--purple);
  font-weight: 700;
}

/* Category and search pages */
.page-intro {
  margin: 38px 0 48px;
  padding: 46px 0 34px;
  display: grid;
  grid-template-columns: 170px minmax(0, 740px);
  gap: 34px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  margin: 0 0 18px;
  color: var(--purple-dark);
  font-size: 3.2rem;
  font-weight: normal;
  line-height: 1.05;
}

.page-intro p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.category-list {
  margin-bottom: 90px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.category-item {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 90px;
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.category-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-item h2 {
  margin: 0 0 8px;
  color: var(--purple-dark);
  font-size: 1.7rem;
  font-weight: normal;
  line-height: 1.18;
}

.category-item h2 a {
  text-decoration: none;
}

.category-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-item .meta {
  color: var(--muted);
  font-size: 0.65rem;
  text-align: right;
  text-transform: uppercase;
}

.search-panel {
  max-width: 900px;
  margin: 0 auto 100px;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 2px solid var(--purple);
}

.search-form input {
  min-width: 0;
  padding: 16px 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 1.25rem;
}

.search-form button {
  padding: 12px 20px;
  color: white;
  background: var(--purple);
  border: 0;
  cursor: pointer;
}

.search-status {
  min-height: 24px;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.search-results {
  border-top: 1px solid var(--ink);
}

.search-result {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.search-result img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.search-result h2 {
  margin: 0 0 7px;
  color: var(--purple-dark);
  font-size: 1.55rem;
  font-weight: normal;
  line-height: 1.18;
}

.search-result h2 a {
  text-decoration: none;
}

.search-result p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-result .eyebrow {
  margin: 0;
  color: var(--copper);
  font-size: 0.62rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .masthead {
    grid-template-columns: 1fr auto;
  }

  .edition {
    display: none;
  }

  .brand {
    justify-self: start;
  }

  .lead-story {
    grid-template-columns: 1fr;
  }

  .lead-copy {
    min-height: 500px;
  }

  .lead-image,
  .lead-image img {
    min-height: 450px;
  }

  .lead-image {
    order: -1;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .guide-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-aside {
    position: static;
    max-width: 300px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .masthead,
  .page-shell,
  .guide-inner,
  .footer-grid,
  .colophon {
    padding-left: 18px;
    padding-right: 18px;
  }

  .masthead {
    padding-top: 15px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .brand {
    font-size: 1.45rem;
    white-space: normal;
  }

  .tagline {
    justify-self: start;
    text-align: left;
  }

  .primary-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    padding: 0 18px 10px;
    background: var(--mist);
    font-family: Arial, Helvetica, sans-serif;
  }

  .mobile-nav summary {
    padding: 10px 0 3px;
    color: var(--purple);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .mobile-nav nav {
    padding: 7px 0 4px;
    display: grid;
  }

  .mobile-nav a {
    padding: 7px 0;
    border-top: 1px solid var(--line);
    font-size: 0.77rem;
    text-decoration: none;
  }

  .issue-line {
    align-items: flex-end;
    font-size: 0.61rem;
  }

  .lead-copy {
    min-height: 0;
    padding: 36px 26px 32px;
  }

  .lead-copy h1 {
    font-size: 2.55rem;
  }

  .lead-image,
  .lead-image img {
    min-height: 310px;
  }

  .section-heading {
    margin-top: 60px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .story-card img {
    aspect-ratio: 3 / 2;
  }

  .guide-index {
    margin-top: 60px;
  }

  .guide-list a {
    grid-template-columns: 30px 1fr;
  }

  .guide-list em {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .crumbs {
    margin-bottom: 28px;
  }

  .article-header h1 {
    font-size: 2.5rem;
  }

  .article-header .dek {
    font-size: 1.05rem;
  }

  .article-figure {
    margin-left: -18px;
    margin-right: -18px;
  }

  .article-figure figcaption {
    padding: 0 18px;
  }

  .article-body h2 {
    font-size: 1.65rem;
  }

  .article-body blockquote {
    margin-left: 0;
    padding-left: 18px;
    font-size: 1.15rem;
  }

  .page-intro {
    padding-top: 28px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-intro h1 {
    font-size: 2.35rem;
  }

  .category-item {
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }

  .category-item h2 {
    font-size: 1.25rem;
  }

  .category-item p,
  .category-item .meta {
    display: none;
  }

  .search-result {
    grid-template-columns: 100px 1fr;
    gap: 8px;
  }

  .search-result .eyebrow {
    display: none;
  }
}

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