/* ==========================================================================
   Axis & Praxis — landing page
   Palette and type per design.md. Edit the tokens below, not the rules.
   ========================================================================== */

:root {
  /* Brand (design.md) */
  --bg:        #F9ECDC;
  --primary:   #774E49;
  --secondary: #F57E00;
  --green:     #419D78;
  --blue:      #3E6990;

  /* Derived tints — kept here so every shade traces back to the five above */
  --ink:          var(--primary);
  --ink-soft:     #8B625D;
  --ink-faint:    #A98983;
  --card-bg:      #FFF7EC;
  --bg-deep:      #F3E1CB;
  --rule:         #E2CBB0;
  --shadow:       rgba(119, 78, 73, 0.16);
  --shadow-deep:  rgba(119, 78, 73, 0.26);

  /* Beige-on-brown, for surfaces that invert the page (e.g. the signup band) */
  --on-primary:       var(--bg);
  --on-primary-soft:  rgba(249, 236, 220, 0.82);
  --on-primary-faint: rgba(249, 236, 220, 0.6);

  --serif: "Source Serif 4", "Source Serif Pro", "Source Serif",
           ui-serif, Georgia, "Times New Roman", serif;

  --wrap:  68rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  /* Faint paper tooth, built from the palette so it never fights the brand. */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(245, 126, 0, 0.055), transparent 42%),
    radial-gradient(circle at 84% 4%,  rgba(62, 105, 144, 0.05), transparent 38%),
    radial-gradient(circle at 50% 96%, rgba(65, 157, 120, 0.05), transparent 45%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 42rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--bg);
  padding: 0.7em 1.1em;
  z-index: 10;
  text-decoration: none;
  border-radius: 0 0 0.4rem 0;
}
.skip-link:focus { left: 0; }

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-block: clamp(3rem, 9vw, 7rem) 0;
  padding-inline: var(--gutter);
  text-align: center;
}

.hero__inner {
  max-width: 46rem;
  margin-inline: auto;
}

.hero__logo {
  width: min(100%, 27rem);
  height: auto;
  margin-inline: auto;
  display: block;
  /* Lifts the wordmark off the beige without a hard shadow edge. */
  filter: drop-shadow(0 3px 10px var(--shadow));
}

.hero__tagline {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-size: clamp(1.3rem, 1.05rem + 1.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hero__tagline em {
  font-style: italic;
  color: var(--secondary);
}

/* Spec row — the facts, as a row of small stamped tiles */
.specs {
  list-style: none;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 7.5rem;
  padding: 0.7rem 1.1rem;
  background: var(--card-bg);
  border: 2px solid var(--rule);
  border-radius: 0.6rem;
  box-shadow: 0 2px 0 var(--rule);
}
.spec__value {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
}
.spec__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.btn {
  display: inline-block;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: 0.85em 2em;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  border-radius: 0.55rem;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.btn--primary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 0 #C66500, 0 8px 18px var(--shadow);
}
.btn--primary:hover {
  background: #FF8A0E;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #C66500, 0 12px 22px var(--shadow-deep);
}
.btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #C66500, 0 4px 10px var(--shadow);
}

.hero__note {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Glyph-centred divider */
.hero__rule {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--wrap);
  margin: clamp(3rem, 8vw, 5.5rem) auto 0;
}
.hero__rule-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--rule), transparent);
}
.hero__rule-glyph {
  width: clamp(28px, 5vw, 40px);
  flex: none;
  opacity: 0.9;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-block: clamp(3rem, 8vw, 5.5rem); }

.section__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.section--pitch { text-align: center; }

.lede {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
}
.lede strong { font-weight: 700; color: var(--primary); }

.body-text {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.game-photo {
  max-width: 64rem;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding-inline: var(--gutter);
}
.game-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 0 var(--rule), 0 14px 32px var(--shadow);
}

/* ==========================================================================
   Signup —a compact, inverted band (brown bg, beige text), full width,
   no card framing — just a band of color in the normal page flow.
   ========================================================================== */

