/* ABOUTME: Visual system for the AI Friday one-pager — a New Orleans front porch at 7:15pm.
   ABOUTME: Haint blue is the ground, evening light is the accent, photographs carry the light. */

/* ─────────────────────────────── tokens ─────────────────────────────── */
:root {
  color-scheme: light;

  /* the porch ceiling, painted */
  --haint-50:  #D6E4E3;
  --haint-100: #C3D6D6;
  --haint-200: #AAC6C7;
  --haint:     #93B4B6;
  --haint-600: #446A6F;

  /* sampled off the hero: bulb light on clapboard, satsumas, decking, shutters */
  --porch-paint: #F4EDDC;
  --satsuma:     #A64A11;
  --satsuma-deep:#7F370A;
  --cypress:     #8A6B50;
  --shutter:     #21332E;
  --shutter-80:  #3C524B;

  /* type scale — text steps x1.125, display steps x1.414 */
  --t-xs:  0.79rem;
  --t-sm:  0.89rem;
  --t-md:  1rem;
  --t-lg:  1.124rem;
  --t-xl:  1.265rem;
  --d-1:   1.41rem;
  --d-2:   2rem;
  --d-3:   2.83rem;
  --d-4:   4rem;
  --d-5:   5.65rem;

  /* spacing — 4px base */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;

  --shell: 1180px;
  --radius: 3px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--haint-50);
  color: var(--shutter);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

p { margin: 0 0 var(--s5); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: var(--satsuma); color: var(--porch-paint); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--shutter); color: var(--porch-paint);
  padding: var(--s3) var(--s5); font-size: var(--t-sm); text-decoration: none;
}
.skip:focus { left: var(--s5); top: var(--s5); }

.wrap { width: min(100% - var(--s7), var(--shell)); margin-inline: auto; }
.wrap--prose > * { max-width: 34rem; }

.section { padding-block: var(--s9); }

/* ─────────────────────────────── type ─────────────────────────────── */
.h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: var(--d-2);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 var(--s5);
  text-wrap: balance;
}

.lede {
  font-family: var(--serif);
  font-size: var(--t-xl);
  line-height: 1.48;
  font-weight: 350;
  color: var(--shutter);
}

.aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lg);
  color: var(--haint-600);
}

.wordmark {
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 500;
  letter-spacing: 0.005em;
  margin: 0;
}
.wordmark span {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--haint-600);
  margin-left: var(--s3);
  vertical-align: 0.12em;
}

/* ─────────────────────────────── buttons ─────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  padding: var(--s4) var(--s6);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--satsuma); color: var(--porch-paint); }
.btn--primary:hover { background: var(--satsuma-deep); transform: translateY(-1px); }
.btn--ghost { border-color: currentColor; color: var(--shutter); }
.btn--ghost:hover { background: var(--shutter); color: var(--porch-paint); }
.btn--sm { padding: var(--s3) var(--s5); font-size: var(--t-sm); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ─────────────────────────── hero : the sidewalk ─────────────────────────── */
.hero { background: var(--haint-50); padding-top: var(--s6); overflow: hidden; }

.hero__top { padding-bottom: var(--s7); }
.hero__grid { margin-top: var(--s7); }

.hero__line {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(2.05rem, 4.3vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.024em;
  margin: 0 0 var(--s5);
  text-wrap: balance;
}

.hero__sub {
  max-width: 44ch;
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--shutter-80);
  margin: 0;
}

.hero__scene { position: relative; }

.hero__photo img {
  width: 100%;
  height: clamp(320px, 46vh, 460px);
  object-fit: cover;
  object-position: 50% 34%;
}

/* the invitation card - the one loud object on the page */
.invite {
  position: relative;
  z-index: 2;
  background: var(--porch-paint);
  border-radius: var(--radius);
  padding: var(--s6) var(--s6) var(--s5);
  margin-top: var(--s7);
}

.invite__date { margin: 0; font-family: var(--serif); line-height: 1; }
.invite__day {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-lg);
  letter-spacing: 0;
  color: var(--satsuma);
  margin-bottom: var(--s2);
}
.invite__md {
  display: block;
  font-size: var(--d-3);
  font-weight: 300;
  letter-spacing: -0.028em;
}
.invite__where {
  margin: var(--s4) 0 var(--s5);
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--shutter-80);
}
.invite .btn { width: 100%; text-align: center; }
.invite__aside {
  margin: var(--s4) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-sm);
  color: var(--haint-600);
}
.invite__aside a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ─────────────────────── the top step : what this is ─────────────────────── */
.step { background: var(--haint-50); padding-block: var(--s9); }
.step .lede { margin-bottom: var(--s5); }
.step p:not(.lede):not(.aside) { color: var(--shutter-80); }
.step .aside { margin-top: var(--s7); }

