/* Table Camera: site styles.
 *
 * Type: Young Serif for headings, Atkinson Hyperlegible Next for everything
 * else (designed by the Braille Institute for readers with low vision).
 * Colors: navy and blush on white. The couple's own wedding page (the
 * phone, the table card, /try) keeps its cream-and-rose look.
 *
 * Sizes are in rem, and 1rem is the body size (19px desktop, 18px phone),
 * so everything grows if someone turns up their browser's text size.
 */

@font-face {
  font-family: 'Atkinson';
  src: url('/fonts/AtkinsonHyperlegibleNext-400.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson';
  src: url('/fonts/AtkinsonHyperlegibleNext-400i.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Young Serif';
  src: url('/fonts/YoungSerif-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --tint: #f6f1f1;
  --hi: #f2c9c4;
  --hi-soft: #fbefed;
  --hi-deep: #d99a93;
  --ink: #1e2433;
  --ink-soft: #4e5566;
  --accent: #26365c;
  --accent-dark: #1a2645;
  --accent-tint: #e3e8f2;
  --line: #dcdfe6;
  --field: #5d6475;
  --stamp: #b2413c;
  --error: #b42318;

  /* the couple's wedding page colors (from the real product) */
  --w-cream: #fdf8f2;
  --w-rose: #c98a8a;
  --w-brown: #5c4438;
  --w-brown-soft: #8a7264;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --small: 0.9rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 118.75%; /* 19px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

@media (max-width: 640px) {
  html {
    font-size: 112.5%; /* 18px */
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Atkinson', 'Segoe UI', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2 {
  font-family: 'Young Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.3vw, 3.9rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.55rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 0.3em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--hi);
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 40rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36em;
}

.section-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.muted {
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--hi);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

/* ---- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3rem;
  padding: 0.6rem 1.35rem;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  /* a small bottom edge, so it looks like something you can press */
  box-shadow: 0 3px 0 var(--accent-dark);
  transition: background-color 0.15s ease, transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--accent-dark);
}

.btn-big {
  min-height: 3.5rem;
  padding: 0.8rem 1.7rem;
  font-size: 1.08rem;
}

.btn-small {
  min-height: 2.6rem;
  padding: 0.35rem 1rem;
  font-size: var(--small);
}

.btn-quiet {
  background: var(--paper);
  color: var(--accent);
  box-shadow: 0 3px 0 #c7cfe0;
}

.btn-quiet:hover {
  background: var(--accent-tint);
  color: var(--accent-dark);
}

.btn-quiet:active {
  box-shadow: 0 1px 0 #c7cfe0;
}

.btn-light {
  background: var(--hi);
  border-color: var(--hi);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--hi-deep);
}

.btn-light:hover {
  background: #f7d9d5;
  color: var(--ink);
}

.btn-block {
  display: flex;
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.4rem 0;
}

.actions-stack {
  flex-direction: column;
}

.link-strong {
  font-weight: 700;
}

/* ---- header ----------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Young Serif', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1;
  margin-right: auto;
  padding: 0.4rem 0;
}

.brand:hover {
  color: var(--ink);
}

.mark {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--accent);
  flex: none;
}

.top-nav {
  display: flex;
  gap: 0.4rem;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 0.7rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.top-nav a:hover {
  background: var(--tint);
  text-decoration: underline;
}

.header-call {
  font-weight: 700;
  text-align: right;
}

/* On phones the menu stays visible: brand and button on top, links below. */
@media (max-width: 760px) {
  .header-row {
    flex-wrap: wrap;
    gap: 0 0.8rem;
    padding-top: 0.5rem;
    padding-bottom: 0.3rem;
  }
  .top-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
    padding-top: 0.2rem;
  }
  .top-nav a {
    padding: 0 0.3rem;
    font-size: var(--small);
  }
  .header-call {
    font-size: var(--small);
  }
}

/* ---- hero ----------------------------------------------------------------- */

.hero {
  padding: clamp(2.2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  max-width: 13em;
}

.hero .actions {
  margin: 1.8rem 0 1.2rem;
}

.hero-price {
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0;
}

.hero-price strong {
  color: var(--ink);
}

/* The table: a soft linen panel the card and phone stand on. */
.hero-scene {
  position: relative;
  min-height: 34rem;
  border-radius: 28px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.25) 0 2px, transparent 2px 9px),
    var(--tint);
  overflow: hidden;
}

