/*
Theme Name: BritDelis
Theme URI: http://britdeli.local
Description: Необроталистская тема для блога о британских/австралийских пастах (Marmite, Vegemite, Bovril). Конвертирована 1:1 из дизайн-макетов проекта BritDelis.
Author: BritDelis
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: britdelis
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --ink: #1A1A1A;
  --red: #E2231A;
  --yellow: #FFC600;
  --gold: #C99E00;
  --cream: #FBEFD2;
  --pale: #FFF4CC;
  --white: #FFFFFF;
  --muted: #4a4a48;
  --body-text: #3a3a38;
  --card-desc: #6a6960;
  --card-meta: #9a988f;
  --maxw: 1180px;
  --font-display: 'Unbounded', sans-serif;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Golos Text', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--ink); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* ============================================================
   HEADER (white variant, sticky)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 4px solid var(--red);
}
.site-header .wrap {
  padding-top: 13px; padding-bottom: 13px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.brand {
  font-family: var(--font-head); font-weight: 700; font-size: 28px;
  letter-spacing: 0.5px; text-transform: uppercase; line-height: 1;
}
.brand .b-red { color: var(--red); display: inline-block; transform: rotate(-4deg); transform-origin: 50% 60%; }
.brand .b-ink { color: var(--ink); display: inline-block; transform: rotate(4deg); transform-origin: 50% 60%; margin-left: 1px; }
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav a {
  font-family: var(--font-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.4px; padding: 8px 13px; font-size: 15px;
  color: var(--ink); border-radius: 7px; transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav .current-menu-item > a {
  background: var(--red); color: var(--white);
}

/* ============================================================
   HERO (red, noise texture, wavy divider)
   ============================================================ */
.hero {
  position: relative; background-color: var(--red); color: var(--white);
  /* extra bottom padding clears the absolute wave divider */
  padding: clamp(44px,6vw,76px) 24px clamp(80px,9vw,116px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.32; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.hero__eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--yellow);
  margin-bottom: 12px;
}
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px,7vw,80px); line-height: 0.98; letter-spacing: -1px;
  color: var(--yellow); text-shadow: 3px 3px 0 rgba(0,0,0,0.2); margin: 0;
}
.hero__sub {
  font-size: clamp(16px,1.6vw,20px); line-height: 1.5; font-weight: 500;
  color: rgba(255,255,255,0.9); max-width: 560px; margin: 18px 0 0;
}
/* compact hero (category/article) */
.hero--compact { padding: clamp(40px,5vw,60px) 24px clamp(72px,8vw,104px); }
.hero--compact .hero__inner { max-width: 760px; }
.hero--compact .hero__title { font-size: clamp(28px,4.4vw,50px); line-height: 1.06; letter-spacing: -0.5px; }
.hero__wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(48px,5.5vw,68px);
  width: 100%; display: block;
}

/* shared pill badge */
.pill {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink);
}

/* ============================================================
   CARDS (neo-brutalist: ink border + hard shadow → red on hover)
   ============================================================ */
.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 2px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink);
  padding: 24px 24px 22px; min-height: 200px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--red); }
.card__kicker {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.card__title {
  font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.12;
  text-transform: uppercase; margin: 0 0 10px;
}
.card__desc { font-size: 14.5px; line-height: 1.55; color: var(--card-desc); flex: 1; margin: 0; }
.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px;
}
.card__more { font-family: var(--font-head); font-weight: 600; font-size: 13px; text-transform: uppercase; color: var(--ink); }
.card__meta { font-size: 13px; color: var(--card-meta); }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

/* Featured card */
.featured { padding: clamp(40px,6vw,64px) 24px clamp(24px,3vw,36px); }
.featured__card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background: var(--white); border: 2px solid var(--ink); border-radius: 20px;
  box-shadow: 8px 8px 0 var(--ink); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.featured__card:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 var(--red); }
