/* nothing less · coming soon
   All styling lives here: the CSP (style-src 'self') blocks inline <style> and style="" attributes. */

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

:root {
  color-scheme: light;

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --content: 560px;
  --radius-btn: 8px;

  --bg: #fcfefc;
  --text: #0a0a0a;
  --text-muted: rgba(10, 10, 10, 0.68);
  --text-faint: rgba(10, 10, 10, 0.58); /* brief said 0.45; raised to pass WCAG AA (4.5:1) on the whole gradient */
  --surface: #f3f1f1;
  --surface-hover: #ebe8e8;
  --line: rgba(10, 10, 10, 0.09);

  /* PLACEHOLDER wine red: replace these four with the hex from the brand moodboard once the designer confirms it.
     --accent-tint is --accent at 6% opacity; keep the rgb values in sync. */
  --accent: #6E1E2B;
  --accent-hover: #5A1622;
  --accent-tint: rgba(110, 30, 43, 0.06);
  --accent-text: #ffffff;

  --gap: 48px;
  --pad-top: 64px;
}

@media (min-width: 560px) {
  :root {
    --gap: 64px;
    --pad-top: 88px;
  }
}

/* Base */

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 40%, var(--accent-tint) 100%) var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

button,
input {
  font-family: inherit;
}

h1,
h2,
p,
ul,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: var(--accent);
}

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

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

/* Small supporting text (form microcopy, footer, privacy meta). Inter only: no monospace on this site. */
.small {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

/* Page */

.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--pad-top) 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;
}

.page > section,
.page > header,
.page > footer {
  width: 100%;
  max-width: var(--content);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.divider {
  width: 100%;
  max-width: var(--content);
  height: 1px;
  margin: var(--gap) auto;
  border: 0;
  background: var(--line);
}

/* Header */

.wordmark {
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark--small {
  font-size: 14px;
}

/* Reserved product image (see the commented block in index.html) */

.product {
  width: 100%;
  max-width: 420px;
  margin-top: 40px;
}

.product__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface);
}

/* Hero */

.hero {
  margin-top: 48px;
}

/* The three-line H1 may use the full page width; everything under it stays at --content. */
.page > .hero {
  max-width: none;
}

.title__line {
  display: block;
  text-wrap: balance;
}

/* A little air between the three sentences; lines inside one sentence stay tight. */
.title__line + .title__line {
  margin-top: 0.22em;
}

.signup {
  max-width: var(--content);
}

.title {
  max-width: 100%;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.body {
  max-width: 460px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero .intro {
  margin-top: 16px;
  font-size: 15px;
}

@media (min-width: 560px) {
  .title {
    font-size: 34px;
  }

  .hero {
    margin-top: 56px;
  }
}

/* Signup */

.signup {
  width: 100%;
  margin-top: 40px;
}

.signup__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.signup__title {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--text);
}

.signup__intro {
  max-width: 460px;
  margin-top: 4px;
  font-size: 15px;
  color: var(--text-muted);
}

.field {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: #ffffff;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px; /* 16px or more stops iOS from zooming in on focus */
  text-align: left;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field::placeholder {
  color: rgba(10, 10, 10, 0.5);
  opacity: 1;
}

.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

/* Email, postcode and button share one width. Stacked on mobile; email + postcode side by side above the button from 560px. */
.signup__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
}

.signup__help {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-faint);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button[disabled] {
  cursor: progress;
  background: var(--accent-hover);
  transform: none;
}

.signup__error {
  max-width: 460px;
  margin-top: 16px;
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--accent);
  color: var(--text);
  text-align: left;
}

.signup__error[hidden],
.signup__form[hidden],
.signup__success[hidden] {
  display: none;
}

.signup__success {
  padding: 8px 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

.signup__success:focus {
  outline: none;
}

.signup__legal {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-faint);
}

@media (min-width: 560px) {
  .signup__fields {
    grid-template-columns: 1fr 200px;
  }

  .signup__fields .button {
    grid-column: 1 / -1;
  }
}

/* Founder */

.founder__name {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* Footer */

.footer {
  padding: 96px 0 48px;
  gap: 14px;
}

.footer__meta {
  max-width: 460px;
  font-size: 13px;
  color: var(--text-faint);
}

.footer__meta a {
  text-decoration-color: transparent;
}

.footer__meta a:hover {
  text-decoration-color: var(--accent);
}

.footer__wink {
  margin-top: 6px;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
}

/* Privacy page */

.legal {
  margin-top: 40px;
}

.legal .title {
  margin-bottom: 12px;
}

.legal__updated {
  font-size: 13px;
  color: var(--text-faint);
}

.legal__text {
  max-width: 460px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal__text strong {
  font-weight: 600;
  color: var(--text);
}

.back {
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Motion */

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

  .button:hover {
    transform: none;
  }
}
