@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-display: swap; src: url('/fonts/schibsted-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/schibsted-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 800; font-display: swap; src: url('/fonts/schibsted-grotesk-latin-800-normal.woff2') format('woff2'); }

:root {
  --paper: #f2f4fa;
  --surface: #ffffff;
  --ink: #1c1f45;
  --ink-soft: #565b80;
  --rule: #d8dcea;
  --marker: #ffd23f;
  --marker-soft: #fff1b8;
  --ok: #1f7a4d;
  --warn: #9a5b00;
  --danger: #b4232f;
  --radius-sm: 6px;
  --radius: 12px;
  --measure: 68ch;
  font-family: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-size: 1rem; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px 64px; }
a { color: inherit; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--surface); }
.site-header .bar { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.wordmark { display: flex; align-items: baseline; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.wordmark .stamp { font-size: 0.75rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--marker); }
.site-nav { display: flex; gap: 18px; margin-left: auto; align-items: center; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }
.site-nav a.btn, .site-nav a.btn:hover { color: #fff; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--rule); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: #2c3170; border-color: #2c3170; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--marker-soft); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Week hero */
.week-hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; padding: 40px 0 24px; border-bottom: 2px solid var(--ink); }
.week-hero h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 0.95; letter-spacing: -0.035em; font-weight: 800; }
.week-hero .range { display: block; font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 500; letter-spacing: -0.01em; color: var(--ink-soft); margin-top: 10px; }
.week-hero .closes { text-align: right; font-weight: 500; }
.week-hero .closes strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.week-nav { display: flex; gap: 16px; padding: 12px 0 0; font-size: 0.95rem; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 8px; }
.side { padding-top: 20px; display: flex; flex-direction: column; gap: 28px; }
.side h2 { font-size: 1rem; margin: 0 0 8px; }
.side p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.95rem; }
.side .launch-box { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }

/* Board */
.board { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 2.2rem 52px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.rank { font-weight: 800; font-size: 1.15rem; color: var(--ink-soft); text-align: right; }
.row:nth-child(-n+3) .rank { color: var(--ink); }
.row.premium { background: linear-gradient(90deg, var(--marker-soft), rgba(255, 241, 184, 0) 70%); border-radius: var(--radius-sm); }
.logo { width: 52px; height: 52px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rule); object-fit: cover; }
.logo.mono { display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; background: var(--marker-soft); }
.row .title { min-width: 0; }
.row .title a.name { font-weight: 700; font-size: 1.08rem; text-decoration: none; }
.row .title a.name:hover { text-decoration: underline; }
.row .tagline { margin: 2px 0 4px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row .meta { font-size: 0.85rem; color: var(--ink-soft); display: flex; gap: 12px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 500; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); }
.tag.premium { border-color: var(--ink); }

/* The signature element: visitors actually sent, marked like a highlighter. */
.sent { text-align: right; min-width: 92px; line-height: 1.15; }
.sent .count { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; padding: 0 3px;
  background: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 92%, transparent 92%); }
.sent .label { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 3px; }

