/* ==========================================================================
   Coastline Post
   Editorial coupon directory.

   Shape vocabulary borrowed from The Infatuation: circular badges, pill tags,
   solid color blocks, rotated stickers. Color is STRUCTURAL here, not trim —
   every category owns a hue and it fills headers, tiles and bands.

   Photo-OPTIONAL by design. Our advertisers are HVAC and roofing contractors;
   most will never supply usable photography, so a layout that needs photos
   would look broken on launch day. Color blocks and printed patterns carry
   each page, and a real photo simply replaces the block.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,62..125,400..900;1,62..125,400..900&display=swap');

:root {
  --ink: #121212;
  --muted: #6e6e6e;
  --faint: #b8b8b8;
  --line: #e3e3e3;
  --paper: #fff;
  --wash: #f5f2ed;
  --accent: #e8402a;
  --yellow: #ffe34c;
  --mint: #b8e6d0;
  --sky: #bcd9f5;
  --blush: #ffc9bd;
  --max: 78rem;
  --text: 40rem;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --cat: #121212;              /* page category color, set inline */
  --c: var(--cat);             /* component category color */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--display); font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 1.25rem; }

/* --- Patterns ------------------------------------------------------------ */

.p-dots   { background-image: radial-gradient(rgba(255,255,255,.4) 3px, transparent 3.1px); background-size: 22px 22px; }
.p-stripe { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.26) 0 14px, transparent 14px 28px); }
.p-grid   { background-image: linear-gradient(rgba(255,255,255,.3) 2.5px, transparent 2.5px), linear-gradient(90deg, rgba(255,255,255,.3) 2.5px, transparent 2.5px); background-size: 30px 30px; }
.p-rings  { background-image: repeating-radial-gradient(circle at 72% 28%, rgba(255,255,255,.24) 0 3px, transparent 3px 28px); }

/* --- Display type -------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: .95; letter-spacing: -.005em; }
.xxl { font-size: clamp(2.75rem, 9vw, 6rem); text-transform: uppercase; font-variation-settings: 'wdth' 76; font-weight: 900; }
.xl  { font-size: clamp(2rem, 6vw, 3.5rem);  text-transform: uppercase; font-variation-settings: 'wdth' 78; font-weight: 900; }
.lg  { font-size: clamp(1.375rem, 3vw, 2rem); text-transform: uppercase; font-variation-settings: 'wdth' 82; }

.eyebrow { font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 .625rem; }

.rule-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.rule-head .more {
  flex: 0 0 auto; font-size: .6875rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; background: var(--ink); color: #fff;
  padding: .4375rem .875rem; border-radius: 2rem; text-decoration: none;
}
.rule-head .more:hover { background: var(--accent); }

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

.site-header { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.wordmark { font-size: clamp(1rem, 4.2vw, 1.375rem); font-weight: 900; text-transform: uppercase; text-decoration: none; white-space: nowrap; font-variation-settings: 'wdth' 72; color: #fff; }
.wordmark .dot { color: var(--yellow); }
.site-header nav { display: flex; gap: .5rem; }
.site-header nav a {
  color: var(--ink); background: #fff; text-decoration: none; white-space: nowrap;
  font-size: clamp(.5625rem, 2.4vw, .6875rem); font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; padding: .4375rem .8125rem; border-radius: 2rem;
}
.site-header nav a:hover { background: var(--yellow); }

/* Category strip — pills, filled with each category's own color. */
.catbar { background: var(--wash); border-bottom: 3px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.catbar .wrap { display: flex; gap: .5rem; padding-block: .75rem; }
.catbar a {
  flex: 0 0 auto; text-decoration: none; white-space: nowrap;
  font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  padding: .5rem .875rem; border-radius: 2rem;
  background: var(--c); color: #fff; border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.catbar a:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

main { display: block; padding-bottom: 4rem; }
section { margin-block: 3.5rem; }

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

.hero {
  position: relative; background: var(--cat); color: #fff; overflow: hidden;
  min-height: clamp(18rem, 44vw, 28rem); display: flex; align-items: flex-end;
  border-bottom: 3px solid var(--ink);
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.1) 60%, transparent); }
.hero.is-graphic::after { background: none; }
.hero .ghost {
  position: absolute; right: -.05em; bottom: -.3em; margin: 0; pointer-events: none;
  font-size: clamp(9rem, 30vw, 22rem); font-weight: 900; line-height: .7;
  text-transform: uppercase; font-variation-settings: 'wdth' 62;
  color: rgba(255,255,255,.09); white-space: nowrap;
}
/* Decorative arcs — the "shapes" in the shape vocabulary. */
.hero .blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 3px solid rgba(255,255,255,.22);
}
.hero .blob-1 { width: 22rem; height: 22rem; top: -8rem; right: 12%; }
.hero .blob-2 { width: 11rem; height: 11rem; bottom: -4rem; left: 58%; background: var(--yellow); border: none; opacity: .22; }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-block: 2.25rem; }
.hero .eyebrow { color: var(--yellow); }
.hero .tagline { max-width: 34rem; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.35; margin: .875rem 0 0; }