.featured__media {
  background: var(--cream); min-height: 260px; display: flex; align-items: center;
  justify-content: center; padding: 24px;
}
.featured__media img { border-radius: 12px; max-height: 280px; width: auto; }
.featured__body { padding: clamp(28px,4vw,44px); display: flex; flex-direction: column; gap: 14px; }
.featured__title {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(26px,3.4vw,40px);
  line-height: 1.08; text-transform: uppercase; margin: 0;
}
.featured__desc { font-size: 16.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.featured__more { font-family: var(--font-head); font-weight: 600; font-size: 15px; text-transform: uppercase; color: var(--red); }

/* ============================================================
   CATEGORY CHIPS (state from current archive)
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: clamp(20px,3vw,28px); }
.chip {
  font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 9px 18px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  cursor: pointer; transition: background .15s, color .15s;
}
.chip:hover { background: var(--ink); color: var(--yellow); }
.chip.is-active { background: var(--ink); color: var(--yellow); }

.section-pad { padding-top: clamp(20px,3vw,28px); padding-bottom: clamp(40px,5vw,56px); }

/* ============================================================
   ARTICLE
   ============================================================ */
.article-hero__inner { max-width: 760px; }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,0.78); margin-bottom: 14px; }
.breadcrumb a { color: var(--yellow); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; }
.article-author { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.article-author .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
}
.article-author .name { font-weight: 600; font-size: 15px; color: var(--white); }
.article-author .meta { font-size: 13.5px; color: rgba(255,255,255,0.75); }

.article-figure { max-width: 860px; margin: clamp(28px,4vw,44px) auto 0; padding: 0 24px; }
.article-figure__frame {
  background: var(--cream); border: 2px solid var(--ink); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(10px,1.6vw,16px); overflow: hidden;
}
.article-figure__frame img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 11px;
}

.article-body { max-width: 680px; margin: 0 auto; padding: clamp(36px,5vw,52px) 24px; }
.article-body > p:first-of-type, .article-body .lead {
  font-size: 20px; line-height: 1.6; color: var(--ink); font-weight: 500; margin: 0 0 28px;
}
.article-body p { font-size: 17px; line-height: 1.75; color: var(--body-text); margin: 0 0 24px; }
.article-body h2 {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(24px,3vw,32px);
  line-height: 1.3; text-transform: uppercase; letter-spacing: 0.2px; margin: 40px 0 16px;
}
.article-body h3 {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(20px,2.4vw,24px);
  text-transform: uppercase; margin: 30px 0 12px;
}
.article-body blockquote {
  margin: 34px 0; padding: 24px 28px; background: var(--red); color: var(--white);
  border-radius: 16px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px,2.6vw,26px); line-height: 1.25; text-transform: uppercase;
}
.article-body blockquote p { font: inherit; color: inherit; margin: 0; }
.article-body a { color: var(--red); font-weight: 600; text-decoration: underline; }
.article-body img { border-radius: 12px; margin: 24px 0; }
/* numbered list with yellow circle bullets */
.article-body ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.article-body ol li {
  counter-increment: step; position: relative; padding-left: 34px;
  font-size: 16.5px; line-height: 1.5; color: var(--body-text);
}
.article-body ol li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  font-family: var(--font-head); font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.article-body ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.article-body ul li {
  position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.5; color: var(--body-text);
}
.article-body ul li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--red);
}
/* callout box */
.article-body .callout {
  margin: 34px 0; padding: 24px 26px; background: var(--pale);
  border: 2px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink);
}
.article-body .callout-label {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 15px;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.article-body .callout p { font-size: 16px; color: var(--body-text); margin: 0; }

/* share row */
.share-row {
  max-width: 680px; margin: 0 auto; padding: 28px 24px 0;
}
.share-row__inner { border-top: 2px solid var(--ink); padding-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.share-row__label { font-family: var(--font-head); font-weight: 600; font-size: 14px; text-transform: uppercase; }
.share-link {
  font-family: var(--font-head); font-weight: 600; font-size: 13px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white);
  transition: background .15s, color .15s;
}
.share-link:hover { background: var(--ink); color: var(--yellow); }

.related { padding: clamp(20px,3vw,32px) 24px clamp(40px,5vw,56px); }
.related h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px,3vw,34px); text-transform: uppercase; margin: 0 0 26px; }

/* ============================================================
   TELEGRAM BANNER + FOOTER
   ============================================================ */
.tg-banner { padding: clamp(20px,3vw,32px) 24px; }
.tg-banner__inner {
  max-width: var(--maxw); margin: 0 auto; background: var(--ink); border-radius: 24px;
  padding: clamp(36px,5vw,56px); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px;
}
.tg-banner__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px,3.6vw,42px); text-transform: uppercase; color: var(--yellow); margin: 0 0 8px; }
.tg-banner__text { font-size: 17px; color: rgba(255,255,255,0.82); margin: 0; max-width: 520px; }
.btn-tg {
  font-family: var(--font-head); font-weight: 700; font-size: 17px; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); padding: 16px 30px; border-radius: 13px;
  box-shadow: 0 6px 0 var(--gold); transition: transform .15s, box-shadow .15s; white-space: nowrap;
}
.btn-tg:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--gold); }

