/* stephenreed.me: single-page landing site.
   Change the accent colour in one place: --accent below. */

:root {
  --green: #17302C;
  --green-2: #1F3B36;
  --sage: #E9EEE8;
  --muted: #C3D0CC;
  --muted-2: #B8C7C2;
  --line: #7FA095;
  --accent: #E9B949;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--green);
  color: var(--sage);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
}

img { max-width: 100%; }
a { color: var(--sage); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--green);
  font-weight: 600;
}
.skip:focus { left: 8px; }

.stripe { height: 8px; background: var(--accent); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.bar { width: 72px; height: 6px; background: var(--accent); margin-bottom: 20px; }

/* Header */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sage);
}
.brand:hover { color: var(--sage); }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
}

/* Typography */
.eyebrow {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h2 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
}
.lead { margin: 28px 0 0; max-width: 540px; font-size: 21px; line-height: 1.5; color: var(--muted); }
.intro { margin: 20px 0 0; max-width: 640px; font-size: 20px; line-height: 1.5; color: var(--muted); }

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 88px;
}
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero-photo { flex: 1 1 360px; min-width: 0; }
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

/* Sign-up form */
.signup { margin-top: 36px; max-width: 560px; }
.signup label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.signup-row { display: flex; flex-wrap: wrap; gap: 12px; }
.signup input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  font: inherit;
  font-size: 18px;
  background: var(--green-2);
  color: var(--sage);
  border: 2px solid var(--line);
  border-radius: 2px;
}
.signup input::placeholder { color: #8FA9A1; }
.btn {
  height: 56px;
  padding: 0 28px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--green);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.form-note { margin: 12px 0 0; font-size: 15px; color: var(--muted-2); }
.form-note a { color: inherit; }

/* Challenge */
.challenge { background: var(--green-2); }
.challenge .wrap { padding-top: 88px; padding-bottom: 88px; }
.cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card { background: var(--green); padding: 32px; border-top: 6px solid var(--accent); }
.card .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 76px;
  line-height: 1;
  color: var(--accent);
}
.card h3 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card p { margin: 12px 0 0; font-size: 18px; line-height: 1.5; color: var(--muted); }

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
.about-photo { flex: 1 1 340px; min-width: 0; }
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  /* Feathered edges so the photo melts into the background */
  -webkit-mask-image:
    linear-gradient(to right, rgba(0,0,0,0) 0%, #000 22%, #000 78%, rgba(0,0,0,0) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 14%, #000 66%, rgba(0,0,0,0) 100%);
  mask-image:
    linear-gradient(to right, rgba(0,0,0,0) 0%, #000 22%, #000 78%, rgba(0,0,0,0) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 14%, #000 66%, rgba(0,0,0,0) 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.about-text { flex: 1 1 440px; min-width: 0; }
.about-text h2 { font-size: clamp(36px, 4.5vw, 56px); }
.about-text p { margin: 20px 0 0; font-size: 19px; line-height: 1.6; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.pills li { padding: 8px 16px; border: 1px solid var(--line); font-size: 15px; font-weight: 600; }

/* Closing sign-up band */
.cta { background: var(--accent); color: var(--green); }
.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 72px;
  padding-bottom: 72px;
}
.cta h2 { flex: 1 1 360px; margin: 0; line-height: 0.98; }
.cta .signup { flex: 1 1 440px; margin-top: 0; }
.cta .signup label { font-weight: 700; }
.cta .signup input[type="email"] { background: #FFFFFF; color: var(--green); border-color: var(--green); }
.cta .signup input::placeholder { color: #5B6F6B; }
.cta .btn { background: var(--green); color: var(--sage); }
.cta .form-note { color: var(--green); }
.cta :focus-visible { outline-color: var(--green); }

/* Footer */
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 56px;
  font-size: 15px;
  color: var(--muted-2);
}
.site-footer a { color: var(--muted-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; }
.site-footer .links { display: flex; gap: 24px; }
.site-footer .disclaimer { flex-basis: 100%; max-width: 720px; }

/* Document pages (privacy, thanks, 404) */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 24px 96px; }
.doc h1 { font-size: clamp(44px, 6vw, 72px); }
.doc h2 { margin-top: 40px; font-size: 32px; }
.doc p, .doc li { color: var(--muted); line-height: 1.65; }
.doc ul { padding-left: 22px; }
.doc .btn { display: inline-flex; align-items: center; margin-top: 24px; text-decoration: none; }
.doc .btn:hover { color: var(--green); }
.todo { background: var(--accent); color: var(--green); padding: 0 6px; font-weight: 600; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { gap: 40px; padding-bottom: 64px; }
  .card { padding: 24px; }
  .btn { width: 100%; }
}

/* About page */
.about-page { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.about-page h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 24px; }
.about-page h2 { margin: 40px 0 8px; font-size: 30px; }
.about-page .prose p, .about-page .prose li { color: var(--muted); line-height: 1.7; }
.about-page .prose ul { padding-left: 22px; }
.about-page .wide-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 38%; margin: 32px 0; border-radius: 4px; }
