/* The app's own palette (src/theme.ts): slate ground, bone text, the icon's red. */
:root {
  --ground: #2E3035;
  --deep: #25272B;
  --raised: #3A3D43;
  --line: #45484F;
  --border: #53575F;
  --ink: #F6F3EC;
  --ink2: #B4B1AA;
  --quiet: #9A978F;
  --red: #CE0101;
  --red-ink: #FF6B61;
  --display: "Anton", Impact, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --label: "Barlow Condensed", "Barlow", sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.55 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 0.35em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 88px); line-height: 0.98; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.04; }
p { margin: 0 0 1em; max-width: 34em; color: var(--ink2); text-wrap: pretty; }

section { padding: clamp(56px, 9vw, 112px) var(--gutter); max-width: 1180px; margin: 0 auto; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter); max-width: 1180px; margin: 0 auto; }
.lockup { width: clamp(150px, 20vw, 210px); }
.top-cta { font: 700 15px/1 var(--label); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; padding: 13px 18px; border: 1px solid var(--border); border-radius: 999px; }
.top-cta:hover { border-color: var(--ink2); }

.button, .join-form button {
  display: inline-block; font: 700 17px/1 var(--label); text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--red); color: var(--ink); text-decoration: none; padding: 18px 28px; border: 0; border-radius: 10px; cursor: pointer;
}
.button:hover, .join-form button:hover { filter: brightness(1.12); }
.button:focus-visible, .top-cta:focus-visible, .join-form button:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 3px; }
.fine { font-size: 15px; color: var(--quiet); margin-top: 14px; }
.lede { font-size: clamp(19px, 1.7vw, 22px); margin-bottom: 28px; }

/* Knives: five, filled to the score. --f is how much of each one is red. */
.knives { display: inline-flex; gap: 3px; }
.k {
  width: 16px; height: 16px;
  background: linear-gradient(90deg, var(--red-ink) var(--f, 0%), var(--border) var(--f, 0%));
  -webkit-mask: url(assets/knife.svg) center / contain no-repeat;
  mask: url(assets/knife.svg) center / contain no-repeat;
}
.s { display: flex; align-items: center; gap: 10px; }
.s em { font: 400 26px/1 var(--display); font-style: normal; color: var(--red-ink); min-width: 2.2ch; text-align: right; }

/* Hero: the claim beside the product itself -- a real ranked list, not a phone mockup. */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(28px, 5vw, 64px); }
.ranked { margin: 0; background: var(--deep); border-radius: 18px; padding: 22px 24px 10px; }
.ranked figcaption { font: 700 13px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--quiet); margin-bottom: 8px; }
.ranked ol { list-style: none; margin: 0; padding: 0; }
.ranked li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.ranked li:first-child { border-top: 0; }
.ranked .n { font: 400 30px/1 var(--display); width: 1.2ch; color: var(--ink); }
.ranked li:first-child .n { color: var(--red-ink); }
.ranked img { border-radius: 6px; flex: none; }
.ranked .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ranked strong { font: 700 18px/1.25 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranked .t span { font-size: 15px; color: var(--ink2); }

/* The shelf: every subgenre, set big. */
.wall { border-top: 1px solid var(--line); }
.genres { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.45em; font: 400 clamp(38px, 6.6vw, 84px)/1.08 var(--display); text-transform: uppercase; color: var(--border); }
.genres li:not(:last-child)::after { content: " /"; color: var(--line); }
.genres .hot { color: var(--ink); }
.wall p { font-size: clamp(19px, 1.8vw, 22px); }

/* Friends: the comparison the app actually shows. */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.compare { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare th { font: 700 13px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--quiet); text-align: right; padding: 0 0 12px 16px; }
.compare th:first-child { text-align: left; padding-left: 0; }
.compare td { border-top: 1px solid var(--line); padding: 12px 0 12px 16px; text-align: right; font: 400 26px/1 var(--display); color: var(--ink2); }
.compare td.book { text-align: left; padding-left: 0; font: 700 17px/1.25 var(--body); color: var(--ink); display: flex; align-items: center; gap: 12px; }
.compare td.book img { border-radius: 5px; }
.compare td:nth-child(2) { color: var(--red-ink); }

/* The twist: one line, the genre's own question. */
.twist { border-top: 1px solid var(--line); }
.twist-line { display: flex; align-items: center; gap: 14px; background: var(--deep); border-radius: 14px; padding: 14px 18px; max-width: 30em; color: var(--red-ink); font-weight: 700; }
.twist-line img { border-radius: 5px; }
.twist-line span { display: flex; flex-direction: column; }
.twist-line strong { color: var(--ink); }

/* Picks: covers with the score you'd probably give them. */
.picks ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 760px; }
.picks li { display: flex; flex-direction: column; gap: 4px; }
.picks img { border-radius: 8px; margin-bottom: 8px; width: 100%; max-width: 180px; }
.picks strong { font: 700 17px/1.25 var(--body); }
.picks li > span:not(.s) { color: var(--ink2); font-size: 15px; }
.picks .s em { font-size: 22px; min-width: 0; }

.join { border-top: 1px solid var(--line); }
.join-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; max-width: 560px; }
.join-form input { flex: 1 1 260px; min-width: 0; font: 400 17px/1 var(--body); color: var(--ink); background: var(--raised); border: 1px solid var(--border); border-radius: 10px; padding: 17px 18px; }
.join-form input::placeholder { color: var(--quiet); }
.join-form input:focus { outline: 2px solid var(--red-ink); outline-offset: 1px; }
.form-note { margin-top: 12px; color: var(--ink); }

.bottom { display: flex; align-items: center; gap: 12px; padding: 28px var(--gutter) 40px; max-width: 1180px; margin: 0 auto; border-top: 1px solid var(--line); }
.bottom p { margin: 0; font: 400 20px/1 var(--display); text-transform: uppercase; color: var(--ink2); }

/* Profile page: an invite link's landing. */
.profile { max-width: 640px; }
.top5 { list-style: none; margin: 8px 0 28px; padding: 0; border-top: 1px solid var(--line); }
.top5 li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.top5 img { border-radius: 8px; flex: none; }
.top5 .t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top5 strong { color: var(--ink); font: 700 18px/1.3 var(--body); }
.top5 .t span { color: var(--ink2); font-size: 15px; }
.top5 em { font: 400 30px/1 var(--display); font-style: normal; color: var(--red-ink); }
.profile-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .hero, .split { grid-template-columns: 1fr; }
  .ranked { padding: 16px 16px 6px; }
  .ranked .knives { display: none; }
  .picks ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .picks .knives { display: none; }
  .compare td { font-size: 22px; }
}
