:root {
  --paper: #fffaf2;
  --ink: #24211f;
  --muted: #6e625a;
  --gold: #c28b2c;
  --teal: #0d7f79;
  --ruby: #8f2d3b;
  --sage: #6d8b74;
  --white: #ffffff;
  --line: rgba(36, 33, 31, 0.14);
  --shadow: 0 20px 60px rgba(36, 33, 31, 0.12);
  --radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(13, 127, 121, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(194, 139, 44, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  content: "";
  border: 1px solid rgba(194, 139, 44, 0.22);
  transform: rotate(45deg);
}

body::before {
  top: -220px;
  left: -160px;
}

body::after {
  right: -180px;
  bottom: -240px;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  min-height: 82svh;
  padding: 18px clamp(16px, 4vw, 48px) 56px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.9), rgba(255, 250, 242, 0.7)),
    url("/assets/ornament.svg") center 78% / min(980px, 110vw) auto no-repeat;
}

.topbar,
.section__content,
.hero__inner,
.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 36px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark__sign {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-weight: 700;
}

.brand-mark__text,
.nav-links {
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--teal);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}

.hero__copy {
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--ruby);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: clamp(3.8rem, 13vw, 8.5rem);
  font-weight: 500;
  line-height: 0.88;
}

.ampersand {
  color: var(--gold);
  font-size: 0.56em;
  line-height: 0.8;
}

.hero__subtitle,
.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.date-strip {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 14px;
  margin: 14px 0 26px;
  padding: 12px 16px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  color: var(--teal);
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-actions,
.form-actions,
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.button--primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 10px 28px rgba(13, 127, 121, 0.22);
}

.button--primary:hover {
  background: #0a6d68;
}

.button--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
}

.button--danger {
  color: var(--white);
  background: var(--ruby);
}

.hero__art {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero__art img {
  width: min(100%, 560px);
  border: 1px solid rgba(194, 139, 44, 0.3);
  box-shadow: var(--shadow);
}

.seal {
  position: absolute;
  display: grid;
  width: min(44vw, 210px);
  aspect-ratio: 1;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 28%, transparent 29%),
    var(--ruby);
  border: 10px double var(--gold);
  border-radius: 50%;
  font-size: clamp(1.5rem, 4vw, 2.7rem);
}

.section {
  padding: clamp(58px, 9vw, 108px) 0;
  border-bottom: 1px solid var(--line);
}

.section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.38);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
}

.info-panel,
.map-panel,
.rsvp-form,
.admin-login,
.stats-grid,
.toolbar,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.info-panel,
.map-panel {
  padding: clamp(20px, 4vw, 34px);
}

.event-list {
  display: grid;
  gap: 20px;
  margin: 0;
}

.event-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.event-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--ruby);
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 8px 0 0;
  font-size: 1.15rem;
}

.parents-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(13, 127, 121, 0.92), rgba(143, 45, 59, 0.9)),
    url("/assets/ornament.svg") center / cover;
}

.parents-section .section-kicker,
.parents-section .lead {
  color: rgba(255, 255, 255, 0.78);
}

.parents-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
}

.parents-grid p {
  margin: 0;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--teal);
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.palette {
  display: grid;
  gap: 14px;
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.swatch {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(36, 33, 31, 0.2);
  border-radius: 50%;
  background: var(--gold);
}

.map-panel {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.map-panel p {
  margin: 0;
  color: var(--muted);
}

.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.deadline {
  color: var(--ruby);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.rsvp-form,
.admin-form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

label,
legend,
.consent {
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(36, 33, 31, 0.22);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 127, 121, 0.15);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid label,
.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.62);
}

.choice-grid input,
.consent input {
  width: auto;
  min-height: auto;
  margin-top: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 14px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  color: var(--teal);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.form-status.is-error {
  color: var(--ruby);
}

.footer {
  padding: 26px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.footer p {
  margin: 0;
}

.admin-body {
  min-height: 100svh;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(255, 250, 242, 0.78)),
    url("/assets/ornament.svg") center top / min(1200px, 180vw) auto no-repeat,
    var(--paper);
}

.admin-shell {
  padding: clamp(28px, 5vw, 54px) 0;
}

.admin-login {
  width: min(540px, 100%);
  margin: 8vh auto 0;
  padding: clamp(22px, 4vw, 38px);
}

.admin-heading h1,
.dashboard-top h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 500;
}

.admin-heading p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 0;
}

.stats-grid div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.stats-grid span {
  color: var(--teal);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1;
}

.stats-grid small,
.toolbar span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
}

.search-field,
.select-field {
  display: grid;
  gap: 8px;
}

.table-wrap {
  overflow-x: auto;
}

.guest-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.guest-table th,
.guest-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guest-table th {
  color: var(--ruby);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.guest-name-cell {
  font-weight: 800;
}

.guest-name-cell small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.status-cell {
  font-weight: 800;
}

.status-yes {
  color: var(--teal);
}

.status-maybe {
  color: var(--gold);
}

.status-no {
  color: var(--ruby);
}

.icon-danger {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(143, 45, 59, 0.28);
  border-radius: 50%;
  color: var(--ruby);
  background: rgba(143, 45, 59, 0.08);
  font-size: 1.35rem;
  line-height: 1;
}

.icon-danger:hover {
  color: var(--white);
  background: var(--ruby);
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-bottom: 34px;
  }

  .hero__inner,
  .split,
  .rsvp-layout {
    grid-template-columns: 1fr;
  }

  .hero__art {
    min-height: 280px;
    order: -1;
  }

  .hero__art img {
    width: min(100%, 460px);
  }

  .choice-grid,
  .form-grid,
  .toolbar,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-top {
    display: grid;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    display: grid;
    gap: 8px;
  }

  .date-strip {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .hero-actions,
  .form-actions,
  .dashboard-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .parents-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer__inner {
    display: grid;
  }
}
