@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Gelasio";
  src: url("assets/fonts/gelasio-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gelasio";
  src: url("assets/fonts/gelasio-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Gelasio";
  src: url("assets/fonts/gelasio-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #140814;
  --plum-950: #1f0b20;
  --plum-900: #2a0f2a;
  --plum-800: #3b1438;
  --plum-700: #5a1c52;
  --copper: #d49a63;
  --copper-strong: #e0a970;
  --copper-deep: #8a4f22;
  --cream: #f7eddd;
  --paper: #f1e5d1;
  --paper-deep: #e6d6bc;
  --ink: #2b1524;
  --ink-soft: #5f4655;
  --on-dark-soft: #d8c5cf;
  --violet: #a678d8;

  --cat-inward: #8f5220;
  --cat-back: #16706f;
  --cat-ahead: #1d6e37;
  --cat-view: #856410;
  --cat-hypo: #4f5c64;
  --cat-ever: #96204e;

  --weave-dark: url("assets/textures/weave-dark.png");
  --weave-light: url("assets/textures/weave-light.png");

  --gutter: clamp(16px, 4vw, 56px);
  --chamfer: 10px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Gelasio", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  margin: 0;
  background: var(--weave-dark) 0 0 / 96px, var(--plum-900);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.05;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--copper-strong);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--ink);
}
.skip-link:focus {
  top: 12px;
}

/* Each section drapes down over the one below, finished with a line of copper stitches. Their weaves
   are anchored to the bottom edge so the threads continue into the hem. Two hems are drawn from the
   section below instead: the hero's image can't drape, and After Dark's real background has to reach
   its curve so the lights and glow apply there too. */

.draw,
.categories,
.decks,
.how,
.couples,
.after-dark,
.waitlist,
.stories-hero,
.stories-list {
  position: relative;
}

.draw::before,
.draw::after,
.categories::after,
.decks::after,
.how::after,
.couples::after,
.waitlist::before,
.waitlist::after,
.stories-hero::after,
.stories-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  z-index: 2;
  height: 56px;
  background: var(--edge) repeat-x left top;
  pointer-events: none;
}

.draw::before,
.waitlist::before {
  top: auto;
  bottom: calc(100% - 2px);
  background-position: left bottom;
}
.draw::before {
  --edge: url("assets/textures/hem-rise-plum.svg");
}
.waitlist::before {
  --edge: url("assets/textures/hem-rise-waitlist.svg");
}
.draw::after {
  --edge: url("assets/textures/hem-drape-plum.svg");
}
.categories::after,
.stories-list::after {
  --edge: url("assets/textures/hem-drape-paper.svg");
}
.how::after {
  --edge: url("assets/textures/hem-drape-paper.svg");
  background-position-x: 288px;
}
.decks::after {
  --edge: url("assets/textures/hem-drape-decks.svg");
}
.couples::after {
  --edge: url("assets/textures/hem-drape-couples.svg");
}
.waitlist::after,
.stories-hero::after {
  --edge: url("assets/textures/hem-drape-waitlist.svg");
}

/* Buttons and labels borrow the chamfered corners of the card frames. */

.button {
  display: inline-block;
  padding: 0.8em 1.5em;
  border: 0;
  background: var(--copper);
  color: #2a1208;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  clip-path: polygon(var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)), 0 var(--chamfer));
  transition: background-color 0.2s ease;
}
.button:hover {
  background: var(--copper-strong);
}
.button:focus-visible {
  outline-color: #2a1208;
  outline-offset: -5px;
}
.button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.button-small {
  --chamfer: 7px;
  padding: 0.6em 1.1em;
  font-size: 0.95rem;
}

.ribbon {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.2em 1.1em;
  background: var(--copper-deep);
  color: var(--cream);
  font-size: 0.95rem;
  font-style: italic;
  --chamfer: 7px;
  clip-path: polygon(var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% 50%, calc(100% - var(--chamfer)) 100%, var(--chamfer) 100%, 0 50%);
}
.ribbon-dark {
  background: #4a2c78;
}
.ribbon-couples {
  background: #a02a7c;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 12px var(--gutter);
  background: var(--weave-dark) 0 0 / 96px, var(--plum-950);
  border-bottom: 1px solid rgb(212 154 99 / 35%);
}