.hero-scene::after {
  /* the table's front edge */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.2rem;
  background: linear-gradient(#efe7e7, #e8dede);
  border-top: 1px solid #e1d6d6;
}

/* ---- the table card --------------------------------------------------------- */

.tent {
  position: absolute;
  z-index: 2;
  left: 7%;
  bottom: 2.7rem;
  width: 12.2rem;
  margin: 0;
  transform: rotate(-3deg);
  transform-origin: bottom center;
}

.tent::after {
  /* shadow on the tablecloth */
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -0.55rem;
  height: 1.1rem;
  background: radial-gradient(closest-side, rgba(30, 36, 51, 0.28), transparent);
  z-index: -1;
}

.tent-face {
  position: relative;
  background: #fffdfa;
  border-radius: 3px;
  padding: 1.15rem 1rem 0.9rem;
  text-align: center;
  color: var(--w-brown);
  font-family: Georgia, 'Times New Roman', serif;
  box-shadow:
    0 0 0 1px rgba(92, 68, 56, 0.08),
    0 -6px 0 -1px #f1e9df,
    0 18px 30px -18px rgba(30, 36, 51, 0.45);
}

.tent-face::before {
  /* the fold at the top of a folded table card */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 6px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#e9dfd3, #f6efe7);
}

.tent-names {
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
  letter-spacing: 0.01em;
}

.tent-ask {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--w-brown-soft);
  margin: 0 0 0.75rem;
}

.tent-qr {
  width: 7.4rem;
  margin: 0 auto 0.6rem;
  padding: 0.4rem;
  border: 1.5px solid #ead9cf;
  border-radius: 6px;
  background: #fff;
}

.tent-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.tent-how {
  font-family: 'Atkinson', sans-serif;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--w-brown);
  margin: 0;
}

.for-phone {
  display: none;
}

@media (hover: none), (pointer: coarse) {
  .for-desktop {
    display: none;
  }
  .for-phone {
    display: inline;
  }
}

/* ---- phones (showing the couple's page) ------------------------------------- */

.phone {
  position: absolute;
  z-index: 1;
  right: 8%;
  top: 2.2rem;
  width: 15rem;
  aspect-ratio: 9 / 18.5;
  border-radius: 2.4rem;
  background: #19201c;
  padding: 0.55rem;
  box-shadow:
    0 0 0 1px #2c3530 inset,
    0 30px 50px -24px rgba(30, 36, 51, 0.55);
}

.phone::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0.95rem;
  left: 50%;
  width: 4.2rem;
  height: 1.05rem;
  transform: translateX(-50%);
  border-radius: 1rem;
  background: #19201c;
}

.phone-screen {
  height: 100%;
  border-radius: 1.9rem;
  overflow: hidden;
}

.product {
  background:
    radial-gradient(ellipse 120% 40% at 50% -5%, #f6e3e0 0%, rgba(246, 227, 224, 0) 70%),
    var(--w-cream);
  color: var(--w-brown);
  font-family: Georgia, 'Times New Roman', serif;
  text-align: center;
}

.p-head {
  padding: 2.4rem 0.8rem 0.3rem;
}

.p-names {
  font-size: 1.12rem;
  margin: 0;
  line-height: 1.2;
}

.p-sub {
  font-size: 0.68rem;
  color: var(--w-brown-soft);
  margin: 0.2rem 0 0;
}

.p-count {
  font-family: 'Atkinson', sans-serif;
  font-size: 0.62rem;
  color: var(--w-brown-soft);
  margin: 0.5rem 0;
}

.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 0.55rem;
}

.p-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #f2eae2;
}

