:root {
  color-scheme: light;
  --paper: #fff8f3;
  --wine: #541b30;
  --wine-deep: #3c1322;
  --ink: #3f2b32;
  --muted: #75636a;
  --gold: #b38e59;
  --line: #dcc5bc;
  --serif: 'Italiana', Georgia, 'Times New Roman', serif;
  --script: 'Great Vibes', 'Brush Script MT', cursive;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--wine);
  color: var(--paper);
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

a:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 6px;
}

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

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

.page-width {
  width: min(1200px, calc(100% - 6rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 5;
  padding: 0.7rem 1rem;
  background: var(--wine);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 130px;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: grid;
  flex-shrink: 0;
  justify-items: center;
  color: var(--wine);
  text-decoration: none;
  font-family: var(--script);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.05;
  padding: 0.2rem 0.3rem 0;
}

.brand-detail {
  margin-top: 0.1rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 3rem);
  font-size: 0.9rem;
}

.site-header nav a {
  padding-block: 0.6rem;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
}

.site-header nav a:hover {
  text-decoration-color: currentColor;
}

.site-header .header-contact {
  color: var(--wine);
  font-weight: 600;
  text-decoration-color: var(--gold);
}

.introduction {
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3.75rem, 7.5vw, 7rem);
  text-align: center;
}

.introduction-flourish {
  display: block;
  width: 130px;
  height: 28px;
  margin: 0 auto 1.6rem;
  overflow: visible;
  color: var(--gold);
}