.wordmark {
  font-family: var(--display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  color: var(--cream);
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: 1rem;
}
.site-nav a,
.nav-stories {
  color: var(--on-dark-soft);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.site-nav a:hover,
.nav-stories:hover {
  color: var(--copper-strong);
}
.site-nav a[aria-current],
.nav-stories[aria-current] {
  color: var(--copper-strong);
  text-decoration: underline;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* The next section's hem rises 54px over the bottom of this one, so stacked text needs room above it. */
.hero-copy {
  padding: 24px var(--gutter) 96px;
  align-self: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 5.2rem);
  font-weight: 400;
}
.hero h1 em {
  color: var(--copper-strong);
}

.lede {
  max-width: 34em;
  margin-top: 1.4rem;
  color: var(--on-dark-soft);
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
}

.hero-form {
  max-width: 34rem;
  margin-top: 2.2rem;
}

/* The picture leads on narrow screens, where the two sections stack. */
.hero-art {
  order: -1;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    /* Tall enough to fill the screen under the header and push the 54px hem below it. */
    min-height: calc(100vh - 60px + 54px);
  }
  .hero-copy {
    padding: clamp(40px, 7vw, 96px) var(--gutter) calc(clamp(40px, 7vw, 96px) + 54px);
  }
  .hero-art {
    order: 0;
    position: relative;
    border-left: 3px solid var(--copper-deep);
  }
  .hero-art img {
    position: absolute;
    inset: 0;
  }
}

/* Forms */

.waitlist-form label[for] {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field-row input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.75em 1em;
  border: 1px solid var(--copper);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
}
.field-row input::placeholder {
  color: #7d6672;
}

.field-row .button {
  flex: 0 1 auto;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status:empty {
  display: none;
}
.form-status {
  margin-top: 0.8rem;
  font-weight: 600;
}
.form-status.is-success {
  margin-top: 0;
  color: var(--copper-strong);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
}
.form-status.is-error {
  color: #ffb4a8;
}

.form-note {
  margin-top: 0.7rem;
  color: var(--on-dark-soft);
  font-size: 0.92rem;
}

.waitlist-form.is-done label[for],
.waitlist-form.is-done .field-row,
.waitlist-form.is-done .deck-choices,
.waitlist-form.is-done .form-note {
  display: none;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  padding: 0;
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

/* Chips are off-white outlined ribbons, filled when selected. The ::before shape is the ribbon
   with its middle cut out, so the woven background shows through. */
.filter-chip {
  --cat: var(--cream);
  position: relative;
  display: inline-block;
  margin: 0 4px 8px 0;
  cursor: pointer;
}
.filter-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.filter-chip span {
  --chamfer: 7px;
  --line: 1.5px;
  position: relative;
  display: block;
  padding: 0.3em 1.1em;
  color: var(--cat);
  font-size: 0.95rem;
  font-style: italic;
  clip-path: polygon(var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% 50%, calc(100% - var(--chamfer)) 100%, var(--chamfer) 100%, 0 50%);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.filter-chip span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cat);
  clip-path: polygon(
    evenodd,
    var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% 50%, calc(100% - var(--chamfer)) 100%, var(--chamfer) 100%, 0 50%, var(--chamfer) 0,
    calc(var(--chamfer) + var(--line) * 0.65) var(--line),
    calc(var(--line) * 1.05) 50%,
    calc(var(--chamfer) + var(--line) * 0.65) calc(100% - var(--line)),
    calc(100% - var(--chamfer) - var(--line) * 0.65) calc(100% - var(--line)),
    calc(100% - var(--line) * 1.05) 50%,
    calc(100% - var(--chamfer) - var(--line) * 0.65) var(--line),
    calc(var(--chamfer) + var(--line) * 0.65) var(--line)
  );
}
.filter-chip:hover span {
  background: color-mix(in srgb, var(--cat) 16%, transparent);
}
.filter-chip input:checked + span {
  background: var(--cat);
  color: var(--plum-950);
}
.filter-chip input:focus-visible + span {
  text-decoration: underline;
  background: color-mix(in srgb, var(--cat) 28%, transparent);
}
.filter-chip input:checked:focus-visible + span {
  background: var(--cat);
}

/* Draw a card */

.draw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.draw {
  padding: clamp(56px, 9vw, 120px) var(--gutter);
  background:
    var(--weave-dark) 0 100% / 96px,
    radial-gradient(55% 62% at 25% 50%, rgb(125 30 107 / 45%), transparent 75%),
    var(--plum-950);
}

.draw-stage {
  display: flex;
  justify-content: center;
}

.flip-card {
  width: min(72vw, 340px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1400px;
}
.flip-inner {
  position: relative;
  display: block;
  aspect-ratio: 742 / 1042;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.flip-card:disabled {
  cursor: default;
}
.flip-card:not(:disabled):hover .flip-inner {
  transform: rotateY(-7deg) rotateX(2deg);
}
.flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}
.flip-card.is-flipped:not(:disabled):hover .flip-inner {
  transform: rotateY(187deg) rotateX(2deg);
}
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  filter: drop-shadow(0 24px 30px rgb(0 0 0 / 55%));
}
.flip-face img {
  width: 100%;
  height: 100%;
}
.flip-back img {
  border-radius: 5.2% / 3.7%;
}
.flip-front {
  transform: rotateY(180deg);
}

.draw-copy {
  max-width: 40rem;
}

.draw-result {
  min-height: 7.5rem;
  margin: 1.2rem 0 1.5rem;
}
.draw-result:has(.draw-question:empty) {
  min-height: 0;
}
.draw-category {
  color: var(--copper-strong);
  font-style: italic;
}
.draw-category:empty {
  display: none;
}
.draw-question {
  color: var(--on-dark-soft);
  font-size: 1.2rem;
}
.draw-category:not(:empty) + .draw-question {
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  font-variation-settings: "SOFT" 60, "WONK" 0;
}

.draw-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
}

.category-filter {
  margin-top: 2.2rem;
}

/* Expansion decks tint their ribbons to match the deck's frame color. */
.couples .filter-chip:not(.cat-any) {
  --cat: #f3b6e2;
}
.after-dark .filter-chip:not(.cat-any) {
  --cat: #c9a6f0;
}

/* Shared by the Couples and After Dark sections */

.draw-stacked h2 {
  font-style: italic;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
}
.draw-lede {
  margin-top: 1rem;
  color: #e4d8ee;
  font-size: 1.25rem;
}
.draw-note {
  margin-top: 0.6rem;
  color: #cdbedc;
  font-size: 0.98rem;
}
.draw-game {
  margin-top: 1.8rem;
}

/* On phones the card sits right above its question and button, so a draw stays in view. */
@media (max-width: 859px) {
  .draw-stacked .draw-copy {
    display: contents;
  }
  .draw-intro {
    order: 1;
  }
  .draw-stacked .draw-stage {
    order: 2;
  }
  .draw-game {
    order: 4;
    margin-top: 0;
  }
  .draw-stacked .draw-result {
    margin-top: 0;
  }
}

@media (min-width: 860px) {
  .draw-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .draw-stage {
    justify-content: flex-end;
  }
}

/* Section headings on paper */

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(32px, 5vw, 64px);
  text-align: center;
}

