/* ==========================================================================
   THE MOLECULE — Science. Capital. Culture.
   Pre-launch holding page. Oxblood ground, type reversed to cream.
   Fonts self-hosted: no third-party requests, no cookies.
   ========================================================================== */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-display-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  /* Ground */
  --oxblood:    #6E1E2B;

  /* Type, reversed. Contrast ratios against #6E1E2B are noted — all pass
     WCAG AA for body text (4.5:1), most comfortably. */
  --paper:      #FBFAF7;                    /* 10.8:1  headlines, wordmark */
  --cream:      #F0E4E0;                    /*  9.0:1  body copy           */
  --blush:      #E8C9CE;                    /*  7.3:1  kickers, accents    */
  --cream-70:   rgba(251, 250, 247, 0.72);  /*  6.1:1  tagline             */
  --cream-60:   rgba(251, 250, 247, 0.70);  /*  6.0:1  footer, fine print  */

  --rule:       rgba(251, 250, 247, 0.22);
  --rule-soft:  rgba(251, 250, 247, 0.16);

  --ink:        #16130F;                    /* only inside form fields */

  --display: "Playfair Display", "Times New Roman", Georgia, serif;
  --body:    "Source Serif 4", Georgia, "Times New Roman", serif;
  --utility: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--oxblood);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

::selection { background: var(--paper); color: var(--oxblood); }

.container {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* --------------------------------------------------------------------------
   Utility type
   -------------------------------------------------------------------------- */

.kicker {
  font-family: var(--utility);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blush);
  margin: 0 0 1rem;
}

/* --------------------------------------------------------------------------
   The holding page
   -------------------------------------------------------------------------- */

.holding {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.wordmark {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 6.4vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  margin: 0;
}

.tagline {
  font-family: var(--utility);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--cream-70);
  margin: 1.15rem 0 0;
}

.rule {
  width: 3rem;
  height: 1px;
  background: rgba(251, 250, 247, 0.4);
  border: 0;
  margin: 2.75rem auto;
}

.standfirst {
  font-family: var(--body);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--paper);
  max-width: 30ch;
  margin: 0 auto;
}

.soon {
  font-family: var(--utility);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--blush);
  margin: 2.25rem 0 0;
}

/* --------------------------------------------------------------------------
   The Fold
   -------------------------------------------------------------------------- */

.fold {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}

.fold__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.15;
  color: var(--paper);
  margin: 0.65rem 0 0;
}

.fold__blurb {
  max-width: 42ch;
  margin: 1.15rem auto 0;
  color: var(--cream);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.fold__who {
  max-width: 42ch;
  margin: 0.85rem auto 0;
  font-family: var(--utility);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--cream-70);
}

.await {
  font-family: var(--utility);
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--cream);
  max-width: 40ch;
  margin: 2.25rem auto 0;
}

.await a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 250, 247, 0.5);
  padding-bottom: 1px;
  transition: border-color .15s ease;
}

.await a:hover { border-bottom-color: var(--paper); }

/* --------------------------------------------------------------------------
   Sign-up form — dormant, styled for when it switches on
   -------------------------------------------------------------------------- */

.signup {
  display: flex;
  gap: 0.6rem;
  max-width: 30rem;
  margin: 2.25rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.signup input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  font-family: var(--utility);
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(251, 250, 247, 0.5);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  transition: border-color .15s ease;
}

.signup input[type="email"]:focus { outline: none; border-color: var(--paper); }
.signup input::placeholder { color: #8A8175; }

.btn {
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.75rem;
  background: var(--paper);
  color: var(--oxblood);
  border: 1px solid var(--paper);
  border-radius: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.btn:hover { background: transparent; color: var(--paper); }

.consent {
  font-family: var(--utility);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--cream-60);
  max-width: 38ch;
  margin: 1.35rem auto 0;
}

.consent a { color: var(--cream); }
.consent a:hover { color: var(--paper); }

.hp { position: absolute; left: -9999px; }

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

.footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--utility);
  font-size: 0.72rem;
  line-height: 1.9;
  color: var(--cream-60);
}

.footer a { color: var(--cream-70); text-decoration: none; }
.footer a:hover { color: var(--paper); }

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

/* --------------------------------------------------------------------------
   Inner pages (privacy, 404)
   -------------------------------------------------------------------------- */

.page { padding: 4rem 0 3rem; }

.page__header {
  text-align: center;
  padding-bottom: 2.25rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--rule);
}

.page__wordmark {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  margin: 0 0 2rem;
}

.page__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0;
}

.page__intro {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--cream-70);
  margin: 1.15rem auto 0;
  max-width: 44ch;
}

.prose { max-width: var(--measure); margin: 0 auto; }

.prose p { margin: 0 0 1.35rem; font-size: 1.0625rem; }

.prose a { color: var(--paper); text-underline-offset: 3px; }

.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--paper);
  margin: 2.5rem 0 1rem;
}

.prose .small {
  font-family: var(--utility);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--cream-60);
}

.back {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 250, 247, 0.5);
  padding-bottom: 2px;
}

.back:hover { border-bottom-color: var(--paper); }

.centered { text-align: center; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .holding { padding-top: 3.5rem; }
  .signup { flex-direction: column; align-items: stretch; }
  .signup input[type="email"] { flex: 0 0 auto; width: 100%; }
  .signup .btn { width: 100%; }
}
