@font-face {
  font-family: Anton;
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/anton-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("/fonts/archivo-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #111111;
  --paper: #f3f0e4;
  --white: #fffdf6;
  --lime: #e2ff3d;
  --muted: #2b2b2b;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.45;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, .logo, .btn, .stamp, .tag, .mark, .perk, .step-no {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.92;
}
h1 { font-size: clamp(3.4rem, 11vw, 7.4rem); text-transform: uppercase; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; margin: 0 0 0.6rem; }
h3 { font-size: 1.6rem; text-transform: uppercase; margin: 0; }
p { margin: 0 0 0.8rem; }

.skip {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  background: var(--lime);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 50;
  border: 3px solid var(--ink);
}
.skip:focus { top: 0.8rem; }

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

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  border-bottom: 4px solid var(--ink);
}
.logo {
  color: var(--lime);
  text-decoration: none;
  font-size: 2.1rem;
  letter-spacing: 0.04em;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; align-items: center; }
.nav a { color: var(--white); text-decoration: none; font-weight: 700; }
.nav a[aria-current="page"] { color: var(--lime); }
.nav a:hover { color: var(--lime); }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.stack { display: grid; gap: 1.1rem; }
.section { padding: 2.2rem 0; }
.lede { font-size: 1.2rem; max-width: 42rem; }

.hero {
  background: var(--ink);
  color: var(--white);
  padding: 2.4rem 0 2.8rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 1.5rem;
  align-items: end;
}
.kicker {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
}
.hero .lede { color: #f6f3e8; }
.search {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
  max-width: 40rem;
}
.search input { background: var(--white); }
.stamp {
  justify-self: end;
  align-self: center;
  border: 4px solid var(--lime);
  color: var(--lime);
  text-transform: uppercase;
  padding: 0.7rem 0.8rem;
  transform: rotate(-8deg);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-align: center;
  line-height: 0.9;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.deal {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 190px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 1rem;
}
.deal:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--ink); }
.deal-cat { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.deal-name { font-family: Anton, Impact, sans-serif; font-size: 2rem; line-height: 0.9; text-transform: uppercase; }
.deal-meta { margin-top: auto; font-weight: 700; }

.mark {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  font-size: 1.7rem;
}
.mark.lime { background: var(--lime); color: var(--ink); }
.mark.ink { background: var(--ink); color: var(--lime); }
.mark.small {
  width: 2rem;
  height: 2rem;
  font-size: 1.15rem;
  flex: none;
}
.mark.has-logo {
  background: #fff;
  overflow: hidden;
}
.mark-logo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  display: block;
}
.catalog-main { flex: 1; min-width: 0; }
.logo-editor {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.logo-editor .mark { flex: none; }
.logo-editor > div { flex: 1; min-width: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 1rem;
  min-height: 180px;
}
.step-no { font-size: 3rem; color: var(--ink); }
.step h3 { margin-bottom: 0.45rem; }

.agent {
  background: var(--ink);
  color: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--lime);
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
  align-items: center;
}
.endpoint {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background: #000;
  color: var(--lime);
  border: 3px solid var(--lime);
  padding: 0.8rem;
  overflow-wrap: anywhere;
}

