/* ---------- shared across every page: the menu, the alerts box, sign-up forms ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* menu: the section links, full screen, for narrow windows */
.menu { position: fixed; z-index: 48; inset: 0; overflow: auto; display: grid; align-content: space-between; gap: 40px;
  padding: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + 8px) var(--margin) calc(env(safe-area-inset-bottom, 0px) + 28px);
  background: rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); }
.menu nav { display: grid; }
.menu nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 28px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; text-decoration: none; }
.menu-alerts { display: grid; gap: 12px; }
.menu-alerts > p { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
body.menu-open { overflow: hidden; }
body.menu-open .nav::before { opacity: 1; }
@media (min-width: 1101px) { .menu { display: none; } }

/* alerts box: drops from the top bar, on any page and over the map */
.pop { grid-template-columns: minmax(0, 1fr); position: fixed; z-index: 49; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + 8px); right: var(--margin); width: min(400px, calc(100% - 2 * var(--gutter)));
  border-radius: 24px; padding: 24px; display: grid; gap: 14px; }
.pop .x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; }
.pop .x svg { width: 14px; height: 14px; }
.pop h2 { font-size: 22px; line-height: 1.1; letter-spacing: -0.03em; padding-right: 36px; }
.pop > p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pop .textbtn { font-size: 13px; }
@media (max-width: 1100px) { .pop { right: var(--gutter); } }

/* sign-up: one field with its button inside it */
.signup { display: grid; gap: 10px; width: 100%; max-width: 460px; }
.signup-field { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--glass-hi); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: box-shadow 0.2s; }
.signup-field:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 1px 0 var(--glass-hi); }
.signup input[type="email"] { flex: 1 1 0; width: 0; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; letter-spacing: -0.005em; color: var(--ink-1); }
.signup input::placeholder { color: var(--ink-3); opacity: 1; }
.signup input:-webkit-autofill { -webkit-text-fill-color: var(--ink-1); -webkit-box-shadow: 0 0 0 100px #1b1b1c inset; caret-color: var(--ink-1); border-radius: 999px; }
.signup .btn { flex-shrink: 0; }
.signup-note { font-size: 13px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.signup-note:empty { display: none; }
.signup.is-sent .signup-note { color: var(--ink-1); }
@media (max-width: 440px) {
  .signup-field { flex-wrap: wrap; height: auto; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .signup input[type="email"] { flex: 1 1 100%; width: 100%; height: 52px; padding: 0 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-2); }
  .signup input[type="email"]:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
  .signup .btn { width: 100%; height: 48px; }
}

/* ---------- home: where the story offers the alerts ---------- */
.hero-next { font-size: 14px; line-height: 1.5; color: var(--ink-3); max-width: 38em; }
.hero-next .textbtn { color: var(--ink-1); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 0.2em; }
.hero-next .textbtn:hover { text-decoration-color: var(--ink-1); }
.head-alerts { margin-top: 10px; }
.outro-alerts { width: min(460px, 100%); margin-top: 14px; text-align: left; }
/* over the Moon, so anything said after signing up sits on its own dark pill, like the map's captions */
.outro-alerts .signup-note { justify-self: center; padding: 6px 14px; border-radius: 999px; color: var(--ink-1); background: rgba(14, 14, 15, 0.62); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.outro-alerts .signup-field { background: rgba(22, 22, 24, 0.62); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); }
.outro .actions { margin-top: 4px; }
.foot-alerts { margin-top: 28px; max-width: 400px; }
@media (max-width: 1240px) {
  .foot-brand { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: start; }
  .foot-brand > .brand, .foot-brand > p { grid-column: 1; }
  .foot-alerts { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .foot-links { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .foot-brand { grid-template-columns: minmax(0, 1fr); }
  .foot-alerts { grid-column: 1; grid-row: auto; margin-top: 12px; }
}
