@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/newsreader-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/newsreader-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/newsreader-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/source-sans-3-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f3eee4;
  --paper-deep: #e6dfd1;
  --sheet: #fbf8f2;
  --ink: #1c1915;
  --ink-soft: #3e3932;
  --line: #d4cbbd;
  --pine: #1b3a30;
  --pine-deep: #12281f;
  --cream: #f6f1e7;
  --copper: #8e3e1c;
  --danger: #7a2614;
  --white: #fffcf7;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Liberation Serif", serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --header: 4.25rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 90% 42% at 8% -8%, rgba(142, 62, 28, 0.08), transparent 52%),
    radial-gradient(ellipse 62% 34% at 100% 0%, rgba(27, 58, 48, 0.06), transparent 48%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
address {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

::selection {
  background: var(--pine);
  color: var(--cream);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.date-card :focus-visible,
.rsvp :focus-visible,
.btn-on-dark:focus-visible {
  outline-color: var(--cream);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--pine);
  color: var(--cream);
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.sr-only,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f3eee4;
  border-top: 4px solid var(--copper);
  border-bottom: 1px solid rgba(28, 25, 21, 0.08);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--pine);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.brand-text {
  min-width: 0;
}

.brand-name,
.brand-place {
  display: block;
  line-height: 1.15;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-place {
  margin-top: 0.12rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.nav-rsvp {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--pine);
  border-radius: 999px;
  color: var(--pine);
  font-weight: 600;
  text-decoration: none;
}

.nav-rsvp:hover {
  background: rgba(27, 58, 48, 0.06);
}

.hero {
  padding: 1.6rem 0 2.6rem;
}

.hero-grid,
.room-grid,
.place-grid,
.rsvp-grid {
  display: grid;
  gap: 1.15rem;
}

.hero-grid > *,
.room-grid > *,
.place-grid > *,
.rsvp-grid > * {
  min-width: 0;
}

.identity-name,
.identity-where {
  display: block;
}

.identity-name {
  color: var(--pine);
  font-weight: 600;
  font-size: 1.02rem;
}

.identity-where {
  margin-top: 0.15rem;
  color: var(--ink-soft);
}

.hero-title,
h2,
.date-num,
.who-list,
.rules h3,
.place address,
.host-line,
.group-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-title {
  font-size: clamp(2.45rem, 7vw, 4.6rem);
  line-height: 1.02;
  max-width: 12em;
}

.lede,
.deck {
  font-size: 1.12rem;
  max-width: 38rem;
}

.lede {
  color: var(--ink);
}

.deck {
  margin-top: 0.8rem;
  color: var(--ink-soft);
}

.date-card {
  max-width: min(26rem, 100%);
  background: var(--pine);
  color: var(--cream);
  border-radius: 1.25rem;
  padding: 1.2rem 1.2rem 1.05rem;
  box-shadow: 0 18px 40px rgba(18, 40, 31, 0.16);
}

.date-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.date-dow,
.pill,
.date-month,
.date-meta,
.date-address {
  color: var(--cream);
}

.date-dow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pill {
  margin: 0;
  border: 1px solid rgba(246, 241, 231, 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-month {
  margin-top: 0.85rem;
  font-size: 1.05rem;
}

.date-num {
  font-weight: 700;
  font-size: clamp(4.8rem, 18vw, 7.2rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums;
}

.date-meta {
  margin-top: 0.45rem;
  font-size: 1.02rem;
  font-variant-numeric: lining-nums;
}

.date-rule {
  height: 1px;
  margin: 1rem 0 0.9rem;
  background: rgba(246, 241, 231, 0.28);
}

.date-venue {
  font-weight: 600;
  font-size: 1.15rem;
}

.date-address {
  margin-top: 0.25rem;
  line-height: 1.4;
}

.directions {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.2rem;
  color: var(--cream);
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.hero-actions {
  display: grid;
  gap: 0.35rem;
}

.actions,
.place-actions,
.result-actions,
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.place-actions {
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--pine);
  color: var(--cream);
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--pine-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 25, 21, 0.28);
}

.btn-secondary:hover {
  background: rgba(28, 25, 21, 0.05);
}

.btn-on-dark {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(246, 241, 231, 0.62);
}

.btn-on-dark:hover {
  background: rgba(246, 241, 231, 0.08);
}

.btn-text {
  background: none;
  border: 0;
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  min-height: 44px;
  padding: 0.5rem 0.2rem;
  justify-content: flex-start;
}

.btn[disabled] {
  cursor: wait;
  background: var(--pine-deep);
  color: var(--cream);
}

.calendar-status {
  min-height: 1.4em;
  color: var(--pine);
  font-weight: 600;
}

.rsvp .calendar-status {
  color: var(--cream);
}

.calendar-status:empty {
  min-height: 0;
}

.section-label,
.practical span,
.rule-index,
.rsvp dt {
  display: block;
  margin: 0 0 0.7rem;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.room {
  background: var(--paper-deep);
  padding: 3.5rem 0;
}

.room h2,
.place h2,
.host-line,
.group-title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.08;
}

.who-list {
  margin-top: 1.5rem;
}

.who-list li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  line-height: 1.15;
}

.who-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.rules {
  margin-top: 0.2rem;
}

.rules li {
  padding: 0.95rem 0 1rem;
  border-top: 1px solid var(--line);
}

.rules li:last-child {
  border-bottom: 1px solid var(--line);
}

.rules h3 {
  font-size: 1.5rem;
  line-height: 1.15;
}

.rules p {
  margin-top: 0.3rem;
  color: var(--ink-soft);
}

.rule-index {
  margin-bottom: 0.3rem;
}

.place {
  padding: 3.5rem 0;
}

.place address {
  font-style: normal;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  margin: 0.55rem 0 0.3rem;
}

.practical {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.practical li {
  display: grid;
  gap: 0.12rem;
}

.practical span {
  margin: 0;
}

.group-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.2rem 1.15rem 1.3rem;
}

.group-card h2 + p,
.group-card .btn {
  margin-top: 0.75rem;
}

.group-card .section-label {
  margin-bottom: 0.45rem;
}

.rsvp {
  background: var(--pine);
  color: var(--cream);
  padding: 3.5rem 0;
}

.rsvp .section-label,
.rsvp dt {
  color: var(--cream);
}

.rsvp .deck {
  color: var(--cream);
}

.facts {
  margin-top: 1.4rem;
}

.facts div + div {
  margin-top: 0.15rem;
}

.rsvp dd {
  margin: 0 0 0.85rem;
  color: var(--cream);
}

.rsvp-calendar {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.rsvp-panel {
  background: var(--sheet);
  color: var(--ink);
  border-radius: 1.25rem;
  padding: 1.1rem 1rem 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.field {
  margin-bottom: 0.95rem;
}

.field label,
.choice label {
  font-weight: 600;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
}

.opt {
  color: var(--ink-soft);
  font-weight: 500;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #cfc4b4;
  border-radius: 0.8rem;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
}

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

.hint {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.field-error {
  margin-top: 0.35rem;
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status:not(:empty) {
  margin-bottom: 0.8rem;
  color: var(--danger);
  font-weight: 600;
}

.choice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.35rem;
}

.choice input {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  flex: none;
  accent-color: var(--pine);
}

.choice label {
  padding: 0.1rem 0 0.35rem;
  cursor: pointer;
}

.form-actions {
  margin-top: 1.1rem;
}

.rsvp-result h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.rsvp-result p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

.result-actions {
  margin-top: 1rem;
}

.copy-block {
  margin-top: 0.85rem;
  padding: 0.8rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI", monospace;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.host {
  padding: 3.4rem 0 2.6rem;
}

.host-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.host-photo {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.host-inner {
  max-width: 42rem;
}

.host-note {
  margin-top: 0.85rem;
  max-width: 40rem;
  color: var(--ink-soft);
}

.host-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@media (min-width: 600px) {
  .host-grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.75rem;
  }

  .host-photo {
    width: 7.5rem;
    height: 7.5rem;
  }
}

.site-footer {
  padding: 0 0 calc(1.6rem + env(safe-area-inset-bottom));
  color: var(--ink-soft);
}

.footer-inner {
  display: grid;
  gap: 0.25rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.footer-inner a {
  width: fit-content;
  margin-top: 0.45rem;
  color: var(--pine);
  font-weight: 600;
}

.noscript-inline,
.rsvp-panel noscript p {
  margin-top: 0.4rem;
  color: var(--ink);
}

@media (max-width: 599px) {
  .actions .btn,
  .place-actions .btn,
  .form-actions .btn,
  .result-actions .btn,
  .rsvp-calendar .btn {
    width: 100%;
  }
}

@media (min-width: 600px) {
  .wrap {
    width: min(1080px, calc(100% - 3rem));
  }

  .actions,
  .result-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .form-actions .btn {
    width: auto;
    min-width: 11rem;
  }
}

@media (min-width: 900px) {
  html {
    font-size: 18px;
  }

  .hero {
    padding: 3.1rem 0 4.2rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    grid-template-areas:
      "identity card"
      "title card"
      "lede card"
      "actions card";
    column-gap: 3.5rem;
    row-gap: 0.85rem;
    align-items: start;
  }

  .identity { grid-area: identity; }
  .hero-title { grid-area: title; }
  .lede { grid-area: lede; }
  .hero-actions { grid-area: actions; align-self: end; }
  .date-card {
    grid-area: card;
    max-width: none;
    align-self: start;
  }

  .room,
  .place,
  .rsvp {
    padding: 5rem 0;
  }

  .room-grid,
  .place-grid,
  .rsvp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .group-card {
    min-height: 100%;
  }

  .host {
    padding: 4.5rem 0 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .date-card,
  .btn,
  .group-card,
  .rsvp-panel {
    border: 1px solid ButtonText;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .rsvp,
  .group-card,
  .skip {
    display: none !important;
  }

  body {
    background: white;
  }

  .date-card {
    box-shadow: none;
  }
}
