/* Base reset and variables */
:root {
  --bg: #F0F2F5;
  --surface: #ffffff;
  --text: #111827; /* gray-900 */
  --muted: #475569; /* slate-600 */
  --brand: #0076A1;
  --brand-strong: #0076A1;
  --danger: #ef4444; /* red-500 */
  --success: #22c55e; /* green-500 */
  --focus: #0076A1;
  --radius: 4px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img, svg { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; padding: .5rem .75rem; background: #000; color: #fff; border-radius: .25rem; }

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

.container { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }

.site-header {
  padding: 20px 0;
}
.brand {
  font-weight: 700;
  letter-spacing: .5px;
}
.brand { color: var(--text); }

.hero { padding: 40px 0; text-align: center; }
.logo { width: min(420px, 70%); margin: 20px auto 60px; height: auto; display: block; }

.main { display: grid; place-items: center; min-height: calc(100vh - 120px); }
.hero { padding: 40px 0; text-align: center; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.2; margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 24px; font-size: clamp(16px, 2.6vw, 14px); }

.subscribe-form { display: grid; gap: 12px; margin: 0 auto; width: 100%; }
.subscribe-form > .button { justify-self: center; }
.field { display: grid; gap: 8px; }
.hint { color: var(--muted); font-size: 14px; }

input[type="email"], input[type="text"] {
  width: 100%;
  padding: 16px 16px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  height: 56px;
}
/* Emphasize the email input for legibility */
#email {
  font-size: clamp(18px, 3.6vw, 22px);
  font-weight: 700;
}
input::placeholder { color: #DDDDDD; }
input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0,118,161,0.24);
}
input:invalid[aria-invalid="true"] { border-color: var(--danger); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 30px;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  color: #ffffff;
  font-size: clamp(16px, 3vw, 16px);
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
  height: 56px;
}
.button:hover { filter: brightness(1.05); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.form-status { min-height: 24px; font-size: 14px; color: var(--muted); }
.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--danger); }

.site-footer { padding: 40px 0; text-align: center; color: var(--muted); }

/* Responsive tweaks */
@media (min-width: 640px) {
  .subscribe-form { grid-template-columns: 1fr auto; align-items: start; }
  .field { margin-right: 0px; }
  .hint { text-align: left; }
  .button { height: 56px; white-space: nowrap; }
  .subscribe-form > .button { justify-self: start; }
}

/* Links */
a { color: var(--brand); }
a:hover { text-decoration: underline; }


/* Full-bleed marquee without widening the global container */
marquee.lead {
  display: block;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 8px 0;
}

/* Ticker (marquee replacement) */
.ticker {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: transparent;
  margin-bottom: 24px;
}
.ticker__track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}
.ticker__text {
  display: inline-block;
  padding: 8px 24px;
  color: var(--muted);
  font-size: clamp(16px, 2.6vw, 14px);
  white-space: nowrap;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Animate by default; JS adjusts --ticker-duration after measuring */
.ticker .ticker__track {
  animation: ticker-scroll var(--ticker-duration, 24s) linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ticker .ticker__track { animation: none; }
}



