:root {
  --paper: #f4f1ec;
  --surface: #fdfcf9;
  --navy: #1c2b3a;
  --text: #3d3d3d;
  --gold: #c4933f;
  --divider: #e0dad0;
  --guide: #3a7d44;
  --red: #c9302c;
  --max: 1180px;
  --reading: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a {
  color: var(--navy);
  text-decoration-color: rgba(196, 147, 63, 0.65);
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(196, 147, 63, 0.75);
  outline-offset: 4px;
}

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

.site-shell {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--divider);
  border-right: 1px solid var(--divider);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}

.brand-logo img {
  width: 172px;
  max-height: 54px;
  object-fit: contain;
  background: var(--surface);
  padding: 7px 10px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--surface);
  text-decoration: none;
}

main {
  padding: 34px 28px 48px;
}

.masthead {
  text-align: center;
  padding: 24px 0 34px;
  border-bottom: 1px solid var(--divider);
}

.presented-by,
.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.masthead h1 {
  max-width: 980px;
  margin: 0;
  margin-inline: auto;
  color: var(--navy);
  font-size: clamp(3rem, 7.4vw, 5.9rem);
  line-height: 0.94;
  font-weight: 700;
  overflow-wrap: normal;
  text-wrap: balance;
}

.dek {
  max-width: 660px;
  margin: 20px auto;
  color: #5a5752;
  font-size: 1.2rem;
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.author-link img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.edition-stats {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 22px;
  margin: 24px 0 0;
  padding: 14px 20px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  list-style: none;
}

.edition-stats li {
  display: grid;
  gap: 2px;
}

.edition-stats strong {
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.edition-stats span {
  color: #6a665f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
}

.featured-carousel {
  padding: 28px 0 0;
}

.carousel-frame {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--gold);
  background: var(--navy);
}

.carousel-slide[hidden] {
  display: none;
}

.carousel-link {
  position: relative;
  display: block;
  min-height: 420px;
  color: var(--surface);
  text-decoration: none;
}

.carousel-link::after {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, rgba(20, 29, 38, 0.86), rgba(20, 29, 38, 0.36) 58%, rgba(20, 29, 38, 0.08));
  content: "";
}

.carousel-link img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.carousel-copy {
  position: absolute;
  z-index: 1;
  left: 28px;
  bottom: 28px;
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.carousel-copy .kicker {
  margin: 0;
  color: var(--gold);
}

.carousel-copy strong {
  color: var(--surface);
  font-size: 2.8rem;
  line-height: 1.02;
}

.carousel-copy span:last-child {
  color: rgba(253, 252, 249, 0.84);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.carousel-controls {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
}

.carousel-button {
  min-height: 38px;
  border: 1px solid rgba(253, 252, 249, 0.7);
  border-radius: 0;
  background: rgba(28, 43, 58, 0.72);
  color: var(--surface);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0 12px;
  text-transform: uppercase;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: var(--surface);
  color: var(--navy);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 4px;
}

.carousel-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 0;
  background: var(--divider);
  cursor: pointer;
  padding: 0;
}

.carousel-dot[aria-current="true"] {
  background: var(--gold);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 30px;
  padding-top: 34px;
}

.latest-card,
.recent-section,
.archive-section,
.guide-box,
.youtube-banner {
  min-width: 0;
}

.latest-card {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--divider);
}

.latest-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.latest-meta .kicker {
  margin-bottom: 0;
}

.latest-meta span {
  color: #6a665f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
}

.latest-card h2,
.recent-section h2,
.archive-section h2,
.guide-box h2,
.article-header h1 {
  margin: 0;
  color: var(--navy);
  line-height: 1.05;
}

.latest-card h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.latest-card h2 a {
  text-decoration: none;
}

.latest-card p:not(.kicker) {
  max-width: var(--reading);
  font-size: 1.12rem;
}

.latest-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.text-link {
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.latest-card img {
  width: 100%;
  margin-top: 18px;
  border-top: 4px solid var(--gold);
}

.recent-section {
  align-self: start;
  padding: 20px;
  border-top: 4px solid var(--gold);
  background: var(--paper);
}

.recent-section h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
  font-size: 1.35rem;
}

.recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-item {
  border-bottom: 1px solid var(--divider);
}

.recent-item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
}

