/* Founding Principles Party — joinfpp.org
   Palette: charcoal #1f1f1f, white #ffffff, light grays #f4f4f2 / #e2e2df */

:root {
  --charcoal: #1f1f1f;
  --white: #ffffff;
  --gray: #f4f4f2;
  --line: #e2e2df;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1100px;
  --narrow: 680px;
  --header-h: 64px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
  margin-bottom: 2rem;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: var(--charcoal);
}

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0.5rem;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

.narrow {
  max-width: var(--narrow);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand img {
  width: 56px;
}

.brand-short {
  display: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"]:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--charcoal);
  color: var(--white);
  border: 2px solid var(--charcoal);
  padding: 0.8rem 1.6rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--white);
  color: var(--charcoal);
}

.site-nav .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn-light {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-light:focus-visible {
  outline-color: var(--white);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-gray {
  background: var(--gray);
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.narrow {
  margin: 0 auto;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 3.5rem 0 4.5rem;
}

.hero-logo {
  width: min(520px, 90%);
  margin: 0 auto 1.75rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 6.5vw, 3.75rem);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-style: italic;
  margin-bottom: 2rem;
}

/* ---------- Who We Are ---------- */
.pull-quote {
  margin: 2.5rem 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-style: italic;
  line-height: 1.45;
}

.pull-quote p {
  margin: 0;
}

/* ---------- Belief cards ---------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 1.75rem 1.5rem;
}

.card .star {
  width: 22px;
  height: 22px;
  fill: var(--charcoal);
  margin-bottom: 0.9rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.card p {
  margin: 0;
}

/* ---------- Ohio + CTA ---------- */
.closing-line {
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 2rem;
  text-align: center;
}

.cta {
  text-align: center;
}

.cta h2 {
  margin-bottom: 1.75rem;
}

/* ---------- Support page ---------- */
.page-head {
  text-align: center;
  padding: 3rem 0 3.5rem;
}

.page-head img {
  width: 140px;
  margin: 0 auto 1.25rem;
}

.page-head h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.page-head p {
  max-width: 560px;
  margin: 0 auto;
}

.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem 1.25rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label,
.field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding: 0;
}

.req {
  font-weight: 700;
}

.optional {
  font-weight: 400;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--charcoal);
  border-radius: 0;
  padding: 0.7rem 0.8rem;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

fieldset {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  margin: 0.4rem 0;
  cursor: pointer;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--charcoal);
  margin: 0;
}

.hp {
  display: none;
}

.btn-block {
  width: 100%;
  padding: 0.95rem;
}

.btn[disabled] {
  cursor: wait;
}

.form-note {
  font-size: 0.9rem;
  text-align: center;
  margin: 1rem 0 0;
}

.form-status {
  margin: 1rem 0 0;
  text-align: center;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.thanks {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  padding: 2rem 0;
  margin: 0;
}

.other-ways {
  text-align: center;
}

.other-ways p {
  margin-bottom: 0.75rem;
}

/* ---------- Footer ---------- */
.section-dark + .site-footer .wrap,
main:has(> .section-dark:last-child) + .site-footer .wrap {
  border-top: 1px solid var(--line);
  border-top-color: color-mix(in srgb, var(--white) 18%, var(--charcoal));
  padding-top: 2.5rem;
}

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 3rem 0 2.5rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:focus-visible {
  outline-color: var(--white);
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 96px;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.copyright {
  opacity: 0.75;
  font-size: 0.85rem;
  margin-top: 1.25rem !important;
}

/* ---------- Social links ---------- */
.social {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  transition: opacity 0.15s;
}

.social a:hover {
  opacity: 0.7;
}

.social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-dark {
  margin: 0 0 1.25rem;
}

.social-dark a {
  color: var(--charcoal);
}

.other-ways .social-dark + p {
  margin-top: 0.5rem;
}

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
  padding: 5rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 599px) {
  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
  }

  .site-header .wrap {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.4rem;
  }

  .site-nav ul {
    gap: 0.6rem;
  }

  .brand img {
    width: 40px;
  }

  .site-nav .btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-card {
    padding: 2.5rem 2.25rem;
  }
}

@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .btn {
    transition: none;
  }
}
