/* American Boogeyman — teaser landing page
   Design system taken from the deck cover (American Boogeyman_Galisteo.pdf, slide 1). */

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders-700.9bee7c76f6.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block; /* preloaded; avoids a jarring swap on the display title */
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-latin-500-normal.8d56e1257c.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-latin-500-italic.73810985f9.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #264571;
  --red: #ef4d53;
  --white: #ffffff;
  --mist: #d6dce6;

  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --serif: "EB Garamond", Garamond, "Times New Roman", Georgia, serif;

  /* S = width of the "slide". Everything is laid out in slide units (u = S/960),
     mirroring the 960x540pt deck. S is capped so the page fits one desktop screen. */
  --S: min(100vw, 1600px, 190svh);
  --u: calc(var(--S) / 960);

}

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

html {
  background: var(--navy);
  color: var(--white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-weight: 500;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.cover {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: calc(18 * var(--u)) 0 calc(10 * var(--u));
  text-align: center;
}

/* ---------- Title block ---------- */

.title {
  margin: 0;
  font: inherit;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.t1,
.t2 {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  line-height: 0.8;
  letter-spacing: 0;
  white-space: nowrap;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
}

.t1 {
  font-size: calc(110 * var(--u));  /* 110pt on the 960pt deck */
  padding-top: 0.06em;
}
.t1 .line { display: inline; }

.t1 + .sr-only + .t2,
.t2 {
  margin-top: calc(34 * var(--u));
}

.t2 {
  font-size: calc(72 * var(--u));
  padding-top: 0.04em;
}

.soon {
  margin: calc(26 * var(--u)) 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: max(15px, calc(22 * var(--u)));
  line-height: 1;
  letter-spacing: 0.34em;
  margin-right: -0.34em;            /* optically re-centre the tracked caps */
  text-transform: uppercase;
  color: var(--white);
}

.sep {
  width: calc(836 * var(--u));
  max-width: 100%;
  height: 0;
  margin: calc(20 * var(--u)) 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.92);
}




.based {
  margin: calc(26 * var(--u)) 1.25rem 0;
  font-style: italic;
  font-weight: 500;
  font-size: max(14px, calc(16 * var(--u)));
  line-height: 1.45;
  color: var(--mist);
}
.based cite {
  font-style: normal;
}
.based .dot {
  padding: 0 0.45em;
}
.by + .based { margin-top: 0.35em; }

/* ---------- Contact ---------- */

.contact {
  margin: calc(28 * var(--u)) 0 0;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: max(16px, calc(20 * var(--u)));
}

.contact-btn,
.contact-link {
  font: inherit;
  font-style: italic;
  font-weight: 500;
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(239, 77, 83, 0.9);
}

.contact-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0.6rem 0.9rem;    /* ≥44px touch target */
  cursor: pointer;
}
.contact-btn[hidden],
.actions-dot[hidden] { display: none; }

.actions-dot {
  color: var(--mist);
  padding: 0 0.15rem;
}

/* ---------- Notify-me form ---------- */

.notify {
  margin: 0.4rem 1.25rem 0;
  width: min(26rem, calc(100vw - 2.5rem));
  text-align: center;
}
.notify[hidden] { display: none; }

.notify-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.notify input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: 17px;            /* ≥16px stops iOS zooming on focus */
  padding: 0.55rem 0.1rem;
}
.notify input[type="email"]::placeholder { color: rgba(214, 220, 230, 0.7); font-style: italic; }
.notify input[type="email"]:focus { outline: none; border-bottom-color: var(--red); }

.notify-submit {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 0;
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.7rem 0.9rem 0.6rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
}
.notify-submit:hover { border-color: var(--red); color: var(--mist); }
.notify-submit:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.notify-submit:disabled { opacity: 0.5; cursor: progress; }

.notify-note,
.notify-status,
.notify-done {
  margin: 0.6rem 0 0;
  font-style: italic;
  font-size: 14px;
  color: var(--mist);
}
.notify-status:empty { display: none; }
.notify-done { font-size: 17px; color: var(--white); }

.ts { display: flex; justify-content: center; margin-top: 0.6rem; }
.ts:empty { display: none; }

.notify-note a,
.foot a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.notify-note a:hover,
.foot a:hover { color: var(--white); }
.notify-note a:focus-visible,
.foot a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Privacy page ---------- */
.legal {
  width: min(40rem, calc(100vw - 2.5rem));
  margin: 0 auto;
  text-align: left;
  font-size: 18px;
  line-height: 1.55;
  color: var(--mist);
}
.legal h2 {
  margin: 2rem 0 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}
.legal p, .legal ul { margin: 0 0 0.9rem; }
.legal strong { font-weight: 500; color: var(--white); }
.legal a { color: var(--white); text-decoration-color: var(--red); text-underline-offset: 0.2em; }
.legal .contact { justify-content: flex-start; margin-top: 0; font-size: 18px; }
.legal .contact-btn { padding-left: 0; }
.legal-head { margin: 0 0 1.5rem; text-align: center; }
.legal-head .t2 { margin-top: 0; }
.legal .effective { font-style: italic; font-size: 15px; }

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

.contact-btn:hover,
.contact-link:hover { color: var(--mist); text-decoration-color: var(--red); }

.contact-btn:focus-visible,
.contact-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

