@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Ovo";
  src: url("../fonts/ovo-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Shadows Into Light";
  src: url("../fonts/shadows-into-light-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --wine: #bf0043;
  --wine-dark: #7d002e;
  --ink: #3a3a3a;
  --muted: #5a534f;
  --paper: rgba(248, 245, 239, 0.95);
  --paper-strong: #fcfaf6;
  --gold: #dec067;
  --border: rgba(125, 0, 46, 0.14);
  --shadow: 0 28px 70px rgba(58, 58, 58, 0.18);
  --content-width: 1120px;
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  background: #ebe4dc;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(222, 192, 103, 0.18), transparent 26%),
    linear-gradient(180deg, #f6f2eb 0%, #ebe4dc 100%);
}

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

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(191, 0, 67, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(125, 0, 46, 0.18);
}

.site-header__inner {
  width: min(calc(100% - 2rem), var(--content-width));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: min(250px, 60vw);
  filter: brightness(0) invert(1);
}

.hero,
.page-section {
  position: relative;
  overflow: clip;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(58, 58, 58, 0.58), rgba(191, 0, 67, 0.5)),
    linear-gradient(180deg, rgba(125, 0, 46, 0.2), rgba(125, 0, 46, 0.72)),
    url("../images/vintage-hero.jpg") center / cover no-repeat;
  transform: scale(1.03);
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(235, 228, 220, 0), rgba(235, 228, 220, 0.98));
}

.hero__inner,
.page-section__inner {
  position: relative;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 5rem 0 6rem;
}

.hero__inner {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
}

.page-section__inner {
  min-height: calc(100vh - 92px - 110px);
  display: grid;
  align-items: start;
}

.message-card,
.content-card {
  width: min(100%, 760px);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.message-card {
  text-align: left;
}

.message-card__kicker,
.content-card__kicker {
  margin: 0 0 0.7rem;
  color: var(--wine);
  font-family: "Shadows Into Light", cursive;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.message-card h1,
.content-card h1 {
  margin: 0;
  font-family: "Ovo", serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.message-card__lead {
  margin: 1.2rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: var(--muted);
}

.message-card__content,
.message-card__content p {
  margin: 1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink);
}

.message-card__content {
  overflow-wrap: anywhere;
}

.message-card__content p:last-child {
  margin-bottom: 0;
}

.message-card__content a,
.legal-content a,
.site-footer__nav a {
  color: var(--wine-dark);
  text-decoration-color: rgba(125, 0, 46, 0.35);
  text-underline-offset: 0.18em;
}

.content-card {
  width: min(100%, 920px);
  margin-top: 1rem;
  background: var(--paper-strong);
}

.content-card--compact {
  width: min(100%, 640px);
}

.legal-content {
  margin-top: 1.75rem;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.legal-content > *:first-child {
  margin-top: 0;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  margin: 2rem 0 0.8rem;
  font-family: "Ovo", serif;
  color: var(--wine-dark);
  line-height: 1.2;
  text-wrap: balance;
}

.legal-content h2 {
  font-size: 1.9rem;
}

.legal-content h3 {
  font-size: 1.55rem;
}

.legal-content h4 {
  font-size: 1.2rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol,
.legal-content table {
  margin: 0 0 1rem;
}

.legal-content p,
.legal-content li,
.legal-content td,
.legal-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.4rem;
}

.legal-content li + li {
  margin-top: 0.45rem;
}

.legal-content table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.legal-content td {
  padding: 0 1rem 0.4rem 0;
  vertical-align: top;
}

.back-link {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0.88rem 1.2rem;
  border: 1px solid rgba(125, 0, 46, 0.18);
  border-radius: 999px;
  background: rgba(191, 0, 67, 0.08);
  color: var(--wine-dark);
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  background: rgba(191, 0, 67, 0.14);
}

.site-footer {
  padding: 1.4rem 0 2rem;
}

.site-footer__inner {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
}

.site-footer__copy {
  margin: 0;
  color: var(--muted);
}

.site-footer__nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 84px;
  }

  .hero__inner,
  .page-section__inner {
    min-height: auto;
    padding: 3.5rem 0 4.5rem;
  }

  .message-card,
  .content-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .hero__inner,
  .page-section__inner,
  .site-footer__inner {
    width: min(calc(100% - 1.2rem), var(--content-width));
  }

  .message-card h1,
  .content-card h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .message-card,
  .content-card {
    padding: 1.5rem 1.1rem;
  }

  .legal-content {
    margin-top: 1.25rem;
    font-size: 0.97rem;
    line-height: 1.7;
  }

  .legal-content h2,
  .legal-content h3,
  .legal-content h4 {
    margin-top: 1.55rem;
  }

  .legal-content h2 {
    font-size: 1.55rem;
  }

  .legal-content h3 {
    font-size: 1.3rem;
  }

  .legal-content h4 {
    font-size: 1.08rem;
  }

  .legal-content ul,
  .legal-content ol {
    padding-left: 1.2rem;
  }

  .legal-content table,
  .legal-content tbody,
  .legal-content tr,
  .legal-content td {
    display: block;
    width: 100%;
  }

  .legal-content td {
    padding: 0 0 0.5rem;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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