@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/roboto-latin-wght-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #38484e;
  --muted: #596b72;
  --line: #d5dfe2;
  --green: #008c80;
  --green-dark: #006e65;
  --surface: #eef3f5;
  --white: #fff;
  --red: #b00020;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 Roboto, 'Helvetica Neue', Arial, sans-serif; min-height: 100vh; border-top: 4px solid var(--green); }
a { color: inherit; text-underline-offset: 5px; }
header, footer { max-width: 1320px; margin: auto; padding: 24px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
header { min-height: 112px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; background: var(--ink); color: white; font-size: 42px; font-weight: 300; line-height: 1; letter-spacing: -4px; padding: 0 5px 7px 0; }
.brand-name { font-size: 27px; line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.brand-description { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: .03em; }
nav { display: flex; align-items: center; gap: 32px; }
nav a { position: relative; padding: 12px 0; font-size: 14px; text-decoration: none; }
nav a:hover, nav a[aria-current='page'] { color: var(--green-dark); }
nav a[aria-current='page']::after { content: ''; position: absolute; bottom: 2px; left: 0; right: 0; height: 2px; background: var(--green); }
#hostLink span { margin-left: 8px; }
main { max-width: 1216px; margin: auto; padding: 68px 48px 96px; min-height: calc(100vh - 211px); }
h1 { font-size: clamp(40px, 5.2vw, 66px); font-weight: 300; line-height: 1.14; letter-spacing: -.035em; margin: 22px 0 26px; overflow-wrap: anywhere; }
h2 { font-size: 30px; font-weight: 300; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 24px; }
h3 { font-size: 20px; font-weight: 500; line-height: 1.4; margin: 8px 0 10px; overflow-wrap: anywhere; }
p { margin: 12px 0 24px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--green-dark); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--green); flex-shrink: 0; }
.muted { color: var(--muted); }
.lead { font-size: 19px; font-weight: 300; line-height: 1.65; color: var(--muted); max-width: 610px; }
.home-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; padding: 24px 0 72px; }
.home-hero h1 { margin-top: 25px; }
.home-hero h1 span { color: var(--green-dark); }
.home-hero .lead { max-width: 450px; margin-bottom: 0; }
.join-panel { position: relative; background: var(--surface); padding: 36px; border-top: 3px solid var(--green); }
.join-panel h2 { margin: 0 0 12px; }
.join-panel > p { font-size: 15px; }
.join-panel .privacy { margin: 20px 0 0; font-size: 13px; }
.join { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.join label { font-size: 14px; font-weight: 500; }
input, textarea { width: 100%; min-width: 0; border: 1px solid #aab9bf; border-radius: 0; background: var(--white); font: inherit; padding: 14px 16px; color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; min-height: 160px; }
input:focus, textarea:focus { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.join input { text-transform: uppercase; letter-spacing: .22em; font-weight: 400; font-size: 28px; }
button, .button { min-height: 48px; border: 1px solid transparent; background: var(--green-dark); color: white; border-radius: 0; padding: 13px 22px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .15s, border-color .15s; }
button:hover, .button:hover { background: var(--ink); }
button:disabled { opacity: .55; cursor: wait; }
.secondary { background: transparent; color: var(--ink); border: 1px solid #aab9bf; }
.secondary:hover { background: var(--surface); border-color: var(--ink); }
.small { font-size: 14px; padding: 9px 14px; min-height: 42px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; border-top: 1px solid var(--line); padding-top: 28px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-number { font-size: 28px; font-weight: 300; color: var(--green-dark); line-height: 1.3; }
.step h3 { font-size: 16px; margin: 0 0 5px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }
.form label { display: block; font-size: 14px; font-weight: 500; margin: 22px 0 8px; }
.form label:first-child { margin-top: 0; }
.form button { margin-top: 24px; }
.narrow { max-width: 480px; background: var(--surface); padding: 32px; margin-top: 32px; border-top: 3px solid var(--green); }
.hostgrid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-top: 40px; }
.hostgrid > section:first-child { background: var(--surface); padding: 32px; border-top: 3px solid var(--green); align-self: start; }
.hostgrid > section:last-child { padding-top: 28px; }
.past { border-top: 1px solid var(--line); padding: 22px 0; }
.past p { margin: 10px 0 15px; font-size: 14px; color: var(--muted); }
.past small { color: var(--green-dark); font-size: 12px; font-weight: 500; }
.past .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.topline { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 15px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9b6a24; }
.dot.online { background: var(--green); box-shadow: 0 0 0 4px #008c8015; }
.code { font: 500 16px ui-monospace, Menlo, monospace; letter-spacing: .15em; color: var(--green-dark); background: var(--surface); padding: 8px 14px; border-left: 2px solid var(--green); }
.polltitle { font-size: clamp(34px, 4.8vw, 58px); max-width: 1000px; margin: 28px 0 36px; }
.options { display: grid; gap: 12px; }
.option { position: relative; overflow: hidden; isolation: isolate; display: block; width: 100%; text-align: left; padding: 20px 24px; background: var(--surface); color: var(--ink); border: 1px solid transparent; min-height: 82px; }
.option:not(:disabled):hover { background: var(--surface); border-color: var(--green-dark); }
.option:disabled { opacity: 1; cursor: default; }
.option.chosen { border: 2px solid var(--green-dark); padding: 19px 23px; }
.fill { position: absolute; inset: 0; right: auto; width: 0; background: #b9ded8; z-index: -1; transition: width .55s cubic-bezier(.2,.7,.2,1); }
.option:nth-child(2) .fill { background: #c7dce3; }
.option:nth-child(3) .fill { background: #d6dbe8; }
.option:nth-child(4) .fill { background: #e1d6e4; }
.option:nth-child(5) .fill { background: #e7dfc5; }
.option:nth-child(6) .fill { background: #d5e2c9; }
.optionline { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.optionlabel { font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.count { font-variant-numeric: tabular-nums; font-size: 27px; font-weight: 300; white-space: nowrap; }
.option small { display: block; margin-top: 5px; font-size: 13px; color: var(--ink); font-weight: 400; }
.pollfoot { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.pollfoot strong { color: var(--ink); font-weight: 500; }
#voteNote { font-size: 14px; }
.share { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.share p { margin: 0; flex: 1; min-width: 180px; overflow-wrap: anywhere; }
.share label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--green-dark); font-weight: 500; }
footer { min-height: 95px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-brand { color: var(--ink); text-decoration: none; font-weight: 500; }
.author-profile { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; padding: 12px 0 24px; }
.author-portrait { margin: 0; }
.author-portrait img { display: block; width: 100%; height: auto; border-bottom: 4px solid var(--green); }
.author-portrait figcaption { margin-top: 14px; color: var(--muted); font-size: 12px; }
.author-biography { padding-top: 12px; }
.author-biography h1 { font-size: clamp(38px, 4.8vw, 60px); }
.author-biography > p:not(.lead) { max-width: 560px; }
.author-note { margin-top: 30px; padding: 24px; background: var(--surface); border-left: 2px solid var(--green); }
.author-note h2 { font-size: 26px; margin: 0 0 12px; }
.author-note p { margin: 0; font-size: 15px; }
.author-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.author-website { font-size: 14px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 20px; width: max-content; max-width: calc(100vw - 36px); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 10; box-shadow: 0 4px 20px #38484e20; }
#toast.show { opacity: 1; }
.error { color: var(--red); margin-top: 14px; }
.empty { padding: 25px 0; color: var(--muted); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px 20px; background: var(--ink); color: white; z-index: 20; }
.skip-link:focus { top: 12px; }
.screen header { min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.screen .brand-mark { width: 38px; height: 38px; font-size: 34px; }
.screen .brand-name { font-size: 23px; }
.screen .brand-description { display: none; }
.screen main { max-width: 1350px; padding-top: 24px; padding-bottom: 28px; min-height: 0; }
.screen .polltitle { font-size: clamp(32px, 4vw, 54px); margin: 20px 0 26px; max-width: 1150px; }
.screen .option { min-height: 76px; padding: 12px 20px; }
.screen .optionlabel { font-size: 24px; }
.screen .count { font-size: 28px; }
.screen .share { margin-top: 24px; padding-top: 18px; font-size: 17px; }
.screen #voteNote { margin: 8px 0 12px; }
.screen .pollfoot { margin-top: 16px; }
.screen footer { display: none; }
@media (min-width: 701px) and (max-height: 850px) {
  .screen header { min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
  .screen main { padding: 16px 32px; }
  .screen .topline { margin-bottom: 10px; }
  .screen .code { padding: 4px 12px; }
  .screen .polltitle { font-size: clamp(30px, 3.1vw, 42px); margin: 12px 0 18px; }
  .screen .options { gap: 8px; }
  .screen .option { min-height: 62px; padding: 8px 16px; }
  .screen .optionline { line-height: 1.2; }
  .screen .optionlabel { font-size: 21px; }
  .screen .count { font-size: 26px; line-height: 1; }
  .screen .option small { font-size: 12px; line-height: 1.3; margin-top: 2px; }
  .screen .pollfoot { margin-top: 12px; }
  .screen #voteNote { display: none; }
  .screen .share { margin-top: 16px; padding-top: 12px; }
}
@media (max-width: 900px) {
  .author-profile { gap: 36px; }
  .home-hero { gap: 36px; grid-template-columns: 1.1fr 1fr; }
  .join-panel { padding: 28px; }
  .hostgrid { gap: 30px; }
}
@media (max-width: 700px) {
  .author-profile { grid-template-columns: 1fr; gap: 32px; padding-top: 0; }
  .author-portrait { max-width: 430px; }
  .author-biography { padding-top: 0; }
  header, footer { padding: 20px 24px; }
  header { min-height: 94px; }
  nav { gap: 20px; }
  nav a { font-size: 13px; }
  main { padding: 40px 24px 64px; min-height: calc(100vh - 193px); }
  .home-hero { grid-template-columns: 1fr; padding: 0 0 40px; gap: 32px; }
  .home-hero .lead { max-width: 100%; }
  .join-panel { padding: 28px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .hostgrid { grid-template-columns: 1fr; gap: 24px; }
  .hostgrid > section:first-child, .narrow { padding: 24px; }
  .topline { flex-wrap: wrap; }
  .option { padding: 18px; }
  .option.chosen { padding: 17px; }
  .optionlabel { font-size: 17px; }
  .polltitle { margin-bottom: 28px; }
  .screen .optionlabel { font-size: 20px; }
  .screen .count { font-size: 26px; }
  .screen main { padding-top: 20px; }
  footer { align-items: flex-start; flex-wrap: wrap; gap: 8px 24px; }
}
@media (max-width: 380px) {
  header, footer { padding-right: 20px; padding-left: 20px; }
  main { padding-right: 20px; padding-left: 20px; }
  .brand-description { display: none; }
  .brand-mark { width: 40px; height: 40px; font-size: 36px; }
  .brand { gap: 9px; }
  nav { gap: 14px; }
  #hostLink span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
