:root {
  --ink: #241a3a;
  --muted: #4b4163;
  --paper: #fffaf3;
  --lilac: #ede9fe;
  --mint: #ccfbf1;
  --violet: #6d28d9;
  --teal: #0f766e;
  --berry: #be185d;
  --green: #15803d;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; margin: 0; }

a { color: var(--violet); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Masthead */
.masthead { border-bottom: 3px dashed var(--ink); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { margin: 0; font: italic 700 1.5rem Georgia, serif; }
.logo-mark { color: var(--violet); }
.masthead ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.masthead nav a { color: var(--ink); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Cover */
.cover { background: var(--lilac); padding: 40px 0; border-bottom: 3px solid var(--ink); }
.cover-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.issue-tag { display: inline-block; margin: 0 0 12px; padding: 4px 12px; background: var(--ink); color: #fff; border-radius: 999px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.cover h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.02em; }
.cover h1.h1-issue { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.dates { margin: 10px 0 0; font-weight: 700; font-size: 1.2rem; color: var(--violet); }
.lede { max-width: 34em; color: var(--muted); }
.cover-art { width: 100%; max-width: 320px; justify-self: center; }

.notice { margin-top: 24px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }

/* Drops */
.drop { margin: 36px 0; }
.drop-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 1.7rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.drop-head time { font: 700 1rem system-ui, sans-serif; background: var(--mint); color: var(--teal); padding: 3px 10px; border-radius: 999px; }

.finds { list-style: none; padding: 0; margin: 0; }
.find { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; padding: 22px 0 22px 64px; border-bottom: 1px dashed #b7aecb; }
.num { position: absolute; left: 0; top: 22px; font: 700 2.4rem Georgia, serif; color: var(--violet); }

.art { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); padding: 10px; transform: rotate(-2deg); }
.find:nth-child(even) .art { transform: rotate(2deg); }
.art-teal { background: var(--mint); }
.art-pink { background: #fce7f3; }
.art-violet { background: var(--lilac); }
.art-green { background: #dcfce7; }

.example { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border: 2px dashed var(--berry); border-radius: 6px; color: var(--berry); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.find h4 { font-size: 1.45rem; }
.why { margin: 6px 0 10px; color: var(--muted); }
.label { font-weight: 700; color: var(--ink); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.price { font-weight: 800; font-size: 1.15rem; }
.price small { font-weight: 600; font-size: .8rem; color: var(--muted); }
.buzz { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: #fff; transform: rotate(-2deg); }
.buzz-hot { background: var(--berry); }
.buzz-cult { background: var(--violet); }
.buzz-new { background: var(--teal); }

.out { display: inline-block; font-weight: 700; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.out:hover { background: var(--lilac); }

@media (min-width: 960px) {
  .finds { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .find { grid-template-columns: 150px 1fr; align-items: start; }
  .find:first-child { grid-column: 1 / -1; grid-template-columns: 260px 1fr; align-items: center; }
  .find:first-child h4 { font-size: 1.9rem; }
}

/* Past weeks */
.past { background: #2e1065; color: #fff; padding: 28px 0; }
.past h2 { font-size: 1.6rem; margin-bottom: 14px; }
.issues { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 12px; overflow-x: auto; }
.issues a { display: block; white-space: nowrap; padding: 10px 16px; border-radius: 12px; background: #4c1d95; color: #fff; text-decoration: none; font-weight: 600; }
.issues a:hover { background: var(--violet); }
.issues .no { display: block; font-size: .8rem; color: #ddd6fe; }

/* Signup */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-top: 36px; margin-bottom: 36px; padding: 28px; background: var(--mint); border: 3px solid var(--ink); border-radius: var(--radius); }
.signup h2 { font-size: 1.8rem; }
.signup p { margin: 8px 0 0; }
.small { font-size: .85rem; color: var(--muted); }

/* Footer */
.footer { border-top: 3px dashed var(--ink); padding: 24px 0 32px; }
.footer p { margin: 0 0 8px; max-width: 48em; }

/* Mobile */
@media (max-width: 720px) {
  .cover { padding: 28px 0; }
  .cover-grid, .signup { grid-template-columns: 1fr; }
  .cover-art { max-width: 150px; }
  .masthead ul { gap: 6px 14px; font-size: .95rem; }
  .find { grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 18px 0; }
  .num { position: static; grid-column: 1 / -1; font-size: 1.6rem; line-height: 1; }
  .art { padding: 6px; }
  .find h4 { font-size: 1.25rem; }
  .signup { padding: 20px; }
}

/* ---- Site additions (generator) ---- */
.logo a { color: var(--ink); text-decoration: none; }
.masthead nav a[aria-current="page"] { color: var(--violet); text-decoration-thickness: 3px; }
.art img, img.art { object-fit: cover; display: block; }
img.art { padding: 0; height: auto; background: var(--lilac); }
.art-letter { font: 700 40px Georgia, serif; }
.find:target { background: #fff; outline: 3px solid var(--violet); outline-offset: 4px; border-radius: 12px; }
.intro { margin: 16px 0 0; max-width: 34em; font-weight: 600; color: var(--ink); }
.deal-tag { display: inline-block; margin: 0 0 6px 4px; padding: 2px 10px; border-radius: 6px; background: var(--green); color: #fff; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.reg { font-weight: 600; font-size: .9rem; color: var(--muted); }
.find-date { font-size: .85rem; font-weight: 700; color: var(--teal); }
.buzz-deal { background: var(--green); }
.past .all { display: inline-block; margin-top: 12px; color: #fff; font-weight: 700; }
.issues a[aria-current="page"] { background: var(--violet); outline: 2px solid #fff; }

/* Ad slot: drop an AdSense <ins> block into config.json "ad_html" */
.ad-slot { margin: 32px auto; max-width: 1040px; }

/* Archive + text pages */
.page-head { background: var(--lilac); padding: 32px 0; border-bottom: 3px solid var(--ink); }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.02em; }
.page-head p { margin: 10px 0 0; color: var(--muted); max-width: 40em; }
.prose { max-width: 46em; padding-top: 28px; padding-bottom: 12px; }
.prose h2 { font-size: 1.6rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.archive { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.archive a { display: block; height: 100%; padding: 18px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; box-shadow: 4px 4px 0 var(--ink); }
.archive a:hover { background: var(--mint); }
.archive .no { display: block; font-weight: 800; color: var(--violet); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.archive .when { display: block; font: 700 1.3rem Georgia, serif; margin: 4px 0; }
.archive .count { color: var(--muted); font-size: .95rem; }
.lost { text-align: center; padding-top: 48px; padding-bottom: 48px; }
.lost .issue-tag { color: #fff; }
.lost h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
.lost p { color: var(--muted); }
.lost .out { margin: 6px; }
.footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 12px; padding: 0; }
.footer nav a { color: var(--ink); font-weight: 600; }
.past a:focus-visible, .issue-tag a:focus-visible { outline-color: #5eead4; }
.unofficial { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; color: var(--ink); }
