:root {
  --paper: #fff9ef;
  --ink: #342736;
  --berry: #b72c55;
  --muted: #67575d;
  --teal: #176b67;
  --line: #e1d4c9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Avenir Next", "Trebuchet MS", Arial, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
}
.wrap {
  width: min(1184px, calc(100% - 104px));
  margin-inline: auto;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #188a88;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
.mast,
nav,
.brand,
.date,
.primary,
.listhead,
.timer,
.timer-title,
footer,
.tabs {
  display: flex;
  align-items: center;
}
.mast {
  height: 86px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none;
  gap: 12px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.04em;
}
.brand img {
  transform: rotate(-7deg);
}
nav {
  gap: 27px;
}
nav a,
.linkbtn {
  font-weight: 650;
  text-underline-offset: 4px;
}
nav a {
  text-decoration: none;
}
.smallbtn {
  background: transparent;
  border: 1px solid #a38d90;
  border-radius: 30px;
  padding: 8px 18px;
  font-weight: 700;
}
.smallbtn:hover {
  background: white;
}
.hero {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: center;
  gap: 4%;
  padding: 65px 8px 57px;
}
.date {
  gap: 10px;
  color: var(--teal);
  font-weight: 750;
  font-size: 0.9rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.date span {
  font-size: 1.55rem;
  line-height: 1;
  color: #c74d65;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1 {
  font: 700 clamp(5.3rem, 8.8vw, 8.4rem)/0.88 var(--serif);
  letter-spacing: -0.074em;
  margin: 24px 0 27px;
}
h1 em {
  color: var(--berry);
  font-weight: 400;
  letter-spacing: -0.075em;
}
.intro > p {
  max-width: 370px;
  font-size: 1.16rem;
  line-height: 1.55;
  color: var(--muted);
}
.primary {
  display: inline-flex;
  gap: 11px;
  justify-content: center;
  background: var(--berry);
  border: 1px solid var(--berry);
  border-radius: 14px;
  color: white;
  padding: 13px 22px;
  font-weight: 750;
  min-height: 48px;
}
.intro .primary {
  margin-top: 27px;
}
.primary:hover {
  background: #982044;
}
.primary:disabled {
  opacity: 0.65;
}
.primary svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linejoin: round;
}
.postcard {
  position: relative;
  transform: rotate(2deg);
  padding: 12px 12px 5px;
  background: #fffdf7;
  box-shadow:
    0 12px 27px #6a413524,
    0 2px 4px #6a41351c;
  border: 1px solid #ebddce;
}
.cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1.5;
  display: block;
  object-fit: cover;
}
.tape {
  position: absolute;
  background: repeating-linear-gradient(90deg, #e6b97580 0 2px, #f0ce99a8 3px 7px);
  width: 96px;
  height: 28px;
  left: 43%;
  top: -13px;
  transform: rotate(-7deg);
  clip-path: polygon(
    2% 0,
    100% 4%,
    97% 26%,
    100% 42%,
    97% 63%,
    100% 82%,
    98% 100%,
    0 97%,
    3% 76%,
    0 54%,
    3% 31%,
    0 14%
  );
}
figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 13px;
  color: var(--teal);
  font: italic 1.25rem var(--serif);
}
.postmark {
  display: grid;
  place-items: center;
  border: 3px double #639a89;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font: 1.15rem var(--sans);
  color: #548a7c;
  transform: rotate(-13deg);
}
.timer {
  justify-content: space-between;
  padding: 17px 5%;
  background: #e1f0e7;
  border: 1px solid #b9d8c8;
  border-radius: 22px;
  color: #174e4d;
  gap: 18px;
}
.timer-title {
  gap: 21px;
}
.spark {
  font: 3.4rem/1 var(--serif);
  color: #338478;
}
.timer h2 {
  font: 600 clamp(1.4rem, 2.6vw, 2.2rem)/1.1 var(--serif);
  letter-spacing: -0.045em;
}
.digits {
  display: flex;
  align-items: center;
  gap: 18px;
}
.digits span {
  min-width: 56px;
  text-align: center;
  font-size: 0.86rem;
}
.digits b {
  display: block;
  font: 600 2.35rem/1.12 var(--serif);
  font-variant-numeric: tabular-nums;
}
.digits i {
  color: #70a597;
  font-size: 1.5rem;
}
.crew {
  max-width: 790px;
  text-align: center;
  margin: 65px auto;
}
.crew h2,
#list h2,
dialog h2 {
  font: 600 clamp(2rem, 4vw, 3.1rem)/1.08 var(--serif);
  letter-spacing: -0.055em;
}
.rose {
  color: var(--berry);
  font-size: 1.8rem;
}
.crew p {
  color: var(--muted);
  margin: 17px auto;
  max-width: 670px;
}
.linkbtn {
  background: none;
  border: 0;
  padding: 9px 0;
  color: var(--teal);
  text-decoration: underline;
}
.crew .linkbtn {
  font-size: 0.95rem;
}
footer {
  justify-content: space-between;
  padding: 20px 0 35px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.91rem;
}
footer span + span {
  color: var(--berry);
}
dialog {
  position: fixed;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 23px;
  width: min(420px, calc(100% - 28px));
  padding: 30px;
  box-shadow: 0 20px 80px #35213833;
}
dialog::backdrop {
  background: #39293873;
}
dialog h2 {
  font-size: 2.2rem;
  margin: 9px 0;
}
dialog p,
.listhead p {
  color: var(--muted);
}
dialog form {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
label {
  font-weight: 700;
}
input {
  width: 100%;
  border-radius: 11px;
  border: 1px solid #bca9a7;
  padding: 12px;
  background: white;
  color: var(--ink);
}
.close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
}
.charm {
  color: var(--berry);
  font-size: 2.3rem;
  line-height: 1;
}
.listhead {
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.listhead p {
  margin-top: 10px;
}
.listhead .linkbtn {
  flex-shrink: 0;
}
#list {
  margin: 52px 0;
  outline: none;
}
.invite-card {
  padding: 20px 24px;
  border: 1px dashed #ba96a0;
  background: #fff0f2;
  border-radius: 18px;
  margin: 22px 0;
}
.invite-card a,
.store {
  color: var(--teal);
  font-weight: 700;
  text-underline-offset: 4px;
}
.tabs {
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.tabs button {
  border-radius: 99px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 7px 14px;
}
.tabs button[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
#cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 21px;
}
.cat {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 750;
}
.card h3 {
  font: 600 1.55rem/1.15 var(--serif);
  letter-spacing: -0.035em;
  margin: 10px 0;
}
.card p {
  color: var(--muted);
  margin-bottom: 15px;
}
.card .store {
  margin-top: auto;
}
.action {
  margin-top: 16px;
  border: 1px solid #d8a6b0;
  background: #fff0f2;
  color: #8f2747;
  align-self: start;
  border-radius: 10px;
  padding: 8px 13px;
  font-weight: 700;
}
.taken {
  color: var(--muted);
  background: #eeeae3;
  border-color: #eeeae3;
}
.mine {
  color: var(--teal);
  background: #e7f3eb;
  border-color: #bad6c8;
}
.empty {
  color: var(--muted);
}
#notice:not(:empty) {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 5px 20px #0003;
  max-width: 90%;
  width: max-content;
  z-index: 5;
}
.dialog-error {
  color: #862642;
  margin-top: 10px;
  font-weight: 650;
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 44px);
  }
  .hero {
    padding: 48px 0;
    gap: 4%;
    grid-template-columns: 0.9fr 1.1fr;
  }
  h1 {
    font-size: clamp(4.2rem, 10vw, 6.5rem);
  }
  .intro > p {
    font-size: 1rem;
  }
  .postcard {
    padding: 8px 8px 3px;
  }
  figcaption {
    padding: 5px;
    font-size: 1.05rem;
  }
  #cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 610px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .mast {
    height: 68px;
  }
  .brand {
    font-size: 1rem;
    gap: 7px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  nav a {
    display: none;
  }
  .smallbtn {
    font-size: 0.88rem;
    padding: 8px 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 30px 0 34px;
    gap: 32px;
  }
  h1 {
    font-size: clamp(3.6rem, 13.3vw, 5.1rem);
    line-height: 1;
    margin: 10px 0 13px;
  }
  h1 br {
    display: none;
  }
  h1 em:before {
    content: " ";
  }
  .intro > p {
    max-width: 380px;
  }
  .intro .primary {
    margin-top: 17px;
  }
  .postcard {
    margin: 0 6px;
  }
  .timer {
    flex-direction: column;
    padding: 18px 12px;
    gap: 10px;
  }
  .timer-title {
    gap: 9px;
  }
  .spark {
    font-size: 1.8rem;
  }
  .digits {
    gap: 16px;
  }
  .digits b {
    font-size: 1.9rem;
  }
  .crew {
    margin: 40px 0;
  }
  .listhead {
    display: block;
  }
  #cards {
    grid-template-columns: 1fr;
  }
  .tabs button {
    padding: 8px 10px;
    font-size: 0.93rem;
  }
  .card {
    padding: 18px;
  }
  #list {
    margin: 32px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