.recent-item span {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.recent-item time {
  color: #6a665f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  white-space: nowrap;
}

.guide-box {
  padding: 22px;
  background: #f0f6ef;
  border-top: 4px solid var(--guide);
}

.guide-box h2 {
  font-size: 1.45rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  background: var(--navy);
  color: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.youtube-banner {
  grid-column: 2;
}

.youtube-banner img {
  width: 100%;
  border: 1px solid var(--divider);
}

.archive-section {
  grid-column: 1 / -1;
  padding-top: 10px;
}

.archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 3px double var(--gold);
}

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

.archive-heading span {
  color: #6a665f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.archive-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 12px;
  margin: 18px 0;
}

.archive-tools input,
.archive-tools select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--divider);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  padding: 0 12px;
}

.archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-empty {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.archive-item {
  border-bottom: 1px solid var(--divider);
}

.archive-item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  padding: 14px 0;
  text-decoration: none;
}

.archive-item span:first-child {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
}

.archive-topics,
.archive-item time,
.issue-meta,
.site-footer {
  font-family: Arial, Helvetica, sans-serif;
}

.archive-topics {
  grid-column: 1;
  color: #6a665f;
  font-size: 0.82rem;
}

.archive-item time {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #6a665f;
  font-size: 0.82rem;
  white-space: nowrap;
}

.article-page {
  max-width: var(--reading);
  margin: 0 auto;
}

.article {
  padding-top: 28px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #6a665f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.article-header {
  text-align: center;
}

.article-header h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.issue-meta {
  color: #68635d;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0;
}

.topic {
  border: 1px solid var(--gold);
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  text-transform: uppercase;
}

.article-cover {
  width: 100%;
  margin: 24px 0;
  border-top: 4px solid var(--gold);
}

.article-body {
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.article-body h2 {
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.15;
  margin-top: 34px;
}

.article-body figure {
  margin: 28px 0;
}

.article-youtube-link {
  display: block;
  border-top: 4px solid var(--gold);
  text-decoration: none;
}

.callout,
.disclaimer {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: var(--paper);
}

.disclaimer {
  border-left-color: var(--red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
}

.issue-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.issue-nav a {
  display: grid;
  max-width: 320px;
  text-decoration: none;
}

.issue-nav a:last-child {
  margin-left: auto;
  text-align: right;
}

.issue-nav span {
  color: #6a665f;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.issue-nav strong {
  color: var(--navy);
  line-height: 1.25;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-top: 1px solid var(--divider);
  color: #6a665f;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-shell {
    border: 0;
  }

  .topbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar,
  main,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-logo img {
    width: 150px;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.74rem;
  }

  .masthead {
    text-align: left;
  }

  .masthead h1 {
    margin-inline: 0;
    font-size: clamp(2.6rem, 15vw, 4.1rem);
    line-height: 0.98;
  }

  .dek {
    margin-left: 0;
    margin-right: 0;
  }

  .edition-stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .featured-carousel {
    padding-top: 22px;
  }

  .carousel-link,
  .carousel-link img {
    min-height: 360px;
  }

  .carousel-link img {
    height: 360px;
  }

  .carousel-link::after {
    background: linear-gradient(0deg, rgba(20, 29, 38, 0.88), rgba(20, 29, 38, 0.18));
  }

  .carousel-copy {
    right: 18px;
    left: 18px;
    bottom: 18px;
  }

  .carousel-copy strong {
    font-size: 1.8rem;
  }

  .carousel-controls {
    top: 12px;
    right: 12px;
  }

  .home-grid,
  .archive-tools,
  .archive-list {
    display: block;
  }

  .recent-section,
  .guide-box,
  .youtube-banner,
  .archive-section {
    margin-top: 24px;
  }

  .latest-meta,
  .archive-heading {
    display: block;
  }

  .archive-tools input,
  .archive-tools select {
    margin-top: 10px;
  }

  .archive-item a {
    display: block;
  }

  .archive-topics,
  .archive-item time {
    display: block;
    margin-top: 4px;
    white-space: normal;
  }

  .recent-item a {
    display: block;
  }

  .recent-item time {
    display: block;
    margin-top: 4px;
    white-space: normal;
  }

  .article-page {
    max-width: none;
  }

  .article-header {
    text-align: left;
  }

  .topics {
    justify-content: flex-start;
  }

  .issue-nav {
    flex-direction: column;
  }
}
