@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Saira+Stencil+One&display=swap');

:root {
  --ink: #101010;
  --paper: #faf9f6;
  --white: #ffffff;
  --red: #e10600;
  --yellow: #ffcc00;
  --gray: #6b6b6b;
  --green: #2fa84f;
  --navy: #1a2744;
  --navy-light: #263a63;
  --plate-gray: #c9cdd2;
  font-size: 17px;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow Condensed", -apple-system, sans-serif;
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.tabular { font-variant-numeric: tabular-nums; }

/* ============================================================
   PASSWORD GATE — invite card (straight, no rotation on this page)
   ============================================================ */

.gate-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background-color: var(--paper);
  overflow: hidden;
}

.invite-backing {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 396px;
  background-image: repeating-linear-gradient(135deg, var(--ink) 0 14px, var(--red) 14px 28px, var(--yellow) 28px 42px);
  border-radius: 16px;
  padding: 13px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.invite-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 10px 24px;
  text-align: center;
}

.invite-heading {
  margin: 0 0 12px;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.5rem;
  color: var(--red);
}

.plate-img {
  width: 100%;
  margin: 0 auto 16px;
  border-radius: 8px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.password-input {
  width: 100%;
  padding: 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.password-input:focus {
  outline: none;
  border-color: var(--red);
}

.gate-button {
  width: 100%;
  padding: 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.05rem;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}

.gate-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.gate-error {
  margin: 12px 0 0;
  text-align: center;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================================
   PARTY PAGE — collage layout
   ============================================================ */

.top-checker {
  height: 26px;
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--yellow), var(--yellow)),
    linear-gradient(var(--yellow), var(--yellow)),
    repeating-linear-gradient(90deg, var(--white) 0 16px, transparent 16px 34px);
  background-size: 100% 3px, 100% 3px, 100% 4px;
  background-position: top, bottom, center;
  background-repeat: no-repeat, no-repeat, repeat-x;
}

.collage {
  max-width: 460px;
  margin: 0 auto;
  padding: 12px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* --- Hero car photo --- */

.hero-car {
  display: block;
  width: 58%;
  max-width: 225px;
  margin: -36px auto -26px;
  position: relative;
  z-index: 2;
  transform: rotate(-5deg);
  filter: drop-shadow(6px 10px 0 rgba(16, 16, 16, 0.15));
}

/* --- Ticket / invite card --- */

.ticket {
  position: relative;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px 20px 20px;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ticket-eyebrow {
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--red);
  margin: 0 0 4px;
}

.ticket-title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2.3rem;
  line-height: 0.9;
  margin: 0;
}

.ticket-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
}

.ticket-tag {
  margin: 10px 0 0;
  font-size: 1rem;
  color: var(--gray);
}

.photo-slot {
  flex-shrink: 0;
  width: 124px;
  height: 124px;
  margin: 0;
  transform: translate(-25px, 3px);
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink);
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ticket-perf {
  border: none;
  border-top: 2px dashed var(--ink);
  margin: 20px 0 16px;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dotted #c9c4b8;
  font-size: 1.15rem;
}

.ticket-row:last-child { border-bottom: none; }

.ticket-row .label {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gray);
}

.ticket-row .value {
  font-weight: 500;
  text-align: right;
  text-decoration: none;
}

a.value:hover,
a.value:focus-visible {
  text-decoration: underline;
}

#party-address {
  font-size: 0.95rem;
}

/* --- Polaroid photo --- */

.polaroid {
  position: relative;
  width: 72%;
  max-width: 260px;
  margin: -4px auto 0;
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 10px 10px 36px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(1.2deg);
  z-index: 1;
}

.polaroid img {
  width: 100%;
  display: block;
}

.polaroid-caption {
  position: absolute;
  bottom: 8px;
  left: 6px;
  right: 6px;
  margin: 0;
  text-align: center;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
  z-index: 4;
}

.polaroid .deco-wheel {
  position: absolute;
  bottom: -84px;
  left: -84px;
  width: 119px;
  transform: rotate(-14deg);
  z-index: 3;
  filter: drop-shadow(3px 5px 0 rgba(16, 16, 16, 0.2));
}

.polaroid-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 74px;
  height: 26px;
  background: rgba(255, 204, 0, 0.85);
  border: 1px solid rgba(16, 16, 16, 0.15);
  transform: translateX(-50%) rotate(-1.5deg);
  z-index: 2;
}

/* --- Paired badges --- */

.badge-row {
  display: flex;
  gap: 16px;
}

.badge {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 999px;
  aspect-ratio: 1;
  padding: 6px;
  box-shadow: 5px 5px 0 var(--ink);
}

.badge:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }

.badge-icon { font-size: 2.4rem; }

.badge-icon-img {
  width: 56px;
  height: auto;
  display: block;
}

.badge-label {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1;
}

.badge-sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-maps {
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(-3deg);
}

.badge-rsvp {
  background: var(--red);
  color: var(--white);
  transform: rotate(3deg);
}

/* --- Countdown strip --- */

.countdown {
  position: relative;
  margin-top: -12px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--red);
  padding: 18px 12px;
  transform: rotate(-1deg);
}

