.content-page {
  background:
    radial-gradient(circle at 82% 8rem, rgb(255 79 40 / 0.1), transparent 26rem),
    repeating-linear-gradient(0deg, transparent 0 6px, rgb(255 79 40 / 0.018) 7px),
    var(--ink);
}

.content-page #site-nav a[aria-current="page"] {
  color: var(--paper);
}

.content-page #site-nav a[aria-current="page"]::after {
  right: 0;
}

.guide-page {
  padding-bottom: 7rem;
}

.breadcrumbs {
  padding-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--paper);
  text-decoration: none;
}

.guide-hero {
  max-width: 68rem;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
  animation: guide-arrival 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.guide-hero h1 {
  max-width: 12ch;
  margin: 0.7rem 0 1.7rem;
  color: var(--paper);
  font: 900 clamp(4.4rem, 11vw, 9rem) / 0.83 var(--display);
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.guide-hero__answer {
  max-width: 48rem;
  margin: 0;
  color: var(--paper-dim);
  font-size: clamp(1.08rem, 2.1vw, 1.45rem);
  line-height: 1.55;
}

.guide-play-link {
  min-height: 44px;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--hot-bright);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.guide-play-link span {
  color: var(--gold);
  transition: transform 180ms ease;
}

.guide-play-link:hover span {
  transform: translate(0.2rem, -0.2rem);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
  border-top: 1px solid var(--line);
}

.guide-toc {
  position: sticky;
  top: 1.5rem;
  padding-top: 2rem;
  display: grid;
}

.guide-toc > strong {
  margin-bottom: 1rem;
  color: var(--paper);
  font: 900 0.75rem/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-toc a {
  min-height: 44px;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.25;
  text-decoration: none;
}

.guide-toc a:last-child {
  border-bottom: 1px solid var(--line);
}

.guide-toc a:hover {
  color: var(--paper);
}

.guide-toc a span {
  color: var(--hot);
  font-family: var(--display);
  font-weight: 900;
}

.guide-article {
  min-width: 0;
}

.guide-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.guide-section:first-child {
  border-top: 0;
}

.guide-section h2,
.guide-faqs h2,
.related-guides h2,
.guide-cta h2 {
  max-width: 18ch;
  margin: 0 0 1.5rem;
  color: var(--paper);
  font: 900 clamp(2.5rem, 5vw, 4.5rem) / 0.92 var(--display);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.guide-section h3 {
  margin: 0.6rem 0 0.9rem;
  color: var(--gold);
  font: 900 1.55rem/1 var(--display);
  text-transform: uppercase;
}

.guide-section p,
.guide-section li,
.guide-faqs p,
.guide-cta p {
  color: var(--paper-dim);
  font-size: 1.02rem;
  line-height: 1.8;
}

.guide-section p {
  margin: 0.9rem 0;
}

.guide-section a,
.guide-faqs a {
  color: var(--hot-bright);
}

.guide-note {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  color: var(--paper-dim);
  background: linear-gradient(105deg, rgb(255 79 40 / 0.12), transparent);
  border-left: 2px solid var(--hot);
  line-height: 1.65;
}

.guide-note strong {
  color: var(--gold);
}

.step-list {
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  list-style: none;
  counter-reset: steps;
  background: var(--line);
}

.step-list li {
  margin: 0;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 1rem;
  background: var(--panel);
  counter-increment: steps;
}

.step-list li::before {
  content: counter(steps, decimal-leading-zero);
  color: var(--hot);
  font: 900 1.5rem/1 var(--display);
}

.step-list li strong {
  color: var(--paper);
}

.guide-table-wrap {
  margin: 2rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  scrollbar-color: var(--hot) var(--panel);
}

.guide-table-wrap table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
}

.guide-table-wrap th,
.guide-table-wrap td {
  padding: 1rem;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.guide-table-wrap th {
  color: var(--gold);
  background: var(--panel-warm);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode-card {
  margin-top: 1px;
  padding: 1.5rem;
  background: linear-gradient(145deg, var(--panel), var(--panel-warm));
  border-left: 2px solid var(--hot);
}

.mode-card > span {
  color: var(--hot);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mode-card p {
  margin-bottom: 0;
}

.mode-card p strong {
  color: var(--paper);
}

.cup-rack-figure {
  margin: 2rem 0;
  padding: 2rem;
  background:
    radial-gradient(circle at center, rgb(255 79 40 / 0.08), transparent 55%),
    var(--panel);
  border: 1px solid var(--line-hot);
  text-align: center;
}

.cup-rack {
  width: min(100%, 24rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-areas:
    ". . . a . . ."
    ". . b . c . ."
    ". d . e . f ."
    "g . h . i . j";
  gap: 0.55rem 0;
}

.cup-rack__cup {
  width: 3rem;
  aspect-ratio: 1;
  justify-self: center;
  border: 3px solid var(--hot-bright);
  border-radius: 50%;
  background: radial-gradient(circle, #24100c 38%, var(--hot) 42% 63%, #8f2615 64%);
  box-shadow: 0 0 1.2rem rgb(255 79 40 / 0.16);
}

.cup-rack__cup:nth-child(1) { grid-area: a; }
.cup-rack__cup:nth-child(2) { grid-area: b; }
.cup-rack__cup:nth-child(3) { grid-area: c; }
.cup-rack__cup:nth-child(4) { grid-area: d; }
.cup-rack__cup:nth-child(5) { grid-area: e; }
.cup-rack__cup:nth-child(6) { grid-area: f; }
.cup-rack__cup:nth-child(7) { grid-area: g; }
.cup-rack__cup:nth-child(8) { grid-area: h; }
.cup-rack__cup:nth-child(9) { grid-area: i; }
.cup-rack__cup:nth-child(10) { grid-area: j; }

.cup-rack-figure figcaption {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-cta,
.guide-faqs,
.related-guides {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.guide-cta {
  padding-inline: clamp(1.4rem, 4vw, 3rem);
  background: linear-gradient(120deg, rgb(255 79 40 / 0.14), transparent 72%);
  border: 1px solid var(--line-hot);
}

.guide-cta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--hot-bright);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.guide-faqs details {
  border-top: 1px solid var(--line);
}

.guide-faqs details:last-child {
  border-bottom: 1px solid var(--line);
}

.guide-faqs summary {
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  color: var(--paper);
  cursor: pointer;
  font-weight: 800;
}

.guide-faqs details[open] summary {
  color: var(--gold);
}

.guide-faqs details p {
  margin-top: 0;
  padding: 0 2rem 1.4rem 0;
}

.related-guides > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.related-guide {
  min-height: 12rem;
  padding: 1.4rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--paper);
  background: var(--panel);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.related-guide:hover {
  z-index: 1;
  background: var(--panel-warm);
  transform: translateY(-0.2rem);
}

.related-guide span {
  color: var(--hot);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-guide strong {
  max-width: 12ch;
  align-self: center;
  font: 900 2rem/0.95 var(--display);
  text-transform: uppercase;
}

.related-guide i {
  color: var(--gold);
  font-style: normal;
}

@keyframes guide-arrival {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .content-page #site-nav {
    gap: 1rem;
  }

  .guide-layout {
    gap: 3rem;
  }

  .related-guides > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .guide-page {
    padding-bottom: 4.5rem;
  }

  .guide-hero {
    padding-block: 4rem;
  }

  .guide-hero h1 {
    font-size: clamp(4rem, 19vw, 6.3rem);
  }

  .guide-layout {
    display: block;
  }

  .guide-toc {
    position: static;
    margin-inline: calc(50% - 50vw);
    padding: 0.8rem max(0.75rem, calc(50vw - 50%));
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    background: #0c0d0c;
    border-block: 1px solid var(--line);
    scrollbar-width: thin;
  }

  .guide-toc > strong {
    display: none;
  }

  .guide-toc a {
    min-width: max-content;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
  }

  .guide-toc a:last-child {
    border: 1px solid var(--line);
  }

  .related-guides > div {
    grid-template-columns: 1fr;
  }

  .cup-rack-figure {
    padding-inline: 0.75rem;
  }

  .cup-rack__cup {
    width: clamp(2rem, 11vw, 3rem);
  }
}

@media (max-width: 480px) {
  .breadcrumbs {
    align-items: flex-start;
    font-size: 0.61rem;
  }

  .guide-section h2,
  .guide-faqs h2,
  .related-guides h2,
  .guide-cta h2 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .step-list li {
    grid-template-columns: 2.2rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-hero,
  .guide-section {
    animation: none;
  }

  .guide-play-link span,
  .related-guide {
    transition: none;
  }
}
