/* Frumgal — elegant + warm. Ivory, deep emerald, antique gold.
   All fonts are local system stacks: zero external requests. */

:root {
  --ivory: #faf6ef;
  --cream: #f3ecdf;
  --ink: #24211c;
  --ink-soft: #5c554a;
  --emerald: #1e4d3b;
  --emerald-deep: #143528;
  --gold: #b08d42;
  --gold-soft: #d8bc7e;
  --rose: #a3405b;
  --card: #fffdf8;
  --line: #e5dcc9;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(36, 33, 28, 0.06), 0 8px 24px rgba(36, 33, 28, 0.07);
  --shadow-hover: 0 2px 4px rgba(36, 33, 28, 0.08), 0 14px 34px rgba(36, 33, 28, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--emerald); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header ---- */

.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }

.wordmark {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--emerald-deep);
}

.wm-m {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
  padding: 0 0.04em;
}

.tagline {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.site-nav { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.nav-link:hover { color: var(--emerald-deep); border-color: var(--line); background: var(--card); }

.nav-link.active {
  color: var(--ivory);
  background: var(--emerald);
  border-color: var(--emerald);
}

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

.hero {
  background:
    radial-gradient(1200px 400px at 80% -50%, rgba(176, 141, 66, 0.14), transparent),
    linear-gradient(180deg, var(--cream), var(--ivory));
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 4rem;
  text-align: center;
}

.hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--emerald-deep);
  line-height: 1.12;
}

.hero h1 em { color: var(--gold); font-style: italic; }

.hero-sub {
  max-width: 34rem;
  margin: 1.4rem auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-slim { padding: 2.5rem 0; }
.hero-slim h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---- Sections & grid ---- */

.section { padding: 3rem 0 3.5rem; }

.section-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--emerald-deep);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), transparent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ---- Cards ---- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.card-media {
  display: block;
  text-decoration: none;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  overflow: hidden;
}

.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }

.card:hover .card-media img { transform: scale(1.04); }

/* Shown until a real product photo is uploaded: the item's name set
   typographically, which reads as intentional rather than as a missing image. */
.card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.6rem 1.4rem;
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.85), transparent),
    linear-gradient(150deg, var(--cream), #ece2cd);
  border-bottom: 1px solid var(--line);
}

.noimg-mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  text-transform: lowercase;
  text-decoration: none;
  opacity: 0.85;
}

.noimg-mark em { font-style: italic; color: var(--gold); }

.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--gold);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(36, 33, 28, 0.25);
}

.badge-expired { background: var(--ink-soft); top: 0.7rem; right: 0.7rem; left: auto; }

.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }

.card-cat {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 700;
}

.card-title { font-family: var(--serif); font-size: 1.08rem; line-height: 1.3; font-weight: 700; }

.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--emerald); }

.card-store { font-size: 0.82rem; color: var(--ink-soft); }

.card-price-row { display: flex; align-items: baseline; gap: 0.55rem; margin-top: 0.25rem; }

.price { font-weight: 700; font-size: 1.12rem; color: var(--emerald-deep); }

.price-was { color: var(--ink-soft); text-decoration: line-through; font-size: 0.88rem; }

.price-save { color: var(--rose); font-size: 0.84rem; font-weight: 600; }

.card-cta {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--emerald);
  text-decoration: none;
}

.card-cta:hover { color: var(--gold); }

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.18s ease;
}

.btn:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold {
  background: linear-gradient(180deg, #c39c4e, var(--gold));
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 2px 8px rgba(176, 141, 66, 0.35);
}

.btn-gold:hover { filter: brightness(1.06); color: #fff; }

.btn-big { padding: 0.85rem 1.9rem; font-size: 1rem; }

/* ---- Deal detail ---- */

.crumbs { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--emerald); }
.crumbs span { margin: 0 0.4rem; color: var(--gold-soft); }

.detail {
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: 3rem;
  align-items: start;
}

.detail-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--cream);
  aspect-ratio: 4 / 5;
}

.detail-media img { width: 100%; height: 100%; object-fit: cover; }

.detail-noimg .noimg-mark { font-size: 2.4rem; }

.detail-info h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--emerald-deep);
  line-height: 1.2;
  margin: 0.3rem 0 0.4rem;
}

.detail-store { color: var(--ink-soft); }

.detail-price { margin: 1rem 0 0.5rem; }
.detail-price .price { font-size: 1.7rem; }

.detail-desc { margin: 1.2rem 0 1.8rem; color: var(--ink-soft); max-width: 38rem; }
.detail-desc p + p { margin-top: 0.8rem; }

.detail-fine { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.7rem; }

.expired-note {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--rose);
  margin: 0.8rem 0;
}

/* ---- Empty state / footer ---- */

.empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.empty h1 { font-size: 1.8rem; color: var(--emerald-deep); margin-bottom: 0.6rem; }
.empty .btn { margin-top: 1.2rem; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
  margin-top: 2rem;
}

.footer-inner { padding: 2.5rem 1.25rem; text-align: center; color: var(--ink-soft); font-size: 0.88rem; }
.footer-inner .wordmark { font-size: 1.3rem; }
.footer-fine { margin-top: 0.5rem; font-size: 0.78rem; letter-spacing: 0.06em; }

.footer-disclosure {
  max-width: 40rem;
  margin: 0.9rem auto 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.footer-nav a:hover { color: var(--emerald); }

/* ---- Prose pages (about, privacy, disclosure, terms) ---- */

.prose { max-width: 44rem; margin: 0 auto; }

.prose h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  color: var(--emerald-deep);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--emerald-deep);
  margin: 2.4rem 0 0.8rem;
}

.prose p { margin-bottom: 1rem; color: var(--ink-soft); }

.prose-lead {
  font-size: 1.12rem;
  color: var(--ink);
  border-left: 3px solid var(--gold-soft);
  padding-left: 1.1rem;
  margin-bottom: 1.8rem;
}

.prose ul { margin: 0 0 1.2rem 1.3rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5rem; }

.prose strong { color: var(--ink); }

.prose a { color: var(--emerald); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--gold); }

.prose .btn { text-decoration: none; margin: 0.4rem 0 1.4rem; }

.callout {
  background: var(--cream);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--emerald-deep) !important;
  margin: 1.4rem 0;
}

.prose-updated {
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .detail { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero { padding: 3rem 0 2.6rem; }
  .header-inner { justify-content: center; text-align: center; }
}