.card, .coupon, .panel {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.card, .panel { padding: 1.1rem; }
.coupon { padding: 1.4rem 1.5rem 1.3rem; box-shadow: 12px 12px 0 var(--ink); }
.coupon-top { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1rem; }
.you-label { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 0.2rem; }
.perk { font-size: clamp(1.8rem, 4vw, 3rem); text-transform: uppercase; margin: 0 0 0.7rem; }
.perk-xl { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.they { font-size: 1.05rem; }
.they span { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 0.35rem; }
.codebox {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 3px dashed var(--ink);
  background: var(--lime);
  padding: 0.8rem 0.9rem;
  margin: 0.9rem 0;
}
.code-label { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }
.code-value { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.35rem; font-weight: 700; overflow-wrap: anywhere; }
.actions, .pair { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.link-host { align-self: center; font-weight: 700; }
.fine {
  margin-top: 0.9rem;
  border: 3px dashed var(--ink);
  background: var(--paper);
  padding: 0.75rem;
  font-size: 0.95rem;
}
.fine summary { cursor: pointer; font-weight: 700; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--lime);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 0.75rem 1rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.dark { background: var(--ink); color: var(--white); }
.btn.white { background: var(--white); }
.btn.small { font-size: 1rem; padding: 0.55rem 0.75rem; box-shadow: 4px 4px 0 var(--ink); }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.card-head h2 { margin: 0; }

.catalog-filters {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.2rem;
}
.catalog-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}
.catalog-filters .field { margin-bottom: 0; }
.catalog-filters .hint { margin: 0; }
.catalog-filters input,
.catalog-filters select { min-height: 48px; }

input, textarea, select {
  width: 100%;
  border: 3px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem;
  font: inherit;
  border-radius: 0;
}
textarea { min-height: 6.5rem; resize: vertical; }
input[readonly] { background: var(--paper); }
label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field { margin-bottom: 0.9rem; }
.form-grid { display: grid; gap: 0.2rem; }
.hint { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 1rem; }
.chip {
  border: 3px solid var(--ink);
  background: var(--white);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}
.chip[aria-current="page"], .chip:hover { background: var(--lime); }

.tag {
  display: inline-block;
  border: 3px solid var(--ink);
  padding: 0.15rem 0.45rem;
  text-transform: uppercase;
  font-size: 1rem;
}
.tag.active { background: var(--lime); }
.tag.paused, .tag.removed { background: var(--ink); color: var(--white); }
.tag.dormant, .tag.pending, .tag.rejected, .tag.disabled, .tag.held { background: var(--white); }
.tag.approved { background: var(--lime); }

.banner {
  background: var(--lime);
  border: 3px solid var(--ink);
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  margin: 1rem 0;
}
.alert {
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.8rem;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 3px solid var(--ink);
}
.row:last-child { border-bottom: 0; }
.suggestion-body { flex: 1; min-width: 0; }
.duplicates { margin-top: 0.8rem; }
.duplicates ul { margin: 0.35rem 0 0; padding-left: 1.15rem; }
.duplicates li { margin: 0.55rem 0; }
.meta { font-size: 0.92rem; }
/* Website line on a drawn coupon. Clears the 5px button shadow and the fine-print box. */
.coupon > .meta { margin-top: 1rem; }
/* Directly under the code box, match that box's bottom margin so the two collapse to the same gap. */
.coupon > .codebox + .meta { margin-top: 0.9rem; }
.split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1rem; align-items: start; }
.gap-top { margin-top: 1rem; }
.gap-bottom { margin-bottom: 1rem; }
.narrow { max-width: 40rem; }
.narrow-wide { max-width: 46rem; }
.after-tag { margin-top: 0.4rem; }
.after-tag a { color: inherit; }

.facts {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}
.facts dt { font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.listing-row { flex-wrap: wrap; }

.dist {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 1rem;
}
.dist caption { text-align: left; margin-bottom: 0.4rem; }
.dist th, .dist td {
  text-align: left;
  padding: 0.45rem 0.4rem;
  border-bottom: 2px solid var(--ink);
  vertical-align: top;
}
.dist th[scope="row"] { font-weight: 700; }
.dist tr.excluded { color: #4a4a4a; }
.dist tr.flagged { background: var(--lime); }
.dist .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.share-track {
  display: block;
  position: relative;
  height: 0.7rem;
  margin-top: 0.35rem;
  border: 2px solid var(--ink);
  background: var(--white);
}
.share-fill {
  display: block;
  height: 100%;
  background: var(--lime);
}
.dist tr.excluded .share-fill { background: #c8c8c8; }
.share-mark {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 3px;
  background: var(--ink);
}
.epoch-list { margin: 0.35rem 0 0; padding-left: 1.15rem; }
.tag.flagged { background: var(--ink); color: var(--white); }
.dist tr.flagged .tag.flagged { background: var(--white); color: var(--ink); }
.listing-actions { flex: 1 1 16rem; max-width: 22rem; }
.listing-actions fieldset {
  border: 0;
  margin: 0 0 0.9rem;
  padding: 0;
}
.listing-actions legend { font-weight: 700; margin-bottom: 0.3rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.4rem 0; }
.check input { width: auto; }

.site-foot {
  border-top: 4px solid var(--ink);
  padding: 1.2rem 0 2rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-weight: 700;
}
.empty { padding: 1.2rem; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible, .top :focus-visible, .agent :focus-visible { outline-color: var(--lime); }

@media (max-width: 800px) {
  .hero-grid, .steps, .agent, .split, .catalog-filter-grid, .facts { grid-template-columns: 1fr; }
  .facts dd { margin-bottom: 0.6rem; }
  .stamp { justify-self: start; }
  .search { flex-direction: column; }
  .coupon { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .deal:hover, .btn:hover, .btn:active { transform: none; }
}