.crumbs { font-size: .625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; padding-block: 1rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

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

.actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.25rem; }
.btn {
  display: inline-block; padding: .8125rem 1.375rem; border: 2px solid var(--ink);
  border-radius: 2rem; background: #fff; color: var(--ink); font-family: var(--display);
  font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
}
.btn:hover { transform: translate(1.5px, 1.5px); box-shadow: 1.5px 1.5px 0 var(--ink); }
.btn-primary { background: var(--yellow); }
.on-dark .btn { box-shadow: 3px 3px 0 rgba(0,0,0,.45); }

/* --- Layout -------------------------------------------------------------- */

.split { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 4rem; } }
.prose { max-width: var(--text); font-size: 1.0625rem; line-height: 1.6; }
.prose p { margin: 0 0 1rem; }

/* --- Coupon card --------------------------------------------------------- */

.coupon-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); align-items: start; }
.coupon-grid > [hidden] { display: none !important; }

.offer {
  position: relative; display: flex; flex-direction: column; overflow: visible;
  background: color-mix(in srgb, var(--c) 8%, #fff);
  border: 3px solid var(--ink); border-radius: .75rem;
  box-shadow: 6px 6px 0 var(--ink);
}
.offer:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }

/* Solid color header block carries the category. */
.offer-top {
  background: var(--c); color: #fff; padding: .75rem 1rem; border-radius: .5rem .5rem 0 0;
  border-bottom: 3px dashed rgba(255,255,255,.5);
}
.offer-biz { margin: 0; padding-right: 4rem; font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.offer-biz a { text-decoration: none; color: #fff; }
.offer-biz .sep { opacity: .6; }

.offer-body { padding: 1.125rem 1rem 1.125rem; display: flex; flex-direction: column; flex: 1; }

/* Rotated sticker — the single strongest device on the page. */
.savings {
  position: absolute; top: -1.25rem; right: -.75rem; z-index: 3;
  display: grid; place-items: center; min-width: 4rem; height: 4rem; padding-inline: .625rem;
  border-radius: 50%; background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-size: 1.0625rem; font-weight: 900; font-variation-settings: 'wdth' 78;
  transform: rotate(-8deg); text-align: center; line-height: 1;
}
.savings.wide { border-radius: 2rem; min-width: 5rem; }

.offer-head { font-size: clamp(1.25rem, 2.4vw, 1.625rem); text-transform: uppercase; font-variation-settings: 'wdth' 80; margin: 0 0 .625rem; }
.offer-head a { text-decoration: none; }
.offer-head a:hover { color: var(--accent); }

.fine { color: var(--muted); font-size: .8125rem; line-height: 1.45; margin: 0 0 .875rem; }
.expires {
  margin: 0 0 1rem; align-self: flex-start; font-size: .625rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  background: #fff; border: 2px solid var(--ink); border-radius: 2rem; padding: .3125rem .6875rem;
}
.expires.is-urgent { background: var(--accent); color: #fff; border-color: var(--accent); }

.offer-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.offer-actions .btn { padding: .625rem 1rem; font-size: .6875rem; box-shadow: 2px 2px 0 var(--ink); }

/* Clears the savings disc, which overhangs 2rem above the card. */
.offer.is-standalone { border-width: 4px; box-shadow: 10px 10px 0 var(--ink); margin-top: 2.75rem; }
.offer.is-standalone .offer-top { padding: 1rem 1.5rem; }
.offer.is-standalone .offer-body { padding: 1.75rem 1.5rem; }
.offer.is-standalone .offer-head { font-size: clamp(2rem, 6vw, 3.25rem); font-variation-settings: 'wdth' 76; font-weight: 900; }
.offer.is-standalone .savings { min-width: 6rem; height: 6rem; font-size: 1.75rem; top: -2rem; right: -1rem; }

/* --- Business cards ------------------------------------------------------ */

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.card a { text-decoration: none; display: block; position: relative; }
.card .tile {
  position: relative; aspect-ratio: 4 / 3; background: var(--c); overflow: hidden;
  display: grid; place-items: center; margin-bottom: .875rem;
  border: 3px solid var(--ink); border-radius: .75rem; box-shadow: 5px 5px 0 var(--ink);
}
.card a:hover .tile { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.card .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .tile span.label {
  position: relative; z-index: 1; color: #fff; font-size: clamp(1.375rem, 3.5vw, 2rem);
  font-weight: 900; text-transform: uppercase; font-variation-settings: 'wdth' 64;
  text-align: center; line-height: .9; padding: .5rem;
}
.card .num {
  position: absolute; top: -.75rem; left: -.75rem; z-index: 2; background: var(--ink); color: #fff;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%;
  border: 3px solid #fff; font-size: .9375rem; font-weight: 900;
}
.card .flag {
  position: absolute; bottom: .625rem; right: .625rem; z-index: 2; background: var(--yellow);
  color: var(--ink); border: 2px solid var(--ink); border-radius: 2rem; padding: .25rem .75rem;
  font-size: .6875rem; font-weight: 900;
}
.card h3 { font-size: 1.125rem; text-transform: uppercase; font-variation-settings: 'wdth' 84; margin-bottom: .25rem; }
.card a:hover h3 { color: var(--accent); }
.card .meta {
  display: inline-block; margin: 0 0 .5rem; font-size: .625rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--c);
  padding: .25rem .625rem; border-radius: 2rem;
}
.card p.desc { margin: 0; font-size: .875rem; line-height: 1.4; color: var(--muted); }

/* --- Reviews ------------------------------------------------------------- */

.reviews blockquote {
  margin: 0 0 1.25rem; padding: 1.25rem 1.375rem;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: .75rem;
  box-shadow: 5px 5px 0 var(--ink);
}
.reviews q { font-size: clamp(1.0625rem, 2vw, 1.25rem); line-height: 1.35; font-weight: 700; quotes: '“' '”'; }
.reviews cite { display: block; margin-top: .625rem; font-size: .625rem; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }

/* --- Chips --------------------------------------------------------------- */

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  border: 2px solid var(--ink); border-radius: 2rem; padding: .375rem .8125rem;
  font-size: .75rem; font-weight: 700; background: #fff;
}
.chips.tinted li { background: color-mix(in srgb, var(--c) 22%, #fff); border-color: var(--ink); }

/* --- Trust --------------------------------------------------------------- */

.trust-box {
  background: var(--ink); color: #fff; padding: 1.5rem 1.375rem;
  border-radius: .75rem; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--c);
}
.trust-box h2 { color: var(--yellow); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; font-variation-settings: 'wdth' 90; }
.trust-box dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .75rem 1rem; }
.trust-box dt { font-size: .625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); align-self: center; }
.trust-box dd { margin: 0; font-size: .9375rem; font-weight: 800; text-align: right; }

/* --- Filter bar ---------------------------------------------------------- */

.filterbar {
  display: flex; flex-wrap: wrap; align-items: end; gap: .875rem;
  background: var(--wash); border: 3px solid var(--ink); border-radius: .75rem;
  padding: 1rem 1.125rem; margin-bottom: 2rem;
}
.filterbar label { display: flex; flex-direction: column; gap: .3125rem; }
.filterbar label span { font-size: .5625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.filterbar select { font-family: var(--display); font-weight: 700; font-size: .8125rem; padding: .5rem .75rem; border: 2px solid var(--ink); border-radius: 2rem; background: #fff; color: var(--ink); }
.filterbar .count { margin: 0 0 .4375rem auto; font-size: .625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; background: var(--ink); color: #fff; padding: .375rem .75rem; border-radius: 2rem; }
.filterbar .count span { color: var(--yellow); font-size: .8125rem; }

/* --- Bands --------------------------------------------------------------- */

.band { padding-block: 3.5rem; margin-block: 3.5rem; border-block: 3px solid var(--ink); }
.band section { margin: 0; }
.band-wash { background: var(--wash); }
.band-mint { background: var(--mint); }
.band-sky  { background: var(--sky); }

/* --- Misc ---------------------------------------------------------------- */

.preview-flag { background: var(--yellow); border-bottom: 3px solid var(--ink); font-size: .625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.preview-flag .wrap { padding-block: .625rem; }
.demo-flag { background: var(--ink); color: var(--yellow); font-size: .625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.demo-flag .wrap { padding-block: .5rem; }
.empty { color: var(--muted); }
.backlink { font-weight: 800; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; }

.site-footer { border-top: 3px solid var(--ink); background: var(--ink); color: #fff; }
.site-footer .wrap { padding-block: 2.5rem; }
.site-footer p { margin: 0; font-size: .75rem; color: var(--faint); }
.site-footer .wordmark { display: inline-block; margin-bottom: .75rem; }

/* --- Sticky mobile call bar (QR traffic off a mailer is nearly all phone) - */

.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--cat); border-top: 3px solid var(--ink); padding: .75rem 1rem; text-align: center; }
.callbar a { display: block; color: #fff; text-decoration: none; font-size: 1rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
body:has(.callbar) { padding-bottom: 4.5rem; }
@media (min-width: 48rem) { .callbar { display: none; } body:has(.callbar) { padding-bottom: 0; } }

/* --- Motion -------------------------------------------------------------- */

.btn, .offer, .card .tile, .catbar a { transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --- Print: the coupon, nothing else ------------------------------------- */

@media print {
  .site-header, .catbar, .site-footer, .callbar, .crumbs, .offer-actions,
  .preview-flag, .demo-flag, .backlink, .filterbar, .hero .ghost, .hero .blob { display: none !important; }
  body { font-size: 12pt; }
  .offer { box-shadow: none; border: 3px dashed #000; page-break-inside: avoid; }
  .offer-top, .savings { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
