:root {
  color-scheme: light;
  --paper: #f1f5f4;
  --paper-dark: #d9e6e9;
  --ink: #263f5d;
  --muted: #5d7080;
  --blue: #3c719b;
  --red: #c34840;
  --line: #c6d4d9;
  --white: #fafcfb;
  --serif: "HTOWERT", Georgia, serif;
  --sans: "HTOWERT", Georgia, serif;
  --content-width: 1120px;
}

@font-face {
  font-family: "HTOWERT";
  src: url("content/HTOWERT.TTF") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgb(38 63 93 / 5%) 0.65px, transparent 0.8px), radial-gradient(rgb(195 72 64 / 3%) 0.55px, transparent 0.8px);
  background-position: 0 0, 7px 11px;
  background-size: 8px 8px, 13px 13px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

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

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

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgb(38 63 93 / 15%);
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgb(241 245 244 / 94%);
  backdrop-filter: blur(12px);
}

.wordmark {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  text-decoration: none;
}

.wordmark span {
  color: var(--red);
  font-style: italic;
}

.main-navigation {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-navigation::-webkit-scrollbar {
  display: none;
}

.main-navigation a {
  flex: 0 0 auto;
  padding: 23px 0 20px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
  border-color: var(--red);
  color: var(--ink);
}

.loading-message,
.load-error {
  max-width: var(--content-width);
  min-height: 45vh;
  margin: 0 auto;
  padding: 100px 24px;
  color: var(--muted);
}

.wedding-hero {
  position: relative;
  display: block;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px) max(24px, calc((100vw - var(--content-width)) / 2));
  background-color: var(--paper-dark);
  background-image: radial-gradient(ellipse at 83% 22%, rgb(68 135 174 / 32%) 0, transparent 34%), radial-gradient(ellipse at 79% 73%, rgb(195 72 64 / 28%) 0, transparent 32%), radial-gradient(ellipse at 13% 88%, rgb(86 143 170 / 19%) 0, transparent 34%), radial-gradient(rgb(38 63 93 / 5%) 0.65px, transparent 0.8px);
  background-position: center, center, center, 11px 11px;
  background-size: auto, auto, auto, 18px 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.hero-top {
  display: grid;
  width: min(100%, 940px);
  grid-template-columns: minmax(210px, 0.8fr) minmax(300px, 1.2fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  margin: 0 auto;
}

.hero-details {
  display: grid;
  width: min(100%, 940px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  margin: 30px auto 0;
  border-top: 1px solid rgb(38 63 93 / 18%);
  padding-top: 20px;
}

.hero-date-copy {
  display: grid;
  gap: 3px;
}

.hero-date-copy .hero-date,
.hero-date-copy .hero-welcome {
  margin: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(660px, 100%);
  animation: arrive 700ms ease-out both;
}

.wedding-hero:not(:has(.hero-image)) .hero-copy {
  width: 58%;
}

.wedding-hero:not(:has(.hero-image))::after {
  position: absolute;
  top: 8%;
  right: max(24px, calc((100vw - var(--content-width)) / 2));
  display: grid;
  width: min(34vw, 370px);
  height: 84%;
  place-items: center;
  border: 1px solid rgb(60 113 155 / 38%);
  border-radius: 51% 45% 3px 6px / 40% 48% 6px 3px;
  background: radial-gradient(ellipse at 38% 28%, rgb(91 151 185 / 17%), transparent 48%), radial-gradient(ellipse at 72% 71%, rgb(195 72 64 / 11%), transparent 42%), rgb(250 252 251 / 38%);
  box-shadow: 18px 18px 0 rgb(195 72 64 / 15%), 0 0 34px rgb(60 113 155 / 10%);
  color: var(--blue);
  content: "I + A";
  font-family: var(--serif);
  font-size: clamp(58px, 9vw, 112px);
  font-style: italic;
  opacity: 0.76;
}

.eyebrow,
.section-kicker {
  margin: 0 0 17px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-names {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 12vw, 132px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-names span {
  color: var(--red);
  font-style: italic;
  font-weight: 500;
}

.hero-date {
  margin: 29px 0 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-welcome {
  max-width: 470px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.countdown {
  display: flex;
  gap: clamp(18px, 4vw, 42px);
  margin-top: 42px;
}

.countdown-item {
  display: grid;
  min-width: 56px;
  gap: 1px;
}

.countdown-value {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
}

.countdown-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-image {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 511 / 1050;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: 12px 14px 0 rgb(195 72 64 / 15%);
}

.hero-image img,
.section-image img,
.gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image img {
  position: absolute;
  inset: 0;
  object-fit: contain;
}

.rsvp-panel {
  position: relative;
  display: grid;
  min-height: 260px;
  aspect-ratio: 1.42;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--white);
  box-shadow: 10px 12px 0 rgb(60 113 155 / 13%);
}

.rsvp-artwork {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.rsvp-artwork img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: scale(1.75);
}

.rsvp-action {
  position: relative;
  z-index: 1;
  min-width: 150px;
  min-height: 62px;
  border: 2px solid var(--white);
  border-radius: 4px;
  padding: 12px 24px;
  background: var(--blue);
  box-shadow: 0 3px 12px rgb(38 63 93 / 20%);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.rsvp-action:disabled {
  opacity: 0.88;
  cursor: not-allowed;
}

.rsvp-note {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 8px;
  left: 12px;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  text-align: center;
}

.hero-image figcaption,
.section-image figcaption,
.gallery-image figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(transparent, rgb(0 0 0 / 55%));
  color: white;
  font-size: 12px;
}

.hero-image:has(img:not([src])) {
  display: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.content-section {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 24px;
  scroll-margin-top: 72px;
}

.content-section::before {
  position: absolute;
  top: 14px;
  left: 50%;
  width: min(240px, 68vw);
  aspect-ratio: 9 / 1;
  transform: translateX(-50%);
  background: url("images/Ribbon_divider2.png") center / contain no-repeat;
  content: "";
  pointer-events: none;
}

.content-section:nth-of-type(odd) {
  background-color: var(--white);
  background-image: radial-gradient(rgb(38 63 93 / 3%) 0.65px, transparent 0.8px);
  background-size: 9px 9px;
}

.section-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-kicker {
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.12;
}

.section-title::after {
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  transform: rotate(-1.5deg);
  border-radius: 46% 35% 65% 42%;
  background: var(--red);
  content: "";
  opacity: 0.72;
}

.section-description,
.section-copy {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
}

.ceremony-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 36px;
  margin: 0;
}

.detail-list div {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 21px;
}

.section-image {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(60 113 155 / 28%);
  background: radial-gradient(ellipse at 35% 30%, rgb(68 135 174 / 12%), transparent 60%), var(--paper-dark);
  box-shadow: 6px 7px 0 rgb(195 72 64 / 10%);
}

.section-image img {
  position: absolute;
  inset: 0;
}

.timeline {
  display: grid;
  max-width: 780px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 94px 18px minmax(0, 1fr);
  gap: 20px;
  min-height: 88px;
}

.timeline-time {
  padding-top: 2px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-marker::before {
  position: absolute;
  top: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.timeline-item:nth-child(even) .timeline-marker::before {
  border-color: var(--red);
}

.timeline-item:not(:last-child) .timeline-marker::after {
  position: absolute;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
}

.timeline-description {
  margin: 5px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-card {
  min-height: 165px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 3px 8px 4px 6px;
  background: var(--white);
  box-shadow: 3px 4px 0 rgb(60 113 155 / 8%);
}

.option-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.option-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.option-meta {
  color: var(--blue) !important;
  font-size: 12px !important;
  font-weight: 700;
}

.dress-code-block {
  display: flex;
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: clamp(28px, 5vw, 56px) 0;
}

.dress-code-name {
  flex: 0 0 auto;
  margin: 0;
  color: var(--blue);
  font-family: var(--serif);
  font-size: clamp(38px, 8vw, 76px);
  font-weight: 500;
}

.dress-code-description {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.guest-note {
  max-width: 760px;
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 22px;
  color: var(--muted);
  font-size: 18px;
}

.gift-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 32px;
}

.gift-mark {
  display: grid;
  width: min(230px, 60vw);
  aspect-ratio: 1;
  place-items: center;
  border: 1px dashed var(--red);
  border-radius: 50%;
  color: var(--red);
  font-family: var(--serif);
  font-size: 80px;
  font-style: italic;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 52px;
}

.gallery-image {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-dark);
}

.gallery-image img {
  position: absolute;
  inset: 0;
}

.contact-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.contact-methods {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.contact-methods a,
.contact-methods p {
  margin: 0;
  color: var(--blue);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-person {
  color: var(--muted) !important;
  font-size: 14px;
  font-weight: 400 !important;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 24px clamp(24px, 5vw, 72px);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1100px) {
  .hero-top {
    grid-template-columns: minmax(260px, 0.72fr) minmax(400px, 1.28fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    display: block;
    min-height: auto;
    padding: 9px 16px 0;
  }

  .wordmark {
    display: inline-block;
    padding: 0 0 3px;
  }

  .main-navigation {
    gap: 20px;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .main-navigation a {
    padding: 10px 0 12px;
  }

  .wedding-hero {
    padding: 30px 24px 42px;
  }

  .hero-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-image {
    align-self: center;
    width: min(235px, 68vw);
  }

  .rsvp-panel {
    width: min(100%, 460px);
    min-height: 230px;
    justify-self: center;
  }

  .hero-details {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 25px;
    padding-top: 16px;
  }

  .hero-date-copy .hero-date {
    font-size: 12px;
  }

  .hero-date-copy .hero-welcome {
    font-size: 15px;
  }

  .hero-welcome {
    font-size: 16px;
  }

  .countdown {
    gap: 28px;
  }

  .content-section {
    padding: 72px 24px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .ceremony-layout,
  .contact-layout,
  .gift-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-image {
    min-height: 240px;
  }

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

  .option-card {
    min-height: 0;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-image:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .gift-mark {
    width: 120px;
    font-size: 54px;
  }

  .contact-methods {
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 430px) {
  .detail-list {
    grid-template-columns: 1fr;
  }

  .dress-code-block {
    display: block;
  }

  .dress-code-description {
    margin-top: 12px;
  }

  .timeline-item {
    grid-template-columns: 68px 14px minmax(0, 1fr);
    gap: 13px;
  }

  .timeline-title {
    font-size: 21px;
  }

  .countdown {
    gap: 17px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
