/* Design tokens — locked from "Soft Grotesk" (Paper Tests, direction A) */
:root {
  --ground: #FAF9F5;
  --ink: #000000;
  --muted: #7C7164;
  --accent: #A8722F;
  --line: #E8E4DB;

  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

a {
  color: inherit;
}

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

/* ---- page load ---- */

.load-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform-origin: left center;
  animation: draw-line 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  z-index: 50;
  pointer-events: none;
}

@keyframes draw-line {
  0% { transform: scaleX(0); opacity: 1; }
  65% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-header,
.header-band,
.about p {
  animation: fade-up 0.7s ease-out both;
}

.site-header { animation-delay: 0.25s; }
.header-band { animation-delay: 0.32s; }
.about p { animation-delay: 0.4s; }

/* ---- header ---- */

.site-header {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 18px) 24px 0;
}

.site-header nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  font-size: 0.78rem;
}

.header-band {
  display: block;
  width: 100%;
  /* Spans the viewport, but the height is capped so it never eats the fold.
     object-fit crops top and bottom, keeping the full left-to-right composition. */
  height: clamp(170px, 23vw, 330px);
  object-fit: cover;
  object-position: center 22%;
  margin: 14px 0 0;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- shared section width ---- */

main section,
.contact {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) 24px;
}

/* ---- about ---- */

.lede {
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

.about p {
  max-width: 74ch;
  line-height: 1.6;
  margin: 0;
}

.about p + p {
  margin-top: 20px;
}

.about a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

.about a:hover {
  opacity: 0.65;
}

/* ---- prelude (before-college aside) ---- */

.prelude {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(14px, 2vw, 22px) 24px clamp(20px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.prelude p {
  flex: 1 1 340px;
  border-left: 2px solid var(--line);
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0;
}

/* ---- gamma waves ---- */

.gamma-waves h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  margin: 0 0 12px;
}

.gamma-waves p {
  max-width: 52ch;
  margin: 0;
}

/* ---- contact ---- */

.contact {
  border-top: 1px solid var(--line);
}

.contact h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  margin: 0 0 12px;
}

.contact-note {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 12px;
}

.contact a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact .socials {
  display: flex;
  gap: 18px;
  margin: 12px 0 0;
}

.contact .socials a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact .socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- photo placeholders ---- */
/* Replace each with a real <img alt="..."> when you have the photo. */

.photo-placeholder {
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.5;
  padding: 20px;
}

.photo-placeholder.ratio-4-3 { aspect-ratio: 4 / 3; }
.photo-placeholder.ratio-16-9 { aspect-ratio: 16 / 9; }

.prelude .photos {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 0;
  /* Shrink-and-wrap so three photos stack instead of overflowing narrow screens. */
  flex: 0 1 auto;
  flex-wrap: wrap;
}

.prelude .photo,
.prelude .clip {
  display: block;
  height: 165px;
  width: auto;
  object-fit: cover;
  border: 1px solid var(--line);
}

.prelude .photo { aspect-ratio: 3 / 4; }
.prelude .clip { aspect-ratio: 9 / 16; }
.prelude .photo.wide { aspect-ratio: 4 / 3; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header nav a,
  .about a,
  .contact a {
    transition: none;
  }
  .site-header,
  .header-band,
  .about p {
    animation: none;
  }
  .load-line {
    display: none;
  }
}
