:root {
  --guide-muted: var(--muted-68);
  --guide-line: var(--line-25);
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
}

.guide-page {
  margin: 0 auto;
  max-width: var(--page-max-width);
  min-height: 100svh;
  padding: var(--page-gutter);
}

.guide-header > a {
  justify-self: start;
  width: fit-content;
}

.guide-header a,
.guide-header nav a {
  border: 1px solid var(--guide-line);
  border-radius: 999px;
  padding: 0.66rem 0.82rem;
  text-decoration: none;
}

.guide-header a:hover,
.guide-header a:focus-visible {
  background: var(--foreground);
  border-color: var(--foreground);
  color: var(--background);
  outline: none;
}

.guide-intro {
  border-bottom: 1px solid var(--guide-line);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 390px);
  padding: clamp(46px, 8vh, 82px) 0 clamp(24px, 4vh, 40px);
}

.guide-count,
.guide-status,
.guide-card-category,
.guide-card-hours,
.guide-links a,
.guide-empty p {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8.5vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.72;
  margin: 0;
  overflow-wrap: normal;
  text-transform: uppercase;
  word-break: normal;
  hyphens: none;
}

.guide-empty h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 0.82;
  margin: 0;
  overflow-wrap: normal;
  text-transform: uppercase;
  word-break: normal;
  hyphens: none;
}

.guide-intro-copy {
  align-self: end;
  font-size: clamp(0.92rem, 1.25vw, 1.1rem);
  line-height: 1.5;
  margin: 0;
  max-width: 32rem;
}

.guide-results {
  padding: clamp(28px, 5vw, 52px) 0;
}

.guide-results-bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.guide-count,
.guide-status {
  margin: 0;
}

.guide-status {
  color: var(--guide-muted);
}

.guide-grid {
  border-left: 1px solid var(--guide-line);
  border-top: 1px solid var(--guide-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
  border-bottom: 1px solid var(--guide-line);
  border-right: 1px solid var(--guide-line);
  min-height: 15rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  position: relative;
}

.guide-card .favorite-toggle {
  --favorite-size: 2rem;
  --favorite-padding: 0.43rem;
  right: 1rem;
  top: 1rem;
}

.guide-card-category,
.guide-card-hours {
  color: var(--guide-muted);
  margin: 0;
  padding-right: 2.4rem;
}

.guide-card-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.2vw, 3.6rem);
  letter-spacing: 0.015em;
  line-height: 0.88;
  margin: 1.4rem 0 0;
  overflow-wrap: normal;
  text-transform: uppercase;
  word-break: normal;
  hyphens: none;
}

.guide-card-description {
  color: var(--guide-muted);
  font-size: 0.88rem;
  line-height: 1.48;
  margin: 0.85rem 0 0;
}

.guide-card-hours {
  bottom: 1.2rem;
  left: clamp(1rem, 2vw, 1.5rem);
  position: absolute;
}

.guide-card-actions {
  align-items: center;
  bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  position: absolute;
  right: clamp(1rem, 2vw, 1.5rem);
}

.guide-card-actions a {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.guide-card-actions a:hover,
.guide-card-actions a:focus-visible {
  opacity: 0.65;
  outline: none;
}

.guide-empty {
  border: 1px solid var(--guide-line);
  padding: clamp(2rem, 6vw, 4rem);
}

.guide-empty h2 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  max-width: 8ch;
}

.guide-empty p {
  color: var(--guide-muted);
  line-height: 1.55;
  margin: 1.2rem 0 0;
  max-width: 36rem;
  text-transform: none;
}

.guide-links {
  border-top: 2px solid var(--foreground);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding: 1rem 0 0;
}

.guide-links a {
  color: var(--guide-muted);
  text-underline-offset: 0.2em;
}

@media (max-width: 1040px) {
  .guide-header > :is(a, p, nav) {
    display: none;
  }
}

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

  .guide-intro {
    display: block;
    padding: 52px 0 26px;
  }

  .guide-intro h1 {
    font-size: clamp(4.5rem, 21vw, 6.3rem);
  }

  .guide-intro-copy {
    font-size: 0.9rem;
    margin-top: 1.25rem;
    max-width: 20rem;
  }

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

  .guide-card {
    min-height: 13.5rem;
  }

  .guide-card-name {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
    max-width: calc(100% - 0.3rem);
  }

  .guide-card-description {
    font-size: 0.82rem;
    max-width: 28rem;
  }

  .guide-card-hours {
    bottom: 1.1rem;
  }

  .guide-card-actions {
    bottom: 0.95rem;
  }

  .guide-results-bar {
    align-items: flex-start;
    gap: 0.35rem;
    flex-direction: column;
  }
}
