:root {
  --brand: #c45a28;
  --brand-deep: #a8461c;
  --ink: #1b2437;
  --ink-soft: #5b6577;
  --line: #e6e9ef;
  --paper: #ffffff;
  --muted: #f6f7f9;
  --hero: #f3eee8;
  --action: #1f3f8f;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(27, 36, 55, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

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

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

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.brand-ring,
.brand-ck {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-ring {
  animation: brand-spin 28s linear infinite;
}

.brand-ck {
  inset: 10%;
  width: 80%;
  height: 80%;
  margin: auto;
}

.brand-wordmark {
  height: 28px;
  width: auto;
}

@keyframes brand-spin {
  to {
    transform: rotate(360deg);
  }
}

.header-actions {
  display: flex;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.header-actions a:hover {
  color: var(--brand);
}

.guide-hero {
  background: linear-gradient(180deg, var(--hero), var(--paper));
  padding: 2.6rem clamp(1rem, 4vw, 2.5rem) 1.4rem;
  text-align: center;
}

.guide-hero h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.guide-hero p {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--ink-soft);
}

.guide-main {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 3rem;
}

.section-title {
  margin: 1.8rem 0 0.9rem;
}

.section-title h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card {
  display: grid;
  grid-template-rows: 160px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.guide-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.guide-card .body {
  padding: 1rem 1.05rem 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.guide-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.guide-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 1.35rem 0 0.85rem;
}

.crumb a:hover {
  color: var(--brand);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(1.1rem, 3vw, 1.7rem);
  box-shadow: var(--shadow);
}

.panel-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.panel-hero img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.panel h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.panel .lead {
  margin: 0;
  color: var(--ink-soft);
  max-width: 60ch;
}

.treat-list {
  display: grid;
  gap: 0.65rem;
}

.treat-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--muted);
}

.treat-row:hover {
  background: #fff;
  border-color: #d9dde7;
}

.treat-row .meta {
  display: grid;
  gap: 0.2rem;
}

.treat-row strong {
  font-size: 1rem;
}

.treat-row span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.chev {
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.article-body p {
  margin: 0 0 0.85rem;
  max-width: 62ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--action);
  color: #fff;
}

.btn-primary:hover {
  background: #183272;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #fff;
}

.btn-ghost:hover {
  border-color: #cfcfd8;
}

.page-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

.empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .panel-hero {
    grid-template-columns: 1fr;
  }

  .panel-hero img {
    height: 200px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
