/* 20/30 SOCIAL: temporary landing page.
   Laid out after the landing board of the v4 mockups (hero, Butter card, Plum footer).
   Colours are the Sweet Dusk tokens from the plan (v4, section 7.11).
   Each colour is set once here; nothing below names a hex value. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-700.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  /* Same value in both themes */
  --butter: #FFF3D0;
  --gold: #E6BE6A;
  --ink: #1B2140;
  --cream: #FBF4E8;
  --shade: rgb(38 34 40 / 0.84);          /* dark ends of the hero, as drawn */
  --card-shadow: rgb(27 33 64 / 0.18);

  /* Light theme */
  --page: #FBF4E8;
  --footer-bg: #3E4084;
  --footer-text: #FBF4E8;
  --footer-rule: rgb(251 244 232 / 0.25);
  --hero-placeholder: #E8D3A6;            /* sand, shown until the photo is added */
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #14172B;
    --footer-bg: #0F1122;
    --footer-text: #F6EEDD;
    --footer-rule: rgb(246 238 221 / 0.2);
    --hero-placeholder: #8E7F63;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 29rem;
  isolation: isolate;
  background: var(--hero-placeholder);
}

/* The photo, once un-commented in index.html, fills the hero behind everything. */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark at the top (behind the wordmark) and at the bottom (behind the card), clear in the middle.
   Held at full strength for the first 4.5rem so the wordmark stays readable over any photo. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--shade) 0, var(--shade) 4.5rem, transparent 36%, transparent 44%, var(--shade) 100%);
}

.hero-inner {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: max(1.125rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.125rem, env(safe-area-inset-right, 0px));
}

.site-header {
  padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
  text-align: center;
}

.wordmark {
  margin: 0;
  color: var(--cream);
  font-size: clamp(2rem, 8.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* The card sits at the bottom left of the hero, as on the board. */
.hero-main {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 8rem 0 1.25rem;
}

/* Butter with Ink text in both themes. Narrower than the screen: a strip of the photo shows on the right. */
.hero-card {
  width: calc(100% - 2.5rem);
  max-width: 27rem;
  padding: 1.125rem;
  border-radius: 0.875rem;
  background: var(--butter);
  color: var(--ink);
  box-shadow: 0 0.5rem 1.5rem var(--card-shadow);
}

.hero-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.hero-card p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.45;
}

/* Main button: Gold fill, Ink text. Not the attend path, so never green. */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 1rem;
  border: 2px solid transparent; /* visible in forced-colours mode */
  border-radius: 0.75rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  border-color: var(--ink);
}

.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

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

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.125rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(1.125rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.125rem, env(safe-area-inset-right, 0px));
}

.footer-wordmark {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* comfortable tap target */
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-links a:focus-visible {
  outline: 3px solid var(--footer-text);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.footer-note {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--footer-rule);
  font-size: 0.8125rem;
}

/* Wider screens --------------------------------------------------------- */

@media (min-width: 48rem) {
  .hero {
    min-height: 32rem;
  }

  .hero-inner,
  .footer-inner {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .site-header {
    padding-top: 2rem;
  }

  .wordmark {
    font-size: 3rem;
  }

  .hero-main {
    padding-bottom: 2rem;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .hero-card h1 {
    font-size: 1.625rem;
  }
}
