/* bridges
   typography: Cormorant Garamond (body), Pinyon Script (wordmark)
   official logo: logo.png (transparent, 1200px wide)
   photo: swap .photo-placeholder with <img src="jadee.jpg" alt="jadee lin" class="portrait"> */

:root {
  --bg: #faf9f6;
  --text: #1a1917;
  --muted: #8a847c;
  --label: #5c574f;
  --line: #d8d3cb;
  --accent: #5c574f;
  --photo: #e6e2da;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main,
.hero,
.footer,
.nav {
  width: min(38rem, calc(100% - 3rem));
  margin-left: auto;
  margin-right: auto;
}

/* ——— nav ——— */

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.45rem;
  padding-top: 1.6rem;
  font-size: 0.98rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

.nav a {
  color: var(--label);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  outline: none;
}

.nav a[aria-current="page"] {
  color: var(--text);
}

/* ——— hero / logo ——— */

.hero {
  padding-top: 10vh;
  padding-bottom: 3.75rem;
  text-align: center;
}

.hero-compact {
  padding-top: 5.5vh;
  padding-bottom: 2.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.wordmark {
  font-family: "Pinyon Script", cursive;
  font-size: clamp(3.75rem, 10vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  display: block;
}

.hero-compact .wordmark {
  font-size: clamp(3rem, 8vw, 4.25rem);
}

.bridge-line {
  width: min(16.5rem, 72%);
  height: auto;
  margin-top: -0.15rem;
  color: var(--text);
  display: block;
}

.hero-compact .bridge-line {
  width: min(13.5rem, 64%);
}

.logo-image {
  display: block;
  width: min(15rem, 55%);
  height: auto;
  margin: 0 auto;
}

.hero-compact .logo-image {
  width: min(12rem, 46%);
}

.tagline {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— manifesto ——— */

.manifesto {
  padding-bottom: 5.5rem;
}

.manifesto p,
.prose p {
  margin-bottom: 1.65em;
}

.manifesto p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

.signoff {
  margin-top: 2.4em;
  font-style: italic;
}

/* ——— sections ——— */

.how,
.seat,
.partners-block,
.faq,
.updates,
.about-note,
.cta {
  padding-bottom: 5.5rem;
}

h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  text-align: center;
}

.how ul,
.plain-list {
  list-style: none;
}

.how li,
.plain-list li {
  margin-bottom: 0.85em;
  text-align: center;
}

.how li:last-child,
.plain-list li:last-child {
  margin-bottom: 0;
}

.cta-line {
  text-align: center;
  font-style: italic;
}

.cta-line a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text);
}

.cta-line a:hover,
.cta-line a:focus-visible {
  color: var(--muted);
  border-bottom-color: var(--muted);
  outline: none;
}

.contact-line {
  margin-top: 2.25rem;
  text-align: center;
  color: var(--label);
}

.contact-line a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.contact-line a:hover,
.contact-line a:focus-visible {
  border-bottom-color: var(--text);
  outline: none;
}

/* ——— faq ——— */

.faq-item {
  margin-bottom: 1.75rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--label);
  margin-bottom: 0.25rem;
}

/* ——— about photo ——— */

/* PHOTO PLACEHOLDER: replace .photo-placeholder with
   <img src="jadee.jpg" alt="jadee lin" class="portrait"> */
.photo-placeholder,
.portrait {
  display: block;
  width: min(13.5rem, 64%);
  aspect-ratio: 3 / 4;
  margin: 0 auto 2.75rem;
  background: var(--photo);
  object-fit: cover;
}

/* ——— form ——— */

form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 1.05rem;
  color: var(--label);
}

.optional {
  font-style: italic;
  font-size: 0.92em;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.45rem 0 0.55rem;
  width: 100%;
  appearance: none;
  resize: none;
}

select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%235c574f' stroke-width='1' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
  background-size: 0.7rem;
  padding-right: 1.25rem;
  cursor: pointer;
}

input::placeholder,
textarea::placeholder {
  color: #c4bfb6;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-bottom-color: var(--text);
}

textarea {
  min-height: 7rem;
}

textarea.short {
  min-height: 5rem;
}

button[type="submit"] {
  align-self: center;
  margin-top: 1.25rem;
  font-family: inherit;
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  padding: 0.2rem 0 0.15rem;
  cursor: pointer;
}

button[type="submit"]:hover,
button[type="submit"]:focus-visible {
  color: var(--muted);
  border-bottom-color: var(--muted);
  outline: none;
}

/* path toggle: for me / nominating someone */

.path-toggle {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 0 0 0.25rem;
}

.path-option {
  position: relative;
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin: 0;
  cursor: pointer;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
}

.path-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.path-option span {
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.path-option input:checked + span {
  color: var(--text);
  border-bottom-color: var(--text);
}

.path-option input:focus-visible + span {
  border-bottom-color: var(--text);
}

.nominate-lead {
  display: none;
  text-align: center;
  font-style: italic;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.nominator-fields,
.label-them {
  display: none;
}

.seat-form:has([name="path"][value="nominating"]:checked) .nominate-lead,
.seat-form:has([name="path"][value="nominating"]:checked) .nominator-fields {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.seat-form:has([name="path"][value="nominating"]:checked) .nominate-lead {
  display: block;
}

.seat-form:has([name="path"][value="nominating"]:checked) .label-self {
  display: none;
}

.seat-form:has([name="path"][value="nominating"]:checked) .label-them {
  display: inline;
}

.seat-form:has([name="path"][value="nominating"]:checked) .referred-field {
  display: none;
}

/* ——— footer ——— */

.footer {
  padding: 2rem 0 5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-wordmark {
  font-family: "Pinyon Script", cursive;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.footer-wordmark a {
  color: var(--text);
  text-decoration: none;
  font-size: inherit;
  letter-spacing: 0;
}

.footer-links {
  margin-bottom: 0.25rem;
}

.footer a {
  color: var(--label);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
  outline: none;
}

/* ——— mobile ——— */

@media (max-width: 640px) {
  body {
    font-size: 1.125rem;
    line-height: 1.75;
  }

  main,
  .hero,
  .footer,
  .nav {
    width: min(38rem, calc(100% - 2.25rem));
  }

  .nav {
    gap: 0.3rem 1.05rem;
    padding-top: 1.25rem;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 8vh;
    padding-bottom: 2.75rem;
  }

  .hero-compact {
    padding-top: 4.5vh;
    padding-bottom: 2rem;
  }

  .manifesto,
  .how,
  .seat,
  .partners-block,
  .faq,
  .updates,
  .about-note,
  .cta {
    padding-bottom: 4.25rem;
  }

  .tagline {
    margin-top: 1.1rem;
    font-size: 0.98rem;
  }

  input,
  textarea,
  select {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  input,
  textarea,
  select,
  button,
  a,
  .path-option span {
    transition: color 0.2s ease, border-color 0.2s ease;
  }
}
