/* Über Takes — shared styles
   Art direction: debate-hall poster meets op-ed page. Warm paper, heavy
   display serif, two "sides" colours (brick vs ink-blue) that carry the
   whole brand — they are the two dots of the Ü. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,700;0,9..144,900;1,9..144,500;1,9..144,900&family=Public+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --paper: #f3ead8;
  --paper-2: #e9dcc3;
  --ink: #17130f;
  --ink-2: #4a4036;
  --rule: #c9b998;
  --a: #c2381f;        /* side A — brick */
  --a-soft: #f0c9bf;
  --b: #1d4f8f;        /* side B — ink blue */
  --b-soft: #c3d4ea;
  --gold: #e3a21a;
  --shadow: 0 2px 0 var(--ink);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Public Sans', -apple-system, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17130f; --paper-2: #221c15; --ink: #f3ead8; --ink-2: #c9b998;
    --rule: #4a4036; --a: #e0563c; --a-soft: #4a1f17; --b: #4d86d6; --b-soft: #16294a;
  }
}
:root[data-theme="dark"] {
  --paper: #17130f; --paper-2: #221c15; --ink: #f3ead8; --ink-2: #c9b998;
  --rule: #4a4036; --a: #e0563c; --a-soft: #4a1f17; --b: #4d86d6; --b-soft: #16294a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  background-image: radial-gradient(var(--rule) 0.6px, transparent 0.6px);
  background-size: 22px 22px;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.serif { font-family: var(--serif); }
.eyebrow {
  font: 700 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow b { color: var(--a); }

/* ---- masthead ---- */
.mast {
  border-bottom: 3px solid var(--ink); background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
.mast .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 38px; height: 38px; }
.brand .word {
  font: 900 22px/1 var(--serif); letter-spacing: .02em; text-transform: uppercase;
}
.brand .word i { font-style: normal; color: var(--a); }
.brand .word i + i { color: var(--b); }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.btn {
  display: inline-block; padding: 10px 16px; border: 2px solid var(--ink);
  background: var(--gold); color: #17130f; font-weight: 700; font-size: 14px;
  text-decoration: none; box-shadow: var(--shadow); cursor: pointer; font-family: var(--sans);
}
.btn:active { transform: translateY(2px); box-shadow: none; }
.brand .word { white-space: nowrap; }
@media (max-width: 720px) { .nav { display: none; } .mast .btn { margin-left: auto; padding: 8px 12px; white-space: nowrap; } }

/* ---- hero (home) ---- */
.hero { padding: 64px 0 40px; border-bottom: 3px solid var(--ink); }
.hero h1 {
  font: italic 900 clamp(44px, 8vw, 104px)/0.95 var(--serif); margin: 12px 0 20px;
  letter-spacing: -.02em; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--a); }
.hero p { font-size: 20px; max-width: 54ch; color: var(--ink-2); margin: 0 0 28px; }

/* ---- stamps ---- */
.stamp {
  display: inline-block; padding: 6px 14px; border: 3px solid var(--a); color: var(--a);
  font: 900 14px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase;
  transform: rotate(-4deg); border-radius: 4px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--paper), inset 0 0 0 2px var(--a);
}