.categories,
.how {
  padding: clamp(92px, 9vw, 120px) var(--gutter) clamp(56px, 9vw, 120px);
  background: var(--weave-light) 0 100% / 96px, var(--paper);
  color: var(--ink);
}
.categories :focus-visible,
.how :focus-visible {
  outline-color: var(--plum-700);
}

/* Categories */

.category-grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 40px);
}
@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pair {
  display: flex;
  justify-content: center;
  padding: 12px 0 20px;
}
.pair img {
  width: 49%;
  filter: drop-shadow(0 12px 14px rgb(43 21 36 / 35%));
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.pair img:first-child {
  z-index: 1;
  margin-right: -8%;
  transform: rotate(-4deg);
}
.pair img:last-child {
  transform: rotate(4deg) translateY(10px);
}
.pair img:hover {
  z-index: 2;
  transform: rotate(0) scale(1.08);
}

.cat-label {
  display: inline-block;
  padding: 0.2em 1em;
  background: var(--cat);
  color: #fff;
  font-family: var(--body);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  --chamfer: 7px;
  clip-path: polygon(var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% 50%, calc(100% - var(--chamfer)) 100%, var(--chamfer) 100%, 0 50%);
}
.category-tile {
  text-align: center;
}
.category-tile p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

.cat-inward { --cat: var(--cat-inward); }
.cat-back { --cat: var(--cat-back); }
.cat-ahead { --cat: var(--cat-ahead); }
.cat-view { --cat: var(--cat-view); }
.cat-hypo { --cat: var(--cat-hypo); }
.cat-ever { --cat: var(--cat-ever); }

/* Decks */

.decks {
  padding: clamp(92px, 9vw, 120px) var(--gutter) clamp(56px, 9vw, 120px);
  background: var(--weave-dark) 0 100% / 96px, var(--plum-800);
}
.deck-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .deck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1120px) {
  .deck-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.deck {
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  background: var(--weave-dark) 0 0 / 96px, var(--plum-950);
  border: 1px solid rgb(212 154 99 / 35%);
}
.deck-dark {
  background: var(--weave-dark) 0 0 / 96px, var(--night);
  border-color: rgb(166 120 216 / 45%);
}
.deck h3 {
  font-size: 2rem;
}
.deck-meta {
  margin: 0.3rem 0 0.8rem;
  color: var(--copper-strong);
  font-size: 0.98rem;
  font-style: italic;
}
.deck-couples .deck-meta {
  color: #f08fd6;
}
.deck-dark .deck-meta {
  color: var(--violet);
}
.deck > p:not(.deck-meta) {
  color: var(--on-dark-soft);
  font-size: 1.05rem;
}

.fan {
  position: relative;
  height: clamp(190px, 21vw, 230px);
  margin-bottom: 1.2rem;
}
.fan img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  height: 86%;
  filter: drop-shadow(0 8px 12px rgb(0 0 0 / 50%));
  transform-origin: 50% 110%;
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.fan img:nth-child(1) {
  transform: translateX(-50%) rotate(-15deg);
}
.fan img:nth-child(2) {
  z-index: 1;
  transform: translateX(-50%) rotate(15deg);
}
.fan img:nth-child(3) {
  z-index: 2;
  transform: translateX(-50%) rotate(0);
}
.deck:hover .fan img:nth-child(1) {
  transform: translateX(-50%) rotate(-21deg);
}
.deck:hover .fan img:nth-child(2) {
  transform: translateX(-50%) rotate(21deg);
}
.deck-foot {
  margin-top: auto;
  padding-top: 1.2rem;
  text-align: center;
}
.deck-link {
  color: var(--copper-strong);
  text-underline-offset: 4px;
}
.deck-couples .deck-link {
  color: #f3b6e2;
}
.deck-dark .deck-link {
  color: #c9a6f0;
}

/* How to play */

.how .section-head {
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  border-bottom: 2px solid var(--copper-deep);
}
.tabs button {
  padding: 0.55em 1.15em;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.08rem;
  cursor: pointer;
}
.tabs button:hover {
  background: var(--paper-deep);
}
.tabs button[aria-selected="true"] {
  background: var(--copper-deep);
  color: var(--cream);
}

.tab-panel {
  padding-top: clamp(20px, 2vw, 32px);
}
.tab-panel[hidden] {
  display: none;
}
.panel-intro {
  max-width: 44rem;
  margin-bottom: 1.8rem;
  font-size: 1.2rem;
}

.rule-columns {
  display: grid;
  gap: 36px clamp(32px, 4vw, 64px);
}
.rule-set {
  min-width: 0;
}
.rule-art {
  width: 100%;
  aspect-ratio: 1200 / 544;
  object-fit: contain;
  margin-bottom: clamp(16px, 2vw, 28px);
}
.rule-set + .rule-set {
  border-top: 1px solid rgb(138 79 34 / 45%);
  padding-top: 28px;
}
@media (min-width: 800px) {
  .rule-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rule-set + .rule-set {
    position: relative;
    border-top: 0;
    padding-top: 0;
  }
  .rule-set + .rule-set::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(clamp(32px, 4vw, 64px) / -2);
    border-left: 1px solid rgb(138 79 34 / 55%);
  }
}
.rule-set h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}
.rule-set ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}
.rule-set li {
  position: relative;
  counter-increment: rule;
  margin-bottom: 0.9rem;
  padding-left: 2.8rem;
}
.rule-set li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--plum-700);
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 2rem;
  text-align: center;
  clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
}
.rule-aside {
  align-self: start;
  padding: 1.6rem;
  background: var(--weave-light) 0 0 / 96px, var(--paper-deep);
}
.rule-set + .rule-aside {
  padding: 1.6rem;
}