.p-grid img.arriving {
  animation: arrive 0.7s cubic-bezier(0.2, 0.8, 0.25, 1.1) both;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: scale(0.6);
    filter: brightness(1.9);
  }
  45% {
    filter: brightness(1.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}

.phone-screen {
  position: relative;
}

.p-take {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 1rem;
  padding: 0.55rem 0;
  border-radius: 999px;
  background: var(--w-rose);
  color: #fff;
  font-size: 0.78rem;
  box-shadow: 0 6px 16px rgba(92, 68, 56, 0.25);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-scene {
    min-height: 30rem;
    max-width: 36rem;
  }
}

@media (max-width: 520px) {
  .hero-scene {
    min-height: 25rem;
    border-radius: 20px;
  }
  .phone {
    width: 12rem;
    right: 5%;
    top: 1.4rem;
    border-radius: 2rem;
  }
  .phone-screen {
    border-radius: 1.55rem;
  }
  .tent {
    width: 10rem;
    left: 4%;
    bottom: 2.4rem;
  }
  .tent-qr {
    width: 6rem;
  }
  .p-head {
    padding-top: 2rem;
  }
}

/* ---- sections ---------------------------------------------------------------- */

section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.hero {
  padding-top: clamp(2.2rem, 5vw, 4.5rem);
}

.faq {
  background: var(--tint);
}

/* ---- price ---------------------------------------------------------------------- */

.price {
  background: var(--hi-soft);
}

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.price-grid {
  align-items: start;
}

.price-copy p {
  max-width: 31em;
}

/* a paper ticket with a perforated top edge */
.ticket {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 2rem clamp(1.2rem, 4vw, 2rem) 1.8rem;
  box-shadow: 8px 8px 0 var(--hi);
}

.ticket::before {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0.75rem;
  height: 6px;
  background: radial-gradient(circle, var(--line) 2.2px, transparent 2.6px) 0 0 / 14px 6px repeat-x;
}

.ticket-amount {
  font-family: 'Young Serif', Georgia, serif;
  font-size: clamp(3.2rem, 2.4rem + 3vw, 4.4rem);
  line-height: 1;
  margin: 0.4rem 0 0.4rem;
}

.ticket-when {
  color: var(--ink-soft);
  margin: 0 0 1.3rem;
}

.ticket-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 1.1rem 0 0;
  border-top: 2px solid var(--ink);
}

.ticket-list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.8rem;
  line-height: 1.35;
}

.ticket-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.1rem;
  height: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.5l4.2 4.2L16.5 5.5' fill='none' stroke='%2326365c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.ticket-list small {
  display: block;
  color: var(--ink-soft);
  font-size: var(--small);
}

@media (max-width: 860px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- hello (owner) --------------------------------------------------------------- */

.hello-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  max-width: 58rem;
}

.hello-photo {
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--hi);
}

.hello-initials {
  display: grid;
  place-items: center;
  background: var(--hi-soft);
  color: var(--accent);
  font-family: 'Young Serif', Georgia, serif;
  font-size: 3.2rem;
}

.hello p {
  max-width: 34em;
}

@media (max-width: 640px) {
  .hello-grid {
    grid-template-columns: 1fr;
  }
  .hello-photo {
    width: 8rem;
    height: 8rem;
  }
  .hello-initials {
    font-size: 2.4rem;
  }
}

/* ---- questions ------------------------------------------------------------------- */

.faq-wrap {
  max-width: 50rem;
}

.faq-list {
  margin-top: 1.8rem;
  border-bottom: 1px solid #dcd5d6;
}

.faq details {
  border-top: 1px solid #dcd5d6;
}

.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 0;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.4;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  /* plus that turns into a minus */
  content: '';
  position: absolute;
  right: 0.3rem;
  top: 50%;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: -0.8rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 0.75rem 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 3px 0.75rem no-repeat,
    var(--paper);
  box-shadow: 0 0 0 2px var(--accent) inset;
}

