:root {
  --paper: #faf7f4;
  --surface: #fffdfb;
  --ink: #282421;
  --muted: #716b67;
  --red: #b51f2a;
  --red-dark: #8f1721;
  --red-soft: #f6e5e3;
  --line: #e8ded9;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', sans-serif;
  --display: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body, button, input, textarea, select { font-family: var(--sans); }
a { color: inherit; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(6vw, calc((100vw - 1260px) / 2)); border-bottom: 1px solid var(--line); background: rgba(250,247,244,.97); backdrop-filter: blur(12px); }
.brand-group { display: flex; align-items: center; gap: 13px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.45px; white-space: nowrap; }
.brand strong { color: var(--red); font-weight: 800; }
.brand-mark { width: 9px; height: 28px; border-radius: 8px; background: var(--red); }
.unofficial-tag { padding: 6px 9px; border: 1px solid #dfb7b3; border-radius: 999px; color: var(--red-dark); background: #fffaf8; font-size: 10px; font-weight: 700; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.main-nav .view-link { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid transparent; border-radius: 999px; color: #514a46; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.main-nav .view-link:hover { border-color: #e5d5d0; background: #fffaf8; color: var(--red); }
.main-nav .view-link[aria-current="page"] { border-color: #dfb7b3; background: var(--red-soft); color: var(--red-dark); }
.view-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
body.is-home .main-nav, body.is-home .footer-home { display: none; }
.app-view[hidden], [hidden] { display: none !important; }
#app { display: flex; min-height: calc(100vh - 78px); flex-direction: column; }
.app-view { width: 100%; flex: 1; }
.home-view { display: grid; max-width: 1440px; min-height: min(690px, calc(100vh - 150px)); grid-template-columns: 1.1fr .9fr; align-items: center; gap: 7%; margin: 0 auto; padding: 66px 8% 72px; }
.hero-copy { max-width: 730px; }
.eyebrow { color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: 1.65px; line-height: 1.5; }
.hero-copy h1 { margin: 25px 0 19px; font-family: var(--display); font-size: clamp(42px, 5vw, 70px); font-weight: 650; line-height: 1.09; letter-spacing: -3px; }
.hero-copy h1 span { color: var(--red); font-family: var(--serif); font-size: 1.02em; font-style: italic; font-weight: 400; }
.hero-lede { max-width: 460px; margin: 0 0 27px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-actions .secondary-button { background: var(--surface); }
.home-actions .secondary-button:hover { border-color: #d8aaa6; background: var(--red-soft); }
.primary-button, .secondary-button, .submit-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 13px 21px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.primary-button, .submit-button { background: var(--red); color: #fff; }
.primary-button:hover, .submit-button:hover { transform: translateY(-1px); background: var(--red-dark); box-shadow: 0 8px 18px #8f17212b; }
.secondary-button { border-color: #d8b9b6; background: transparent; color: var(--red); }
.secondary-button:hover { background: var(--red-soft); }
.primary-button:focus-visible, .secondary-button:focus-visible, .submit-button:focus-visible, .view-link:focus-visible, .footer-home:focus-visible, .vote-button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #df9da0; outline-offset: 3px; }
.hero-art { position: relative; width: 100%; max-width: 510px; height: 380px; justify-self: end; overflow: hidden; border: 1px solid #e7d0ca; border-radius: 44% 44% 26px 26px; background: #f3e8e3; }
.art-orbit { position: absolute; top: 50%; left: 50%; width: 330px; height: 330px; border: 1px solid #c97e7b4a; border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-two { width: 258px; height: 258px; }
.art-disc { position: absolute; top: 12%; right: 13%; width: 102px; height: 102px; border-radius: 50%; background: #d99b91; opacity: .68; }
.idea-card { position: absolute; width: min(250px, 68%); padding: 24px; border: 1px solid #eee2dc; border-radius: 16px; background: var(--surface); box-shadow: 0 17px 40px #4e1f1a16; }
.card-back { top: 20%; left: 14%; height: 130px; transform: rotate(-7deg); opacity: .86; }
.card-front { top: 42%; left: 26%; height: 158px; transform: rotate(3deg); }
.card-label { display: block; color: #8d7973; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.card-line { display: block; width: 85%; height: 6px; margin-top: 23px; border-radius: 9px; background: #eadfda; }
.card-line.short { width: 58%; margin-top: 10px; }
.card-accent { position: absolute; right: 21px; bottom: 21px; width: 25px; height: 5px; border-radius: 4px; background: var(--red); }

.ideas-view, .how-view { width: min(1100px, 100%); margin: 0 auto; padding: 65px 5% 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.muted-eyebrow { color: #8a817c; }
.section-heading h1, .how-view > h1 { margin: 10px 0 0; font-family: var(--display); font-size: 42px; font-weight: 650; letter-spacing: -2px; }
.period { color: var(--red); }
.sort-wrap { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.sort-label { color: #817872; font-size: 11px; }
.sort-wrap select { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 10px 30px 10px 14px; font-size: 12px; font-weight: 600; }
.ideas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 32px; }
.idea-card-item { display: flex; min-height: 215px; flex-direction: column; padding: 23px 22px 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); transition: transform .2s, border-color .2s, box-shadow .2s; }
.idea-card-item:hover { transform: translateY(-3px); border-color: #d2a5a0; box-shadow: 0 12px 26px #4e1f1a0e; }
.idea-card-item h3 { margin: 3px 0 9px; font-family: var(--display); font-size: 17px; font-weight: 650; letter-spacing: -.4px; }
.idea-card-item p { margin: 0 0 20px; color: #746d68; font-size: 12px; line-height: 1.7; }
.idea-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f0e9e5; }
.idea-date { color: #918983; font-size: 10px; }
.vote-group { display: flex; gap: 6px; }
.vote-button { display: inline-flex; min-width: 58px; min-height: 36px; align-items: center; justify-content: center; gap: 5px; border: 1px solid #dec9c5; border-radius: 999px; background: #fff9f7; color: var(--red); padding: 7px 10px; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.vote-button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.vote-button:hover, .vote-button.voted { border-color: var(--red); background: var(--red); color: #fff; }
.vote-button.down-vote:hover, .vote-button.down-vote.voted { border-color: #6d4744; background: #6d4744; color: #fff; }
.empty-state { padding: 57px 20px 48px; border: 1px dashed #d8c4bf; border-radius: 18px; background: #f7efeb; text-align: center; }
.empty-rule, .success-rule { display: block; width: 35px; height: 4px; margin: 0 auto 16px; border-radius: 4px; background: var(--red); }
.empty-state h2 { margin: 0 0 9px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.empty-state p { color: var(--muted); font-size: 13px; }
.empty-state .secondary-button { margin-top: 6px; }
.load-note { margin: 27px 0 0; color: #89817c; font-size: 11px; line-height: 1.6; text-align: center; }
.section-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 29px; padding-top: 16px; border-top: 1px solid var(--line); color: #817872; font-size: 10px; letter-spacing: .2px; }

.submit-view { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 8%; padding: 66px max(8%, calc((100vw - 1080px) / 2)); background: var(--red); color: #fffaf7; }
.submit-copy h1 { margin: 18px 0; font-family: var(--display); font-size: clamp(36px, 4.2vw, 52px); font-weight: 600; letter-spacing: -2px; line-height: 1.12; }
.submit-copy > p { max-width: 340px; color: #f4deda; font-size: 13px; line-height: 1.8; }
.light-eyebrow { color: #f7d4ce; }
.privacy-note { display: flex; align-items: center; gap: 9px; margin-top: 27px; color: #fff2ef; font-size: 11px; line-height: 1.55; }
.privacy-note svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.form-area { width: 100%; max-width: 520px; justify-self: end; }
.idea-form, .success-panel { padding: 28px 30px 22px; border: 1px solid #f2dfd9; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 55px #57111736; }
.idea-form label { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 700; }
.idea-form label span { float: right; color: #928982; font-size: 10px; font-weight: 400; }
.idea-form input, .idea-form textarea { width: 100%; margin: 0 0 18px; border: 1px solid #e3d9d4; border-radius: 12px; outline: none; background: #fff; color: var(--ink); padding: 13px 14px; font-size: 14px; }
.idea-form textarea { min-height: 116px; resize: vertical; line-height: 1.6; }
.idea-form input:focus, .idea-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px #b51f2a19; }
.idea-form input::placeholder, .idea-form textarea::placeholder { color: #a49b95; }
.submit-button { width: 100%; }
.submit-button:disabled { opacity: .7; cursor: wait; }
.form-message { min-height: 14px; margin: 10px 0 0; color: var(--red-dark); font-size: 11px; line-height: 1.5; }
.form-message.error { color: #9e2b23; }
.success-panel { padding: 40px 34px; text-align: left; }
.success-rule { margin: 0 0 22px; }
.success-panel h2 { margin: 0 0 25px; font-family: var(--display); font-size: 26px; line-height: 1.2; letter-spacing: -.8px; }
.success-panel h3 { margin: 0 0 8px; font-size: 13px; }
.success-panel p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.how-view > h1 { margin-bottom: 36px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps article { padding-top: 16px; border-top: 1px solid #d9c9c4; }
.step-number { color: var(--red); font-family: var(--serif); font-size: 15px; font-style: italic; }
.steps h2 { margin: 16px 0 8px; font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: -.3px; }
.steps p { max-width: 260px; margin: 0; color: #716a65; font-size: 12px; line-height: 1.75; }
.independence-note { margin-top: 45px; padding: 21px 24px; border: 1px solid #d9b9b4; border-left: 4px solid var(--red); border-radius: 14px; background: #f7eeea; }
.how-view .independence-note { margin: 0 0 32px; }
.independence-note h2 { margin: 0 0 7px; color: var(--red-dark); font-family: var(--display); font-size: 14px; }
.notice-mark { display: inline-flex; width: 19px; height: 19px; align-items: center; justify-content: center; margin-right: 8px; border-radius: 50%; background: var(--red); color: white; font-family: var(--sans); font-size: 12px; font-weight: 800; line-height: 1; vertical-align: -2px; }
.independence-note p { max-width: 900px; margin: 0; color: #514944; font-size: 12px; line-height: 1.75; }
.independence-note a { color: var(--red-dark); font-weight: 700; text-underline-offset: 3px; }
.site-footer { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(6vw, calc((100vw - 1260px) / 2)); border-top: 1px solid var(--line); color: #6f3937; font-size: 10px; }
.footer-home { color: #655d57; font-weight: 700; text-decoration: none; }
.footer-home:hover { color: var(--red); }
.footer-disclaimer { font-weight: 700; text-align: right; }
.version-label { color: #817872; font-size: 9px; white-space: nowrap; }

@media (max-width: 900px) {
  .topbar { padding-right: 5%; padding-left: 5%; }
  .home-view { padding-right: 6%; padding-left: 6%; gap: 4%; }
  .hero-copy h1 { font-size: clamp(40px, 5.5vw, 58px); }
  .hero-art { height: 330px; }
  .ideas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submit-view { padding-right: 7%; padding-left: 7%; gap: 5%; }
  .steps { gap: 17px; }
}
@media (max-width: 680px) {
  .topbar { position: sticky; display: block; min-height: auto; padding: 11px 5% 0; }
  .brand-group { min-height: 35px; justify-content: flex-start; gap: 9px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-mark { width: 7px; height: 23px; }
  .unofficial-tag { padding: 5px 7px; font-size: 9px; }
  .main-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: visible; margin: 7px 0 0; padding: 0 0 10px; }
  body.is-home .main-nav { display: none; }
  .main-nav .view-link { min-height: 36px; justify-content: center; padding: 6px 8px; font-size: 11px; }
  .view-link svg { width: 15px; height: 15px; }
  #app { min-height: calc(100vh - 91px); }
  .home-view { min-height: 0; grid-template-columns: 1fr; gap: 27px; padding: 43px 7% 40px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .hero-copy h1 { margin: 19px 0 15px; font-size: clamp(38px, 10.2vw, 51px); letter-spacing: -2px; line-height: 1.08; }
  .hero-lede { margin-bottom: 21px; font-size: 14px; }
  .home-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .home-actions .primary-button, .home-actions .secondary-button { min-width: 0; min-height: 50px; padding: 8px 5px; font-size: 10px; line-height: 1.25; text-align: center; }
  .primary-button, .secondary-button { min-height: 46px; padding: 12px 18px; }
  .hero-art { width: 100%; height: 270px; justify-self: stretch; border-radius: 40% 40% 18px 18px; }
  .art-orbit { width: 250px; height: 250px; }
  .orbit-two { width: 200px; height: 200px; }
  .art-disc { width: 75px; height: 75px; }
  .card-back { left: 11%; }
  .card-front { left: 23%; }
  .ideas-view, .how-view { padding: 44px 6% 40px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .section-heading h1, .how-view > h1 { font-size: 34px; letter-spacing: -1.6px; }
  .sort-wrap { align-self: flex-start; }
  .ideas-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 22px; }
  .idea-card-item { min-height: 0; padding: 20px 18px 16px; border-radius: 15px; }
  .idea-card-item p { font-size: 13px; }
  .empty-state { padding: 39px 16px 34px; }
  .section-bottom { flex-direction: column; gap: 7px; font-size: 10px; }
  .submit-view { grid-template-columns: 1fr; gap: 22px; padding: 43px 7% 46px; }
  .submit-copy h1 { max-width: 500px; font-size: 37px; letter-spacing: -1.8px; }
  .submit-copy > p { font-size: 13px; }
  .form-area { max-width: none; }
  .idea-form, .success-panel { padding: 23px 19px 19px; border-radius: 17px; }
  .idea-form label { font-size: 12px; }
  .idea-form input, .idea-form textarea { font-size: 16px; }
  .success-panel h2 { font-size: 24px; }
  .how-view > h1 { margin-bottom: 27px; }
  .steps { grid-template-columns: 1fr; gap: 17px; }
  .steps article { padding-top: 12px; }
  .steps h2 { margin: 9px 0 6px; }
  .steps p { max-width: 520px; font-size: 13px; }
  .independence-note { margin-top: 30px; padding: 18px 16px; border-radius: 12px; }
  .how-view .independence-note { margin: 0 0 25px; }
  .independence-note p { font-size: 12px; }
  .site-footer { min-height: 80px; flex-wrap: wrap; gap: 7px 14px; padding: 12px 5%; }
  .footer-disclaimer { width: 100%; text-align: left; }
  .version-label { margin-left: auto; }
}
@media (max-width: 370px) {
  .brand-group { gap: 6px; }
  .brand { font-size: 12px; }
  .unofficial-tag { font-size: 8px; }
  .main-nav .view-link { font-size: 10px; }
  .hero-copy h1 { font-size: 37px; }
  .home-actions .primary-button, .home-actions .secondary-button { font-size: 9px; }
  .vote-button { min-width: 52px; padding-right: 8px; padding-left: 8px; }
}
