/* ===========================================================================
   Chomp Stomp LLC — landing site
   Austere, professional, single restrained accent. No mascots, no puns.
   Applies inherited UX disciplines: reduced-motion honored (U9),
   mobile viewport first-class (U10), honesty over decoration (U8).
   =========================================================================== */

:root {
  --ink:        #1a1a1a;   /* primary text */
  --ink-soft:   #4a4d52;   /* secondary text */
  --ink-faint:  #6b6f76;   /* tertiary / footer */
  --ground:     #fbfaf7;   /* off-white background */
  --surface:    #ffffff;   /* cards / raised */
  --line:       #e7e4dd;   /* hairlines */
  --accent:     #2f5d50;   /* restrained deep green */
  --accent-ink: #234539;   /* accent text on light */
  --focus:      #2f5d50;

  --maxw: 44rem;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Accessibility: skip link --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 6px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- Layout shell --- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* --- Header / nav --- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--ground);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--accent-ink); }

.site-nav {
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* --- Main --- */
main { flex: 1 0 auto; }

.hero {
  padding-top: clamp(3rem, 9vw, 5.5rem);
  padding-bottom: clamp(2rem, 6vw, 3.5rem);
}
.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  font-weight: 650;
}
.hero p.lede {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--ink-soft);
  margin: 0;
  max-width: 38rem;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  margin: 0 0 0.9rem;
}

section.block {
  padding-top: clamp(1.75rem, 5vw, 2.75rem);
  padding-bottom: clamp(1.75rem, 5vw, 2.75rem);
  border-top: 1px solid var(--line);
}
section.block h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  font-weight: 620;
}
section.block p { margin: 0 0 1rem; color: var(--ink-soft); }
section.block p:last-child { margin-bottom: 0; }
section.block strong { color: var(--ink); font-weight: 600; }

.page-title {
  padding-top: clamp(2.5rem, 7vw, 4rem);
  padding-bottom: 0.5rem;
}
.page-title h1 {
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 640;
}

.prose { padding-top: 1.25rem; padding-bottom: clamp(2rem, 6vw, 3.5rem); }
.prose p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* contact list */
.contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact li { margin: 0 0 0.65rem; }
.contact li:last-child { margin-bottom: 0; }
.contact .label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 0.1rem;
}

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(47, 93, 80, 0.4);
}
a:hover { text-decoration-color: var(--accent); }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-faint);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.site-footer .wrap {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}
.site-footer .legal { color: var(--ink-soft); }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer nav a { color: var(--ink-faint); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }

/* --- Focus visibility (accessibility floor) --- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Entrance motion — subtle, and OFF under reduced-motion (U9) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .reveal:nth-child(2) { animation-delay: 0.06s; }
  .reveal:nth-child(3) { animation-delay: 0.12s; }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}
/* Reduced-motion (and no-JS-needed default): fully visible, no transform. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
}