.faq details[open] summary::after {
  background:
    linear-gradient(#fff, #fff) center / 0.75rem 3px no-repeat,
    var(--accent);
}

.faq summary:hover {
  color: var(--accent);
}

.faq details p {
  margin: 0 0 1.3rem;
  max-width: 38em;
  color: var(--ink-soft);
}

/* ---- closing ---------------------------------------------------------------- */

.closing {
  background: var(--accent);
  color: #fff;
}

.closing-inner {
  max-width: 44rem;
  text-align: center;
}

.closing h2 {
  color: #fff;
}

.closing p {
  color: #e3e7f1;
  font-size: 1.1rem;
}

.closing .btn {
  margin: 0.8rem 0 1.4rem;
}

.closing a:not(.btn) {
  color: #fff;
  font-weight: 700;
}

.closing-call {
  margin: 0;
}

/* ---- footer ---------------------------------------------------------------------- */

.site-footer {
  background: var(--tint);
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.brand-footer {
  margin-bottom: 0.6rem;
}

.footer-note {
  color: var(--ink-soft);
  max-width: 22em;
}

.footer-head {
  font-family: 'Atkinson', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  margin: 0 0 0.5rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin: 0 0 0.35rem;
}

.footer-list a {
  display: inline-block;
  padding: 0.15rem 0;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1.2rem;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: var(--ink-soft);
  font-size: var(--small);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- forms ------------------------------------------------------------------- */

.form-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 5rem;
  align-items: start;
}

.form-main {
  max-width: 36rem;
}

.form-main h1 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
}

.form {
  margin-top: 2rem;
}

.field {
  margin: 0 0 1.6rem;
}

.field label,
legend {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.hint {
  color: var(--ink-soft);
  margin: 0 0 0.45rem;
  font-size: var(--small);
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='date'],
input[type='password'],
textarea {
  display: block;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid var(--field);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

textarea {
  resize: vertical;
  min-height: 7rem;
}

input:focus,
textarea:focus {
  outline: 3px solid var(--ink);
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--hi);
  border-color: var(--ink);
}

.has-error {
  border-left: 5px solid var(--error);
  padding-left: 1rem;
}

.has-error input,
.has-error textarea {
  border-color: var(--error);
}

.error-msg {
  color: var(--error);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.error-summary {
  border: 4px solid var(--error);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0 0;
  border-radius: 4px;
}

.error-summary h2 {
  font-family: 'Atkinson', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0;
  margin: 0 0 0.5rem;
}

.error-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.error-summary a {
  color: var(--error);
  font-weight: 700;
}

.error-summary p {
  margin: 0;
  font-weight: 700;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

fieldset {
  border: 0;
  margin: 0 0 1.4rem;
  padding: 0;
}

legend {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.1rem;
  padding: 0.5rem 0.9rem;
  margin: 0 0 0.6rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.choice:hover {
  border-color: var(--accent);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.choice input {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  accent-color: var(--accent);
  flex: none;
}

.check-inline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  cursor: pointer;
}

.check-inline input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent);
}

.form-aside {
  background: var(--tint);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  margin-top: 0.4rem;
}

.form-aside h2 {
  font-size: 1.45rem;
}

.mini-steps {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
}

.mini-steps li {
  margin-bottom: 0.7rem;
  padding-left: 0.2rem;
}

.mini-steps li::marker {
  font-weight: 700;
  color: var(--accent);
}

.aside-call {
  border-top: 1px solid #dcd5d6;
  padding-top: 1rem;
}

.aside-call p {
  margin: 0 0 0.3rem;
}

@media (max-width: 860px) {
  .form-page {
    grid-template-columns: 1fr;
  }
}

/* ---- notices ----------------------------------------------------------------- */

.notice {
  border-left: 6px solid var(--accent);
  background: var(--accent-tint);
  padding: 1rem 1.3rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.notice p:last-child {
  margin-bottom: 0;
}

.welcome {
  padding: 1.5rem 1.6rem;
}

.welcome h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.copy-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.copy-input {
  flex: 1 1 16rem;
  font-size: var(--small) !important;
  background: #fff;
}

/* ---- the customer's page ------------------------------------------------------- */

.project {
  padding-top: 1rem;
  padding-bottom: 5rem;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2rem;
}

.hello-line {
  font-size: 1.15rem;
  margin: 0;
  color: var(--ink-soft);
}

.project h1 {
  margin: 0.1rem 0 0.2rem;
}

.sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.now-card {
  margin: 2rem 0 3rem;
  padding: 1.6rem clamp(1.1rem, 3vw, 1.8rem);
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--accent-tint);
}

.now-card h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.now-pre {
  display: block;
  font-family: 'Atkinson', sans-serif;
  font-size: var(--small);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.now-card h3 {
  margin-top: 1.4rem;
}

.chosen,
.live-address {
  font-size: 1.1rem;
  background: var(--accent-tint);
  padding: 0.8rem 1rem;
  border-radius: 8px;
}

.approve {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.approve form {
  margin: 1rem 0;
}

.pick-form {
  margin-top: 1.3rem;
}

.other-field {
  margin: 0.4rem 0 0;
}

.project-aside {
  display: grid;
  gap: 1.6rem;
}

/* the couple's page, live, while it's being made */
.sofar {
  margin: 0 0 3rem;
}

.sofar h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.sofar-device {
  width: 23.5rem;
  max-width: 100%;
  height: 40rem;
  margin-top: 1.2rem;
  padding: 0.6rem;
  border-radius: 2.4rem;
  background: #19201c;
  box-shadow: 0 30px 50px -28px rgba(30, 36, 51, 0.55);
}

.sofar-device iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 1.9rem;
  background: #fff;
}

.sofar .actions {
  margin-top: 1.2rem;
}

@media (max-width: 700px) {
  .sofar-device {
    display: none;
  }
}

/* why an address can be taken or cost more */
.why {
  margin-top: 1.4rem;
  padding: 0.9rem 1.1rem;
  background: var(--tint);
  border-radius: 8px;
}

.why summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
}

.why p {
  margin: 0.8rem 0 0;
  font-size: var(--small);
}

.choice-name {
  flex: 1;
  overflow-wrap: anywhere;
}

.choice-cost {
  flex: none;
  text-align: right;
  font-size: var(--small);
  line-height: 1.3;
  color: var(--stamp);
}

.choice-cost small {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
}

.choice-cost.included {
  color: var(--accent);
}

/* messages */
.messages h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.note-form {
  margin: 1rem 0 2rem;
}

.thread {
  list-style: none;
  margin: 0;
  padding: 0;
}

.msg {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--small);
}

.msg-customer .avatar {
  background: var(--hi);
  color: var(--ink);
}

.msg-system .avatar {
  background: var(--accent-tint);
  color: var(--accent);
}

.msg-meta {
  margin: 0 0 0.2rem;
}

.msg-meta time {
  color: var(--ink-soft);
  font-size: var(--small);
  margin-left: 0.4rem;
}

.msg-text {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* On phones: title, what's happening now, the order checklist, then
   messages, so the checklist isn't buried under a long conversation. */
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .project-main,
  .project-aside {
    display: contents;
  }
  .p-title {
    order: 1;
  }
  .now-card {
    order: 2;
  }
  .sofar {
    order: 3;
  }
  .project-aside .side-card:first-child {
    order: 4;
  }
  .messages {
    order: 5;
  }
  .project-aside .side-card {
    order: 4;
    margin-bottom: 1.6rem;
  }
  .project-aside .side-help {
    order: 6;
  }
}

/* ---- dashboard --------------------------------------------------------------- */

.admin {
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

.admin h1 {
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
}

.admin h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-top h1 {
  margin: 0;
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--stamp);
  color: #fff;
  font-family: 'Atkinson', sans-serif;
  font-size: var(--small);
  font-weight: 700;
  vertical-align: middle;
}

.setup {
  margin: 1.4rem 0 0;
  padding: 1rem 1.2rem;
  background: var(--hi-soft);
  border: 2px solid var(--hi-deep);
  border-radius: 10px;
}

.setup summary {
  font-weight: 700;
  cursor: pointer;
}

.setup ul {
  margin: 0.8rem 0;
}

.a-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.a-row a {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.a-row a:hover {
  background: var(--tint);
}

.a-no {
  font-weight: 700;
  color: var(--stamp);
  font-variant-numeric: tabular-nums;
}

.a-main {
  display: flex;
  flex-direction: column;
}

.a-main .muted {
  font-size: var(--small);
}

.a-stage {
  text-align: right;
  font-size: var(--small);
}

@media (max-width: 600px) {
  .a-row a {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .a-stage {
    text-align: left;
  }
}

.archived {
  margin-top: 2rem;
}

.archived summary {
  cursor: pointer;
  font-weight: 700;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1.5rem;
  align-items: start;
}

.admin-grid > div {
  display: grid;
  gap: 1.6rem;
}

.a-card {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.a-card h2 {
  margin-top: 0;
}

.a-card h3 {
  margin-top: 1.4rem;
}

.a-card .form {
  margin-top: 1rem;
}

.a-card .actions {
  margin: 1rem 0 0;
  gap: 0.6rem;
}

.pre {
  white-space: pre-line;
  background: var(--tint);
  padding: 0.8rem 1rem;
  border-radius: 8px;
}

.thread-admin {
  margin-top: 1.4rem;
}

.inline-form {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- long text (privacy, terms) ----------------------------------------------- */

.prose {
  max-width: 44rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.2rem;
}

.prose ul {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.6rem;
}

/* ---- motion ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .actions,
  .note-form {
    display: none;
  }
}

/* Phone numbers never break across two lines. */
a[href^='tel:'],
a[href^='sms:'] {
  white-space: nowrap;
}

.scene-note {
  margin: 0.9rem 0 0;
  font-size: var(--small);
  color: var(--ink-soft);
  text-align: center;
}

/* ---- package picker (request form) ----------------------------------------- */

.pkg-pick {
  margin: 0 0 1.8rem;
}

.choice-pkg {
  align-items: flex-start;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.choice-pkg input {
  margin-top: 0.15rem;
}

.choice-name small,
.extra small {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: var(--small);
  line-height: 1.4;
}

.choice-name .tag {
  margin-left: 0.3rem;
  vertical-align: 0.1em;
  font-size: 0.8rem;
}

.extras-pick {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 2px solid var(--line);
  border-radius: 8px;
}

.extras-pick summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
}

.extras-pick[open] summary {
  margin-bottom: 0.8rem;
}

.extra {
  align-items: flex-start;
  margin: 0;
  padding: 0.5rem 0;
  border-top: 1px dashed var(--line);
}

.extra input {
  margin-top: 0.2rem;
  flex: none;
}

.extra-price {
  color: var(--accent);
  font-weight: 700;
  margin-left: 0.2rem;
}

.extra.is-included {
  opacity: 0.75;
}

.estimate {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--hi-soft);
  border-left: 5px solid var(--hi-deep);
  border-radius: 0 8px 8px 0;
  font-weight: 700;
}

/* ---- packages (homepage) ------------------------------------------------------ */

.tickets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2.6rem;
  align-items: stretch;
}

.tickets .ticket {
  display: flex;
  flex-direction: column;
  padding-top: 2.2rem;
}

.ticket-name {
  font-family: 'Young Serif', Georgia, serif;
  font-weight: 400;
  font-size: 1.45rem;
  margin: 0;
}

.tickets .ticket-amount {
  font-size: clamp(2.6rem, 2rem + 2vw, 3.3rem);
  margin: 0.35rem 0 0.5rem;
}

.ticket-blurb {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.tickets .ticket-list {
  margin-bottom: 1.6rem;
}

.tickets .ticket .btn {
  margin-top: auto;
}

.ticket-pop {
  border-color: var(--accent);
  border-width: 3px;
  box-shadow: 8px 8px 0 var(--accent-tint);
}

.ticket-flag {
  position: absolute;
  top: -0.95rem;
  left: 1.2rem;
  margin: 0;
  padding: 0.1rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--small);
}

.extra-cost {
  color: var(--accent);
  margin-left: 0.3rem;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tickets {
    grid-template-columns: 1fr;
    max-width: 30rem;
    gap: 2.4rem;
  }
}

/* the "morning after" text */
.morning {
  margin: 1.4rem 0;
  padding: 1.2rem 1.3rem;
  background: var(--hi-soft);
  border-radius: 10px;
}

.morning h3 {
  margin-top: 0;
}

.morning-text {
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 14px 14px 14px 4px;
  overflow-wrap: anywhere;
}

.morning .actions {
  margin: 0.8rem 0 0;
}

/* ---- icons (lib/icons.js) ------------------------------------------------------ */

.icon {
  display: block;
  flex: none;
  width: 3.4rem;
  height: 3.4rem;
  color: var(--accent);
}

.icon .dot {
  fill: var(--hi);
}

.icon .ink {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .fill {
  fill: var(--paper);
}

.icon .solid {
  fill: currentColor;
}

/* small, line-only icons inside buttons and links */
.icon-plain {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  vertical-align: -0.25em;
  color: inherit;
}

.icon-plain .ink {
  stroke-width: 3.2;
}

.icon-plain .fill {
  fill: none;
}

/* ---- how it works ------------------------------------------------------------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem 2.2rem;
  margin: 2.4rem 0 0;
  padding: 0;
}

.steps .icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
}

.steps h3 {
  font-size: 1.2rem;
}

.steps p {
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
  }
  .steps .icon {
    grid-row: span 2;
    width: 3.4rem;
    height: 3.4rem;
    margin: 0;
  }
}

/* ---- what makes it different ------------------------------------------------- */

.different {
  background: var(--tint);
}

.reasons {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.2rem 3rem;
  margin: 2.4rem 0 0;
  padding: 0;
}

.reasons li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.reasons .icon .fill {
  fill: var(--paper);
}

.reasons h3 {
  font-size: 1.2rem;
  margin-top: 0.4rem;
}

.reasons p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 30em;
}

@media (max-width: 760px) {
  .reasons {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

/* ---- every package / extras ---------------------------------------------------- */

.every {
  margin-top: 2.6rem;
}

.every h3 {
  margin: 0 0 1rem;
}

.every-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem 1.6rem;
  margin: 0;
  padding: 0;
}

.every-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.every-list .icon {
  width: 2.9rem;
  height: 2.9rem;
}

@media (max-width: 900px) {
  .every-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .every-list {
    grid-template-columns: 1fr;
  }
}

.extras-more {
  margin-top: 2.4rem;
  padding: 1rem 1.3rem;
  background: var(--paper);
  border: 1px solid #f0d8d5;
  border-radius: 10px;
  max-width: 44rem;
}

.extras-more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
}

.extras-rows {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.extras-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px dashed var(--line);
}

.extras-rows small {
  display: block;
  color: var(--ink-soft);
  font-size: var(--small);
}

.extras-more > p {
  margin: 0;
  font-size: var(--small);
}

.btn .icon-plain {
  margin-right: 0.1em;
}

/* ---- side cards on the family's page ------------------------------------------- */

.side-card {
  padding: 1.3rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.side-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.side-card .actions {
  margin: 1rem 0 0;
}

.side-help {
  background: var(--tint);
  border-color: var(--tint);
}

.track-for {
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 1rem;
}

.track-for span {
  font-weight: 400;
  color: var(--ink-soft);
}

/* the steps, joined by a thin line */
.track {
  list-style: none;
  margin: 0;
  padding: 0;
}

.track li {
  position: relative;
  display: flex;
  gap: 0.85rem;
  padding: 0 0 1rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.track li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: calc(0.7rem - 1px);
  top: 1.5rem;
  bottom: 0.1rem;
  width: 2px;
  background: var(--line);
}

.track li.track-done:not(:last-child)::before {
  background: var(--accent);
}

.track-mark {
  position: relative;
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--paper);
}

.track-done,
.track-now {
  color: var(--ink);
}

.track-done .track-mark {
  border-color: var(--accent);
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.4 3.4L15.5 6.5' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 85% no-repeat;
}

.track-now .track-mark {
  border: 3px solid var(--accent);
}

.track-now .track-mark::after {
  content: '';
  position: absolute;
  inset: 0.2rem;
  border-radius: 50%;
  background: var(--accent);
}

.track-now {
  font-weight: 700;
}

.track small {
  display: block;
  font-weight: 400;
  color: var(--accent);
  font-size: var(--small);
}

.track-no {
  margin: 0.4rem 0 0;
  font-size: var(--small);
  color: var(--ink-soft);
}

/* the price */
.bill {
  width: 100%;
  border-collapse: collapse;
}

.bill th,
.bill td {
  padding: 0.45rem 0;
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}

.bill td {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bill tbody tr + tr th,
.bill tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.bill tfoot th,
.bill tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--ink);
  padding-top: 0.6rem;
}

/* small labels: "Recommended", "In progress", dashboard to-dos */
.tag {
  display: inline-block;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  font-size: var(--small);
  font-weight: 700;
  line-height: 1.5;
}

.tag-now {
  background: var(--accent);
  color: #fff;
}

.footer-list a:has(.icon-plain) {
  text-decoration: none;
}

.footer-list a:has(.icon-plain) span {
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

.footer-list .icon-plain {
  margin-right: 0.45rem;
  color: var(--accent);
}
