/* Our Whole Self. Mobile first; colors and type are tokens so the
   palette (especially the accent purple) can change in one place. */

:root {
  /* Colors sampled by eye from the mockup; PLACEHOLDER: refine */
  --bg: #f8f7f4;
  --ink: #1c2747;          /* headings, wordmark */
  --text: #4a5068;         /* body copy */
  --muted: #6b7088;
  --rule: #c9cedb;
  --label: #5a6487;        /* spaced-caps section labels */
  --accent: #a597c9;       /* buttons; Chris may change the purple */
  --accent-ink: #ffffff;
  --clip-bg: #8fa3c4;

  /* PLACEHOLDER: banner background image; keep it subtle */
  --banner-image: none;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;

  --gutter: 16px;
  --max: 60rem;            /* content width; backgrounds and rules run full bleed */
  /* Side padding that centers a --max column inside a full-width box */
  --inset: max(var(--gutter), (100% - var(--max)) / 2);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.55;
}

h1, h2 { color: var(--ink); font-weight: 400; line-height: 1.1; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header + nav: sticky so the jump links stay reachable on phones */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem var(--gutter);
  text-align: center;
}
.wordmark {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.6rem;
  text-decoration: none;
}
.site-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.25rem 1.25rem;
  margin-top: 0.25rem;
  font-family: var(--sans);
  font-size: 0.85rem;
}
.site-nav a { color: var(--label); text-decoration: none; padding: 0.25rem 0; }
.site-nav a:hover { color: var(--ink); }

/* Full width on laptops: each band (banner, section, footer) spans the
   window so its background and dividing line run edge to edge, while
   the padding keeps its content in a centered --max column. */
.banner, .section, .site-footer {
  padding-left: var(--inset);
  padding-right: var(--inset);
}

/* Banner */
.banner {
  padding-top: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
  background-image: var(--banner-image);
  background-size: cover;
  background-position: center;
}
.banner h1 { font-size: clamp(2.4rem, 9vw, 4.25rem); }
.banner-sub { font-size: 1.2rem; color: var(--text); }
.banner-byline { font-size: 0.95rem; color: var(--muted); }

/* Sections: label stacks above body on phones, sits left on wider screens */
.section {
  padding-top: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
.section-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label);
}
.section-label::after {
  content: ""; display: block;
  width: 2rem; margin-top: 0.75rem;
  border-bottom: 2px solid var(--accent);
}
.section h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }

/* The project leads: largest body text on the page */
.section--lead h2 { font-size: clamp(1.9rem, 6.5vw, 2.75rem); }
.section--lead .section-body p { font-size: 1.3rem; }

/* About Chris stays quieter than the project */
.section .h2--quiet { font-size: clamp(1.4rem, 5vw, 1.9rem); }
#about .section-body p { font-size: 1.05rem; }

/* Clips */
.clips { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.clip { margin: 0; display: grid; gap: 0.75rem; }
.clip-frame {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--clip-bg), var(--rule));
}
.clip-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.clip figcaption { color: var(--muted); font-size: 1rem; }
.clip-title { display: block; color: var(--ink); font-size: 1.3rem; }

/* Buttons + signup */
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
}
.signup, .message-form { display: grid; gap: 0.75rem; }
.signup input, .message-form input, .message-form textarea {
  font: inherit; font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  min-width: 0;            /* let grid columns shrink instead of overflowing */
}
.message-form textarea { resize: vertical; min-height: 7rem; }
.message-form .button { justify-self: start; }
.connect-alt { margin-top: 2rem; }
.connect-alt h3 {
  font-family: var(--serif); font-weight: 400;
  color: var(--ink); font-size: 1.3rem; margin: 0 0 0.5rem;
}

.site-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; padding-bottom: 2rem;
}
.site-footer .wordmark { font-size: 1.3rem; }

@media (min-width: 48rem) {
  .site-header { padding: 1.25rem var(--gutter); }
  .wordmark { font-size: 2.1rem; }
  .site-nav { gap: 2rem; }

  .section {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 2.5rem;
  }
  .section-body { border-left: 1px solid var(--rule); padding-left: 2.5rem; }

  .clip { grid-template-columns: 16rem 1fr; align-items: center; gap: 1.5rem; }
  .signup { grid-template-columns: 1fr 1fr auto; }
  .message-form { grid-template-columns: 1fr 1fr; }
  .message-form textarea, .message-form .button { grid-column: 1 / -1; }
}