.vote { margin: 0; }
.vote button, .vote a { display: grid; justify-items: center; gap: 0; width: 60px; min-height: 60px; padding: 6px 0; border-radius: var(--radius-sm);
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.vote button:hover, .vote a:hover { background: var(--marker-soft); }
.vote .arrow { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 9px solid currentColor; margin-top: 4px; }
.vote .n { font-size: 1rem; }
.vote button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.vote.closed > span { display: grid; justify-items: center; width: 60px; min-height: 60px; padding: 6px 0; border-radius: var(--radius-sm); border: 2px solid var(--rule); color: var(--ink-soft); font-weight: 800; }

.empty { padding: 48px 0; max-width: var(--measure); }
.empty h2 { margin: 0 0 8px; }

/* Product page */
.product-head { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 40px 0 24px; align-items: center; }
.product-head .logo { width: 88px; height: 88px; border-radius: 20px; }
.product-head .logo.mono { font-size: 2.2rem; }
.product-head h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; }
.product-head .tagline { margin: 6px 0 0; font-size: 1.15rem; color: var(--ink-soft); max-width: var(--measure); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-bottom: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.stat { padding: 18px 16px 18px 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--rule); }
.stat .value { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat.sent-stat .value span { padding: 0 4px; background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%); }
.stat .label { font-size: 0.9rem; color: var(--ink-soft); }
.prose { max-width: var(--measure); white-space: pre-line; font-size: 1.05rem; }
.section { padding-top: 32px; }
.section h2 { font-size: 1.25rem; margin: 0 0 12px; letter-spacing: -0.01em; }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; max-width: 760px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin: 0 0 6px; }
.panel p { margin: 0 0 12px; }
.status { display: inline-block; font-weight: 700; font-size: 0.85rem; padding: 2px 10px; border-radius: 999px; background: var(--marker-soft); }
.status.approved { background: #dff2e8; color: var(--ok); }
.status.rejected { background: #f9e0e2; color: var(--danger); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
pre { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

.comments { list-style: none; padding: 0; margin: 0 0 16px; max-width: var(--measure); }
.comments li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.comments .who { font-weight: 700; font-size: 0.95rem; }
.comments .when { font-size: 0.85rem; color: var(--ink-soft); margin-left: 8px; }
.comments p { margin: 4px 0 0; white-space: pre-line; }

/* Forms */
form.stack { display: grid; gap: 18px; max-width: 640px; }
label { font-weight: 700; display: grid; gap: 6px; }
label .hint { font-weight: 400; font-size: 0.9rem; color: var(--ink-soft); }
input[type='text'], input[type='url'], textarea, select {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); width: 100%;
  border: 2px solid var(--rule); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 46px; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; }
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 700; margin-bottom: 6px; }
.choice { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 400; background: var(--surface);
  border: 2px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); }
.choice strong { display: block; }
.choice input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--ink); }
.notice { border-left: 4px solid var(--marker); background: var(--surface); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: 760px; margin: 16px 0; }
.notice.error { border-color: var(--danger); }

.page { max-width: var(--measure); padding-top: 40px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 16px; }
.page h2 { margin: 32px 0 8px; font-size: 1.25rem; }
.page table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; }
.page th, .page td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }

.queue { width: 100%; border-collapse: collapse; }
.queue th, .queue td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.queue form { display: inline; }

.weeks { list-style: none; padding: 0; margin: 0; }
.weeks li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 9rem 1fr; gap: 16px; }
.weeks .winners { color: var(--ink-soft); }

.site-footer { border-top: 1px solid var(--rule); background: var(--surface); }
.site-footer .bar { max-width: 1080px; margin: 0 auto; padding: 24px 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9rem; color: var(--ink-soft); }
.site-footer a { color: var(--ink-soft); }
.site-footer .made { margin-right: auto; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 8px; }
  .side { order: 2; }
}
@media (max-width: 640px) {
  main { padding: 0 16px 48px; }
  .site-header .bar { padding: 10px 16px; gap: 12px; }
  .site-nav { gap: 12px; font-size: 0.95rem; }
  .site-nav .hide-sm { display: none; }
  .week-hero { grid-template-columns: 1fr; padding-top: 28px; }
  .week-hero .closes { text-align: left; }
  .week-hero .closes strong { display: inline; font-size: 1.25rem; margin-right: 4px; }
  .row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: 'logo title vote' 'logo sent vote'; gap: 4px 12px; }
  .row .rank { display: none; }
  .row .logo { grid-area: logo; width: 44px; height: 44px; align-self: start; }
  .row .title { grid-area: title; }
  .row .sent { grid-area: sent; text-align: left; display: flex; gap: 8px; align-items: baseline; min-width: 0; }
  .row .sent .count { font-size: 1.15rem; }
  .row .sent .label { margin: 0; }
  .row .vote { grid-area: vote; }
  .product-head { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding-top: 28px; }
  .product-head .logo { width: 64px; height: 64px; border-radius: 16px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat .value { font-size: 1.6rem; }
  .weeks li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* SEO pages */
.category-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.category-links a.tag { text-decoration: none; }
.category-links a.tag:hover { border-color: var(--ink); }
.category-links .tag.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.category-links .count { color: var(--ink-soft); }
a.tag { text-decoration: none; color: inherit; }
.page.guide { max-width: 1040px; }
.page.guide > p, .page.guide > ol, .page.guide > ul, .page.guide > h2 { max-width: var(--measure); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 16px; }
.table-scroll table { min-width: 860px; font-size: 0.92rem; }
.table-scroll td { vertical-align: top; }
.table-scroll tr.self td { background: var(--marker-soft); }
.site-footer .bar.featured-on { align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.site-footer .featured-on .made { margin-right: 4px; }
.site-footer .featured-on img { display: block; height: 40px; width: auto; }
