:root {
  --text: #333;
  --muted: #666;
  --rule: #eee;
  --link: #222;
  --bar-height: 4.5rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 1rem/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Hero: full-height image with the title bottom-left, as before. */
.hero {
  position: relative;
  height: calc(100vh - var(--bar-height));
  height: calc(100svh - var(--bar-height));
  min-height: 24rem;
  overflow: hidden;
  background: #444;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Soft darkening toward the bottom so the white title stays legible. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .55) 100%);
}

.hero__text {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.hero__text h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero__text p { margin: .25rem 0 0; font-size: .9375rem; }

/* Slim bar under the hero with the scroll hint. */
.scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--bar-height);
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.scroll:hover, .scroll:focus-visible { color: var(--link); }

main, footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

main { padding-top: 4.5rem; padding-bottom: 2rem; }

h2 {
  margin: 0 0 .75rem;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #222;
}

section { margin-bottom: 3rem; }
p { margin: 0 0 1.25rem; }
ul { margin: 0 0 1.25rem; padding-left: 1.5rem; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid #1a73e8; outline-offset: 3px; }

footer {
  padding-top: 2rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .875rem;
}
footer p { margin: 0; }

/* 404 page */
.notfound { max-width: 700px; margin: 0 auto; padding: 6rem 2rem; }
.notfound h1 { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
