/* Simon's Talent | Katie Bohannon
   Palette from the cover: coral splash + meadow green on warm paper.
   Accents only: sparkle yellow, misty sky, wildflower violet. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* neutral */
  --paper: #f7f1e7;
  --paper-deep: #efe5d6;
  --ink: #26261a;
  --ink-soft: #545443;
  /* color 1: coral */
  --coral: #d98695;          /* Katie: Shimmering Blush */
  --coral-ink: #941b43;      /* Katie: Berry Rossi */
  --coral-light: #e9b0bb;    /* Katie: Amazon River Dolphin */
  /* color 2: meadow green */
  --meadow: #1f4a12;         /* between Katie's Dark Green #033702 and Keen Green #28640E */
  --meadow-ink: #28640e;     /* Katie: Keen Green */
  --meadow-mist: #cdd8b4;
  /* accents (tiny doses) */
  --spark: #f2d066;
  --sky: #cfe1df;
  --violet: #a98bd1;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --ease-splash: cubic-bezier(.2, 1.5, .4, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .17 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grain), var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
.hero, .story, .invite { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 12px; }

.kicker {
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin-bottom: 1rem;
}

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto;
  padding: 10px var(--gutter);
}
.top__name {
  font-family: var(--serif); font-size: 1.125rem; font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 24;
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.top__link {
  font-size: .9375rem; font-weight: 600; color: var(--meadow-ink);
  text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px;
}
.top__link:hover { color: var(--coral-ink); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) var(--gutter) clamp(56px, 8vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "text" "art" "act";
  row-gap: 8px;
}
.hero__text { grid-area: text; position: relative; z-index: 2; }
.hero__kicker {
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--meadow-ink); margin: 6px 0 14px;
}
.hero__title {
  position: relative;
  display: inline-block;
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.02em;
}
.hero__title-a {
  display: block;
  font-style: italic;
  font-weight: 380;
  font-size: clamp(4.25rem, 19vw, 9.5rem);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: #c25474;            /* Katie: Ripe Cherry */
  margin-left: -.04em;
}
.hero__title-b {
  display: block;
  font-weight: 640;
  font-size: clamp(4.75rem, 23vw, 11.5rem);
  font-variation-settings: "SOFT" 60, "WONK" 0, "opsz" 144;
  color: var(--meadow);
  padding-left: .36em;
  letter-spacing: -.035em;
}
.spark { position: absolute; fill: var(--spark); width: .22em; height: .22em; font-size: clamp(4.25rem, 19vw, 9.5rem); }
.spark--1 { right: -.1em; top: .14em; }
.spark--2 { right: .2em; top: .52em; width: .12em; height: .12em; }

.hero__credits {
  display: flex; flex-direction: column; gap: 2px;
  margin: clamp(18px, 3vw, 30px) 0 0;
  font-size: 1rem; color: var(--ink-soft);
}
.hero__credits strong { font-family: var(--serif); font-weight: 500; font-size: 1.1875rem; color: var(--ink); font-variation-settings: "SOFT" 100, "opsz" 24; }

.hero__art {
  grid-area: art;
  position: relative;
  width: min(86vw, 520px);
  justify-self: center;
  margin-top: 56px;
  isolation: isolate;
}
.hero__bloom {
  position: absolute; z-index: -1;
  left: 56%; top: 40%;
  width: 150%; max-width: none;
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
}
.hero__photo {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 86%, transparent 100%);
}