.contact-link {
  display: inline-block;
  padding: 0.6rem 0.25rem;
  font-style: normal;
  letter-spacing: 0.01em;
  user-select: all;
  -webkit-user-select: all;
}

.nojs {
  margin: 0;
  font-style: italic;
  color: var(--mist);
  font-size: max(14px, calc(16 * var(--u)));
}

/* ---------- Under-construction veil ----------
   The real page stays underneath, blurred; a card floats on top.
   Remove the veil markup in index.html to lift it (these styles then do nothing). */

body.veiled { overflow: hidden; }

.veil {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(38, 69, 113, 0.42);
}
/* Blur the page itself, not via backdrop-filter: Safari's tab-hover preview and
   other page snapshots skip backdrop-filter, which left the title readable there. */
body.veiled > main,
body.veiled > footer {
  filter: blur(16px) saturate(115%);
  user-select: none;
}

.veil-card {
  width: min(100%, 30rem);
  padding: 2.6rem 2rem 1.9rem;
  text-align: center;
  background: rgba(30, 55, 92, 0.9);
  border: 1px solid rgba(214, 220, 230, 0.28);
  box-shadow: 0 30px 80px rgba(8, 18, 36, 0.45);
}

.veil-soon {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--white);
}
.veil-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 12vw, 64px);
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--red);
}

/* The wink: Marx's line, small and quiet, as the only hint of the subject. */
.veil-motto {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.26em;
  text-indent: 0.26em;          /* balances the trailing letter-space so it centers */
  text-transform: uppercase;
  color: var(--white);
}
.veil-motto { text-wrap: balance; }
.veil-motto.is-set { animation: motto-in 0.6s ease both; }
@keyframes motto-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .veil-motto.is-set { animation: none; } }

.veil-rule {
  width: 3rem;
  margin: 1.4rem auto 1.5rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.85);
}

.veil-prompt {
  margin: 0 0 1rem;
  font-style: italic;
  font-size: 19px;
  color: var(--white);
}

.veil .notify { margin: 0; width: 100%; }
/* The form is revealed by script (it needs JavaScript for the bot check). Reserve its
   space from the first paint so the card doesn't grow when it appears (layout shift). */
.veil .notify.veil-form[hidden] { display: block; visibility: hidden; }
/* One line: an underline to type on, with a small red arrow to submit. */
.veil .notify-row {
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
}
.veil .notify-row:focus-within { border-bottom-color: var(--red); }
.veil .notify input[type="email"] {
  border: 0;
  padding: 0.6rem 0.1rem;
  text-align: left;
}
.veil .notify input[type="email"]:focus { border: 0; }
.veil-go.notify-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--red);
}
.veil-go svg { transition: transform 0.2s ease; }
.veil-go.notify-submit:hover { color: var(--red); }
.veil-go:hover svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .veil-go svg { transition: none; } }
.veil .notify-done { margin-top: 0; font-size: 19px; }
.veil .nojs { font-size: 15px; }

.veil-privacy {
  display: inline-block;
  margin-top: 1.3rem;
  padding: 0.35rem 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(214, 220, 230, 0.75);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.veil-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.45rem 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.veil-ig svg { flex: none; }
.veil-ig:hover, .veil-ig:focus-visible { opacity: 1; }
.veil-ig:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.veil-ig + .veil-privacy { display: table; margin: 0.5rem auto 0; }
.veil-ig:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.veil-privacy:hover { color: var(--white); }
.veil-privacy:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@media (max-width: 420px) {
  .veil-card { padding: 2.2rem 1.25rem 1.6rem; }
  .veil-prompt { font-size: 18px; }
}

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

.foot {
  flex: 0 0 auto;
  padding: calc(14 * var(--u)) 1rem max(14px, calc(18 * var(--u)));
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: max(8px, calc(7.5 * var(--u)));
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(214, 220, 230, 0.55);
}
.foot p { margin: 0; }

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

/* ---------- Phones & portrait screens: poster layout ---------- */

@media (max-aspect-ratio: 1/1) and (max-width: 820px) {
  :root {
    --S: 100vw;
    --W: calc(100vw - 2 * max(4.5vw, 14px));
  }

  .cover {
    padding-top: max(6vw, env(safe-area-inset-top), 20px);
    justify-content: center;
  }

  /* "AMERICAN / BOOGEYMAN" stacked, BOOGEYMAN set to fill the measure */
  .t1 {
    font-size: calc(var(--W) / 4.2105);
    line-height: 0.82;
  }
  .t1 .line { display: block; }
  .t1 .line + .line { margin-top: 0.06em; }

  .t2 { margin-top: 9vw; }
  .soon { margin-top: 7vw; font-size: max(14px, 4.2vw); }

  .t2 {
    font-size: calc(var(--W) / 8.0625);
  }

  .sep {
    width: var(--W);
    margin-top: 5vw;
  }

  .based { margin-top: 7vw; }
  .by + .based { margin-top: 0.35em; }
  .contact { margin-top: 5vw; }

  .based .tail { display: block; }
  .based .dot { display: none; }

  .foot {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    letter-spacing: 0.18em;
  }
}

/* Very short landscape screens (phones turned sideways): let it scroll naturally */
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  :root { --S: min(100vw, 1600px); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  html { background: #fff; color: #000; }
  .t1, .t2 { color: var(--red); }
}
