/* Need a Minute · riso-zine look: cream paper, black ink, pink + aqua from the pocket-watch logo */

:root {
  --paper: #FDF6E8;
  --paper-2: #FFFCF5;
  --ink: #141014;
  --ink-soft: #4a414a;
  --pink: #D822F8;
  --aqua: #00D0D4;
  --line: 2px solid var(--ink);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --f-display: "Shrikhand", "Cooper Black", Georgia, serif;
  --f-hand: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  --f-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0 0.08 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--aqua); }

:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; border-radius: 4px; }

h1, h2, h3 { margin: 0; }
h2 {
  font: 400 clamp(2rem, 5vw, 3.3rem)/1.05 var(--f-display);
  letter-spacing: .005em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
h3 { font: 700 1.2rem/1.25 var(--f-body); }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.nowrap { white-space: nowrap; }
.intro { font-size: 1.15rem; max-width: 46ch; color: var(--ink-soft); margin-bottom: 2rem; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

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

/* riso misregistration: pink + aqua plates slightly off the black */
.riso { text-shadow: .045em .04em 0 var(--aqua), -.03em -.025em 0 var(--pink); }

/* state toggles, driven by html[data-pp] (before | during | after) from main.js.
   live = before or during, i.e. tickets still make sense */
html:not([data-pp="during"]) .when-during,
html:not([data-pp="after"]) .when-after,
html:not([data-pp="before"]) .when-before,
html[data-pp="after"] .when-live { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font: 700 1rem/1.1 var(--f-body);
  padding: .9em 1.35em;
  color: var(--ink);
  background: var(--paper-2);
  border: var(--line);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-pink { background: var(--pink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--pink); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--pink); }
.btn-ink:active { box-shadow: 1px 1px 0 var(--pink); }
.btn-small { padding: .6em 1em; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.5rem; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(253, 246, 232, .93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: var(--line);
}
.topbar-inner {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 1.25rem/1 var(--f-display);
  text-decoration: none; white-space: nowrap;
}
.brand img { width: 26px; height: 40px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: .45em .75em; border-radius: 999px;
  font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--aqua); }

@media (max-width: 900px) {
  .topbar-inner { flex-wrap: wrap; row-gap: 6px; padding-block: 8px; }
  .topbar-inner > .btn { margin-left: auto; }
  .nav {
    order: 3; flex-basis: 100%; margin: 0 calc(-1 * var(--gutter));
    overflow-x: auto; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { padding-inline: calc(var(--gutter) - .75em); }
  .nav a { font-size: .9rem; }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px);
}
.kicker { margin-bottom: 1.1rem; }
.kicker span {
  display: inline-block;
  font: 400 1.25rem/1.2 var(--f-hand);
  transform: rotate(-2deg);
  padding: 0 .2em;
  background: linear-gradient(transparent 52%, rgba(0, 208, 212, .55) 52%, rgba(0, 208, 212, .55) 92%, transparent 92%);
}
h1 {
  font: 400 clamp(3.3rem, 10vw, 7.4rem)/.95 var(--f-display);
  letter-spacing: .005em;
  margin-bottom: 1.4rem;
}
.lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.5; max-width: 34ch; }

.countdown {
  display: inline-block;
  margin-top: .75rem;
  padding: .9rem 1.2rem 1rem;
  background: var(--paper-2);
  border: var(--line);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--aqua), 5px 5px 0 2px var(--ink);
}
.countdown-label { margin: 0; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
html[data-pp="during"] .countdown-label,
html[data-pp="after"] .countdown-label { font-size: 1rem; letter-spacing: .02em; text-transform: none; }
.countdown-clock { margin: .3rem 0 0; display: flex; gap: .6rem; font-variant-numeric: tabular-nums; }
.countdown-clock span { font-weight: 500; color: var(--ink-soft); }
.countdown-clock b {
  font: 700 clamp(1.6rem, 3.6vw, 2.1rem)/1 var(--f-body);
  color: var(--ink);
  margin-right: 1px;
}

.hero-mark { margin: 0; display: grid; justify-items: center; gap: 14px; }
.watch {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  border-radius: 24px;
}
.watch img {
  display: block;
  width: min(100%, 330px);
  transform-origin: 50% 3%;
  animation: sway 5.5s ease-in-out infinite alternate;
  filter: drop-shadow(7px 9px 0 rgba(20, 16, 20, .16));
}
.watch:hover img { animation-duration: 1.6s; }
@keyframes sway {
  from { transform: rotate(-5deg); }
  to { transform: rotate(4deg); }
}
.hand { font-family: var(--f-hand); }
.hero-mark figcaption { font-size: 1.05rem; transform: rotate(-3deg); color: var(--ink-soft); }
.hero-mark figcaption::before { content: "↑ "; color: var(--pink); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 28px; }
  .hero-mark { order: -1; }
  .watch img { width: min(52vw, 220px); }
  .lede { margin-inline: auto; }
  .countdown-clock { justify-content: center; }
  .cta-row { justify-content: center; }
  .hero .cta-row { margin-top: 1.25rem; }
}

