:root {
  --ink: #10131a;
  --cream: #f4efe4;
  --paper: #faf7f0;
  --cobalt: #1c4fd8;
  --cobalt-deep: #0e2d8a;
  --wax: #c41e3a;
  --line: rgba(16, 19, 26, 0.14);
  --muted: #5c5a54;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cobalt-deep);
}

h1,
h2,
h3,
.mark,
.kicker,
.strip b {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4.2rem, 12vw, 9rem);
  line-height: 0.85;
  margin: 0.05em 0 0.2em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
  margin: 0 0 1.1rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.45rem;
}

.kicker {
  color: var(--wax);
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.4rem;
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.mark {
  font-size: 1.7rem;
  color: var(--wax);
  text-decoration: none;
  flex-shrink: 0;
}

.mark span {
  color: var(--cobalt);
}

.mark {
  font-size: 1.7rem;
  color: var(--wax);
  text-decoration: none;
  flex-shrink: 0;
}

.mark span {
  color: var(--cobalt);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 0.85rem;
  margin-left: auto;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.bar-mail {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu {
  display: none;
  background: var(--ink);
  color: var(--cream);
  border: 0;
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem;
  padding: 2rem 1.4rem 1.2rem;
  align-items: stretch;
}

.card {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 2.2rem 2rem 1.8rem;
  box-shadow: 12px 12px 0 var(--cobalt);
  position: relative;
}

.card::after {
  content: "RSVP";
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: var(--wax);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: Anton, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  transform: rotate(12deg);
}

.seal {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
  padding-right: 4.8rem;
}

.lede {
  font-size: 1.12rem;
  max-width: 38rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 1.1rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn.cobalt {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt-deep);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.where {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero figure {
  margin: 0;
  border: 1px solid var(--ink);
  background: #000;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  filter: saturate(0.92) contrast(1.05);
}

.hero figcaption {
  padding: 0.7rem 0.9rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.82rem;
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.strip article {
  padding: 1rem 1.2rem;
  border-right: 1px solid var(--ink);
  min-width: 0;
}

.strip article:last-child {
  border-right: 0;
}

.strip span {
  display: block;
  overflow-wrap: anywhere;
}

.strip b {
  display: block;
  font-size: 1.4rem;
  color: var(--cobalt);
}

#invite,
.doors,
.rail,
.nights,
.city,
.notes,
.faq,
.rsvp {
  padding: 4.2rem 1.4rem;
}

.split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
}

.split p {
  font-size: 1.05rem;
}

aside {
  background: var(--ink);
  color: var(--cream);
  padding: 1.4rem 1.3rem;
}

aside h3 {
  color: #9bb4ff;
}

aside ul {
  padding-left: 1.1rem;
}

.door-switch,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
}

.door-switch button,
.filters button {
  background: transparent;
  border: 1px solid var(--ink);
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.door-switch button.on,
.filters button.on {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt-deep);
}

.door {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.door.show {
  display: grid;
}

.door img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.door div {
  padding: 1.4rem 1.3rem 1.5rem;
}

.rail-grid,
.note-grid,
.night-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.rail-grid article,
.note-grid article,
.night-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
}

.rail-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.rail-grid h3,
.rail-grid p,
.note-grid h3,
.note-grid p,
.night-grid h3,
.night-grid p {
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.rail-grid h3,
.note-grid h3,
.night-grid h3 {
  margin-top: 0.8rem;
}

.rail-grid p,
.note-grid p,
.night-grid p {
  padding-bottom: 1rem;
}

.nights {
  background: var(--ink);
  color: var(--cream);
}

.nights .kicker {
  color: #ff8ea0;
}

.night-grid article {
  background: transparent;
  border-color: rgba(244, 239, 228, 0.2);
  padding: 0.4rem 0 0.6rem;
}

.city .intro {
  max-width: 46rem;
  font-size: 1.12rem;
}

.city ol {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.city li {
  border-top: 4px solid var(--cobalt);
  padding-top: 0.8rem;
}

.city li h3::before {
  counter-increment: step;
  content: "0" counter(step) " / ";
  color: var(--wax);
}

.note-grid time {
  display: block;
  padding: 0.9rem 0.9rem 0;
  color: var(--wax);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq article {
  border-bottom: 1px solid var(--line);
}

.faq button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1rem 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  display: none;
  margin: 0 0 1rem;
  max-width: 44rem;
}

.faq article.open p {
  display: block;
}

.rsvp {
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.rsvp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

address {
  font-style: normal;
  margin: 1rem 0;
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--ink);
  background: #fff;
}

.fine,
.tiny {
  font-size: 0.82rem;
  color: var(--muted);
}

.status {
  min-height: 1.2em;
  font-weight: 700;
}

footer {
  padding: 2.2rem 1.4rem 2.6rem;
  background: var(--ink);
  color: var(--cream);
}

footer a {
  color: #9bb4ff;
}

footer .mark {
  color: #fff;
}

@media (max-width: 1180px) {
  .bar-mail {
    display: none;
  }
}

@media (max-width: 980px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    flex-direction: column;
    padding: 0.8rem 1.2rem 1.1rem;
    gap: 0.65rem;
  }

  nav.open {
    display: flex;
    z-index: 22;
    box-shadow: 0 16px 40px rgba(16, 19, 26, 0.12);
  }

  .menu {
    display: block;
    margin-left: auto;
  }

  .bar-mail {
    display: none;
  }

  .hero,
  .split,
  .door,
  .door.show,
  .rail-grid,
  .note-grid,
  .night-grid,
  .city ol,
  .rsvp-grid,
  .strip {
    grid-template-columns: 1fr;
  }

  .door.show {
    display: grid;
  }

  .strip article {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .hero img {
    min-height: 280px;
  }

  .card {
    padding: 1.6rem 1.15rem 1.4rem;
    box-shadow: 8px 8px 0 var(--cobalt);
  }

  .card::after {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 0.7rem;
    top: 0.85rem;
    right: 0.85rem;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .rail-grid,
  .note-grid {
    grid-template-columns: 1fr 1fr;
  }
}

section[id] {
  scroll-margin-top: 4.6rem;
}
