:root {
  --paper: #fffdf8;
  --paper-soft: #f7efe8;
  --ink: #181515;
  --muted: #665f5b;
  --aqua: #63cfc5;
  --plum: #4b2147;
  --amber: #efb36b;
  --line: #e9e1da;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lato", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

a {
  color: var(--plum);
  text-decoration-color: rgba(99, 207, 197, 0.8);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: #251020;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--plum);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 5.4rem);
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.45rem;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--plum);
  color: var(--white);
}

.skip-link:focus {
  left: 0;
}

.reader-tools {
  background: var(--plum);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reader-tools__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
}

.reader-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.reader-search input,
.sidebar-search input {
  height: 2.35rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
}

.reader-search input {
  width: 180px;
}

.button,
button.button {
  border-radius: 0;
  background: var(--aqua);
  color: #102321;
  font-weight: 900;
  text-transform: uppercase;
}

.button:hover,
.button:focus {
  background: var(--amber);
  color: var(--ink);
}

.brand-panel {
  padding: 1.6rem 0 1.35rem;
  background:
    linear-gradient(90deg, rgba(99, 207, 197, 0.22), transparent 26%, transparent 74%, rgba(239, 179, 107, 0.2)),
    var(--paper);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
}

.site-brand img {
  max-height: 96px;
  object-fit: contain;
}

.title-bar {
  display: none;
  background: var(--plum);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0;
  background: var(--white);
  border-bottom: 3px solid var(--aqua);
  box-shadow: 0 10px 20px rgba(24, 21, 21, 0.06);
}

.site-nav .grid-container,
.site-nav .top-bar-left {
  width: 100%;
}

.site-nav ul.menu {
  justify-content: center;
  background: transparent;
}

.site-nav .menu > li > a {
  padding: 1rem 0.65rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav .menu > li > a:hover,
.site-nav .menu > li > a:focus {
  background: var(--paper-soft);
  color: var(--plum);
}

.site-nav .nested {
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(24, 21, 21, 0.12);
}

.site-main {
  min-height: 56vh;
}

.article-hero,
.listing-hero {
  padding: 4.6rem 0 3.8rem;
  background:
    linear-gradient(135deg, rgba(99, 207, 197, 0.22), rgba(239, 179, 107, 0.18)),
    var(--paper-soft);
  border-top: 4px solid var(--amber);
  border-bottom: 1px solid var(--line);
}

.article-hero.compact,
.listing-hero.compact {
  padding: 3rem 0 2.4rem;
}

.listing-hero p,
.article-summary {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.15rem;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 0.9rem;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumbs-wrap {
  margin-bottom: 1.25rem;
}

.breadcrumbs {
  margin: 0;
}

.breadcrumbs li {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

.content-container {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.article-body {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.2rem, 3vw, 2.3rem);
  box-shadow: 0 16px 34px rgba(24, 21, 21, 0.05);
}

.article-body > p:first-of-type {
  font-size: 1.08rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.content-heading {
  margin-top: 2rem;
}

.content-image {
  margin: 1.75rem 0;
  text-align: center;
}

.content-image img {
  border: 1px solid var(--line);
  background: var(--paper);
}

.content-image.rating-image img {
  max-width: 160px;
  border: 0;
  background: transparent;
}

.content-image figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 6px solid var(--aqua);
  background: var(--paper-soft);
  color: var(--plum);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
}

.content-list {
  margin-left: 1.1rem;
}

.content-rule {
  border-bottom: 1px solid var(--line);
}

.listing-stack {
  display: grid;
  gap: 1.3rem;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(128px, 180px) minmax(0, 1fr);
  gap: 1.25rem;
  min-height: 178px;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(24, 21, 21, 0.04);
}

.card-grid .post-card {
  grid-template-columns: 1fr;
  height: 100%;
}

.post-card__media {
  display: block;
  min-height: 150px;
  background: var(--paper-soft);
  text-decoration: none;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  max-height: 230px;
  object-fit: cover;
}

.post-card__body h2 {
  margin: 0.25rem 0 0.55rem;
  font-size: 1.45rem;
}

.post-card__body h2 a {
  color: var(--plum);
  text-decoration: none;
}

.post-card__body h2 a:hover,
.post-card__body h2 a:focus {
  text-decoration: underline;
  text-decoration-color: var(--aqua);
}

.post-card__body p {
  margin-bottom: 0;
  color: var(--muted);
}

.reader-sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-widget {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.sidebar-widget h2 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.sidebar-menu a,
.footer-menu a {
  padding: 0.42rem 0;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.sidebar-menu a:hover,
.footer-menu a:hover {
  color: var(--plum);
  text-decoration: underline;
  text-decoration-color: var(--aqua);
}

.pagination-wrap {
  margin-top: 2rem;
}

.site-footer {
  margin: 0;
  padding: 2.7rem 0;
  background: var(--plum);
  border: 0;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.35rem;
}

.site-footer a {
  color: var(--white);
  text-decoration-color: var(--aqua);
}

.site-footer p {
  max-width: 34rem;
}

@media screen and (max-width: 63.9375em) {
  .site-nav {
    position: static;
  }

  .site-nav ul.menu {
    justify-content: flex-start;
  }

  .reader-sidebar {
    position: static;
    margin-top: 2rem;
  }
}

@media screen and (max-width: 39.9375em) {
  body {
    font-size: 16px;
  }

  .reader-tools__inner {
    align-items: stretch;
    flex-direction: column;
    padding: 0.55rem 0;
  }

  .reader-search,
  .reader-search input {
    width: 100%;
  }

  .title-bar {
    display: flex;
  }

  .brand-panel {
    padding: 1rem 0;
  }

  .site-brand {
    min-height: 60px;
  }

  .article-hero,
  .listing-hero {
    padding: 2.7rem 0 2.2rem;
  }

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