.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); border-top: 4px solid var(--red); }
.site-footer__top {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
  padding: clamp(44px,6vw,64px) 24px 36px;
}
.site-footer .brand .b-ink { color: var(--white); }
.site-footer__blurb { font-size: 14.5px; line-height: 1.6; margin: 14px 0 0; max-width: 320px; }
.site-footer__col h4 {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--yellow); margin: 0 0 14px;
}
.site-footer__col a { display: block; font-size: 15px; padding: 5px 0; color: rgba(255,255,255,0.72); }
.site-footer__col a:hover { color: var(--white); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
}
.site-footer__bottom .wrap {
  padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: space-between; font-size: 13.5px; color: rgba(255,255,255,0.5);
}

/* pagination */
.pagination { max-width: var(--maxw); margin: 0 auto; padding: 0 24px clamp(40px,5vw,56px); display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  font-family: var(--font-head); font-weight: 600; padding: 8px 14px; border: 2px solid var(--ink);
  border-radius: 10px; background: var(--white); color: var(--ink);
}
.pagination .page-numbers.current { background: var(--ink); color: var(--yellow); }

@media (max-width: 600px) {
  .tg-banner__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   READING PROGRESS BAR (article pages)
   ============================================================ */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 56;
  background: transparent; pointer-events: none;
}
.reading-progress > span {
  display: block; height: 100%; width: 0;
  background: var(--red);
  transition: width .08s linear;
}

/* ============================================================
   APP-STYLE MOBILE BOTTOM NAV  (mobile only)
   ============================================================ */
.mnav { display: none; }
.msheet, .msheet-backdrop { display: none; }

@media (max-width: 768px) {
  /* keep page content clear of the fixed bar */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

  .mnav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white);
    border-top: 2px solid var(--ink);
    box-shadow: 0 -4px 0 rgba(26,26,26,0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mnav__item {
    appearance: none; -webkit-appearance: none; background: none; border: 0; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 9px 4px 8px; color: var(--ink); text-decoration: none;
    font-family: var(--font-head); font-weight: 600; font-size: 11px;
    letter-spacing: 0.4px; text-transform: uppercase;
    transition: color .12s;
  }
  .mnav__item svg { width: 23px; height: 23px; }
  .mnav__item.is-active { color: var(--red); }
  .mnav__item:active { transform: translateY(1px); }
  .mnav__item--tg { color: var(--red); }
  .mnav__item--tg svg { color: var(--red); }

  /* backdrop — [hidden] must keep it gone, so only show when not hidden */
  .msheet-backdrop {
    position: fixed; inset: 0; z-index: 65;
    background: rgba(26,26,26,0.45); opacity: 0; transition: opacity .22s ease;
  }
  .msheet-backdrop:not([hidden]) { display: block; }
  .msheet-backdrop.is-open { opacity: 1; }

  /* bottom sheet */
  .msheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--white);
    border-top: 3px solid var(--ink);
    border-radius: 22px 22px 0 0;
    padding: 14px 22px calc(26px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
    max-height: 72vh; overflow-y: auto;
  }
  .msheet:not([hidden]) { display: block; }
  .msheet.is-open { transform: translateY(0); }
  .msheet__handle {
    display: block; width: 44px; height: 5px; border: 0; padding: 0; cursor: pointer;
    margin: 0 auto 14px; border-radius: 999px; background: rgba(26,26,26,0.18);
  }
  .msheet__title {
    font-family: var(--font-head); font-weight: 700; font-size: 18px;
    text-transform: uppercase; margin: 0 0 14px;
  }
  .msheet__links { display: flex; flex-wrap: wrap; gap: 10px; }
  .msheet__link {
    font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: 0.5px;
    text-transform: uppercase; padding: 10px 18px; border-radius: 999px;
    border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  }
  .msheet__link.is-active { background: var(--ink); color: var(--yellow); }

  /* search form inside the sheet */
  .msheet .search-form, .msheet form[role="search"] { display: flex; gap: 10px; }
  .msheet input[type="search"], .msheet input[type="text"] {
    flex: 1; min-width: 0; font-family: var(--font-body); font-size: 16px;
    padding: 13px 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white);
  }
  .msheet input[type="submit"], .msheet button[type="submit"] {
    font-family: var(--font-head); font-weight: 700; font-size: 14px; text-transform: uppercase;
    padding: 0 20px; border: 2px solid var(--ink); border-radius: 12px;
    background: var(--yellow); color: var(--ink); cursor: pointer;
  }

  body.msheet-lock { overflow: hidden; }
}