/* ---- debate card ---- */
.card {
  background: var(--paper-2); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  padding: 22px; text-decoration: none; display: block; color: inherit;
}
.card h3 { font: italic 900 30px/1.05 var(--serif); margin: 10px 0 14px; letter-spacing: -.01em; }
.card .sides { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.card .sides span:first-child { color: var(--a); }
.card .sides span:last-child { color: var(--b); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card.soon { opacity: .75; }
.card.soon h3 { font-size: 24px; }
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 48px 0; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }

/* ---- tug-of-war bar ---- */
.bar { position: relative; height: 26px; border: 3px solid var(--ink); background: var(--b); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--a); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar:after {
  content: ''; position: absolute; top: 0; bottom: 0; left: var(--split, 50%);
  width: 3px; background: var(--ink); transform: translateX(-50%); transition: left .6s;
}
.pct { display: flex; justify-content: space-between; font: 900 22px/1 var(--serif); margin: 8px 0 0; }
.pct span:first-child { color: var(--a); } .pct span:last-child { color: var(--b); }

/* ---- debate page ---- */
.take-head { padding: 48px 0 28px; }
.take-head h1 {
  font: italic 900 clamp(40px, 7vw, 92px)/0.95 var(--serif); margin: 14px 0 18px; letter-spacing: -.02em;
}
.take-head h1 .a { color: var(--a); font-style: normal; }
.take-head h1 .b { color: var(--b); font-style: normal; }
.take-head .deck { font-size: 20px; color: var(--ink-2); max-width: 62ch; margin: 0; }
.byline { margin-top: 18px; font-size: 14px; color: var(--ink-2); }

.vs { display: grid; grid-template-columns: 1fr 72px 1fr; gap: 0; align-items: stretch; margin: 20px 0 0; }
.side {
  border: 3px solid var(--ink); padding: 26px; position: relative; overflow: hidden;
  background: var(--paper-2);
}
.side.a { box-shadow: -6px 6px 0 var(--a); }
.side.b { box-shadow: 6px 6px 0 var(--b); }
.side .num {
  font: 900 clamp(110px, 18vw, 220px)/0.8 var(--serif); letter-spacing: -.06em;
  position: absolute; right: -8px; bottom: -22px; opacity: .14; pointer-events: none;
}
.side.a .num { color: var(--a); } .side.b .num { color: var(--b); left: -8px; right: auto; }
.side h2 { font: 900 34px/1 var(--serif); margin: 6px 0 4px; }
.side .sub { color: var(--ink-2); font-size: 14px; margin: 0 0 18px; }
.side ul { margin: 0; padding: 0; list-style: none; }
.side li { padding: 10px 0; border-top: 1px solid var(--rule); display: flex; gap: 12px; }
.side li b { font: 900 20px/1.2 var(--serif); min-width: 64px; }
.side.a li b { color: var(--a); } .side.b li b { color: var(--b); }
.vs .mid { display: grid; place-items: center; }
.vs .mid span {
  font: italic 900 30px/1 var(--serif); background: var(--gold); border: 3px solid var(--ink);
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: #17130f;
  box-shadow: var(--shadow);
}
@media (max-width: 720px) {
  .vs { grid-template-columns: 1fr; gap: 18px; }
  .vs .mid { order: 2; } .side.b { order: 3; }
}

.vote { margin: 40px 0; border: 3px solid var(--ink); background: var(--paper-2); padding: 28px; }
.vote h2 { font: italic 900 32px/1 var(--serif); margin: 0 0 18px; }
.vote .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.choice {
  border: 3px solid var(--ink); padding: 18px; font: 900 24px/1 var(--serif); cursor: pointer;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow); text-align: left;
}
.choice small { display: block; font: 500 13px/1.3 var(--sans); margin-top: 6px; color: var(--ink-2); }
.choice.a:hover, .choice.a[aria-pressed="true"] { background: var(--a); color: #fff; }
.choice.b:hover, .choice.b[aria-pressed="true"] { background: var(--b); color: #fff; }
.choice[aria-pressed="true"] small { color: inherit; opacity: .85; }
.vote .count { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
@media (max-width: 560px) { .vote .choices { grid-template-columns: 1fr; } }

.verdict { position: relative; margin: 48px 0; padding: 36px 32px 32px; border: 3px solid var(--ink); background: var(--paper); }
.verdict .stamp { position: absolute; top: -18px; left: 24px; background: var(--paper); }
.verdict h2 { font: 900 clamp(30px, 4.5vw, 46px)/1.05 var(--serif); margin: 8px 0 18px; }
.verdict h2 .a { color: var(--a); }
.verdict p { font-size: 18px; max-width: 70ch; }
.verdict .rule { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; color: var(--ink-2); font-size: 14px; }
.verdict .rule:before, .verdict .rule:after { content: ''; flex: 1; border-top: 1px solid var(--rule); }

.related { padding: 32px 0 64px; border-top: 3px solid var(--ink); }
.related h2 { font: italic 900 32px/1 var(--serif); margin: 0 0 22px; }

/* ---- footer ---- */
.foot { border-top: 3px solid var(--ink); padding: 32px 0 48px; font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.foot p { margin: 0; max-width: 56ch; }
.foot .uber { font: italic 500 16px/1.5 var(--serif); color: var(--ink); }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr; } }

/* ---- how it works strip ---- */
.how { padding: 48px 0; border-top: 3px solid var(--ink); }
.how .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how h4 { font: 900 24px/1.1 var(--serif); margin: 10px 0 8px; }
.how p { margin: 0; color: var(--ink-2); font-size: 15px; }
.how .n {
  width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 50%; display: grid;
  place-items: center; font: 900 18px/1 var(--serif); background: var(--gold); color: #17130f;
}
@media (max-width: 720px) { .how .wrap { grid-template-columns: 1fr; } }

/* empty tally: neutral bar until the first vote lands */
.bar.empty { background: var(--paper-2); }
.bar.empty i { background: var(--rule); }

/* ---- v3: cards with live mini bars, share, category + prose pages ---- */
.bar.mini { height: 10px; margin-top: 12px; border-width: 2px; }
.bar.mini:after { width: 2px; }
.card { position: relative; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.feat-h { font: italic 900 clamp(36px, 5.5vw, 68px)/0.95 var(--serif); margin: 12px 0 18px; letter-spacing: -.02em; }
.feat-p { font-size: 19px; color: var(--ink-2); max-width: 48ch; }
.feat-sides { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-top: 6px; }
.feat-sides span:first-child { color: var(--a); } .feat-sides span:last-child { color: var(--b); }
.feature .count { font-size: 14px; color: var(--ink-2); margin-top: 14px; }
.catsec { padding: 36px 0 12px; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.sechead h2 { font: italic 900 36px/1 var(--serif); margin: 0; }
.sechead a { font-size: 14px; font-weight: 700; text-decoration: none; }
.sechead a:hover { text-decoration: underline; }
.hero.small { padding: 44px 0 32px; }
.hero.small h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 8px; }
.share { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }
.share-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.sbtn { display: inline-block; padding: 8px 14px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 14px/1 var(--sans); text-decoration: none; cursor: pointer; box-shadow: var(--shadow); }
.sbtn:active { transform: translateY(2px); box-shadow: none; }
.sbtn.copied { background: var(--gold); color: #17130f; }
.prose { padding: 32px 0 72px; max-width: 70ch; font-size: 18px; }
.prose h2 { font: italic 900 30px/1.1 var(--serif); margin: 36px 0 10px; }
.prose a { text-decoration-thickness: 2px; }
.suggest { display: grid; gap: 16px; max-width: 560px; }
.suggest label { display: grid; gap: 6px; font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.suggest input, .suggest textarea { font: 400 17px/1.4 var(--sans); padding: 12px; border: 2px solid var(--ink); background: var(--paper-2); color: var(--ink); }
.suggest .btn { justify-self: start; }
.suggest .fine { font-size: 13px; color: var(--ink-2); margin: 0; }

/* ---- v4: tiny screens ---- */
.grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
@media (max-width: 420px) {
  .brand .word { font-size: 18px; } .brand .mark { width: 30px; height: 30px; }
  .mast .btn { padding: 8px 10px; font-size: 13px; }
  .wrap { width: calc(100% - 24px); }
}