/* Couples */

.couples {
  padding: clamp(92px, 8vw, 104px) var(--gutter) clamp(64px, 8vw, 104px);
  background:
    var(--weave-dark) 0 100% / 96px,
    radial-gradient(50% 55% at 70% 45%, rgb(201 56 150 / 28%), transparent 75%),
    #5e1640;
}
.couples .draw-category,
.draw-turn {
  color: #f3b6e2;
  font-style: italic;
}
.draw-turn {
  font-weight: 600;
}
.draw-turn:empty {
  display: none;
}
.couples .deck-link {
  color: #f3b6e2;
}

.couples .draw-stage {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.couples-threads {
  --drawn: 0.12;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transition: filter 1.2s ease;
}
.couples-threads.is-tied {
  filter: drop-shadow(0 0 10px rgb(243 182 226 / 75%));
}
.thread {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--drawn));
  transition: stroke-dashoffset 1.2s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.thread-copper {
  stroke: var(--copper-strong);
}
.thread-pink {
  stroke: #f08fd6;
}

/* On wide screens the card moves to the right, to set this section apart from the others. */
@media (min-width: 860px) {
  .couples.draw-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .couples .draw-copy {
    justify-self: end;
  }
  .couples .draw-stage {
    order: 2;
  }
}

/* After Dark */

