/* Forecastry Analytics. Mobile first; one breakpoint at 48em. */

:root {
  /* Colors (CLAUDE.md palette). Amber is for accents and the CTA only. */
  --navy: #0b2545;
  --navy-deep: #071a33;
  --amber: #e8a33d;
  --paper: #f7f5f0;
  --ink: #1f2933;
  --muted: #52606d;
  --muted-on-dark: #aab7c4;
  --rule: #ddd8cc;
  --card: #ffffff;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;

  /* Layout */
  --container: 65rem;
  --measure: 68ch;
  --gutter: 1.25rem;
  --radius: 6px;

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

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  font-weight: 600;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-3);
  max-width: var(--measure);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Skip link: off screen until focused. */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -10rem;
  z-index: 10;
  padding: var(--space-2) var(--space-3);
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-3);
}

.skip-link:focus-visible {
  outline-color: var(--amber);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.wordmark {
  color: var(--navy);
  font-size: 1.375rem;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-bold {
  font-weight: 600;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: var(--space-2) 0;
  color: var(--ink);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* Hero on navy-deep */
.hero {
  padding: var(--space-6) 0 var(--space-6);
  background: var(--navy-deep);
  color: var(--paper);
}

.hero h1 {
  color: var(--paper);
}

.hero :focus-visible {
  outline-color: var(--amber);
}

.hero h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4px;
  margin-top: var(--space-3);
  background: var(--amber);
}

.lead {
  font-size: clamp(1.25rem, 3.2vw, 1.5rem);
  line-height: 1.45;
  color: var(--paper);
  max-width: 34ch;
}

.platform {
  color: var(--muted-on-dark);
  margin-bottom: var(--space-5);
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--amber);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.button:hover {
  background: #f0b55c;
}

/* Sections */
.section {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--rule);
}

.section-alt {
  background: var(--card);
}

.card-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: var(--space-4);
}

/* About */
.about {
  display: grid;
  gap: var(--space-5);
}

.headshot {
  width: 240px;
  border-radius: var(--radius);
}

/* Contact and footer on navy-deep */
.contact,
.site-footer {
  background: var(--navy-deep);
  color: var(--paper);
}

.contact {
  border-top: 0;
}

.contact h2 {
  color: var(--paper);
}

.contact a,
.site-footer a {
  color: var(--paper);
  text-decoration-color: var(--amber);
}

.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--amber);
}

address {
  font-style: normal;
}

.contact-list {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: var(--space-1) 0;
}

.contact-list a {
  display: inline-block;
  padding: var(--space-1) 0;
}

.site-footer {
  padding: var(--space-5) 0;
  border-top: 1px solid rgb(247 245 240 / 0.15);
  font-size: 0.9375rem;
}

.site-footer p {
  margin-bottom: var(--space-2);
}

.pronounce {
  font-style: italic;
}

/* Desktop */
@media (min-width: 48em) {
  :root {
    --gutter: 2rem;
  }

  .hero {
    padding: var(--space-7) 0;
  }

  .section {
    padding: var(--space-7) 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 280px 1fr;
    align-items: start;
    gap: var(--space-6);
  }

  .headshot {
    width: 280px;
  }
}
