/*
  Two visual systems on one page, on purpose.

  .ticker / .hero / .badges / .details / .guestbook / .footer  -> the joke.
    A website from 1998. Hit counter, Netscape badges, guestbook, marquee.

  .card and everything inside it                               -> not the joke.
    System font, real spacing, visible focus rings, big touch targets.
    Someone is handing over their wedding date in here. It has to feel safe.

  PALETTE NOTE — do not brighten this.
    Deliberately dark and low-glare: no large saturated fields, no high-chroma
    complementary pairs touching, warm cream card instead of pure white. An
    earlier lime-on-purple version caused real eye strain. The period feel is
    carried by type, borders and copy, not by brightness.

  Single-theme on purpose. The page commits to one visual world (a 1998 site
  rendered dark), so there is no light/dark switch to maintain.
*/

:root {
  --ground: #151210;      /* warm near-black */
  --ground-2: #1f1a16;    /* raised panel */
  --red: #9e2b1e;         /* deep, muted firebrick */
  --red-lift: #b8382a;
  --amber: #d9a441;       /* accent ONLY, never a filled area */
  --cream: #f2ece1;       /* card surface */
  --cream-dim: #dfd6c7;
  --ink: #241f19;         /* text on cream */
  --muted: #6e655a;       /* secondary on cream */
  --on-dark: #e3d9cb;
  --on-dark-dim: #9a9086;
  --line: #ded5c6;
  --focus: #2c6bd8;
  --danger: #93221a;
  --ok: #2f6b45;
  --hairline: #322a24;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--on-dark);
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
}

.is-hidden {
  display: none !important;
}

/* ---------------- ticker ---------------- */

.ticker {
  overflow: hidden;
  background: #0c0a09;
  border-bottom: 1px solid var(--hairline);
  padding: 6px 0;
}