.after-dark {
  --glow-x: 50%;
  --glow-y: 40%;
  padding: clamp(92px, 10vw, 136px) var(--gutter) calc(clamp(64px, 10vw, 136px) + 54px);
  background: var(--weave-dark) 0 100% / 96px, #2c1a3e;
  transition: background-color 1.2s ease;
}
.after-dark[data-lights="off"] {
  background-color: var(--night);
}
.glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--glow-x) var(--glow-y), rgb(224 169 112 / 18%), transparent 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.after-dark[data-lights="off"] .glow {
  opacity: 1;
}
.after-dark > * {
  position: relative;
}
.after-dark > .glow {
  position: absolute;
}

.light-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
  padding: 0.5rem 0.4rem;
  border: 0;
  background: none;
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
}
.switch-track {
  position: relative;
  display: block;
  width: 58px;
  height: 30px;
  border: 1px solid var(--copper);
  border-radius: 999px;
  background: rgb(224 169 112 / 30%);
  transition: background-color 0.5s ease;
}
.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--copper-strong);
  box-shadow: 0 0 14px 3px rgb(224 169 112 / 70%);
  transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.3, 1), box-shadow 0.5s ease, background-color 0.5s ease;
}
.light-switch[aria-pressed="true"] .switch-track {
  background: transparent;
}
.light-switch[aria-pressed="true"] .switch-thumb {
  transform: translateX(28px);
  background: #6b4a8c;
  box-shadow: none;
}

.after-dark .draw-category {
  color: #c9a6f0;
}

/* Waitlist */

.waitlist {
  padding: calc(clamp(92px, 10vw, 136px) - 54px) var(--gutter) clamp(64px, 10vw, 136px);
  background:
    var(--weave-dark) 0 100% / 96px,
    radial-gradient(60% 60% at 50% 52%, var(--plum-700), transparent 80%),
    var(--plum-900);
}
.waitlist-inner {
  max-width: 40rem;
  margin: 0 auto;
}
.waitlist-inner > p {
  margin: 1rem 0 2rem;
  color: var(--on-dark-soft);
  font-size: 1.2rem;
}
.deck-choices {
  margin-top: 1.4rem;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 76px var(--gutter) 28px;
  background: var(--weave-dark) 0 0 / 96px, var(--plum-950);
  color: var(--on-dark-soft);
  font-size: 0.95rem;
}