/* ============================================================
   FRONT PAGE
   ============================================================ */
@keyframes britFloat { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(-3deg); } }

.fp-section-wave { position: absolute; left: 0; right: 0; height: clamp(40px,5vw,62px); line-height: 0; pointer-events: none; }
.fp-section-wave svg { display: block; width: 100%; height: 100%; }
.fp-section-wave--bottom { bottom: -1px; }
.fp-section-wave--top { top: -1px; }

/* hero */
.fp-hero {
  position: relative; overflow: hidden; color: var(--white);
  background-color: var(--red);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E"),
    radial-gradient(120% 120% at 80% 12%, rgba(255,198,0,0.28), transparent 52%);
  padding-bottom: clamp(46px,6vw,66px);
}
.fp-hero__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(44px,6vw,84px) 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: clamp(28px,5vw,60px); align-items: center;
}
.fp-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px;
  background: var(--yellow); color: var(--ink); border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 24px;
}
.fp-hero__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(27px,3.5vw,46px); line-height: 1.08; letter-spacing: -0.5px;
  margin: 0 0 22px; color: var(--yellow); text-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}
.fp-hero__title span { color: var(--white); }
.fp-hero__sub {
  font-size: clamp(17px,1.6vw,21px); line-height: 1.5; font-weight: 500;
  color: rgba(255,255,255,0.92); max-width: 540px; margin: 0 0 32px;
}
.fp-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fp-btn {
  display: inline-flex; align-items: center; gap: 9px; background: var(--yellow); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  font-size: 17px; padding: 15px 28px; border-radius: 11px; box-shadow: 0 6px 0 var(--gold);
  transition: transform .15s, box-shadow .15s;
}
.fp-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--gold); }
.fp-hero__note { font-size: 14px; color: rgba(255,255,255,0.78); }
.fp-hero__media { display: flex; justify-content: center; }
.fp-polaroid {
  position: relative; animation: britFloat 7s ease-in-out infinite; transform: rotate(-3deg);
}
.fp-polaroid__card {
  background: var(--white); padding: 14px 14px 18px; border-radius: 14px;
  box-shadow: 0 36px 70px rgba(0,0,0,0.4); width: clamp(280px,34vw,400px);
}
.fp-polaroid__card img { display: block; width: 100%; height: auto; border-radius: 8px; }
.fp-polaroid__cap { display: flex; align-items: center; gap: 9px; padding: 12px 6px 2px; }
.fp-polaroid__cap .name { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 18px; color: var(--ink); line-height: 1.05; }
.fp-polaroid__cap .sub { font-size: 13px; color: #7a7a78; }
.fp-polaroid__tag {
  position: absolute; top: -16px; right: -14px; background: var(--ink); color: var(--yellow);
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 14px;
  letter-spacing: 0.5px; padding: 8px 14px; border-radius: 999px; transform: rotate(6deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* intro */
.fp-intro { max-width: 760px; margin: 0 auto; padding: clamp(54px,8vw,84px) 24px clamp(18px,4vw,32px); text-align: center; }
.fp-eyebrow { font-family: var(--font-head); font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); }
.fp-eyebrow--yellow { color: var(--yellow); }
.fp-h2 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(28px,3.8vw,44px); line-height: 1.05; margin: 12px 0 18px; letter-spacing: 0.3px; }
.fp-intro p { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0; }

/* product cards */
.fp-products { max-width: var(--maxw); margin: 0 auto; padding: clamp(30px,5vw,52px) 24px; }
.fp-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.fp-product {
  background: var(--white); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 6px 6px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.fp-product:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.fp-product__accent { height: 8px; }
.fp-product__media { position: relative; padding: 26px 20px; display: flex; align-items: center; justify-content: center; border-bottom: 2px solid var(--ink); }
.fp-product__flag { position: absolute; top: 14px; left: 16px; font-size: 30px; line-height: 1; }
.fp-product__media img { height: 170px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.2)); }
.fp-product__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.fp-product__name { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 27px; margin: 0 0 2px; color: var(--red); letter-spacing: 0.3px; }
.fp-product__en { font-family: var(--font-head); font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--card-meta); margin-bottom: 14px; }
.fp-product__desc { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0 0 22px; flex: 1; }
.fp-product__more { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 15px; color: var(--ink); align-self: flex-start; background: var(--yellow); padding: 9px 16px; border-radius: 9px; transition: gap .15s, background .15s, color .15s; }
.fp-product__more:hover { gap: 11px; background: var(--ink); color: var(--yellow); }