h1 {
  max-width: 960px;
  margin-inline: auto;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(3.1rem, 6.7vw, 6.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.introduction p {
  max-width: 580px;
  margin: 1.75rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  text-wrap: pretty;
}

.text-link {
  display: inline-block;
  color: var(--wine);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
}

.introduction-link {
  margin-top: 1.75rem;
  padding: 0.5rem 0.25rem;
}

.collection {
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.collection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.collection-heading h2 {
  max-width: 490px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

.collection-heading p {
  max-width: 310px;
  padding-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.invitation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.invitation {
  min-width: 0;
  text-decoration: none;
}

.preview {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  background: #b7a69b;
  border-radius: 3px;
}

.preview::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgb(31 16 18 / 8%) 64%, rgb(31 16 18 / 80%) 100%);
  pointer-events: none;
}

.preview img {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.preview-classic img {
  object-position: 50% 60%;
}

.preview-modern img {
  object-position: 68% 50%;
}

.preview-caption {
  position: absolute;
  right: 1rem;
  bottom: clamp(1.6rem, 4vw, 3rem);
  left: 1rem;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  color: #fff9ef;
  text-align: center;
  text-shadow: 0 2px 14px rgb(0 0 0 / 45%);
}

.preview-script {
  padding-inline: 0.2em;
  font-family: var(--script);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.15;
  font-weight: 400;
}

.preview-caption-detail {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.invitation-copy {
  padding: 1.4rem 0.1rem 0;
}

.invitation-copy h3 {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.1;
}

.invitation-copy p {
  max-width: 44ch;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.demo-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding-block: 0.2rem;
  color: var(--wine);
  border-bottom: 1px solid var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.invitation:hover .demo-link {
  border-color: var(--wine);
}

.demo-note {
  max-width: 640px;
  margin: 3rem auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.7;
}

.contact {
  background: var(--wine);
  color: #fff5eb;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.contact-copy {
  max-width: 660px;
}

.contact h2 {
  max-width: 17ch;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.8vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}

.contact p {
  max-width: 52ch;
  margin-top: 1.4rem;
  color: #e8d6d7;
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-actions {
  display: grid;
  flex-shrink: 0;
  justify-items: center;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.85rem 1.6rem;
  border: 1px solid #fff0da;
  border-radius: 2px;
  background: #fff0da;
  color: var(--wine-deep);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: #fff9f0;
}

.contact a:focus-visible {
  outline-color: #fff0da;
}

.contact-number {
  color: #e8d6d7;
  font-size: 0.85rem;
  letter-spacing: 0.025em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2rem;
  color: var(--muted);
}

.footer-brand {
  color: var(--wine);
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1.4;
}

.site-footer p {
  font-size: 0.8rem;
}

@media (min-width: 1600px) {
  .page-width {
    width: min(1320px, calc(100% - 8rem));
  }

  .preview {
    aspect-ratio: 0.9;
  }
}

@media (max-width: 900px) {
  .page-width {
    width: calc(100% - 3.5rem);
  }

  .site-header {
    min-height: 116px;
  }

  .site-header nav {
    gap: 1.5rem;
    font-size: 0.8rem;
  }

  .collection-heading {
    align-items: start;
  }

  .collection-heading p {
    max-width: 240px;
  }

  .contact-inner {
    gap: 2rem;
  }

  .button {
    padding-inline: 1.2rem;
  }
}

@media (max-width: 680px) {
  .page-width {
    width: calc(100% - 2.5rem);
  }

  .site-header {
    gap: 1rem;
    min-height: 104px;
    padding-block: 1.2rem;
  }

  .brand {
    font-size: 2.25rem;
  }

  .brand-detail {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  .site-header nav {
    justify-content: end;
    max-width: 125px;
    text-align: right;
    line-height: 1.4;
  }

  .site-header nav > a:first-child {
    display: none;
  }

  .site-header nav a {
    padding-block: 0.75rem;
  }

  .introduction {
    padding-top: 3.3rem;
    padding-bottom: 3.5rem;
  }

  .introduction-flourish {
    width: 110px;
    margin-bottom: 1.4rem;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.9rem, 9.5vw, 4rem);
  }

  .introduction p {
    max-width: 35ch;
    margin-top: 1.5rem;
    font-size: 0.95rem;
  }

  .introduction-link {
    margin-top: 1.25rem;
  }

  .collection-heading {
    display: block;
    margin-bottom: 1.5rem;
  }

  .collection-heading h2 {
    max-width: 17ch;
    font-size: 2.2rem;
  }

  .collection-heading p {
    max-width: 35ch;
    margin-top: 0.9rem;
  }

  .invitation-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .preview {
    aspect-ratio: 4 / 5;
  }

  .preview-caption {
    bottom: 2rem;
  }

  .preview-script {
    font-size: clamp(3.1rem, 10vw, 4.7rem);
  }

  .invitation-copy {
    padding-top: 1.2rem;
  }

  .invitation-copy h3 {
    font-size: 2.6rem;
  }

  .demo-link {
    margin-top: 1rem;
    padding-block: 0.5rem;
  }

  .demo-note {
    margin-top: 2.5rem;
    text-wrap: balance;
  }

  .contact-inner {
    display: block;
    padding-block: 3rem;
  }

  .contact h2 {
    max-width: 15ch;
    font-size: clamp(2.8rem, 9vw, 3.8rem);
  }

  .contact p {
    margin-top: 1.2rem;
  }

  .contact-actions {
    justify-items: start;
    margin-top: 1.8rem;
  }

  .contact-number {
    padding-left: 0.1rem;
  }

  .site-footer {
    display: block;
    padding-block: 1.7rem;
  }

  .site-footer p {
    margin-top: 0.5rem;
  }
}

@media (max-width: 360px) {
  .page-width {
    width: calc(100% - 2rem);
  }

  .brand {
    font-size: 2rem;
  }

  .site-header nav {
    max-width: 111px;
    font-size: 0.75rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  .preview-caption-detail {
    font-size: 0.68rem;
    letter-spacing: 0.025em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .introduction {
    animation: invitation-arrival 750ms ease-out both;
  }

  .preview img {
    transition: transform 700ms ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .invitation:hover .preview img {
      transform: scale(1.025);
    }
  }
}

@keyframes invitation-arrival {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