.section--signup {
  padding-block: clamp(2rem, 5vw, 3rem);
  background: var(--primary);
  color: var(--on-primary);
  text-align: center;
  scroll-margin-top: 2rem;
}

.signup__title {
  color: var(--on-primary);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
}

.signup__text {
  margin-top: 0.6rem;
  margin-inline: auto;
  max-width: 30rem;
  color: var(--on-primary-soft);
}

.signup__form {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  margin-inline: auto;
  max-width: 24rem;
  text-align: left;
}

.signup__fine {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--on-primary-faint);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.footer__brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.footer__meta {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer__links {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}
.footer__links a { color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer__links a:hover { color: var(--secondary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn--primary:hover { transform: none; }
}

/* ==========================================================================
   MailerLite overrides
   --------------------------------------------------------------------------
   MailerLite's embedded form ships its own stylesheet. These rules restyle it
   to this page's palette and type. Scoped to .signup__form so nothing else on
   the page is affected. If MailerLite changes its class names, this section is
   the only thing that needs updating — the page still works without it.
   ========================================================================== */

.signup__form .ml-form-embedContainer,
.signup__form .ml-form-embedWrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: none !important;
}

.signup__form .ml-form-embedContent,
.signup__form .ml-form-embedContent *,
.signup__form .ml-form-embedBody,
.signup__form .ml-form-embedBody * {
  font-family: var(--serif) !important;
  color: var(--ink) !important;
}

/* Hide MailerLite's own heading/body copy — this page already says it above.
   Delete this rule if you'd rather write that copy inside MailerLite. */
.signup__form .ml-form-embedContent { display: none !important; }

/* The two selectors chained in first below match MailerLite's own
   ".ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody
   .ml-form-fieldRow input" / "...​.ml-form-embedSubmit button" rules, which set
   background-color and color with !important at that same specificity. Equal
   specificity + !important is a tie broken by source order, and MailerLite's
   stylesheet is injected after this one — so these need one extra class of
   specificity (the .signup__form prefix) to actually win, not just !important. */
.signup__form .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input,
.signup__form input[type="email"],
.signup__form input[type="text"],
.signup__form .form-control {
  width: 100% !important;
  padding: 0.8em 1em !important;
  font-family: var(--serif) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  background: var(--card-bg) !important;
  background-color: var(--card-bg) !important;
  border: 2px solid var(--rule) !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
}
.signup__form input::placeholder { color: var(--ink-faint) !important; opacity: 1; }
.signup__form input[type="email"]:focus,
.signup__form input[type="text"]:focus {
  border-color: var(--secondary) !important;
  outline: none !important;
}

.signup__form .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button,
.signup__form button.primary,
.signup__form .ml-form-embedSubmit button {
  width: 100% !important;
  padding: 0.85em 2em !important;
  font-family: var(--serif) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: var(--secondary) !important;
  background-color: var(--secondary) !important;
  border: none !important;
  border-radius: 0.55rem !important;
  box-shadow: 0 4px 0 #C66500 !important;
  cursor: pointer;
}
.signup__form .ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover,
.signup__form button.primary:hover,
.signup__form .ml-form-embedSubmit button:hover {
  background: #FF8A0E !important;
  background-color: #FF8A0E !important;
}

/* Success / error messages — sit on the brown signup band, so light text */
.signup__form .ml-form-successBody,
.signup__form .ml-form-successContent {
  font-family: var(--serif) !important;
  color: var(--on-primary) !important;
}
.signup__form .ml-error input { border-color: #C0392B !important; }

/* GDPR / consent checkboxes and labels — also on the brown band */
.signup__form .ml-form-interestsRow label,
.signup__form .ml-form-checkboxRow label,
.signup__form .ml-form-embedPermissions {
  font-family: var(--serif) !important;
  font-size: 0.85rem !important;
  color: var(--on-primary-soft) !important;
}