.deco-keys {
  position: absolute;
  top: -82px;
  right: -8px;
  width: 59px;
  transform: rotate(12deg);
  z-index: 3;
  filter: drop-shadow(3px 5px 0 rgba(16, 16, 16, 0.2));
}

.countdown-label {
  text-align: center;
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 12px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown-unit {
  text-align: center;
  color: var(--white);
}

.countdown-num {
  display: block;
  font-family: "Anton", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  min-width: 2ch;
}

.countdown-unit-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b8b8b8;
}

.countdown-done {
  text-align: center;
  color: var(--yellow);
  font-family: "Anton", sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
}

/* --- Registry bubble --- */

.bubble {
  position: relative;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px 20px 22px;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 36px;
  bottom: -14px;
  width: 0;
  height: 0;
  border: 14px solid transparent;
  border-top-color: var(--ink);
  border-bottom: 0;
}

.bubble::before {
  content: "";
  position: absolute;
  left: 39px;
  bottom: -9px;
  width: 0;
  height: 0;
  border: 11px solid transparent;
  border-top-color: var(--white);
  border-bottom: 0;
  z-index: 1;
}

.bubble h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.3rem;
  margin: 0 0 8px;
  color: var(--red);
}

.bubble p {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--ink);
  font-style: italic;
}

.bubble p.wishlist-emphasis {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.15;
  margin: 0 0 10px;
}

/* --- Pit-stop info arch --- */

.arch-wrap {
  position: relative;
}

.deco-tire {
  position: absolute;
  bottom: -87px;
  right: -14px;
  width: 112px;
  transform: rotate(20deg);
  z-index: 2;
  filter: drop-shadow(3px 5px 0 rgba(16, 16, 16, 0.2));
}

.arch {
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 130px 130px 16px 16px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 34px 26px 22px;
  text-align: center;
}

.arch h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.arch p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.arch p:last-child {
  margin-bottom: 0;
}

/* --- Buttons (shared) --- */

.pill-btn {
  display: inline-block;
  padding: 10px 22px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
}

.pill-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.ticket-cta {
  margin-top: 16px;
  text-align: center;
}

/* --- Decorative bunting --- */

.bunting-img {
  display: block;
  width: 100%;
  max-width: 418px;
  margin: 0 auto -40px;
  position: relative;
  z-index: 1;
}

.bunting-top {
  margin-top: -12px;
}

.bunting-bottom {
  margin-top: -20px;
}

.footer {
  text-align: center;
  padding: 8px 20px 12px;
  color: var(--gray);
  font-size: 1rem;
}

.footer-tight {
  margin-top: -46px;
}

.footer-party {
  margin-top: -31px;
}

/* ============================================================
   BACK LINK — shared by sub-pages (rsvp, gift ideas)
   ============================================================ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--red);
}

/* ============================================================
   RSVP PAGE — stoplight
   ============================================================ */

.rsvp-card {
  text-align: center;
  transform: none;
  margin-top: -10px;
}

.rsvp-card .ticket-eyebrow {
  font-size: 0.85rem;
}

.rsvp-title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 1;
  margin: 0 0 10px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rsvp-label {
  display: block;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gray);
  margin: 8px 0 2px;
}

.rsvp-input {
  width: 100%;
  padding: 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  -webkit-appearance: none;
  appearance: none;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.rsvp-input:focus {
  outline: none;
  border-color: var(--red);
}

.stoplight {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 6px 6px 0 var(--red);
}

.light {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--white);
  text-align: left;
}

.light:active {
  transform: translate(1px, 1px);
}

.light-lens {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.25);
}

.light-go {
  background: var(--green);
  box-shadow: 0 0 18px rgba(47, 168, 79, 0.65);
}

.light-caution {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 0 18px rgba(255, 204, 0, 0.65);
}

.light-caution .light-lens {
  background: rgba(16, 16, 16, 0.25);
}

.light-stop {
  background: var(--red);
  box-shadow: 0 0 18px rgba(225, 6, 0, 0.65);
}

.rsvp-thanks {
  text-align: center;
}

.rsvp-thanks-title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin: 10px 0 8px;
  color: var(--red);
}

.rsvp-thanks .pill-btn {
  margin-top: 8px;
}

.rsvp-error {
  margin: 14px 0 0;
  text-align: center;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================================
   GIFT IDEAS PAGE
   ============================================================ */

.gift-intro {
  text-align: center;
  transform: none;
}

.gift-intro .ticket-eyebrow {
  font-size: 0.85rem;
}

.gift-title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2.1rem;
  line-height: 0.95;
  margin: 0 0 14px;
}

.gift-subtext {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

.gift-list {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 4px 20px;
  box-shadow: 6px 6px 0 var(--ink);
}

.gift-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dotted #c9c4b8;
}

.gift-list-item:last-child {
  border-bottom: none;
}

.gift-list-icon {
  flex-shrink: 0;
  width: 40px;
  font-size: 1.9rem;
  line-height: 1.2;
  text-align: center;
}

.gift-list-text {
  min-width: 0;
}

.gift-list-name {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.1rem;
  line-height: 1.1;
  margin: 0 0 4px;
}

.gift-list-desc {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--gray);
  margin: 0;
}

.gift-more {
  text-align: center;
  color: var(--gray);
  font-style: italic;
  font-size: 0.95rem;
  margin: -6px 0 0;
}
