/* ==========================================================================
   No Coast — Coming Soon
   Built on the Octopolis design system tokens (see /Design Specs/_ds).
   ========================================================================== */

/* --- Rubik, self-hosted (variable 400–800) ------------------------------- */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/rubik-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --blue-500: #1223d4;
  --white: #f9f9f9;
  --white-pure: #fff;
  --black: #000;

  --ink: var(--white);
  --ink-soft: rgba(249, 249, 249, 0.72);
  --ink-faint: rgba(249, 249, 249, 0.55);
  --line: rgba(249, 249, 249, 0.25);

  --font-sans: 'Rubik', 'Helvetica Neue', Arial, sans-serif;
  --tracking-overline: 0.08em;

  --radius-md: 12px;
  --radius-pill: 999px;
  --border-width: 1.5px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 180ms;

  --shell-max: 1200px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--blue-500);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--white);
  color: var(--blue-500);
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Shell --------------------------------------------------------------- */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 32px 24px 28px;
}

/* Octopus arm, reaching in from the lower right. Bleeds off two edges so it
   reads as a texture, not a placed image. */
.page__mark {
  position: absolute;
  right: -13%;
  bottom: -14%;
  height: min(104vh, 940px);
  width: auto;
  opacity: 0.09;
  pointer-events: none;
  animation: reach 900ms var(--ease-out) both;
}

.shell {
  position: relative;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
}

/* --- Header -------------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: rise 400ms var(--ease-out) both;
}

.masthead__wordmark {
  display: block;
  height: 20px;
  width: auto;
}

.masthead__note {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--ink-faint);
  border-left: var(--border-width) solid var(--line);
  padding-left: 10px;
}

/* --- Main ---------------------------------------------------------------- */
.main {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero {
  max-width: 780px;
  padding: 72px 0;
  animation: rise 520ms var(--ease-out) 80ms both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: var(--border-width) solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 14px 7px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
}

.badge__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--white);
}

.hero__title {
  margin: 22px 0 0;
  font-size: clamp(52px, 9.5vw, 132px);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__kicker {
  margin: 20px 0 0;
  max-width: 20ch;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero__blurb {
  margin: 16px 0 0;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* --- Notify form --------------------------------------------------------- */
.notify {
  margin-top: 36px;
}

.notify__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.notify__input {
  height: 48px;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 340px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--black);
  background: var(--white-pure);
  border: var(--border-width) solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
}

.notify__input::placeholder {
  color: #949494;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 150px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-500);
  background: var(--white);
  border: var(--border-width) solid var(--white);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.button:hover {
  background: var(--white-pure);
}

.button:active {
  transform: translateY(1px);
}

.button[aria-disabled='true'] {
  opacity: 0.6;
  cursor: progress;
}

.notify__fineprint {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
}

.notify__error {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.notify__done {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  animation: rise 320ms var(--ease-out) both;
}

.notify__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--blue-500);
  font-size: 15px;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

/* --- Footer -------------------------------------------------------------- */
.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 20px;
  border-top: var(--border-width) solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.colophon__by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.colophon__mark {
  display: block;
  width: 24px;
  height: 24px;
}

.colophon__meta {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

a {
  color: var(--ink);
  transition: color var(--duration-fast) var(--ease-out);
}

.colophon a {
  text-decoration: none;
}

.colophon__link {
  font-weight: 600;
  border-bottom: var(--border-width) solid rgba(249, 249, 249, 0.35);
  padding-bottom: 1px;
}

.colophon__mail {
  color: var(--ink-soft);
}

.colophon__mail:hover,
.colophon__link:hover {
  color: var(--white-pure);
}

/* --- Motion -------------------------------------------------------------- */
@keyframes reach {
  from {
    opacity: 0;
    transform: translate(6%, 6%) rotate(-3deg);
  }
  to {
    opacity: 0.1;
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Small screens ------------------------------------------------------- */
@media (max-width: 600px) {
  .page {
    padding: 24px 20px 24px;
  }

  .hero {
    padding: 48px 0;
  }

  /* Keep the arm out from behind the copy on narrow screens. */
  .page__mark {
    right: -32%;
    bottom: -6%;
    height: min(76vh, 620px);
    opacity: 0.08;
  }

  .notify__input,
  .button {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }

  .colophon__meta {
    margin-left: 0;
  }
}

/* --- Print --------------------------------------------------------------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .page__mark,
  .notify {
    display: none;
  }
}
