@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-semi.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-semi.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FBF6EE;
  --ink: #1C2230;
  --slate: #454C5E;
  --tomato: #E5532D;
  --teal: #0F5E5A;
  --peach: #FFD9C4;
  --mint: #CDEBDD;
  --butter: #FBE8A6;
  --lilac: #DDD6F7;
  --card: #FFFFFF;
  --round: 26px;
  --shadow: 0 1px 2px rgba(28, 34, 48, .07), 0 16px 32px -18px rgba(28, 34, 48, .3);
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --text: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
}

.tint-peach { --tint: var(--peach); --shade: #FBBF9F; }
.tint-mint { --tint: var(--mint); --shade: #A9DCC5; }
.tint-butter { --tint: var(--butter); --shade: #F5D878; }
.tint-lilac { --tint: var(--lilac); --shade: #C3B8EE; }

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
address { font-style: normal; }

a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 30;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.eyebrow {
  margin: 0 0 .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--slate);
}

/* top bar and tabs */

.top-bar { display: flex; align-items: center; gap: 1rem; padding-block: 1.25rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font: 600 1.2rem/1 var(--display);
  letter-spacing: -.015em;
  text-decoration: none;
}
.mark { flex: none; }

.tab-bar {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 5px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.tab-bar a {
  padding: .55rem 1.15rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.tab-bar a:hover { background: var(--paper); }
.tab-bar a[aria-current] { background: var(--ink); color: var(--paper); }

/* home */

.hello-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(1.75rem, 1rem + 3.5vw, 3.75rem);
  border-radius: var(--round);
  background: var(--teal);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.hello-card::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: var(--tomato);
}
.hello-text, .sticker-set { position: relative; z-index: 1; }
.hello-card .eyebrow { color: var(--mint); }
.hello-card em { font-style: normal; color: var(--butter); }
.hello-lead { max-width: 35rem; margin: 1.25rem 0 0; font-size: 1.15rem; }

.sticker-set {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sticker {
  padding: .32em .85em .4em;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  font: 800 clamp(1.45rem, 1rem + 2vw, 2.6rem)/1 var(--display);
  letter-spacing: -.02em;
  box-shadow: 0 12px 22px -14px rgba(0, 0, 0, .6);
  transform: rotate(-6deg);
}
.sticker:nth-child(2) { margin-left: 3.5rem; transform: rotate(5deg); }
.sticker:nth-child(3) { margin-left: 1.25rem; transform: rotate(-3deg); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1.25rem;
  margin: 3.25rem 0 1.4rem;
}
.section-head p { margin: 0; color: var(--slate); }

.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--round);
  background: var(--tint);
  box-shadow: var(--shadow);
}
.poster { aspect-ratio: 16 / 10; background: var(--shade); }
.poster svg { display: block; width: 100%; height: 100%; }
.pick-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.4rem 1.5rem 1.5rem;
}
.pick-card-text p { margin: 0; }
.pick-card h3 { font-size: 1.5rem; line-height: 1.1; }
.pick-card h3 a { color: inherit; text-decoration: none; }
.pick-card h3 a::after { content: ""; position: absolute; inset: 0; }
@supports selector(:has(a)) {
  .pick-card:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
  .pick-card a:focus-visible { outline: none; }
}

.pick-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .7rem;
  margin: 0;
  color: var(--slate);
  font-size: .88rem;
  font-weight: 600;
}
.kind-tag {
  padding: .22rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.go-dot {
  display: grid;
  place-items: center;
  align-self: flex-end;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}
.pick-card:hover .go-dot { background: var(--teal); }

.pick-card-wide { grid-column: span 2; flex-direction: row-reverse; }
.pick-card-wide .poster { flex: 0 0 50%; aspect-ratio: auto; min-height: 21rem; }
.pick-card-wide .pick-card-text { gap: 1rem; padding: 2rem; }
.pick-card-wide h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); line-height: 1.04; }
.pick-card-wide .pick-card-text p:not(.pick-meta) { font-size: 1.15rem; }

/* one pick */

.pick-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--round);
  background: var(--tint);
  box-shadow: var(--shadow);
}
.pick-head .poster { aspect-ratio: auto; min-height: 21rem; }
.pick-intro { align-self: center; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); }
.pick-intro h1 { margin: 1rem 0; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); }
.pick-lead { margin: 0; font-size: 1.15rem; }

.pick-text, .prose { max-width: 41rem; }
.pick-text { margin: 2.75rem auto 0; font-size: 1.125rem; line-height: 1.65; }
.pick-text h2, .prose h2 {
  margin: 2.2rem 0 .6rem;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.pick-text ul, .prose ul { margin: 0 0 1.2em; padding-left: 1.25rem; }
.pick-text li, .prose li { margin-bottom: .55em; }
.pick-text li::marker, .prose li::marker { color: var(--teal); }

.step-list { margin: 2rem 0; padding: 0; list-style: none; counter-reset: step; }
.step-list li { position: relative; margin: 0 0 1.6rem; padding-left: 4rem; counter-increment: step; }
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -.2rem;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--tint);
  font: 800 1.35rem/1 var(--display);
}
.step-list h2 { margin: 0 0 .35rem; }
.sign-off { margin-top: 2rem; font: 600 1.3rem/1.2 var(--display); }

.next-up {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  max-width: 41rem;
  margin: 3.5rem auto 0;
}
.next-card {
  flex: 1 1 17rem;
  padding: 1.3rem 1.6rem;
  border-radius: var(--round);
  background: var(--tint);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}
