:root {
  /* Matches Noel's Linktree: dark Christmas red, green outlines, green mono title.
     Small text is soft white in a clean sans font (green text on red flickers at small sizes). */
  --bg: #5e1616;
  --panel: rgba(0, 0, 0, 0.08);        /* barely-there fill inside the green outline */
  --green: #22c21c;
  --green-line: #1f9e1a;
  --text: #fbeeee;                     /* soft white */
  --muted: rgba(255, 228, 228, 0.66);
  --tile: #f1ebe6;                     /* light tile so product photos stay clear */

  /* popup */
  --sheet: #fffaf6;
  --sheet-ink: #2a1414;
  --sheet-muted: #8a7471;
  --sheet-line: #ece0d8;

  --mono: "Space Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  /* lighter red in the middle, darker at the edges, like the Linktree page */
  background: var(--bg) radial-gradient(ellipse 80% 70% at 50% 35%, #842a2a 0%, #6e2020 45%, var(--bg) 100%) fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }

/* ---------- Header ---------- */
.banner { text-align: center; padding: clamp(56px, 13vh, 150px) 16px clamp(36px, 7vh, 80px); }

/* ---------- Logo ----------
   "NOELS" in green Space Mono with a solid drop-down shadow (no glow),
   and a wide-spaced "ÖNSKELISTA 2026" between green rules. */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
}


.brand-main {
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--green);
  text-shadow: 0 .05em 0 #2a0606;
  padding-bottom: .06em; /* room for the straight-down shadow */
}

.brand-sub {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(13px, 2.1vw, 26px);
  letter-spacing: .5em;
  color: var(--text);
  padding-left: .5em;
}
.brand-sub::before,
.brand-sub::after {
  content: "";
  width: clamp(22px, 5vw, 70px);
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}
.brand-sub::after { margin-left: -.5em; } /* cancels the trailing letter-spacing gap */

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px clamp(64px, 10vh, 120px); }

/* ---------- Wish list: one slim row per item, like a Linktree link ---------- */
.grid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 8px 8px;
  background: var(--panel);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
/* hover: lift and brighten the outline only, the fill stays the same */
.card:hover { border-color: var(--green); transform: translateY(-2px); }
.card:active { transform: none; }

.photo {
  flex: none;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--tile);
  overflow: hidden;
}
/* white product-photo backgrounds blend into the tile */
.photo img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.photo .initial { font-size: 22px; font-weight: 700; color: #b9a69d; }

/* title on the left, price pushed to the right */
.meta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.title {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price {
  flex: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price small { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; margin-right: 3px; }

/* the row stays clean: image, name, price (stores are shown when you open an item) */
.card .stores { display: none; }

/* plain entries (e.g. "Pengar"): same box and height as the other rows, no image, not clickable */
.card-plain { min-height: 74px; padding-left: 16px; cursor: default; }
.card-plain:hover { border-color: var(--green-line); transform: none; }

/* ---------- Store logo ---------- */
.logo {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--sheet-line);
  display: grid; place-items: center;
  overflow: hidden;
}
.logo img { width: 72%; height: 72%; object-fit: contain; }
.logo.fallback { background: var(--tile); color: var(--sheet-ink); font-weight: 700; font-size: 14px; }

/* ---------- Popup (store list) ----------
   A plain light panel: the item, then the stores, nothing else. */
.sheet {
  margin: auto;
  width: min(440px, calc(100% - 32px));
  max-height: min(700px, calc(100% - 32px));
  background: var(--sheet);
  color: var(--sheet-ink);
  border: 0;
  border-radius: 20px;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(30, 4, 4, .45);
}
.sheet::backdrop { background: rgba(28, 4, 4, .55); }
.sheet[open] { animation: rise .2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .sheet {
    width: 100%; max-width: 100%;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
  }
}

.sheet-inner { position: relative; padding: 20px; }
.sheet :focus-visible { outline-color: var(--sheet-ink); }

.close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--sheet-muted);
  background: #f3ebe5;
}
.close:hover { color: var(--sheet-ink); background: var(--sheet-line); }

.sheet-head { display: flex; gap: 14px; align-items: center; padding-right: 44px; margin-bottom: 18px; }
.thumb {
  flex: none;
  width: 60px; height: 60px;
  border-radius: 12px;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--tile);
}
.thumb img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.thumb .initial { font-size: 24px; font-weight: 700; color: #b9a69d; }
.sheet h2 { font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -0.02em; }
.sheet-note { color: var(--sheet-muted); font-size: 13.5px; margin-top: 2px; }
.sheet-note:empty { display: none; }

.label { font-size: 12.5px; color: var(--sheet-muted); margin-bottom: 8px; font-weight: 500; }

.offers { list-style: none; display: grid; gap: 8px; }
.offer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--sheet-line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color .15s;
}
.offer:hover { border-color: #d3c3b8; }

.store { font-weight: 600; line-height: 1.3; }
.ship { display: block; font-size: 12.5px; color: var(--sheet-muted); font-weight: 400; }
.badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #1a8a16;
  vertical-align: 1px;
}
.total { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.arrow { color: #c4b2a8; }
.offer:hover .arrow { color: var(--sheet-ink); }

.compare { margin-top: 16px; font-size: 13px; color: var(--sheet-muted); text-align: center; }
.compare a { color: var(--sheet-ink); font-weight: 600; text-underline-offset: 3px; text-decoration-color: #d3c3b8; }
.compare a:hover { text-decoration-color: var(--sheet-ink); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.sheet:focus { outline: none; }

/* Items shown with an emoji instead of a product photo (e.g. money) */
.photo.has-emoji, .thumb.has-emoji { background: var(--tile); }
.photo .emoji { font-size: 30px; line-height: 1; }
.thumb .emoji { font-size: 34px; line-height: 1; }

/* make sure hidden parts stay hidden even when a rule gives them display: grid/flex */
[hidden] { display: none !important; }
