/* Zero Sum Labs — minimal, mobile-first */

:root {
  --bg: #14120f;          /* warm near-black */
  --bg-raised: #1c1915;
  --text: #ede6da;        /* off-white  (~15:1 on bg) */
  --muted: #a89f91;       /* secondary  (~7:1 on bg)  */
  --accent: #d4b483;      /* sand       (~10:1 on bg) */
  --accent-ink: #14120f;  /* text on accent */
  --rule: #2e2a24;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 38rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.875rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: 4px;
  z-index: 10;
}
.skip-link:focus-visible { top: 1rem; }

/* Hero */
.hero {
  min-height: 88vh;
  min-height: 88svh;
  display: grid;
  place-items: center;
  padding: var(--space);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(212, 180, 131, 0.07), transparent 70%),
    var(--bg);
}

.hero__inner { max-width: 44rem; }

.hero__mark {
  display: block;
  margin: 0 auto clamp(1.5rem, 4vw, 2.25rem);
  color: var(--accent);
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.6rem + 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero__slogan {
  margin: clamp(1rem, 3vw, 1.5rem) 0 clamp(2rem, 6vw, 3rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.125rem, 0.95rem + 1vw, 1.5rem);
  color: var(--muted);
}

.button {
  display: inline-block;
  padding: 0.85em 2.1em;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.button:hover {
  background: transparent;
  color: var(--accent);
}

/* Sections */
.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 8rem) var(--space);
  border-top: 1px solid var(--rule);
}

.section__title {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

#what-we-do-copy {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.5rem);
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 2.5rem var(--space) 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
.footer p { margin: 0.25rem 0; }

/* Motion — only when the user hasn't asked to reduce it */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
  .hero__mark,
  .hero__title,
  .hero__slogan,
  .hero .button,
  .section {
    animation: fade-up 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }
  .hero__title  { animation-delay: 0.1s; }
  .hero__slogan { animation-delay: 0.25s; }
  .hero .button { animation-delay: 0.4s; }
  .section      { animation-delay: 0.55s; }
}
