:root {
  color-scheme: light;
  --cream: #fbf4e9;
  --cream-deep: #f4e8d8;
  --navy: #172f4c;
  --coral: #d57857;
  --coral-dark: #b95e43;
  --gold: #d79a3c;
  --sage: #8f977e;
  --line: rgba(215, 154, 60, 0.52);
  --shadow: rgba(23, 47, 76, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--navy);
  background:
    radial-gradient(circle at 3.5% 48%, rgba(215, 154, 60, 0.8) 0 3px, transparent 4px),
    radial-gradient(circle at 95% 34%, rgba(215, 154, 60, 0.75) 0 3px, transparent 4px),
    linear-gradient(rgba(251, 244, 233, 0.93), rgba(251, 244, 233, 0.93)),
    url("/assets/paper.svg");
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  width: 27rem;
  height: 27rem;
  border: 1px solid rgba(215, 154, 60, 0.22);
  border-radius: 45% 55% 60% 40%;
  content: "";
  pointer-events: none;
}

body::before {
  top: -20rem;
  right: -8rem;
  transform: rotate(18deg);
  box-shadow:
    1.2rem 1rem 0 -1px var(--cream),
    1.2rem 1rem 0 0 rgba(215, 154, 60, 0.16),
    2.4rem 2rem 0 -1px var(--cream),
    2.4rem 2rem 0 0 rgba(215, 154, 60, 0.11);
}

body::after {
  bottom: -22rem;
  left: -8rem;
  transform: rotate(-16deg);
  box-shadow:
    1.2rem 1rem 0 -1px var(--cream),
    1.2rem 1rem 0 0 rgba(215, 154, 60, 0.16),
    2.4rem 2rem 0 -1px var(--cream),
    2.4rem 2rem 0 0 rgba(215, 154, 60, 0.11);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 100rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.15rem, 2.6vw, 2.5rem) clamp(1.25rem, 4.8vw, 4.75rem)
    clamp(1.5rem, 3vw, 2.6rem);
  overflow: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 4.6rem;
}

.header-logo {
  width: clamp(4.25rem, 6.5vw, 6.5rem);
  height: auto;
  mix-blend-mode: multiply;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 2.7vh, 2.2rem);
  width: 100%;
  max-width: 61rem;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
  text-align: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: clamp(16rem, 35vh, 24rem);
  max-width: 68vw;
  aspect-ratio: 1;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  max-width: 58rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.hero-copy p {
  max-width: 44rem;
  margin: clamp(1.05rem, 2vh, 1.5rem) 0 0;
  font-size: clamp(1rem, 1.45vw, 1.23rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.etsy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.65rem;
  margin-top: clamp(1.35rem, 2.7vh, 2rem);
  padding: 0.9rem 1.6rem;
  border: 1px solid rgba(185, 94, 67, 0.5);
  border-radius: 0.45rem;
  color: #fffaf4;
  background: var(--coral);
  box-shadow: 0 0.75rem 1.6rem rgba(185, 94, 67, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.15;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.etsy-button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.etsy-button:hover {
  background: var(--coral-dark);
  box-shadow: 0 0.9rem 1.9rem rgba(185, 94, 67, 0.27);
  transform: translateY(-2px);
}

.etsy-button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(1.5rem, 8rem) auto minmax(1.5rem, 8rem);
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 2.5rem;
}

.site-footer span {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.site-footer p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  white-space: nowrap;
}

@media (max-height: 780px) and (min-width: 700px) {
  .page-shell {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .site-header {
    min-height: 3.6rem;
  }

  .brand-mark {
    width: clamp(14rem, 31vh, 17rem);
  }

  .hero {
    gap: 0.9rem;
  }

  h1 {
    font-size: clamp(2.25rem, 4.4vw, 3.8rem);
  }

  .hero-copy p {
    margin-top: 0.8rem;
  }

  .etsy-button {
    margin-top: 1rem;
  }
}

@media (max-width: 600px) {
  .page-shell {
    padding: 1rem 1.25rem 1.35rem;
  }

  .site-header {
    justify-content: center;
    min-height: 4.2rem;
  }

  .header-logo {
    width: 4.7rem;
  }

  .hero {
    justify-content: center;
    gap: 1.15rem;
    padding: 0.5rem 0 1.5rem;
  }

  .brand-mark {
    width: min(15rem, 61vw);
    max-width: none;
  }

  h1 {
    font-size: clamp(2.3rem, 11vw, 3.25rem);
    line-height: 1.02;
  }

  .hero-copy p {
    max-width: 30rem;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.52;
  }

  .etsy-button {
    width: min(100%, 21rem);
    margin-top: 1.35rem;
    font-size: 1rem;
  }

  .site-footer {
    gap: 0.75rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .etsy-button {
    transition: none;
  }
}
