:root {
  --paper: #fbfaf6;
  --paper-deep: #f2eadf;
  --ink: #253229;
  --muted: #687568;
  --sage: #55705f;
  --sage-dark: #2f493b;
  --rose: #8d5360;
  --clay: #b8644e;
  --gold: #c59a57;
  --line: rgba(37, 50, 41, 0.16);
  --shadow: 0 20px 70px rgba(37, 50, 41, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

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

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw;
  color: #fffaf2;
  background: linear-gradient(
    to bottom,
    rgba(27, 34, 28, 0.7),
    rgba(27, 34, 28, 0)
  );
}

.brand,
nav a {
  text-decoration: none;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

nav a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

nav a:focus-visible,
nav a:hover {
  background: rgba(255, 250, 242, 0.18);
}

.hero {
  min-height: 76svh;
  display: grid;
  align-items: end;
  padding: 7rem 5vw 4rem;
  color: #fffaf2;
  background:
    linear-gradient(
      90deg,
      rgba(21, 27, 22, 0.94) 0%,
      rgba(21, 27, 22, 0.86) 38%,
      rgba(21, 27, 22, 0.32) 68%,
      rgba(21, 27, 22, 0.14) 100%
    ),
    linear-gradient(to top, rgba(21, 27, 22, 0.55), rgba(21, 27, 22, 0.04) 58%),
    url("assets/wedding-weekend-photo-upright.jpg") right 46% / min(58vw, 56rem) auto no-repeat,
    var(--sage-dark);
}

.hero-content {
  width: min(100%, 44rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4d8a4;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  font-weight: 700;
}

h1 {
  margin-bottom: 1.15rem;
  font-size: 4.6rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.75rem;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

.summary-band {
  background: var(--sage-dark);
  color: #fffaf2;
  padding: 1rem 5vw;
}

.summary-grid {
  width: min(100%, 70rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 250, 242, 0.18);
  border: 1px solid rgba(255, 250, 242, 0.18);
}

.summary-grid article {
  min-height: 6rem;
  padding: 1rem;
  background: var(--sage-dark);
}

.summary-grid span {
  display: block;
  margin-bottom: 0.35rem;
  color: #eacb8b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-grid strong {
  display: block;
  line-height: 1.3;
}

.section {
  width: min(100% - 10vw, 70rem);
  margin: 0 auto;
  padding: 5rem 0;
}

.section-heading {
  max-width: 43rem;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.event-card {
  display: grid;
  grid-template-columns: minmax(8.6rem, 0.38fr) minmax(0, 1fr);
  min-height: 13rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}

.event-card-featured {
  grid-column: span 2;
}

.date-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 1.25rem;
  background: var(--paper-deep);
  border-right: 1px solid var(--line);
}

.date-block time {
  color: var(--sage-dark);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-block span {
  color: var(--rose);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  line-height: 1.12;
}

.event-body {
  padding: 1.35rem;
}

dl {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

dl > div {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.schedule-detail {
  grid-template-columns: 1fr;
}

dt {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.detail-note {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.name-list {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.map-link {
  display: block;
  width: fit-content;
  margin-top: 0.35rem;
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.map-link:focus-visible,
.map-link:hover {
  color: var(--clay);
}

.schedule-panel {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-deep);
}

.schedule-panel-title {
  margin-bottom: 0.65rem;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.event-timeline li {
  display: grid;
  grid-template-columns: minmax(8.6rem, 0.42fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.event-timeline li:first-child {
  padding-top: 0;
}

.event-timeline li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.event-timeline time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.event-timeline span {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.closing {
  display: grid;
  place-items: center;
  min-height: 21rem;
  padding: 4rem 5vw;
  background:
    linear-gradient(rgba(47, 73, 59, 0.88), rgba(47, 73, 59, 0.88)),
    url("assets/wedding-weekend-photo-upright.jpg") center 46% / cover no-repeat;
  color: #fffaf2;
  text-align: center;
}

.closing div {
  width: min(100%, 42rem);
}

.closing p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.82);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 5vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 0.9rem;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  nav a {
    padding-inline: 0.4rem;
  }

  .hero {
    min-height: 72svh;
    padding-top: 8.25rem;
    background:
      linear-gradient(
        90deg,
        rgba(21, 27, 22, 0.94) 0%,
        rgba(21, 27, 22, 0.82) 45%,
        rgba(21, 27, 22, 0.28) 100%
      ),
      linear-gradient(to top, rgba(21, 27, 22, 0.62), rgba(21, 27, 22, 0.08) 62%),
      url("assets/wedding-weekend-photo-upright.jpg") right 44% / min(66vw, 48rem) auto no-repeat,
      var(--sage-dark);
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .summary-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-card-featured {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
  }

  .brand {
    font-size: 1rem;
  }

  nav {
    font-size: 0.74rem;
  }

  .hero {
    min-height: 74svh;
    padding: 8.75rem 1.1rem 2.5rem;
    background:
      linear-gradient(rgba(21, 27, 22, 0.58), rgba(21, 27, 22, 0.76)),
      url("assets/wedding-weekend-photo-upright.jpg") 50% 42% / cover no-repeat;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .summary-band {
    padding-inline: 1.1rem;
  }

  .summary-grid article {
    min-height: auto;
  }

  .section {
    width: calc(100% - 2.2rem);
    padding: 3.75rem 0;
  }

  .event-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .date-block {
    gap: 0.65rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .date-block span {
    font-size: 1.22rem;
  }

  dl > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .event-timeline li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  footer {
    flex-direction: column;
  }
}
