/* Sean for the Constitution — holding page
   Colors: navy #0A3161, red #B31942, white */

:root {
  --navy: #0A3161;
  --navy-deep: #071F3D;
  --red: #B31942;
  --red-dark: #8E1434;
  --white: #ffffff;
  --cream: #F6F3EE;
  --ink: #1C2430;
  --muted: #4A5568;
  --line: #D8D4CC;
  --focus: #0A3161;
  --shadow: 0 18px 40px rgba(7, 31, 61, 0.12);
  --font-serif: "Playfair Display", "Times New Roman", Times, serif;
  --font-sans: "Source Sans 3", "Segoe UI", Calibri, sans-serif;
  --content: 42rem;
  --page: 70rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 20;
  background: var(--white);
  color: var(--navy);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

/* ----- Hero ----- */

.hero {
  position: relative;
  min-height: 28rem;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-flag {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.04);
  filter: contrast(1.05) saturate(1.05);
}

/* Keep the flag vivid up top; darken only where the type sits */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(7, 31, 61, 0.92) 0%,
    rgba(10, 49, 97, 0.58) 40%,
    rgba(10, 49, 97, 0.18) 68%,
    rgba(10, 49, 97, 0.06) 100%
  );
  pointer-events: none;
}

.hero-inner {
  width: min(100% - 2.5rem, var(--page));
  margin: 0 auto;
  padding: 5.5rem 0 2.75rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.35rem, 6.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(7, 31, 61, 0.45);
  max-width: 18ch;
}

.subhead {
  margin: 0.9rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 12px rgba(7, 31, 61, 0.4);
}

.hero-rule {
  height: 0.5rem;
  background: linear-gradient(90deg, var(--navy) 0 33.33%, var(--white) 33.33% 66.66%, var(--red) 66.66%);
  border-top: 2px solid var(--white);
  box-shadow: 0 1px 0 rgba(7, 31, 61, 0.08);
}

/* ----- Layout ----- */

main {
  display: block;
  flex: 1 0 auto;
}

.section {
  padding: 4.25rem 0;
}

.section-inner {
  width: min(100% - 2.5rem, var(--content));
  margin: 0 auto;
}

.section--wide .section-inner {
  width: min(100% - 2.5rem, 52rem);
}

.section h2 {
  margin: 0 0 1.35rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lead {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.75;
}

.lead + .lead {
  margin-top: 1rem;
}

/* ----- Platform list ----- */

.stands {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.platform {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.platform li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.platform li:last-child {
  border-bottom: 0;
}

.platform .num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--red);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.platform p {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.45;
}

.coming {
  margin: 2rem 0 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--navy);
}

/* ----- Form ----- */

.involve {
  background:
    linear-gradient(180deg, rgba(10, 49, 97, 0.04), rgba(10, 49, 97, 0.04)),
    var(--cream);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.85rem;
}

@media (min-width: 640px) {
  .form-card {
    padding: 2.15rem 2.15rem 2.25rem;
  }
}

.field {
  margin: 0 0 1.15rem;
}

.field label,
.legend {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.req {
  color: var(--red);
  font-weight: 700;
}

.hint {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #B8B3AA;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.3;
  appearance: none;
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

input:hover,
select:hover {
  border-color: var(--navy);
}

.grid-2 {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 560px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

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

.checks {
  display: grid;
  gap: 0.65rem;
}

.check {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.actions {
  margin-top: 0.4rem;
}

button[type="submit"] {
  display: inline-block;
  width: 100%;
  border: 0;
  border-radius: 3px;
  background: var(--red);
  color: var(--white);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

button[type="submit"]:hover {
  background: var(--red-dark);
}

button[type="submit"]:active {
  transform: translateY(1px);
}

.hidden-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact a {
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}

/* ----- Footer ----- */

.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 2.5rem 0 2.25rem;
}

.footer-inner {
  width: min(100% - 2.5rem, var(--content));
  margin: 0 auto;
  text-align: center;
}

.disclaimer {
  display: inline-block;
  border: 2px solid var(--white);
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
  max-width: 100%;
}

.copyright {
  margin: 1.15rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ----- Thanks page ----- */

.thanks-hero {
  min-height: 16rem;
}

.thanks-hero .hero-inner {
  padding-top: 3.5rem;
  padding-bottom: 2.25rem;
}

.thanks-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 2.25rem 1.75rem;
  text-align: center;
  border-radius: 4px;
}

.thanks-card h2 {
  margin-bottom: 0.85rem;
}

.thanks-card p {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
}

.back-link {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 3px;
}

.back-link:hover {
  background: var(--navy-deep);
  color: var(--white);
}

/* ----- Mobile tweaks ----- */

@media (max-width: 639px) {
  .hero {
    min-height: 22.5rem;
  }

  .hero-inner {
    padding: 4.25rem 0 2.1rem;
  }

  .section {
    padding: 3.1rem 0;
  }

  .platform li {
    grid-template-columns: 2.35rem 1fr;
    gap: 0.55rem;
    padding: 0.85rem 0;
  }

  .platform p {
    font-size: 1.08rem;
  }
}

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

  button[type="submit"] {
    transition: none;
  }
}

.nowrap {
  white-space: nowrap;
}
