/* ==========================================================================
   Andernemer — landing page styles
   Calm, accessible, responsive. No external dependencies.

   Brand palette (2026-09 restyle): warm cream background, dark teal accent,
   orange call-to-action. Bright brand hues (--color-brand-*) are for
   non-text graphics only — they fail WCAG AA as text colors.
   Self-hosted Nunito (variable weight) — no third-party font requests.
   ========================================================================== */

/* Self-hosted Nunito, latin subset, variable weight 200–1000 */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-var.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;
}

/* Design tokens */
:root {
  --color-bg: #F6F0E8;          /* brand warm cream — page background */
  --color-surface: #ffffff;
  --color-surface-alt: #F0E8DC; /* deeper warm cream for hero + footer */
  --color-text: #2B2723;        /* warm near-black, high contrast */
  --color-text-muted: #5C534A;
  --color-accent: #0B6E6D;      /* dark teal — kicker, focus ring, contact */
  --color-accent-dark: #084F4F; /* darker teal — link/footer hover */
  --color-link: #0B6E6D;        /* dark teal links */
  --color-border: #E0D5C5;      /* warm sand hairlines */
  --color-cta: #C2410C;         /* darkened brand orange — CTA button bg */
  --color-cta-dark: #9A3412;    /* CTA hover bg */
  --color-brand-teal: #1AA3A3;  /* bright brand teal — non-text graphics only */
  --color-brand-orange: #E8641C; /* bright brand orange — non-text graphics only */

  --font-sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --max-width: 48rem;
  --space-section: 4rem;
  --radius: 0.5rem;
}

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-text-size-adjust: 100%;
  word-break: break-word;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h3:first-of-type {
  margin-top: 0;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--color-accent-dark);
}

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

/* Hero */
.hero {
  background-color: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 5rem 0 4.5rem;
  text-align: center;
}

.hero-logo {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 1.5rem;
  border-radius: 1rem; /* softens the square render to match rounded motifs */
}

.hero-kicker {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.hero-intro {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* Button */
.button {
  display: inline-block;
  background-color: var(--color-cta);
  color: #ffffff;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background-color: var(--color-cta-dark);
  color: #ffffff;
}

/* Sections */
.section {
  padding-block: var(--space-section);
}

.section-alt {
  background-color: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

/* Contact */
.contact-email {
  font-size: 1.2rem;
  font-weight: 600;
}

.contact-email a {
  overflow-wrap: anywhere;
}

.social-links {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Footer */
.footer {
  background-color: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--color-accent-dark);
}

/* Responsive adjustments */
/* Tablet: adapt between mobile and desktop instead of shrunken desktop */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding-inline: 2rem;
  }

  .section {
    padding-block: 3.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }

  .section {
    padding-block: 3rem;
  }

  .button {
    display: block;
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
    text-align: center;
  }

  .contact-email {
    font-size: 1.05rem;
  }

  .social-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