.hero__act { grid-area: act; margin-top: 18px; }
.hero__launch {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36;
  color: var(--ink); margin-bottom: 18px;
}
.hero__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  background: var(--meadow); color: var(--paper);
  font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .2s, transform .2s var(--ease-out);
}
.btn:hover { background: #2a4230; transform: translateY(-1px); }
.link-invite {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; font-size: 1rem; color: var(--meadow-ink);
  text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link-invite:hover { color: var(--coral-ink); }

/* ---------- story ---------- */
.story {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(72px, 10vw, 150px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "photo" "copy";
  gap: 32px;
}
.story__head { grid-area: head; }
.story__head h2 {
  font-size: clamp(2.25rem, 7.4vw, 4.25rem);
  font-weight: 450;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  letter-spacing: -.015em;
  max-width: 14ch;
}
.story__photo { grid-area: photo; position: relative; isolation: isolate; margin: 8px 0; }
.story__img { position: relative; width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); }
.story__wash { position: absolute; z-index: -1; left: 50%; top: 52%; width: 122%; max-width: none; transform: translate(-50%, -50%) rotate(-4deg); pointer-events: none; }
.story__copy { grid-area: copy; position: relative; max-width: 34em; isolation: isolate; }
.story__lead {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.625rem, 4.6vw, 2.25rem); line-height: 1.2;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  color: var(--coral-ink);
  margin-bottom: .8em;
}
.accident {
  background-image: linear-gradient(100deg, rgba(238,154,131,.75), rgba(242,208,102,.75) 40%, rgba(169,139,209,.6) 70%, rgba(138,165,127,.7));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% .42em;
  padding: 0 .08em;
  border-radius: .2em;
}

.drop { position: absolute; z-index: -1; pointer-events: none; }
/* the cover's coral watercolor, shifted into Katie's blush and cherry pinks */
.hero__bloom, .drop--coral { filter: hue-rotate(-22deg) saturate(.9); }
.drop--coral { width: 170px; right: -110px; top: -150px; transform: rotate(18deg); }
.drop--yellow { width: 120px; left: -104px; bottom: 40px; transform: rotate(-30deg); }
.drop--violet { width: 120px; right: -10px; bottom: -120px; transform: rotate(60deg); }

/* ---------- why it matters ---------- */
.matters {
  position: relative;
  background: var(--grain), var(--meadow);
  color: var(--paper);
  padding: clamp(72px, 11vw, 160px) var(--gutter);
}
.matters > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.matters h2 {
  font-size: clamp(2.5rem, 9vw, 6.25rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -.02em;
}
.ink-in .w {
  display: inline-block;
  font-variation-settings: "wght" var(--wg, 560), "SOFT" 50, "opsz" 144;
  transition: font-variation-settings .7s var(--ease-out), opacity .7s var(--ease-out), color .7s var(--ease-out);
}
.ink-in .w--turn {
  font-style: italic;
  font-variation-settings: "wght" var(--wg, 480), "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--coral-light);
}
.js .ink-in .w:not(.on) { --wg: 300; opacity: .42; }
.js .ink-in .w--turn:not(.on) { color: var(--paper); }

.matters__body {
  display: grid; gap: 48px;
  margin-top: clamp(40px, 6vw, 72px);
}
.matters__quote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.45;
  font-variation-settings: "SOFT" 100, "opsz" 36;
  font-weight: 350;
  max-width: 32em;
  margin: 0;
}
.readers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.readers li {
  display: grid; gap: 4px;
  padding: 20px 0;
  border-top: 1px solid rgba(247, 241, 231, .28);
}
.readers li:last-child { border-bottom: 1px solid rgba(247, 241, 231, .28); }
.readers__who { font-weight: 700; font-size: .9375rem; letter-spacing: .04em; color: var(--meadow-mist); }
.readers__what { font-size: 1.0625rem; }

/* ---------- illustrator ---------- */
.illus {
  max-width: 980px; margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center;
}
.illus__pics { position: relative; width: max-content; padding-right: 72px; padding-bottom: 36px; }
.illus__me {
  position: absolute; right: 0; bottom: 0;
  width: 132px; margin: 0;
  padding: 8px 8px 28px;
  background: #fbf8f2;
  border: 1px solid #e3d8c6;
  transform: rotate(4deg);
  box-shadow: 0 10px 24px -14px rgba(38, 38, 26, .45);
}
.illus__me img { width: 100%; height: auto; display: block; }
.illus__art {
  width: min(52vw, 230px);
  padding: 10px;
  background: #fbf8f2;
  border: 1px solid #e3d8c6;
  transform: rotate(-2.5deg);
}
.illus__text h2 {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 450;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  margin-bottom: .6em;
  max-width: 18ch;
}
.illus__text h2 { color: var(--meadow-ink); }
.illus__text p { color: var(--ink-soft); max-width: 36em; margin: 0; }

/* ---------- invite ---------- */
.invite {
  position: relative; isolation: isolate;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 10vw, 150px) var(--gutter) clamp(88px, 12vw, 170px);
}
.invite h2 {
  font-size: clamp(2.25rem, 7.2vw, 5.25rem);
  font-weight: 420;
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 60, "opsz" 144;
  max-width: 15ch;
  margin-bottom: .55em;
}
.invite { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.invite__text > p { max-width: 32em; color: var(--ink-soft); }
.invite__katie { margin: 0; width: min(80vw, 26rem); position: relative; }
.invite__katie img {
  display: block; width: 100%; height: auto;
  border-radius: 46% 54% 50% 50% / 38% 40% 60% 62%;
}
.invite__katie figcaption {
  position: absolute; left: 50%; bottom: -6px; translate: -50% 0;
  padding: 6px 16px;
  font-family: var(--serif); font-style: italic; font-size: 1.125rem;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36;
  color: var(--coral-ink);
  background: var(--paper);
  border-radius: 999px;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .invite { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); }
  .invite h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); }
}
.invite__mail {
  display: inline-flex; flex-direction: column; gap: 4px;
  margin-top: 18px; padding: 8px 0;
  text-decoration: none;
}
.invite__mail-label {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.75rem, 4.4vw, 2.75rem);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  color: var(--coral-ink);
  line-height: 1.15;
  background: linear-gradient(var(--coral), var(--coral)) 0 100% / 100% 3px no-repeat;
  padding-bottom: 4px;
  transition: background-size .35s var(--ease-out);
}
.invite__mail-label::after { content: " \2192"; font-style: normal; }
.invite__mail:hover .invite__mail-label { background-size: 100% .45em; }
.invite__mail-addr { font-size: .9375rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.drop--green { width: 190px; right: -70px; top: -20px; transform: rotate(-12deg); }

/* ---------- footer ---------- */
.foot {
  background: var(--grain), var(--paper-deep);
  padding: 48px var(--gutter) 56px;
  font-size: .9375rem; color: var(--ink-soft);
  border-top: 1px solid #e0d4c1;
}
.foot > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.foot p { margin-bottom: .35em; }
.foot__name { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-variation-settings: "SOFT" 100, "opsz" 36; margin-bottom: .5em !important; }
.foot a { color: var(--meadow-ink); text-decoration-color: var(--coral); text-underline-offset: 4px; display: inline-block; padding: 10px 0; margin: -10px 0; }
.foot__small { margin-top: 1em; font-size: .875rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* hero intro on load: the bloom spreads, the book comes up into it, the title paints across */
  .js .hero__bloom { animation: bloom 1.6s var(--ease-out) .15s both; }
  .js .hero__photo { animation: rise-in 1.2s var(--ease-out) .45s both; }
  .js .hero__kicker { animation: fade-up .8s var(--ease-out) .1s both; }
  .js .hero__title-a { animation: brush 1.1s cubic-bezier(.6, .05, .25, 1) .3s both; }
  .js .hero__title-b { animation: fade-up 1s var(--ease-out) .75s both; }
  .js .hero__credits { animation: fade-up .9s var(--ease-out) 1.05s both; }
  .js .hero__act { animation: fade-up .9s var(--ease-out) 1.25s both; }
  /* sparkles pop in, then keep twinkling now and then */
  .js .spark { animation: twinkle 1.1s var(--ease-out) 1.3s both, glimmer 4.8s ease-in-out 3s infinite; transform-origin: center; }
  .js .spark--2 { animation-delay: 1.55s, 4.6s; }

  /* the colorful accident: drops splash in as the story scrolls into view */
  .js [data-splash] .drop { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(.15) rotate(var(--r, 0deg)); }
  .js [data-splash].is-splashed .drop {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(var(--r, 0deg));
    transition: opacity .25s linear, transform .9s var(--ease-splash);
  }
  /* once landed, the paint stays wet: a slow wobble */
  .js [data-splash].is-settled .drop { transition: none; animation: wet 7s ease-in-out infinite; }
  .js [data-splash].is-settled .drop:nth-child(2n) { animation-duration: 8.5s; animation-delay: -3s; }
  .js [data-splash].is-splashed .drop--yellow { transition-delay: .18s; }
  .js [data-splash].is-splashed .drop--violet { transition-delay: .34s; }
  .drop--coral { --r: 18deg; --dx: 60px; --dy: -40px; }
  .drop--yellow { --r: -30deg; --dx: -60px; --dy: 20px; }
  .drop--violet { --r: 60deg; --dx: 30px; --dy: 50px; }
  .drop--green { --r: -12deg; --dx: 70px; --dy: -30px; }

  .js .accident { background-size: 0% .42em; transition: background-size 1.1s var(--ease-out) .45s; }
  .js .is-splashed .accident { background-size: 100% .42em; }
}

@keyframes bloom {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-30deg) scale(.35); }
  60% { opacity: 1; }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(2.5rem) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}