@media (max-width: 859px) {
  .site-nav {
    display: none;
  }
  .site-header {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* Writing an answer */

.nav-stories {
  font-size: 1rem;
}

.button-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--copper);
  color: var(--copper-strong);
  clip-path: none;
  border-radius: 2px;
}
.button-ghost:hover {
  background: rgb(212 154 99 / 16%);
}
.button-ghost:focus-visible {
  outline-color: var(--copper-strong);
  outline-offset: 3px;
}
.button-text {
  padding: 0.4em 0.2em;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--body);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.answer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  margin-top: 1rem;
}
.answer-tools[hidden],
.answer-form[hidden],
.answer-thanks[hidden],
.write-answer[hidden] {
  display: none;
}
/* While someone writes, the card stays in view beside the form. */
@media (min-width: 860px) {
  .is-answering .draw-stage {
    position: sticky;
    top: 84px;
    align-self: start;
  }
}
.answer-form {
  margin-top: 1.2rem;
  padding: clamp(16px, 3vw, 24px);
  background: rgb(0 0 0 / 22%);
  border: 1px solid rgb(247 237 221 / 22%);
}
.answer-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.answer-form textarea {
  display: block;
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid var(--copper);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.5;
  resize: vertical;
}
.answer-form textarea::placeholder {
  color: #7d6672;
}
.answer-count {
  margin-top: 0.3rem;
  color: var(--on-dark-soft);
  font-size: 0.88rem;
  text-align: right;
}
.answer-hint {
  margin: 0.5rem 0 1.1rem;
  color: var(--on-dark-soft);
  font-size: 0.93rem;
}
.answer-hint a {
  color: var(--copper-strong);
}
.answer-pen-row {
  margin-bottom: 1.1rem;
}
.answer-agree {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.98rem;
  cursor: pointer;
}
.answer-agree input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.25rem 0 0;
  accent-color: var(--copper);
}
.answer-form .form-status.is-error {
  margin: 0 0 0.9rem;
}
.answer-form .draw-actions {
  margin-bottom: 0.8rem;
}
.answer-thanks {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgb(0 0 0 / 22%);
  border-left: 3px solid var(--copper);
}
.answer-thanks a {
  color: var(--copper-strong);
}

/* The Stories page */

.stories-hero {
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(56px, 7vw, 88px);
  background: var(--weave-dark) 0 100% / 96px, var(--plum-900);
}
.stories-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 400;
}
.stories-hero .lede {
  margin-bottom: 1.6rem;
}
.stories-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.4rem;
  margin-top: 1rem;
}
.stories-filters[hidden] {
  display: none;
}
.stories-filters .category-filter {
  margin-top: 1.2rem;
}

.stories-list {
  padding: 92px var(--gutter) clamp(48px, 7vw, 88px);
  background: var(--weave-light) 0 100% / 96px, var(--paper);
  color: var(--ink);
}
.stories-list h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
.stories-count {
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
}
.stories-count:empty {
  display: none;
}