/* ─────────────────────── the table : what people are making ─────────────────────── */
.table { background: var(--porch-paint); }
.table__head { max-width: 34rem; margin-bottom: var(--s8); }
.table__note { font-size: var(--t-sm); color: var(--haint-600); margin: 0; }

.table__layout { display: grid; gap: var(--s8); }

.photo img { width: 100%; border-radius: var(--radius); }
.photo { margin: 0; }
.photo--table img { aspect-ratio: 4 / 5; object-fit: cover; }

.made { list-style: none; margin: 0; padding: 0; }
.made__item { padding-block: var(--s5); border-top: 1px solid #E0D4B9; }
.made__item:last-child { border-bottom: 1px solid #E0D4B9; }
.made__what {
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.008em;
  margin: 0 0 var(--s2);
}
.made__who {
  margin: 0 0 var(--s3);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-md);
  color: var(--satsuma);
}
.made__how { margin: 0; color: var(--shutter-80); font-size: var(--t-sm); max-width: 48ch; }

/* ─────────────────────── the threshold : what you leave with ─────────────────────── */
.threshold { background: var(--haint-50); }
.threshold .h2 { max-width: 20ch; margin-bottom: var(--s8); }
.leave { display: grid; gap: var(--s8); }
.leave__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lg);
  color: var(--satsuma);
  margin: 0 0 var(--s3);
}
.leave__what {
  font-family: var(--serif);
  font-size: var(--d-1);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s3);
}
.leave__item p:last-child { color: var(--shutter-80); font-size: var(--t-sm); margin: 0; }

/* ─────────────────────── the ceiling : the Slack ─────────────────────── */
.ceiling { position: relative; isolation: isolate; }
.ceiling__photo {
  width: 100%;
  height: clamp(400px, 56vh, 540px);
  object-fit: cover;
  object-position: 30% 50%;
}
.ceiling__body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  width: min(100% - var(--s7), var(--shell));
  margin-inline: auto;
  left: 0; right: 0;
}
.ceiling__body p { max-width: 36ch; font-size: var(--t-lg); color: var(--shutter); }
.ceiling__body .h2 { max-width: 14ch; }
.ceiling__body .btn { align-self: flex-start; }
.ceiling__body > * { max-width: 30rem; }

/* ─────────────────────── the sidewalk : footer ─────────────────────── */
.sidewalk { background: var(--shutter); color: var(--porch-paint); }
.sidewalk__photo { width: 100%; height: auto; aspect-ratio: 1536 / 700; object-fit: cover; }
.sidewalk__body {
  display: grid; gap: var(--s7);
  padding-block: var(--s9) var(--s7);
}
.sidewalk .wordmark { color: var(--porch-paint); }
.sidewalk .wordmark span { color: var(--haint); }
.sidewalk__next { margin: var(--s5) 0; font-size: var(--t-sm); color: var(--haint-200); }
.sidewalk__h {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-md);
  color: var(--haint);
  margin: 0 0 var(--s4);
}
.sidewalk__list { list-style: none; margin: 0; padding: 0; font-size: var(--t-sm); color: var(--haint-200); }
.sidewalk__list li { margin-bottom: var(--s2); }
.sidewalk__list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.22); padding-bottom: 1px; }
.sidewalk__list a:hover { border-bottom-color: var(--satsuma); color: #fff; }
.sidewalk__fine {
  font-family: var(--serif); font-style: italic;
  font-size: var(--t-sm); color: var(--haint);
  padding-bottom: var(--s8); margin: 0 auto;
}

/* ─────────────────────────────── reveal ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────── wider ─────────────────────────────── */
@media (min-width: 700px) {
  .leave { grid-template-columns: repeat(3, 1fr); gap: var(--s7); }
  .sidewalk__body { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero { padding-top: var(--s7); }
  .hero__top { padding-bottom: 0; }
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 21.5rem;
    grid-template-areas: "line card" "sub card";
    column-gap: var(--s8);
    row-gap: var(--s6);
    margin-top: var(--s8);
  }
  .hero__line { grid-area: line; align-self: end; }
  .hero__sub  { grid-area: sub; }
  .invite     { grid-area: card; align-self: end; }
  .hero__line { max-width: 21ch; }
  .invite {
    margin-top: 0;
    margin-bottom: calc(var(--s8) * -1);
    padding: var(--s7) var(--s7) var(--s6);
  }
  .hero__photo img { height: clamp(460px, 60vh, 620px); }
  .hero__scene { margin-bottom: var(--s9); }

  .table__layout { grid-template-columns: 0.82fr 1.18fr; gap: var(--s9); align-items: start; }
  .photo--table { position: sticky; top: var(--s7); }

  .section { padding-block: var(--s10); }
  .step { padding-block: var(--s10); }
}
