/* Homepage top half (home_pages.py, 2026-11-21). Uses the site tokens from /style.css. Mobile first. */
.hp-hero {
  background:
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(110, 80, 40, .07) 46px 48px),
    var(--paper-2);
  border-bottom: 6px solid var(--green);
  padding: 28px 0 22px;
}
.hp-hero-grid { display: grid; gap: 22px; }
.hp-sign {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px 5px;
  background: var(--green); color: #fbf7ef; border-radius: 4px;
  font-family: var(--display); font-size: .95rem; letter-spacing: .04em;
  box-shadow: 0 2px 0 var(--green-2), var(--shadow-sm);
  transform: rotate(-1.2deg);
}
.hp-hero h1 {
  font-family: var(--display); font-size: clamp(1.85rem, 6.4vw, 3rem); line-height: 1.12;
  margin: 0 0 14px; color: var(--ink); text-wrap: balance;
}
.hp-lede { font-size: 1.15rem; line-height: 1.55; color: var(--ink); margin: 0 0 18px; max-width: 36em; }
.hp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hp-cta .btn { min-height: 48px; }

.hp-snaps { position: relative; height: 230px; max-width: 360px; margin: 4px auto 0; width: 100%; }
.hp-snap {
  position: absolute; top: 0; width: 46%; background: #fff; padding: 7px 7px 20px;
  box-shadow: var(--shadow); border-radius: 2px;
}
.hp-snap img { display: block; width: 100%; height: auto; }
.hp-snap-a { left: 6%; transform: rotate(-4deg); }
.hp-snap-b { right: 6%; top: 14px; transform: rotate(3.5deg); }

.hp-bf {
  margin: 20px 0 0; padding: 14px 16px; border: 2px dashed var(--ox); border-radius: 10px;
  background: var(--card); color: var(--ink); font-size: 1.05rem; line-height: 1.5;
}
.hp-bf[hidden] { display: none; }
.hp-bf p { margin: 0; }
.hp-bf strong { color: var(--ox); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hp-bf strong { color: var(--amber-2); } }
:root[data-theme="dark"] .hp-bf strong { color: var(--amber-2); }

.hp-block { padding-top: 34px; padding-bottom: 8px; }
.hp-h { font-family: var(--display); font-size: clamp(1.5rem, 4.8vw, 2.1rem); line-height: 1.2; margin: 0 0 6px; }
.hp-sub { color: var(--muted); font-size: 1.08rem; margin: 0 0 18px; }

.hp-flags, .hp-bests, .hp-tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hp-flag {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
}
.hp-flag-main { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; flex: 1; padding-bottom: 14px; }
.hp-flag-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); border-bottom: 1px solid var(--rule); }
.hp-flag-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hp-flag-t { font-family: var(--display); font-size: 1.45rem; margin: 14px 16px 6px; }
.hp-flag-d { margin: 0 16px 12px; font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.hp-go { margin: auto 16px 0; color: var(--link); font-weight: 600; font-size: 1.05rem; }
.hp-flag-main:hover .hp-flag-t, .hp-flag-main:focus-visible .hp-flag-t { text-decoration: underline; }
.hp-flag-x {
  display: block; padding: 12px 16px; border-top: 1px dashed var(--rule); color: var(--link);
  font-weight: 600; text-decoration: none; background: var(--paper);
}
.hp-flag-x:hover { text-decoration: underline; }

.hp-band { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 30px 0; margin-top: 30px; }
.hp-bests { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hp-bests a {
  display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: 10px;
  border: 1px solid var(--rule); padding: 10px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
}
.hp-best-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--paper-3); }
.hp-best-img picture, .hp-flag-img picture { display: block; width: 100%; height: 100%; }
.hp-best-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-best-t { font-weight: 600; font-size: 1.02rem; line-height: 1.35; margin: 10px 2px 6px; }
.hp-best-p { margin: auto 2px 0; color: var(--amber-text); font-weight: 700; font-size: 1rem; line-height: 1.35; }
.hp-bests a:hover .hp-best-t { text-decoration: underline; }