.story-grid {
  column-width: 340px;
  column-gap: 24px;
}
/* Padding on a wrapper, because Safari can skip a column when a card's own margin lands on a column break. */
.story-slot {
  break-inside: avoid;
  padding-bottom: 24px;
}
.story {
  padding: 20px;
  background: #fbf6ec;
  border: 1px solid #dcc9aa;
  box-shadow: 0 8px 18px rgb(43 21 36 / 10%);
}
.story-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.story-art {
  flex: none;
  width: 64px;
  height: auto;
  border-radius: 4px;
}
.story-category {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-style: italic;
}
.story-question {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.22;
  text-decoration: none;
}
.story-question:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.story-text {
  overflow-wrap: anywhere;
  white-space: pre-line;
  font-size: 1.08rem;
}
.story-byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  margin-top: 0.9rem;
}
.story-pen {
  font-style: italic;
  font-weight: 600;
}
.story-pen::before {
  content: "— ";
}
.story-date {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.story-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  margin-top: 0.9rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e5d6bd;
}
.story-like,
.story-action,
.report-choice {
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 0.98rem;
  cursor: pointer;
}
.story-like {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.3rem 0.2rem 0;
}
.story-like svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.2s ease;
}
.story-like:hover svg {
  transform: scale(1.14);
}
.story-like.is-liked {
  color: #a02a7c;
}
.story-like.is-liked svg {
  fill: currentColor;
}
.story-action {
  padding: 0.2rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.story-report {
  margin-left: auto;
  text-align: right;
}
.report-options {
  margin-top: 0.4rem;
  color: var(--ink);
  font-size: 0.95rem;
  text-align: left;
}
.report-choice {
  display: block;
  width: 100%;
  padding: 0.25rem 0;
  color: var(--ink);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story-focus {
  max-width: 640px;
  margin-bottom: 2.4rem;
}
.story-focus[hidden],
.question-focus[hidden],
.own-answers[hidden],
.stories-empty[hidden] {
  display: none;
}
.story-focus-label,
.question-focus-label {
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
  font-style: italic;
}
.question-focus {
  margin-bottom: 2rem;
}
.story-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--ink);
  text-underline-offset: 3px;
}

.stories-empty {
  padding: 2.4rem 0;
  text-align: center;
}
.stories-empty p {
  margin: 0.7rem 0 1.4rem;
  color: var(--ink-soft);
}
.stories-more {
  display: block;
  margin: 1rem auto 0;
}
.stories-more[hidden] {
  display: none;
}

.own-answers {
  margin-bottom: 2.4rem;
  padding: clamp(16px, 3vw, 24px);
  background: var(--paper-deep);
}
.own-note {
  margin: 0.3rem 0 1rem;
  color: var(--ink-soft);
}
.own-answer {
  padding: 0.8rem 0;
  border-top: 1px solid #cdb995;
}
.own-question {
  font-family: var(--display);
  font-size: 1.1rem;
}
.own-text {
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.own-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1rem;
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.own-status {
  color: var(--ink);
  font-weight: 600;
}

.house-rules {
  max-width: 44rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #cdb995;
}
.house-rules ul {
  margin: 0.8rem 0;
  padding-left: 1.2rem;
}
.house-rules li {
  margin-bottom: 0.3rem;
}
.house-rules a {
  color: var(--plum-700);
}

/* The moderation page */

.moderate {
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) var(--gutter);
}
.moderate h1 {
  margin-bottom: 1.6rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}
.moderate-unlock label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.moderate-tabs {
  margin-bottom: 1.4rem;
  border-bottom-color: var(--copper);
}
.moderate-tabs button {
  color: var(--cream);
}
.moderate-tabs button:hover {
  background: rgb(247 237 221 / 12%);
}
.moderate-tabs button[aria-pressed="true"] {
  background: var(--copper);
  color: #2a1208;
}
.moderate-item {
  margin-bottom: 16px;
  padding: 18px;
  background: var(--paper);
  color: var(--ink);
}
.moderate-item.is-flagged {
  border-left: 5px solid #b3261e;
}
.moderate-flag {
  margin-bottom: 0.5rem;
  color: #a51c14;
  font-weight: 600;
}
.moderate-question {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.moderate-text {
  margin: 0.5rem 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.moderate-meta {
  margin-bottom: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.moderate-empty {
  color: var(--on-dark-soft);
}

@media (max-width: 859px) {
  .site-header {
    gap: 0.9rem;
  }
  .nav-stories {
    margin-left: auto;
  }
  .site-header .wordmark {
    font-size: 1.4rem;
  }
  .site-header .button-small {
    padding: 0.5em 0.8em;
    font-size: 0.88rem;
  }
}
@media (min-width: 860px) and (max-width: 1060px) {
  .site-nav {
    gap: 1rem;
    font-size: 0.92rem;
  }
  .site-header {
    gap: 1rem;
  }
}
