:root {
  --paprika: #F5451E;
  --persimmon: #F5451E;
  --mustard: #E8A33D;
  --sage: #7A9471;
  --sage-dark: #5C7052;
  --page: #E6E6DF;
  --ink: #0E0E0E;
  --cream: #FFFDF9;
  --cream-dim: #F1EFE8;
  --espresso: #2B211C;
  --espresso-soft: #5A4A40;
  --line: #E2E1D8;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(43, 33, 28, 0.08);
  --shadow-lg: 0 16px 40px rgba(43, 33, 28, 0.14);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--page);
  color: var(--espresso);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 0.4em;
}

a { color: inherit; }

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

button { font-family: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / app bar ---------- */

.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: none;
}

.appbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.hamburger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Nav drawer ---------- */

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.nav-drawer.open { display: block; }

.nav-scrim {
  position: absolute;
  inset: 0;
  background: rgba(43, 33, 28, 0.45);
}

.nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 84vw);
  background: var(--cream);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.nav-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--cream-dim);
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-panel a {
  display: block;
  text-decoration: none;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--espresso);
  font-size: 1.05rem;
  font-weight: 600;
}

.nav-panel a:last-of-type { border-bottom: none; }

/* ---------- Hero / landing ---------- */

.hero {
  padding: 40px 0 28px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--persimmon);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  color: var(--espresso);
  max-width: 12ch;
}

.hero p {
  color: var(--espresso-soft);
  max-width: 46ch;
  margin: 12px 0 0;
}

/* ---------- Search ---------- */

.search-form {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow);
}

.search-form input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--espresso);
  min-width: 0;
}

.search-form input::placeholder { color: #B7A392; }

.search-form button {
  border: none;
  background: var(--paprika);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  font-size: 0.95rem;
  white-space: nowrap;
}

.search-form button:hover { background: var(--persimmon); }

/* ---------- Section headers ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 16px;
}

.section-head h2 { font-size: 1.4rem; }

.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.section-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--paprika);
  text-decoration: none;
}

/* ---------- Rotator ---------- */

.rotator {
  margin-top: 10px;
}

.rotator-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.rotator-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream-dim);
}

.rotator-photo img { width: 100%; height: 100%; object-fit: cover; }

.rotator-body { padding: 18px 20px 22px; }

.rotator-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--persimmon);
  margin-bottom: 6px;
}

.rotator-body h3 { font-size: 1.35rem; margin-bottom: 6px; }

.rotator-body p {
  color: var(--espresso-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Nav category grid (landing quick links) ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.cat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  text-decoration: none;
  color: var(--espresso);
  font-weight: 600;
  font-size: 0.92rem;
}

.cat-chip .ico { font-size: 1.15rem; }

/* ---------- Capsule grid / cards ---------- */

.capsule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 6px;
}

@media (min-width: 640px) {
  .capsule-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .capsule-grid { grid-template-columns: repeat(3, 1fr); }
}

.capsule-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.capsule-card-photo {
  aspect-ratio: 4 / 3;
  background: var(--cream-dim);
  overflow: hidden;
}

.capsule-card-photo img { width: 100%; height: 100%; object-fit: cover; }

.capsule-card-body { padding: 14px 16px 18px; }

.capsule-card-body h3 { font-size: 1.08rem; margin-bottom: 4px; }

.capsule-card-addr {
  font-size: 0.82rem;
  color: var(--espresso-soft);
  margin-bottom: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--cream-dim);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--sage-dark);
  text-decoration: none;
}

.tag-chip:hover { background: var(--sage); color: #fff; }

/* ---------- Filter / toolbar ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

.filter-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--espresso-soft);
}

.filter-pill.active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fff;
}

.result-count {
  color: var(--espresso-soft);
  font-size: 0.9rem;
  margin: 10px 0 0;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--espresso-soft);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  margin-top: 16px;
}

/* ---------- Capsule detail page ---------- */

.capsule-detail-head {
  padding: 28px 0 6px;
}

.capsule-detail-head .eyebrow-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.capsule-detail-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }

.capsule-meta {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--espresso-soft);
}

.capsule-meta a { color: var(--paprika); text-decoration: none; font-weight: 600; }

.capsule-meta strong { color: var(--espresso); font-weight: 700; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 22px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-grid img,
.photo-grid .ph {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.writeup {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--espresso);
  max-width: 62ch;
  margin: 10px 0 22px;
}

/* ---------- About / long-form content ---------- */

.prose {
  max-width: 62ch;
  font-size: 1.03rem;
  color: var(--espresso-soft);
}

.prose h2 { color: var(--espresso); margin-top: 1.6em; }

.prose p { margin: 0 0 1em; }

.prose a { color: var(--paprika); font-weight: 600; }

/* ---------- Cards for recommendations ---------- */

.reco-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 6px;
}

@media (min-width: 640px) {
  .reco-grid { grid-template-columns: repeat(2, 1fr); }
}

.reco-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, var(--paprika), var(--persimmon));
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
}

.reco-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.reco-card p { margin: 0; opacity: 0.9; font-size: 0.9rem; }

/* ---------- Forms (tips / newsletter) ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  max-width: 520px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--espresso);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--espresso);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--paprika);
  outline-offset: 1px;
}

.btn-primary {
  border: none;
  background: var(--paprika);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  font-size: 0.98rem;
}

.btn-primary:hover { background: var(--persimmon); }

.form-note {
  font-size: 0.85rem;
  color: var(--espresso-soft);
  margin-top: 12px;
}

.form-success {
  display: none;
  background: var(--sage);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.form-success.show { display: block; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 30px 0 50px;
  color: var(--espresso-soft);
  font-size: 0.88rem;
}

.site-footer a { color: var(--paprika); text-decoration: none; font-weight: 600; }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
}

main { display: block; }

.page-head {
  padding: 30px 0 6px;
}

.page-head h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); }

.page-head p {
  color: var(--espresso-soft);
  max-width: 56ch;
  margin-top: 8px;
}
