:root {
  --bg: #faf9f6;
  --paper: #ffffff;
  --ink: #1a1a18;
  --muted: #63635e;
  --line: #e4e1d8;
  --accent: #b3401f;
  --ph: #ece9e0;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, sans-serif;
}

:root[data-theme="light"] {
  --bg: #faf9f6;
  --paper: #ffffff;
  --ink: #1a1a18;
  --muted: #63635e;
  --line: #e4e1d8;
  --accent: #b3401f;
  --ph: #ece9e0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1a17;
    --paper: #24211d;
    --ink: #ede8dd;
    --muted: #a39e93;
    --line: #3a352e;
    --accent: #e08a5f;
    --ph: #2e2a25;
  }
}

:root[data-theme="dark"] {
  --bg: #1c1a17;
  --paper: #24211d;
  --ink: #ede8dd;
  --muted: #a39e93;
  --line: #3a352e;
  --accent: #e08a5f;
  --ph: #2e2a25;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 24px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.top-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
}

.top.scrolled {
  border-bottom-color: var(--line);
}

body:has(main .back) .top {
  border-bottom-color: var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 220px;
}

.brand-logo--small {
  height: 26px;
  max-width: 170px;
}

.brand-logo--dark {
  display: none;
}

:root[data-theme="dark"] .brand-logo--light {
  display: none;
}

:root[data-theme="dark"] .brand-logo--dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo--light {
    display: none;
  }
  :root:not([data-theme="light"]) .brand-logo--dark {
    display: block;
  }
}

nav {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
}

nav > a {
  padding: 6px 4px;
  line-height: 1.4;
}

nav a:hover,
nav button:hover {
  color: var(--ink);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 14px;
  line-height: 1.4;
}

.nav-pill:hover {
  color: var(--ink);
  border-color: var(--accent);
}

nav button {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

#theme {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  background: transparent;
}

#theme:hover {
  border-color: var(--accent);
}

#theme .theme-icon {
  margin-right: 6px;
}

.menu-btn {
  display: none;
}

@media (max-width: 640px) {
  .top {
    position: relative;
  }

  .top-inner nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.5rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25);
  }

  body.nav-open .top-inner nav {
    display: flex;
  }

  .top-inner nav a {
    padding: .8rem .25rem;
    border-bottom: 1px solid var(--line);
  }

  .top-inner nav .nav-pill {
    margin-top: .9rem;
    align-self: flex-start;
  }

  .top-inner nav #theme {
    margin-top: .9rem;
    align-self: flex-start;
  }

  .menu-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: .8rem;
    cursor: pointer;
    color: inherit;
  }

  .menu-btn span {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
}

.site-hero {
  width: 100vw;
  position: relative;
  z-index: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.site-hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 72px 24px 130px;
}

.site-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
}

.site-hero p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  max-width: 32em;
}

.featured.entry {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  align-items: stretch;
  gap: 0;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: -90px auto 0;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(46, 41, 35, 0.16);
  padding: 0;
}

.featured-media.photo {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  min-height: 0;
  max-height: none;
  align-self: center;
  object-position: center;
  background: var(--ph);
  color: var(--muted);
}

.featured-body {
  padding: 32px 32px 30px;
}

.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 13px;
}

.pill {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 500;
}

.pill-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.featured h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.featured:hover h2 {
  color: var(--accent);
}

.featured p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.featured .meta {
  color: var(--muted);
  margin-top: 12px;
}

.btn {
  display: inline-block;
  margin-top: 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}

.section-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 56px 0 12px;
}