.ticker__track {
  display: inline-block;
  white-space: nowrap;
  color: var(--amber);
  opacity: 0.8;
  font-size: 12px;
  letter-spacing: 0.08em;
  animation: scroll 46s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- hero ---------------- */

.hero {
  text-align: center;
  padding: 26px 16px 28px;
  background: var(--ground-2);
  border-bottom: 3px solid var(--red);
}

/* Old-web portrait: heavy bevel, hard edges, no soft shadow. */
.hero__photo {
  width: 132px;
  height: 132px;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
  border: 3px solid var(--cream-dim);
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.hero__title {
  margin: 8px 0;
  font-size: clamp(30px, 8vw, 54px);
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: 0.5px;
  text-wrap: balance;
  text-shadow: 2px 2px 0 var(--red);
}

.hero__squiggle { color: var(--red-lift); }

.hero__tagline {
  margin: 0 0 16px;
  color: var(--on-dark);
  font-size: 16px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badges li {
  color: var(--amber);
  border: 1px solid #4a3d2e;
  border-radius: 2px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.badges li:nth-child(even) {
  color: var(--cream-dim);
  border-color: #463a33;
}

/* The one sincere thing above the fold. His words. */
.statement {
  max-width: 640px;
  margin: 26px auto 0;
  padding: 0 24px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(16px, 3.4vw, 20px);
  line-height: 1.55;
  color: var(--cream-dim);
  text-wrap: balance;
}

/* ---------------- the clean part ---------------- */

.shell { padding: 26px 14px 24px; }

.card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 12px;
  padding: 26px 24px 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
}

.steps {
  display: flex;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}

.steps__item {
  flex: 1;
  padding-top: 8px;
  border-top: 3px solid var(--line);
}

.steps__item.is-active {
  color: var(--ink);
  font-weight: 600;
  border-top-color: var(--red);
}

.steps__item.is-done { border-top-color: var(--ok); }

.panel__title {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.panel__note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.back {
  border: 0;
  background: none;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.back:hover { color: var(--ink); }

/* services */

.services { display: grid; gap: 10px; }

.service {
  display: block;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbf7ef;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.12s, background 0.12s;
}

.service:hover { border-color: var(--red); background: #fffdf8; }

.service__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.service__name { font-size: 15px; font-weight: 600; }
.service__price { font-size: 13px; color: var(--muted); white-space: nowrap; }

.service__blurb {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  display: block;
}

.service__meta { margin-top: 7px; font-size: 12px; color: var(--muted); display: block; }

.credentials {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* one day or two */

.dayopts { border: 0; padding: 0; margin: 0 0 18px; }

.dayopts__legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 500;
}

.dayopts__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.dayopt {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
}

.dayopt:hover { border-color: var(--red); }
.dayopt.is-selected { border-color: var(--red); background: #f7e9e4; }

.dayopt__label { display: block; font-size: 13.5px; font-weight: 600; }
.dayopt__hint { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* calendar */

.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal__month { font-size: 15px; }

.cal__nav {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
}

.cal__nav:hover:not(:disabled) { border-color: var(--red); }
.cal__nav:disabled { opacity: 0.35; cursor: default; }

.cal__dow,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal__dow {
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.day {
  aspect-ratio: 1;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #e9e1d4;
  color: #a79c8d;
  font-size: 14px;
  cursor: default;
  font-family: inherit;
}

.day.is-open {
  background: #fbf7ef;
  border-color: #d8c4b4;
  color: var(--red);
  font-weight: 600;
  cursor: pointer;
}

.day.is-open:hover { background: #fff; border-color: var(--red); }

.day.is-selected {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}

.day.is-empty { background: none; border: 0; }

.cal__status {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}

/* slots */

.slots { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.slots__title { margin: 0 0 12px; font-size: 14px; font-weight: 600; }

.slots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.slot {
  padding: 11px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.slot:hover { border-color: var(--red); background: #fff; }
.slot.is-selected { background: var(--red); border-color: var(--red); color: var(--cream); }

/* form */

.summary {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #f7f1e6;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.summary__caveat { color: var(--muted); }

.field { margin-bottom: 15px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 500;
}

.field__hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

.req { color: var(--danger); }

.field input,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: #fffdf8;
  color: var(--ink);
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus,
.service:focus-visible,
.slot:focus-visible,
.day:focus-visible,
.dayopt:focus-visible,
.submit:focus-visible,
.cal__nav:focus-visible,
.back:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.field input[aria-invalid="true"] { border-color: var(--danger); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: var(--cream);
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.submit:hover:not(:disabled) { background: var(--red-lift); }
.submit:disabled { opacity: 0.55; cursor: default; }

.error {
  margin: 4px 0 12px;
  padding: 11px 13px;
  background: #f9e9e6;
  border-left: 3px solid var(--danger);
  border-radius: 5px;
  color: #6d1a13;
  font-size: 13.5px;
  line-height: 1.45;
}

.disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* done */

.done { text-align: center; padding: 12px 0 6px; }

.done__mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e4efe7;
  color: var(--ok);
  font-size: 27px;
  line-height: 52px;
}

.done__when { margin: 0 0 10px; font-size: 16px; font-weight: 600; }

.done__note,
.done__email {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------------- real content ---------------- */

.details {
  max-width: 560px;
  margin: 0 auto;
  padding: 4px 16px 26px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.details h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
}

.details dl { margin: 0; display: grid; gap: 13px; }
.details dt { font-size: 13.5px; font-weight: 600; color: var(--cream-dim); }
.details dd { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--on-dark-dim); }

/* ---------------- back to the joke ---------------- */

.guestbook { max-width: 560px; margin: 0 auto; padding: 6px 16px 24px; text-align: center; }

.guestbook h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--amber);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.guestbook__empty { margin: 0 0 6px; font-size: 14.5px; color: var(--cream-dim); }

.guestbook__note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer {
  padding: 20px 16px 34px;
  text-align: center;
  border-top: 1px solid var(--hairline);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer__counter {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 9px;
  background: #0c0a09;
  border: 1px solid var(--hairline);
  color: var(--amber);
  opacity: 0.75;
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 2px;
}

.footer__legit {
  margin: 0 0 14px;
  font-size: 11.5px;
  color: var(--on-dark-dim);
  font-family: "Comic Sans MS", cursive;
}

.footer__dot { color: var(--ok); }

.footer__real { margin: 0 0 6px; font-size: 12px; color: var(--on-dark-dim); }
.footer__fine { color: var(--muted); }

/* Respect people who have asked for less movement. */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

@media (max-width: 460px) {
  .card { padding: 20px 16px 24px; }
  .steps { font-size: 11px; }
  .dayopts__row { grid-template-columns: 1fr; }
}
