@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
}

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

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

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

:root {
  --black: #191919;
  --gold: #c6ab78;
  --clay: #d98145;
  --ivory: #f2ede3;
  --seal: min(21rem, 74vw);
  --header-offset: 7.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  background-image: url("../images/grain.svg");
  background-size: 160px 160px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

.band-ivory :focus-visible,
.insert :focus-visible {
  outline-color: var(--black);
}

::selection {
  background: var(--clay);
  color: var(--black);
}

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

.skip:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(25, 25, 25, 0.94);
  border-bottom: 1px solid var(--gold);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(76rem, 100%);
  margin: 0 auto;
  padding: 0.55rem 1.15rem 0.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.25rem;
  text-decoration: none;
  color: var(--ivory);
}

.brand img,
.footer-seal img {
  display: block;
  width: 4.4rem;
  height: auto;
}

.brand-name {
  font-family: "Cormorant Garamond", Palatino, "Palatino Linotype", serif;
  font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  letter-spacing: 0.18em;
  line-height: 1;
}

.tm {
  font-size: 0.45em;
  letter-spacing: 0;
  position: relative;
  top: -0.65em;
  margin-left: 0.12em;
}

.header-note,
.label {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.2rem;
  width: min(76rem, 100%);
  margin: 0 auto;
  padding: 0.15rem 1.15rem 0.8rem;
}

.site-nav a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--ivory);
}

.hero {
  min-height: calc(100vh - 7.4rem);
  min-height: calc(100dvh - 7.4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.25rem 1.15rem 4rem;
  background:
    radial-gradient(closest-side at 50% 38%, rgba(217, 129, 69, 0.2), transparent 72%),
    var(--black);
}

.hero-inner {
  width: min(44rem, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.seal {
  width: var(--seal);
  position: relative;
  margin: 0 auto 0.85rem;
}

.seal img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--gold);
  pointer-events: none;
}

.ring-outer {
  inset: -7.5%;
  opacity: 0.45;
}

.ring-mid {
  inset: -2.5%;
  opacity: 0.9;
}

.brand-line {
  margin: 0.45rem 0 0;
  font-family: "Cormorant Garamond", Palatino, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.65rem, 3.4vw, 2.15rem);
  letter-spacing: 0.04em;
  color: var(--gold);
}

.ridge {
  width: min(15rem, 62%);
  height: auto;
  margin: 0.85rem 0 0.15rem;
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Palatino, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2.85rem, 7.2vw, 4.7rem);
  font-weight: 600;
  text-wrap: balance;
  color: var(--ivory);
}

#hero-title {
  max-width: 12ch;
}

.lede {
  margin: 1rem 0 0;
  font-family: "Cormorant Garamond", Palatino, serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.15;
}

.purpose {
  margin: 0.7rem 0 0;
  font-family: "Cormorant Garamond", Palatino, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--ivory);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.75rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--ivory);
  background: transparent;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button:hover {
  background: var(--gold);
  color: var(--black);
}

.band {
  padding: 5.25rem 1.15rem;
}

#company {
  border-top: 1px solid var(--gold);
}

.wrap {
  width: min(68rem, 100%);
  margin-inline: auto;
}

.narrow {
  width: min(40rem, 100%);
  margin-inline: auto;
}

.band-ivory {
  background: var(--ivory);
  color: var(--black);
}

.band-ivory .label,
.band-ivory a,
.insert .label {
  color: var(--black);
}

.band-ivory a {
  text-underline-offset: 0.18em;
}

.band h2,
.plain-page h2 {
  margin: 0.7rem 0 0;
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  text-wrap: balance;
}

.prose {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  font-weight: 300;
  font-size: 1.08rem;
}

.center {
  text-align: center;
}

.center .prose,
.center .label,
.center h2 {
  margin-inline: auto;
}

.pair {
  display: grid;
  gap: 1.35rem;
  margin-top: 2.4rem;
}

.plate {
  background: var(--black);
  border: 1px solid var(--gold);
  padding: 0.5rem;
}

.plate img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--gold);
}

figcaption {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
}

.offers {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.6rem;
}

.offer {
  border-top: 1px solid var(--gold);
  padding-top: 1.1rem;
  text-align: left;
}

.offer h3,
.letter h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.offer p {
  margin: 0.55rem 0 0;
  font-weight: 300;
}

.band-story {
  background: var(--black);
}

.insert {
  border: 1px solid var(--gold);
  padding: 0.5rem;
  background: var(--ivory);
  color: var(--black);
}

.insert-inner {
  border: 1px solid var(--gold);
  padding: clamp(1.4rem, 4vw, 3.25rem);
}

.story-note,
.offer p,
.prose {
  text-wrap: pretty;
}

.story-note {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  font-weight: 300;
}

.story-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.letter p {
  margin: 0 0 1.05rem;
  font-family: "Cormorant Garamond", Palatino, serif;
  font-weight: 500;
  font-size: clamp(1.22rem, 2.1vw, 1.48rem);
  line-height: 1.5;
}

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

.keepsake {
  margin: 0;
}

.keepsake img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--gold);
  background: var(--ivory);
}

.keepsake figcaption {
  color: var(--black);
}

.notify-frame {
  width: min(42rem, 100%);
  margin: 0 auto;
  border: 1px solid var(--gold);
  padding: 0.5rem;
}

.notify-inner {
  border: 1px solid var(--gold);
  padding: clamp(1.8rem, 5vw, 3.25rem) 1.25rem;
  text-align: center;
}

.notify-inner h2 {
  margin-top: 0.55rem;
}

.notify-inner .prose {
  margin-inline: auto;
}

.contact-line {
  margin: 1.15rem 0 0;
  font-size: 1.05rem;
}

.contact-line a {
  color: var(--gold);
  text-underline-offset: 0.22em;
}

.site-footer {
  padding: 3.25rem 1.15rem 2.4rem;
  text-align: center;
  border-top: 1px solid var(--gold);
  background: var(--black);
}

.footer-seal {
  display: inline-block;
  position: relative;
  margin-bottom: 1.15rem;
}

.footer-seal::before {
  content: "";
  position: absolute;
  inset: -12%;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
}

.footer-seal img {
  width: 5.6rem;
  position: relative;
}

.legal {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.98rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.3rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--gold);
}

.plain-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 3.5rem 1.15rem 4.5rem;
  text-align: center;
}

.plain-page .seal {
  width: min(16rem, 62vw);
  margin-bottom: 1.5rem;
}

.credits-list {
  margin: 1.5rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  max-width: 40rem;
}

.credits-list li {
  border-top: 1px solid var(--gold);
  padding: 1rem 0;
}

.plain-page h1 {
  max-width: 16ch;
  font-size: clamp(2.35rem, 6vw, 3.5rem);
}

@media (min-width: 760px) {
  .pair {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .offers {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .band {
    padding: 7rem 2rem;
  }
}

@media (min-width: 860px) {
  .story-layout.has-keepsake {
    grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 18rem);
    gap: 2.75rem;
  }
}

@media (max-width: 560px) {
  .header-note {
    letter-spacing: 0.14em;
  }

  .brand img {
    width: 3.4rem;
  }
}

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