.filters {
  display: flex;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.filters button {
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 4px 12px;
}

.filters button:hover {
  color: var(--ink);
}

.filters button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

/* Reviews toolbar: search + filters */
.reviews-toolbar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.search-wrapper input {
  width: 100%;
  padding: 10px 14px 10px 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.pagination-info {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  gap: 4px;
}

.pagination-page {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pagination-page:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-page[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  cursor: default;
}

@media (max-width: 560px) {
  .reviews-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrapper {
    max-width: none;
  }
  .pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .pagination-controls {
    justify-content: center;
    width: 100%;
  }
  .pagination-pages {
    order: -1;
    justify-content: center;
  }
}

.entry {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.entry h2 {
  font-weight: 500;
  font-size: 26px;
  line-height: 1.28;
  margin: 6px 0 10px;
  transition: color 0.2s;
}

.entry:hover h2 {
  color: var(--accent);
}

.entry p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.entry .photo {
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.meta {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.score {
  color: var(--accent);
  font-weight: 500;
}

/* image slots: use <img class="photo"> or the empty placeholder <div class="photo"> */
.photo {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: var(--ph);
}

div.photo {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  border: 1px dashed var(--line);
}

figure {
  margin: 2.2em 0;
}

article img.photo {
  max-height: 520px;
}

figure figcaption {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 10px;
}

.hero {
  aspect-ratio: 16 / 9;
}

.wide {
  width: min(900px, calc(100vw - 48px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pair .photo {
  aspect-ratio: 4 / 5;
}

.back {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  margin: 24px 0 40px;
}

.back:hover {
  color: var(--ink);
}

article h1 {
  font-weight: 400;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 14px 0 18px;
}

.dek {
  font-style: italic;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 40rem;
}

.byline {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  justify-content: space-between;
}

.byline .social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.byline a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.byline a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

article > h1,
article > .dek,
article > .meta,
article > .byline,
article > .body,
article > .next,
article > .about {
  max-width: 40rem;
  margin-inline: auto;
}

article > a.back {
  display: block;
  max-width: 40rem;
  margin-inline: auto;
}

.body p {
  margin: 0 0 1.35em;
}

.body.dropcap > p:first-of-type::first-letter {
  font-size: 3.3em;
  float: left;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--accent);
}

.body h3 {
  font-weight: 500;
  font-size: 24px;
  margin: 2em 0 0.6em;
}

blockquote {
  margin: 2em 0;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
}

.verdict {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 28px;
  margin: 48px 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
}

.verdict strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 6px;
}

.verdict dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 22px;
  margin: 14px 0 0;
}

.verdict dt {
  color: var(--muted);
}

.verdict dd {
  margin: 0;
}

.next {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 56px;
}

.next a span {
  display: block;
  font-size: 22px;
  font-weight: 500;
}

.next a:hover span {
  color: var(--accent);
}

.about {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 28px 0 8px;
  font-family: var(--sans);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
}

.about-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ph);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  font-size: 14px;
}

.about h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}

.about p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 32em;
}

.about p:last-child {
  margin-bottom: 0;
}

/* Homepage about box without photo: single column + breathing room above footer */
.about--no-photo {
  grid-template-columns: 1fr;
  margin-bottom: 24px;
}

/* Article footer: next article + author side by side */
.article-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Reset individual borders/margins when inside article-footer */
.article-footer .next,
.article-footer .about {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  max-width: none;
  margin-inline: 0;
}

/* About on left, Next on right */
.article-footer .about {
  order: -1;
  padding-bottom: 0;
}

@media (max-width: 800px) {
  .article-footer {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-footer .next {
    order: 0; /* Next article after author on mobile */
  }
  .article-footer .about {
    order: -1; /* Author first on mobile */
  }
}

.error {
  padding: 88px 0 56px;
}

.error h1 {
  font-weight: 400;
  font-size: clamp(30px, 5.2vw, 42px);
  line-height: 1.2;
  margin: 0 0 18px;
}

.error p {
  margin: 0 0 24px;
  color: var(--muted);
}

footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 40px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

.foot-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-inner > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

footer a:hover {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

footer .social-icons {
  display: inline-flex;
  gap: 12px;
  margin-left: 14px;
  vertical-align: middle;
}

footer .social-icons a {
  display: inline-flex;
  text-decoration: none;
  color: var(--muted);
}

footer .social-icons a:hover {
  color: var(--accent);
}

footer .social-icons svg {
  display: block;
}

[id] {
  scroll-margin-top: 90px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 800px) {
  .site-hero-inner {
    padding: 56px 24px 110px;
  }

  .featured.entry {
    grid-template-columns: 1fr;
    margin-top: -70px;
  }

  .featured-media.photo {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 18px;
  }

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

  .entry .photo {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .site-hero-inner {
    padding: 48px 24px 100px;
  }

  .featured-body {
    padding: 24px 22px;
  }

  .error {
    padding: 64px 0 40px;
  }

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

  .verdict dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .verdict dd {
    margin-bottom: 10px;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .facts dd {
    margin-bottom: 10px;
  }
}

/* ===== Review_Webpage additions (Option B: clean folder URLs) ===== */

/* Homepage hero: centered h1 + h2 + one-liner */
.home-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--paper);
  background-image:
    radial-gradient(680px 340px at 50% -60px, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='420' viewBox='0 0 900 420'><defs><pattern id='d' width='26' height='26' patternUnits='userSpaceOnUse'><circle cx='2' cy='2' r='1.5' fill='%231a1a18' fill-opacity='0.06'/></pattern></defs><rect width='300' height='420' fill='url(%23d)'/><g fill='none' stroke='%231a1a18' stroke-opacity='0.08'><circle cx='730' cy='210' r='150' stroke-width='1.5'/><circle cx='730' cy='210' r='112' stroke-width='1.5'/><path d='M672 210l42 42 76-88' stroke-width='11' stroke-linecap='round' stroke-linejoin='round'/></g></svg>");
  background-repeat: no-repeat;
  background-position: center top, right center;
  background-size: auto, auto 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

:root[data-theme="dark"] .home-hero {
  background-image:
    radial-gradient(680px 340px at 50% -60px, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='420' viewBox='0 0 900 420'><defs><pattern id='d' width='26' height='26' patternUnits='userSpaceOnUse'><circle cx='2' cy='2' r='1.5' fill='%23ede8dd' fill-opacity='0.07'/></pattern></defs><rect width='300' height='420' fill='url(%23d)'/><g fill='none' stroke='%23ede8dd' stroke-opacity='0.09'><circle cx='730' cy='210' r='150' stroke-width='1.5'/><circle cx='730' cy='210' r='112' stroke-width='1.5'/><path d='M672 210l42 42 76-88' stroke-width='11' stroke-linecap='round' stroke-linejoin='round'/></g></svg>");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home-hero {
    background-image:
      radial-gradient(680px 340px at 50% -60px, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
      url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='420' viewBox='0 0 900 420'><defs><pattern id='d' width='26' height='26' patternUnits='userSpaceOnUse'><circle cx='2' cy='2' r='1.5' fill='%23ede8dd' fill-opacity='0.07'/></pattern></defs><rect width='300' height='420' fill='url(%23d)'/><g fill='none' stroke='%23ede8dd' stroke-opacity='0.09'><circle cx='730' cy='210' r='150' stroke-width='1.5'/><circle cx='730' cy='210' r='112' stroke-width='1.5'/><path d='M672 210l42 42 76-88' stroke-width='11' stroke-linecap='round' stroke-linejoin='round'/></g></svg>");
  }
}

@media (max-width: 700px) {
  .home-hero {
    background-position: center top, right -260px center;
  }
}

.home-hero-grid {
  max-width: 44rem;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.home-hero-text .one-liner {
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 17px;
  max-width: 34em;
}

.home-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.home-hero-text .eyebrow {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.home-hero-text h1 {
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.home-hero-text h2 {
  font-weight: 400;
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 12px;
}

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Homepage "So Testen Wir" steps: text labels in a line, chevron arrowheads. */
.steps {
  margin-top: 40px;
}

.steps .section-title {
  margin: 0 0 8px;
}

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

.steps-list li {
  position: relative;
  text-align: center;
  font-family: var(--sans);
}

.steps-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  right: -17px;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted);
  transform: rotate(45deg);
}

.step-label {
  display: block;
  max-width: 12em;
  margin: 0 auto;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
}

/* Redaktions-Platzhalter: gelb markierte TODOs im Artikel-Entwurf */
.todo {
  background: #fff3bf;
  border-radius: 4px;
  padding: 0 5px;
  font-family: var(--sans);
  font-size: 0.85em;
  white-space: nowrap;
}

:root[data-theme="dark"] .todo {
  background: #5c4d00;
  color: #ffe08a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .todo {
    background: #5c4d00;
    color: #ffe08a;
  }
}

/* Kennzahlen-Tabelle im Fließtext (Praxistest) */
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 22px;
  margin: 1.6em 0;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

@media (max-width: 640px) {
  .steps-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps-list li:not(:last-child)::after {
    top: auto;
    bottom: -19px;
    right: 50%;
    margin-right: -5px;
    transform: rotate(135deg);
  }
}

/* Article rows: image left, title + excerpt middle, score + readtime right */
.entry--browse {
  grid-template-columns: 200px 1fr auto;
  gap: 28px;
}

.entry-media {
  margin: 0;
}

.entry--browse .photo {
  height: 150px;
}

.entry-main h2 {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.28;
  margin: 6px 0 8px;
}

.entry--browse:hover .entry-main h2 {
  color: var(--accent);
}

.entry-main p {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.entry-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 110px;
  text-align: right;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
}

.score-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

/* Article body: subsections are h2 per Design.md, FAQ questions are h3 */
.body h2 {
  font-weight: 500;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.1em 0 0.6em;
}

.body h3 {
  font-weight: 500;
  font-size: 21px;
  margin: 1.6em 0 0.5em;
}

/* FAQ at end of each article */
.faq {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 8px;
}

.faq h2 {
  font-weight: 500;
  font-size: 27px;
  margin: 1.4em 0 0.4em;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq-item h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.4;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* Contact CTA after each article */
.contact-cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 30px;
  margin: 48px 0 0;
  font-family: var(--sans);
}

.contact-cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  margin: 0 0 8px;
}

.contact-cta p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* Simple, elegant reveal animation (progressive enhancement only) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.top {
  transition: border-color 0.2s, box-shadow 0.25s ease;
}

.top.scrolled {
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.35);
}

.entry--browse, .featured.entry {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.entry--browse:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .entry--browse, .featured.entry, .top {
    transition: none;
  }
}

@media (max-width: 800px) {
  .home-hero-grid {
    padding: 48px 24px 56px;
  }
  .entry--browse {
    grid-template-columns: 150px 1fr;
  }
  .entry-side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .entry--browse {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .entry--browse .photo {
    order: -1;
    height: auto;
  }
  .entry-side {
    grid-column: auto;
  }
}

/* FAQ-Akkordeon (nativ per details/summary: ohne JS, Crawler sieht alles) */
.faq-item summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::marker{content:""}
.faq-item summary h3{flex:1;margin:0}
.faq-item summary::after{content:"+";flex:none;width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:var(--accent);font-size:18px;line-height:1}
.faq-item[open] summary::after{content:"–";border-color:var(--accent)}
.faq-item[open] summary h3{color:var(--accent)}
.faq-item p{margin:12px 0 4px}

/* Links im Lesetext: in Light- und Dark-Mode klar erkennbar (Theme kommt aus var(--accent)) */
.body a{color:var(--accent);font-weight:500;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.body a:hover{text-decoration-thickness:2.5px}
.body a[href^="http"]::after{content:"↗";display:inline-block;margin-left:2px;font-size:.8em}

/* Card-Bilder: feste Maximalgröße im Zeilen-Layout */
.entry--browse .entry-media{max-width:220px;min-width:0}
.entry--browse .entry-media img{width:100%;max-width:220px;height:150px;object-fit:cover}