/* love or hate */
.fp-lovehate {
  position: relative; color: var(--white); margin-top: clamp(38px,6vw,68px);
  background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='0.3'/%3E%3C/svg%3E");
  padding-bottom: clamp(44px,5vw,62px);
}
.fp-lovehate__inner { max-width: 920px; margin: 0 auto; padding: clamp(54px,8vw,92px) 24px; text-align: center; position: relative; }
.fp-lovehate__title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(40px,8vw,92px); line-height: 0.92; letter-spacing: 0.5px; margin: 18px 0 6px; text-shadow: 3px 3px 0 rgba(0,0,0,0.18); }
.fp-lovehate__title span { color: var(--yellow); }
.fp-lovehate__sub { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.9); max-width: 620px; margin: 20px auto 38px; font-weight: 500; }
.fp-vote { display: inline-flex; flex-direction: column; gap: 16px; align-items: center; width: 100%; max-width: 460px; }
.fp-vote__row { display: flex; gap: 14px; width: 100%; }
.fp-vote__btn { flex: 1; cursor: pointer; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: 17px; padding: 15px 18px; border-radius: 12px; transition: transform .15s; }
.fp-vote__btn:hover { transform: translateY(-2px); }
.fp-vote__btn--love { background: var(--yellow); color: var(--ink); border: none; }
.fp-vote__btn--hate { background: rgba(0,0,0,0.22); color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.fp-vote__btn[disabled] { opacity: .6; cursor: default; transform: none; }
.fp-vote__bar { width: 100%; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(0,0,0,0.25); display: flex; }
.fp-vote__bar > span { width: 50%; background: var(--yellow); transition: width 0.4s ease; }
.fp-vote__tally { font-family: var(--font-head); font-size: 15px; letter-spacing: 0.5px; color: rgba(255,255,255,0.92); }

/* reviews */
.fp-reviews { position: relative; background: #F6F1E4; }
.fp-reviews__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px,8vw,90px) 24px; }
.fp-reviews__head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.fp-reviews__head p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0; }
.fp-review { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; box-shadow: 5px 5px 0 var(--ink); }
.fp-review__badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 12px; padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.fp-review__badge--love { background: var(--yellow); color: var(--ink); }
.fp-review__badge--hate { background: var(--ink); color: var(--yellow); }
.fp-review__quote { font-size: 16px; line-height: 1.6; color: #2a2a28; margin: 0 0 22px; flex: 1; }
.fp-review__who { display: flex; align-items: center; gap: 12px; }
.fp-review__av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-family: var(--font-head); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.fp-review__name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.fp-review__loc { font-size: 13px; color: var(--card-meta); }

/* popular articles */
.fp-popular { max-width: var(--maxw); margin: 0 auto; padding: clamp(54px,8vw,84px) 24px clamp(30px,4vw,44px); }
.fp-popular__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.fp-popular__head .fp-h2 { margin: 10px 0 0; }
.fp-popular__head p { font-size: 16px; line-height: 1.55; color: var(--card-desc); margin: 10px 0 0; max-width: 420px; }
.fp-link-btn { white-space: nowrap; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 15px; color: var(--ink); background: var(--yellow); padding: 9px 16px; border-radius: 9px; transition: background .15s, color .15s; }
.fp-link-btn:hover { background: var(--ink); color: var(--yellow); }

/* audience panel */
.fp-audience { max-width: var(--maxw); margin: 0 auto; padding: clamp(18px,3vw,30px) 24px clamp(40px,5vw,56px); }
.fp-audience__panel { background: var(--yellow); border: 2px solid var(--ink); border-radius: 22px; padding: clamp(32px,5vw,52px); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: clamp(28px,4vw,48px); align-items: center; box-shadow: 8px 8px 0 var(--ink); }
.fp-audience__panel .fp-h2 { color: var(--ink); margin: 10px 0 0; }
.fp-audience__list { display: grid; gap: 14px; }
.fp-audience__item { display: flex; gap: 13px; align-items: flex-start; }
.fp-audience__check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.fp-audience__item span:last-child { font-size: 16px; line-height: 1.5; color: var(--ink); font-weight: 500; }