/* ---------- melting drip divider ---------- */
.drip {
  height: clamp(44px, 6.5vw, 96px);
  background: url("/img/drip.svg") center top / 100% 100% no-repeat;
  margin-bottom: -8px;
  position: relative;
  z-index: 1;
}

/* ---------- section labels: every section is a minute ---------- */
.clock-label {
  display: flex; align-items: center; gap: .7rem;
  font: 700 .85rem/1 var(--f-body);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.clock-label span {
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  color: var(--aqua);
  background: var(--ink);
  padding: .5em .65em;
  border-radius: 7px;
}
.clock-label em { font-style: normal; }

/* ---------- next up: ticket stub ---------- */
.next-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.stub {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  background: var(--paper-2);
  border: var(--line);
  border-radius: 20px;
  box-shadow: 9px 9px 0 var(--pink), 9px 9px 0 2px var(--ink);
}
.stub-strip {
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex; align-items: center; justify-content: center;
  font: 700 .78rem/1 var(--f-body);
  letter-spacing: .3em; text-transform: uppercase;
  border-left: 2px dashed var(--ink);
  color: var(--ink-soft);
}
.stub-body { padding: clamp(22px, 4vw, 44px); }
.stub h2 { margin-bottom: .6rem; }
.when { font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }

.photo {
  position: relative;
  margin: 0;
  background: #fff;
  padding: 12px 12px 14px;
  box-shadow: 0 2px 0 rgba(20, 16, 20, .08), 0 14px 30px rgba(20, 16, 20, .18);
}
.photo img { display: block; width: 100%; }
.photo figcaption {
  font: 400 1rem/1.3 var(--f-hand);
  text-align: center;
  margin-top: .7rem;
}
.tape::before {
  content: "";
  position: absolute; top: -15px; left: 50%;
  width: 118px; height: 32px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(0, 208, 212, .55);
  mix-blend-mode: multiply;
}
.tilt-r { transform: rotate(2.4deg); }
.tilt-l { transform: rotate(-2.2deg); }
.tilt-l.tape::before { background: rgba(216, 34, 248, .42); transform: translateX(-50%) rotate(3deg); }

@media (max-width: 860px) {
  .next-grid { grid-template-columns: 1fr; }
  .next-grid .photo { max-width: 340px; margin-inline: auto; }
  .stub { grid-template-columns: 1fr; }
  .stub-strip {
    writing-mode: horizontal-tb; transform: none;
    border-left: 0; border-bottom: 2px dashed var(--ink);
    padding: .8em 1em; letter-spacing: .24em;
  }
}

/* ---------- story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.story-copy { max-width: 60ch; }
.story-copy > p { font-size: 1.1rem; }
.pull {
  margin: 1.6rem 0 1.8rem;
  padding: 0 0 0 1.1rem;
  border-left: 6px solid var(--pink);
}
.pull p {
  margin: 0;
  font: 400 clamp(1.45rem, 3vw, 1.95rem)/1.25 var(--f-hand);
  text-wrap: balance;
}
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-grid .photo { max-width: 460px; margin-inline: auto; }
}

/* ---------- values band ---------- */
.band {
  background: var(--aqua);
  border-block: var(--line);
}
/* five cards: one row when wide, 3 + 2 centered in the middle, stacked on phones */
.values {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .values { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .values li { grid-column: span 2; }
  .values li:nth-child(4) { grid-column: 2 / span 2; }
  .values li:nth-child(5) { grid-column: 4 / span 2; }
}
@media (min-width: 1060px) {
  .values { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .values li, .values li:nth-child(4), .values li:nth-child(5) { grid-column: auto; }
}
.values li {
  background: var(--paper-2);
  border: var(--line);
  border-radius: 16px;
  padding: 18px 20px 22px;
  box-shadow: 5px 5px 0 var(--ink);
}
.values li:nth-child(odd) { transform: rotate(-1.2deg); }
.values li:nth-child(even) { transform: rotate(1deg) translateY(10px); }
.values .num {
  display: block;
  font: 400 2.8rem/1 var(--f-display);
  color: var(--pink);
  text-shadow: 2px 2px 0 var(--ink);
  margin-bottom: .35rem;
}
.values h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.values p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 639px) {
  .values li:nth-child(even) { transform: rotate(1deg); }
}

/* ---------- past parties timeline ---------- */
.timeline {
  list-style: none;
  margin: 0; padding: 0;
  border-left: 3px solid var(--ink);
  margin-left: 9px;
  max-width: 760px;
}
.timeline > li {
  position: relative;
  padding: 0 0 2rem 1.75rem;
}
.timeline > li:last-child { padding-bottom: .25rem; }
.timeline > li::before {
  content: "";
  position: absolute; left: -12px; top: .45rem;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper-2);
  border: 3px solid var(--ink);
}
.timeline > li.now::before { background: var(--pink); }
.yr { font: 400 1.75rem/1 var(--f-display); margin-bottom: .7rem; }
.yr-fuzzy { font-size: 1.4rem; color: var(--ink-soft); transform: rotate(-1.5deg); transform-origin: left; }
.timeline ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.timeline ul li { line-height: 1.4; }
.timeline ul li span { color: var(--ink-soft); }
.timeline ul li b::after { content: " · "; font-weight: 400; color: var(--pink); }
.here {
  display: inline-block;
  font: 400 1rem/1 var(--f-hand);
  font-style: normal;
  color: var(--ink);
  background: var(--pink);
  padding: .3em .55em .25em;
  border-radius: 6px;
  transform: rotate(-3deg);
  margin-left: .4rem;
}
.here::before { content: "← "; }

/* ---------- get involved ---------- */
.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.way {
  background: var(--paper-2);
  border: var(--line);
  border-radius: 16px;
  padding: 22px 22px 20px;
  border-top-width: 12px;
}
.way-pink { border-top-color: var(--pink); }
.way-aqua { border-top-color: var(--aqua); }
.way h3 { margin-bottom: .5rem; font-size: 1.25rem; }
.way p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

.hello {
  position: relative;
  max-width: 780px;
  margin-top: 2.5rem;
  padding: clamp(20px, 4vw, 36px);
  background: var(--paper-2);
  border: var(--line);
  border-radius: 20px;
  box-shadow: 9px 9px 0 var(--aqua), 9px 9px 0 2px var(--ink);
}
.form-title { font: 400 1.9rem/1 var(--f-display); margin-bottom: 1.2rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { margin: 0 0 1.1rem; }
.field > label:not(.chip), .field legend { display: block; font-weight: 700; margin-bottom: .4rem; }
.chips legend { margin-bottom: .6rem; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .9rem; margin-left: .3rem; }
input:not([type="checkbox"]), textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: var(--line);
  border-radius: 10px;
  padding: .75em .9em;
}
textarea { resize: vertical; min-height: 6.5em; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
::placeholder { color: #8a7f8a; }
.chips { border: 0; padding: 0; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  margin: 0 .45rem .55rem 0;
  padding: .45em .9em .45em .7em;
  background: #fff;
  border: var(--line);
  border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  cursor: pointer;
  user-select: none;
}
.chip input { width: 1.05em; height: 1.05em; margin: 0; accent-color: var(--ink); }
.chip:has(input:checked) { background: var(--aqua); }
.chip:has(input:focus-visible) { outline: 3px dashed var(--ink); outline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: .4rem; }
.fine { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); margin-top: clamp(24px, 4vw, 48px); }
.footer .drip { margin-bottom: 0; }
.footer-inner { text-align: center; padding-block: clamp(40px, 6vw, 72px) 40px; }
.footer-mark { width: 78px; height: 120px; margin-bottom: 1rem; filter: drop-shadow(0 0 1px rgba(253, 246, 232, .6)); }
.outro { font: 400 clamp(1.15rem, 2.4vw, 1.45rem)/1.45 var(--f-hand); max-width: 40ch; margin: 0 auto 1.75rem; text-wrap: balance; }
.footer-links {
  list-style: none; margin: 0 0 1.5rem; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
}
.footer a, .linklike { color: var(--paper); font-weight: 500; }
.linklike {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.linklike:hover { text-decoration-color: var(--aqua); }
.footer :focus-visible { outline-color: var(--paper); }
.copy { margin: 0; font-size: .9rem; color: rgba(253, 246, 232, .65); }

/* ---------- take-a-minute breather ---------- */
.breather {
  width: min(92vw, 420px);
  padding: 30px 26px 28px;
  color: var(--ink);
  background: var(--paper);
  border: var(--line);
  border-radius: 22px;
  box-shadow: 10px 10px 0 var(--pink), 10px 10px 0 2px var(--ink);
  text-align: center;
}
.breather::backdrop { background: rgba(20, 16, 20, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.breather-kicker { font: 400 1.6rem/1.1 var(--f-display); margin-bottom: .5rem; }
.breath-ring {
  width: 190px; height: 190px; margin: 14px auto 10px;
  border: 3px dashed var(--ink); border-radius: 50%;
  display: grid; place-items: center;
}
.breath-dot {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--aqua), var(--pink) 75%);
  border: 2px solid var(--ink);
  transform: scale(1);
  transition: transform 4s ease-in-out;
}
.breather.inhale .breath-dot { transform: scale(2.55); transition-duration: 4s; }
.breather.exhale .breath-dot { transform: scale(1); transition-duration: 6s; }
.breath-cue { font: 400 1.5rem/1.2 var(--f-hand); margin-bottom: .2rem; min-height: 1.8rem; }
.breath-time { color: var(--ink-soft); margin-bottom: 1.2rem; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .watch img { animation: none; }
  .breath-dot, .breather.inhale .breath-dot, .breather.exhale .breath-dot { transition: none; transform: none; }
  .btn, .btn:hover, .btn:active { transition: none; }
}

/* ---------- 404 + thanks ---------- */
.solo {
  min-height: 100svh;
  display: grid; place-content: center; justify-items: center;
  text-align: center;
  padding-block: 48px;
}
.solo img { width: 150px; margin-bottom: 1.2rem; }
.solo h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
.solo .lede { margin-inline: auto; }
