/* ===== Pizza Origins — shared styles ===== */
:root {
  --tomato: #c8341f;
  --tomato-dark: #9c2716;
  --basil: #3a7d44;
  --crust: #e7b85c;
  --dough: #fdf6ec;
  --cream: #fffaf2;
  --ink: #2a211c;
  --ink-soft: #5c4f47;
  --line: #ecd9c2;
  --shadow: 0 12px 32px rgba(42, 33, 28, .12);
  --radius: 16px;
  --maxw: 1120px;
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--dough);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); }

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

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

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 246, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .dot { color: var(--tomato); font-size: 1.7rem; line-height: 0; }
.nav a {
  margin-left: 26px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
}
.nav a:hover { color: var(--tomato); }

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(180deg, rgba(200,52,31,.05), rgba(200,52,31,0)),
    radial-gradient(circle at 80% -10%, rgba(231,184,92,.35), transparent 55%);
  padding: 88px 0 64px;
  text-align: center;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--tomato);
  margin: 0 0 14px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 18px; }
.hero p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.hero .cta {
  display: inline-block;
  margin-top: 30px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--tomato);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: .98rem;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--tomato-dark); transform: translateY(-2px); }
.btn.ghost {
  background: transparent;
  color: var(--tomato);
  border: 2px solid var(--tomato);
  padding: 11px 24px;
}
.btn.ghost:hover { background: var(--tomato); color: #fff; }

/* ===== Sections ===== */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }

/* ===== History timeline ===== */
.history { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.era {
  background: var(--dough);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.era .year {
  display: inline-block;
  background: var(--basil);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.era h3 { margin: 0 0 8px; font-size: 1.25rem; }
.era p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ===== Product grid ===== */
.cards {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(42,33,28,.18); }
.card .thumb {
  background: #fff;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.card .thumb img { max-height: 100%; width: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card .tag { font-size: .74rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--basil); font-weight: 700; }
.card h3 { margin: 8px 0 10px; font-size: 1.2rem; }
.card .author { color: var(--ink-soft); font-size: .92rem; margin: 0 0 14px; }
.card .more { margin-top: auto; color: var(--tomato); font-weight: 700; font-size: .92rem; }
.card .more::after { content: " →"; }

/* ===== Product page ===== */
.product { padding-top: 56px; }
.product-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(260px, 380px) 1fr;
  align-items: start;
}
.product-cover {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.product-cover img { border-radius: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.22); margin: 0 auto; }
.product-info .tag { color: var(--basil); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; }
.product-info h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 10px 0 6px; }
.product-info .author { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 22px; }
.product-info .lede { font-size: 1.08rem; color: var(--ink); margin: 0 0 18px; }
.product-info p { color: var(--ink-soft); }
.buy-row { margin: 28px 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.buy-note { font-size: .82rem; color: var(--ink-soft); max-width: 280px; }

.specs {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.specs h2 { font-size: 1.3rem; margin: 0 0 16px; }
.specs dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  margin: 0;
}
.specs dt { font-weight: 700; color: var(--ink); padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs dd { margin: 0; color: var(--ink-soft); padding: 9px 0; border-bottom: 1px solid var(--line); }

.back-link { display: inline-block; margin-bottom: 22px; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .92rem; }
.back-link:hover { color: var(--tomato); }
.back-link::before { content: "← "; }

/* ===== Disclosure / affiliate notice ===== */
.disclosure {
  background: var(--cream);
  border: 1px dashed var(--crust);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 40px 0 0;
}

/* ===== Content page (privacy) ===== */
.content { max-width: 820px; margin: 0 auto; padding: 56px 0; }
.content h1 { font-size: 2.3rem; margin: 0 0 8px; }
.content .updated { color: var(--ink-soft); font-size: .9rem; margin: 0 0 32px; }
.content h2 { font-size: 1.4rem; margin: 34px 0 10px; }
.content p, .content li { color: var(--ink-soft); }
.content ul { padding-left: 20px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #d9cdc3;
  padding: 48px 0 28px;
  margin-top: 40px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer p { margin: 0 0 8px; font-size: .9rem; max-width: 420px; }
.site-footer .links a { color: #e7b85c; text-decoration: none; display: block; margin-bottom: 8px; font-size: .92rem; }
.site-footer .links a:hover { text-decoration: underline; }
.site-footer .legal { width: 100%; border-top: 1px solid #44382f; margin-top: 24px; padding-top: 20px; font-size: .82rem; color: #9a8b7f; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  padding: 22px 26px;
  z-index: 100;
  display: none;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: .92rem; color: var(--ink-soft); }
.cookie-banner p strong { color: var(--ink); }
.cookie-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 22px; font-size: .9rem; }

@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-cover { position: static; }
  .specs dl { grid-template-columns: 130px 1fr; }
  .nav a { margin-left: 16px; }
}