.next-card .eyebrow { display: block; margin-bottom: .35rem; }
.next-card strong { display: block; font: 800 1.35rem/1.12 var(--display); letter-spacing: -.015em; }

.pill-link {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.pill-link:hover { background: var(--teal); color: var(--paper); }

/* story, help, settings, privacy */

.page-head { max-width: 46rem; padding: clamp(1.25rem, .5rem + 3vw, 3rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-lead { margin: 1.1rem 0 0; font-size: 1.2rem; }

.info-grid, .mail-grid, .settings-grid { display: grid; gap: 1.5rem; }
.info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mail-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mail-grid > * { grid-column: span 2; }
.mail-grid > .mail-wide { grid-column: span 3; }
.settings-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }

.info-card {
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  border-radius: var(--round);
  background: var(--tint);
  box-shadow: var(--shadow);
}
.info-card h2 { margin-bottom: .7rem; }
.info-card address { margin-bottom: .8em; font-weight: 600; }
.info-card > :last-child { margin-bottom: 0; }
.part-list { margin: 0 0 1em; padding-left: 1.2rem; }
.part-list li { margin-bottom: .45em; }
.info-card .mail-line {
  font-size: clamp(1rem, .8rem + .8vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.mail-line a { color: var(--ink); }
.plain-note { max-width: 41rem; margin-top: 3rem; }
.plain-note h2 { margin-bottom: .6rem; }

.settings-form { display: grid; gap: .55rem; margin-top: 1rem; }
.settings-form label { font-weight: 600; }
.settings-form input {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.settings-form input::placeholder { color: #6B7180; opacity: 1; }
.settings-form button {
  justify-self: start;
  margin-top: .5rem;
  padding: .9rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 1.05rem/1.2 var(--text);
  cursor: pointer;
}
.settings-form button:hover { background: var(--teal); }
.settings-form button:disabled { opacity: .55; cursor: progress; }
.extra-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  margin: 1rem 0 0;
  padding: .85rem 1.1rem;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 5px 0 0 var(--tomato);
  font-weight: 600;
}
.form-note[data-state="done"] { background: var(--teal); box-shadow: none; color: var(--paper); }
.form-note a { color: inherit; }
.fine-print { margin: 1rem 0 0; color: var(--slate); font-size: .95rem; }

/* saved, try again, not found */

.note-card {
  max-width: 38rem;
  margin: clamp(1rem, 4vw, 3rem) auto 0;
  padding: clamp(1.75rem, 1rem + 4vw, 3.25rem);
  border-radius: var(--round);
  background: var(--tint);
  box-shadow: var(--shadow);
}
.note-card h1 { margin: 1.25rem 0 1rem; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.note-card .pill-link { margin-top: .5rem; }
.note-figure { display: block; width: 5.5rem; height: 5.5rem; }
.note-number { margin: 0; font: 800 clamp(4.5rem, 3rem + 8vw, 7.5rem)/.9 var(--display); letter-spacing: -.04em; }

/* footer */

.site-foot { margin-top: clamp(3rem, 2rem + 4vw, 5rem); padding-bottom: 2rem; }
.foot-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: 1.5rem 2.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--round);
  background: var(--ink);
  color: var(--paper);
}
.foot-card p { max-width: 26rem; margin: 0; }
.foot-card .foot-name { margin-bottom: .5rem; font: 600 1.25rem/1.2 var(--display); letter-spacing: -.015em; }
.foot-card .eyebrow { display: block; color: var(--butter); }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.foot-card a { color: var(--paper); font-weight: 600; }
.foot-card a:hover { color: var(--butter); }
.foot-card :focus-visible { outline-color: var(--butter); }

@media (prefers-reduced-motion: no-preference) {
  .pick-card, .next-card { transition: transform .2s ease; }
  .pick-card:hover, .next-card:hover { transform: translateY(-4px); }
}

@media (max-width: 62em) {
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mail-grid > *, .mail-grid > .mail-wide { grid-column: span 3; }
  .mail-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 45em) {
  html { scroll-padding-bottom: 6rem; }
  body { padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)); }
  .top-bar { padding-block: 1rem; }

  .tab-bar {
    position: fixed;
    z-index: 20;
    left: .75rem;
    right: .75rem;
    bottom: calc(.85rem + env(safe-area-inset-bottom, 0px));
    max-width: 26rem;
    margin-inline: auto;
    padding: 6px;
    box-shadow: 0 2px 4px rgba(28, 34, 48, .12), 0 14px 34px -8px rgba(28, 34, 48, .5);
  }
  .tab-bar a { flex: 1 1 auto; padding: .8rem .5rem; text-align: center; }

  .hello-card, .pick-head, .info-grid, .settings-grid, .foot-card, .pick-grid { grid-template-columns: minmax(0, 1fr); }
  .hello-card::after { right: -7rem; bottom: -9rem; width: 17rem; height: 17rem; }
  .sticker-set { flex-direction: row; flex-wrap: wrap; gap: .7rem; }
  .sticker:nth-child(n) { margin-left: 0; }

  .pick-card-wide { grid-column: auto; flex-direction: column; }
  .pick-card-wide .poster { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .pick-card-wide .pick-card-text { gap: .7rem; padding: 1.4rem 1.5rem 1.5rem; }
  .pick-head .poster { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .mail-grid > *, .mail-grid > .mail-wide { grid-column: 1 / -1; }
  .step-list li { padding-left: 3.5rem; }
}
