/* QuickEats Review — editorial stylesheet */

:root {
  --ink: #1d1d1f;
  --ink-soft: #4a4a52;
  --ink-mute: #6e6e76;
  --rule: #e3dfd6;
  --paper: #fbf8f1;
  --card: #ffffff;
  --brand: #1a3a5c;
  --brand-soft: #2f5b85;
  --accent: #c44d1f;
  --tag-reviews: #1a3a5c;
  --tag-industry: #6b4f1f;
  --tag-value: #2a5d3a;
  --shadow: 0 1px 2px rgba(20, 24, 28, .04), 0 4px 12px rgba(20, 24, 28, .04);
  --maxw: 1100px;
}

* { box-sizing: border-box }

html, body { margin: 0; padding: 0 }

body {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.hdr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.25rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #f5e9d3;
  border-radius: 6px;
  font-family: Georgia, serif;
  font-weight: 700;
}
.brand-text em { font-style: italic; font-weight: 400; color: var(--brand-soft); margin-left: .15rem }

.site-nav {
  display: flex; gap: 1.4rem; align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: .95rem;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover { color: var(--brand) }

.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.3rem; cursor: pointer; color: var(--ink);
  padding: .25rem .5rem;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--rule);
  padding: 3rem 0 2.5rem;
}
.hero .kicker {
  font-family: -apple-system, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 .8rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 880px;
}
.hero .dek {
  margin: 0 0 1.5rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 720px;
}
.cta {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: .8rem 1.4rem;
  border-radius: 4px;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.cta:hover { background: var(--brand-soft) }

/* Featured grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.35rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-tag {
  font-family: -apple-system, system-ui, sans-serif;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: 3px;
  background: rgba(26, 58, 92, .08);
  color: var(--tag-reviews);
  margin-bottom: .8rem;
  align-self: flex-start;
}
.card:nth-child(2) .card-tag,
.card:nth-child(5) .card-tag { background: rgba(107, 79, 31, .1); color: var(--tag-industry) }
.card:nth-child(3) .card-tag,
.card:nth-child(6) .card-tag { background: rgba(42, 93, 58, .1); color: var(--tag-value) }
.card h2 {
  margin: 0 0 .7rem;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.card h2 a:hover { color: var(--brand) }
.card p {
  margin: 0 0 .8rem;
  color: var(--ink-soft);
  font-size: .97rem;
}
.byline {
  margin-top: auto !important;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: .82rem;
  color: var(--ink-mute);
  font-style: italic;
}

/* Newsletter */
.newsletter {
  background: var(--brand);
  color: #fff;
  margin-top: 1rem;
  padding: 2.5rem 0;
}
.nl-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.newsletter h3 {
  margin: 0 0 .5rem;
  font-size: 1.7rem;
  letter-spacing: -.01em;
}
.newsletter p { margin: 0; color: rgba(255,255,255,.85); font-size: 1.02rem }
.newsletter form {
  display: flex; flex-direction: column; gap: .6rem;
  font-family: -apple-system, system-ui, sans-serif;
}
.newsletter input[type="email"] {
  padding: .8rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}
.newsletter button {
  padding: .8rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.newsletter button:hover { background: #a93f15 }
.newsletter #nl-msg { color: #ffe0b2; font-size: .9rem; min-height: 1.2em }

/* About strip */
.about-strip {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--rule);
}
.about-strip h3 {
  font-size: 1.2rem;
  margin: 0 0 .8rem;
  letter-spacing: -.01em;
}
.about-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 800px;
}
.about-strip a { color: var(--brand) }

/* Article pages */
.article-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.article-shell .kicker {
  font-family: -apple-system, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--accent);
  font-weight: 700;
}
.article-shell h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: .5rem 0 .9rem;
}
.article-shell .byline {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: .9rem;
  color: var(--ink-mute);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}
.article-shell p { font-size: 1.07rem; line-height: 1.65; margin: 0 0 1.2rem }
.article-shell h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; letter-spacing: -.01em }
.article-shell h3 { font-size: 1.2rem; margin: 1.8rem 0 .8rem }
.article-shell ul, .article-shell ol { padding-left: 1.4rem }
.article-shell li { margin-bottom: .5rem }
.article-shell blockquote {
  border-left: 3px solid var(--accent);
  padding: .4rem 0 .4rem 1.2rem;
  margin: 1.6rem 0;
  font-style: italic;
  color: var(--ink-soft);
}
.article-shell hr {
  border: none; border-top: 1px solid var(--rule);
  margin: 2.2rem 0;
}

/* Static pages (about/privacy/terms/contact) */
.static-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.static-shell h1 {
  font-size: 2rem;
  letter-spacing: -.01em;
  margin: 0 0 .5rem;
}
.static-shell .lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
}
.static-shell h2 { font-size: 1.3rem; margin: 1.8rem 0 .7rem }
.static-shell p { font-size: 1.03rem; line-height: 1.65; margin: 0 0 1.1rem }
.static-shell ul { padding-left: 1.4rem }
.static-shell ul li { margin-bottom: .45rem }

/* Footer */
.site-footer {
  background: #f1ece2;
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  margin-top: 1.5rem;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: .9rem;
  color: var(--ink-mute);
}
.ft-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ft-nav { display: flex; gap: 1.3rem }
.ft-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.ft-nav a:hover { color: var(--brand) }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 600px; margin-left: auto;
  background: #1d1d1f; color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: .9rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  z-index: 100;
}
.cookie-banner p { margin: 0; flex: 1 }
.cookie-banner a { color: #f5d6a4; text-decoration: underline }
.cookie-banner button {
  flex-shrink: 0;
  padding: .55rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 760px) {
  .nav-toggle { display: inline-block }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex }
  .site-nav a { padding: .9rem 1.25rem; border-top: 1px solid var(--rule) }
  .hero { padding: 2rem 0 1.5rem }
  .featured-grid { padding-top: 1.5rem; padding-bottom: 1.5rem; grid-template-columns: 1fr }
  .nl-row { grid-template-columns: 1fr; gap: 1.5rem }
  .ft-row { flex-direction: column; align-items: flex-start; gap: 1rem }
  .cookie-banner { left: .75rem; right: .75rem; bottom: .75rem; flex-direction: column; align-items: stretch }
}