/* Gift finder: shipping tags on a string. */
.hp-tags { grid-template-columns: 1fr; gap: 12px; }
.hp-tags a {
  position: relative; display: block; padding: 16px 18px 16px 52px; min-height: 64px;
  background: #f7e6c4; color: #2a2521; text-decoration: none; border-radius: 6px 22px 22px 6px;
  border: 1px solid #d9bf8d; box-shadow: var(--shadow-sm);
}
.hp-tags a::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--paper); border: 2px solid #b8955a;
}
.hp-tag-t { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--ox); }
.hp-tag-d { display: block; font-size: 1.02rem; margin-top: 2px; }
.hp-tags a:hover .hp-tag-t, .hp-tags a:focus-visible .hp-tag-t { text-decoration: underline; }

.hp-two { display: grid; gap: 18px; }
.hp-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}
.hp-card h2 { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; margin: 4px 0 10px; }
.hp-card p { font-size: 1.05rem; line-height: 1.55; }
.hp-k { margin: 0; color: var(--eyebrow); font-weight: 700; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; }
.hp-xmas { border-top: 6px solid var(--ox); }
.hp-fac { border-top: 6px solid var(--green); }
.hp-fac-img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--rule); display: block; }
.hp-xmas .signup label { display: block; font-weight: 600; margin-bottom: 6px; }
.hp-xmas .signup .row { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-xmas .signup input[type=email] { flex: 1 1 220px; min-height: 48px; font-size: 1.05rem; }
.hp-xmas .signup .btn { min-height: 48px; }
.hp-small { font-size: 1rem; margin: 10px 0 0; }

@media (min-width: 700px) {
  .hp-flags { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hp-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-two { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 900px) {
  .hp-hero { padding: 48px 0 34px; }
  .hp-hero-grid { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; }
  .hp-snaps { height: 360px; max-width: 440px; }
  .hp-bests { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .hp-tags { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hp-tags a { min-height: 120px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hp-tags a { background: #3a3024; color: var(--ink); border-color: #5a4a36; }
  :root:not([data-theme="light"]) .hp-tag-t { color: var(--amber-2); }
}
:root[data-theme="dark"] .hp-tags a { background: #3a3024; color: var(--ink); border-color: #5a4a36; }
:root[data-theme="dark"] .hp-tag-t { color: var(--amber-2); }

/* 2026-11-21 declutter: more air, compact gift chips, one CTA per section. */
.hp-block { padding-top: 48px; padding-bottom: 12px; }
.hp-band { margin-top: 48px; padding: 40px 0; }
.hp-narrow { max-width: 760px; }
.hp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hp-chips a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border-radius: 999px;
  background: #f7e6c4; color: #2a2521; border: 1px solid #d9bf8d; font-weight: 600; font-size: 1.05rem;
  text-decoration: none;
}
.hp-chips a:hover, .hp-chips a:focus-visible { text-decoration: underline; }
.hp-more { margin-top: 18px; }
.hp-shop { text-align: center; }
.hp-shop .hp-cta { justify-content: center; }
.hp-about { margin: 22px 0 0; font-size: .9rem; }
.hp-flag-main { padding-bottom: 18px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hp-chips a { background: #3a3024; color: var(--ink); border-color: #5a4a36; } }
:root[data-theme="dark"] .hp-chips a { background: #3a3024; color: var(--ink); border-color: #5a4a36; }

/* /shop/ catalog (shop_pages.py) */
.shop-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; padding: 0; list-style: none; }
.shop-jump a { display: inline-block; padding: 5px 11px; font-size: .92rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--link); text-decoration: none; font-weight: 600; }
.shop-sec { margin: 36px 0 0; }
.shop-sec h2 { font-family: var(--display); font-size: clamp(1.35rem, 4.4vw, 1.8rem); margin: 0 0 4px; }
.shop-sec .shop-n { color: var(--muted); margin: 0 0 12px; }
.shop-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.shop-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.shop-name { flex: 1 1 240px; font-size: 1.05rem; line-height: 1.4; }
.shop-name a { color: var(--ink); }
.shop-price { color: var(--amber-text); font-weight: 700; white-space: nowrap; }
.shop-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-btns a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--rule); background: var(--paper); color: var(--link); font-weight: 600; font-size: .95rem; text-decoration: none; }
.shop-btns a:hover { text-decoration: underline; }
.shop-btns a.shop-main { background: var(--green); border-color: var(--green); color: #fbf7ef; }