@keyframes brush {
  from { clip-path: inset(-20% 100% -20% -10%); opacity: .4; }
  to { clip-path: inset(-20% -10% -20% -10%); opacity: 1; }
}
@keyframes glimmer {
  0%, 70%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  78% { transform: scale(1.35) rotate(20deg); opacity: 1; }
  86% { transform: scale(.8) rotate(-6deg); opacity: .75; }
}
@keyframes wet {
  0%, 100% { transform: scale(1) rotate(var(--r, 0deg)); }
  50% { transform: scale(1.06, .96) rotate(calc(var(--r, 0deg) + 4deg)); }
}
@keyframes twinkle {
  0% { opacity: 0; transform: scale(0) rotate(-45deg); }
  60% { opacity: 1; transform: scale(1.25) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ink-in .w { transition: none; }
  .js .ink-in .w:not(.on) { --wg: 560; opacity: 1; }
  .js .ink-in .w--turn:not(.on) { --wg: 480; color: var(--coral-light); }
  .btn, .invite__mail-label { transition: none; }
}

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .hero__credits { flex-direction: row; flex-wrap: wrap; gap: 4px 28px; }
  .matters__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .illus { grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-areas: "text art" "act art";
    grid-template-rows: auto 1fr;
    column-gap: clamp(24px, 4vw, 64px);
    align-items: start;
    padding-top: clamp(24px, 4vw, 56px);
  }
  .hero__text { align-self: end; }
  .hero__act { align-self: start; margin-top: 36px; }
  .hero__art { width: 100%; max-width: 560px; justify-self: end; margin-top: 0; }
  .hero__title-a { font-size: clamp(4.5rem, 10.5vw, 9.5rem); }
  .hero__title-b { font-size: clamp(5rem, 12.6vw, 11.5rem); }
  .spark { font-size: clamp(4.5rem, 10.5vw, 9.5rem); }

  .story {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "head head head head head . photo photo photo photo photo photo"
      "copy copy copy copy copy . photo photo photo photo photo photo";
    grid-template-rows: auto 1fr;
    column-gap: clamp(20px, 3vw, 40px);
    row-gap: clamp(28px, 4vw, 48px);
    align-items: start;
  }
  .story__photo { align-self: center; margin: 0 calc(var(--gutter) * -.6) 0 0; }
  .story__head h2 { max-width: 13ch; }
  .drop--green { width: 260px; right: -60px; top: 30px; }
}

@media (min-width: 1100px) {
  .drop--coral { width: 220px; right: -200px; top: -40px; }
  .drop--yellow { width: 150px; left: -140px; }
}

/* short landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .hero__art { max-width: 340px; }
}
