@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: optional;
}

:root {
  color-scheme: light;
  --paper: #fbf7ee;
  --cream: #f2e8d5;
  --sage: #dfe4ce;
  --clay: #e7cbbd;
  --leaf: #26351f;
  --moss: #3e4a2a;
  --ink: #2b1f15;
  --terracotta: #c75b3c;
  --display: "Fraunces", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
  --page: clamp(1.25rem, 5vw, 5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --measure: 42rem;
  --line: 1px solid rgba(62, 74, 42, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure,
h1,
h2,
h3,
p {
  margin-top: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

a:hover {
  color: var(--moss);
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  color: var(--leaf);
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.35rem, 7vw, 7.25rem);
}

h1 em {
  font-weight: 390;
}

h2 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.65rem, 5.5vw, 5.25rem);
}

h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

section {
  scroll-margin-top: 6rem;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: -5rem;
  left: 1rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  background: var(--leaf);
  color: var(--paper);
  font-weight: 700;
}

.skip-link:is(:focus, :focus-visible) {
  top: 1rem;
  color: var(--paper);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: var(--line);
  background: rgba(251, 247, 238, 0.96);
}

.site-header__inner,
.hero__inner,
.process__inner,
.occasions__inner,
.maker__inner,
.contact__inner,
.site-footer__inner {
  width: 100%;
  max-width: 92rem;
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  min-height: 5.2rem;
  padding: 0.75rem var(--page);
}

.brand {
  display: inline-flex;
  width: clamp(10rem, 22vw, 14.5rem);
  min-height: 44px;
  align-items: center;
  flex: 0 0 auto;
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--leaf);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.hero,
.process,
.occasions,
.maker,
.contact {
  padding: var(--section) var(--page);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.hero__copy,
.hero__media,
.process__copy,
.process__media,
.occasions__content,
.occasions__media,
.maker__copy,
.maker__media {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--moss);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 1.5rem;
  height: 0.18rem;
  margin: 0 0.65rem 0.18rem 0;
  background: var(--terracotta);
  content: "";
}

.eyebrow--light {
  color: var(--cream);
}

.hero__lead,
.process__copy > p,
.maker__copy > p,
.contact__copy > p {
  max-width: var(--measure);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--leaf);
  background: var(--leaf);
  color: var(--paper);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  border-color: var(--moss);
  background: var(--moss);
  color: var(--paper);
}

.button--light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--leaf);
}

.button--light:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--leaf);
}

.text-link,
.contact-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 750;
}

.hero__media,
.process__media,
.occasions__media,
.maker__media {
  position: relative;
  margin-bottom: 0;
}

.hero__media {
  padding: clamp(1rem, 3vw, 2rem);
}

.hero__media::before {
  position: absolute;
  inset: 2% 8% 8% 0;
  border-radius: 60% 40% 48% 52% / 42% 58% 42% 58%;
  background: var(--clay);
  content: "";
  transform: rotate(-5deg);
}

.hero__media::after {
  position: absolute;
  right: 0;
  bottom: 17%;
  width: 36%;
  height: clamp(0.8rem, 2vw, 1.35rem);
  background: var(--terracotta);
  content: "";
  transform: rotate(-4deg);
}

.hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  clip-path: polygon(4% 0, 100% 4%, 96% 100%, 0 95%);
}

figcaption {
  position: relative;
  z-index: 2;
  max-width: 28rem;
  margin-top: 0.7rem;
  color: var(--moss);
  font-size: 0.76rem;
}

.process {
  background: var(--leaf);
  color: var(--paper);
}

.process__inner,
.maker__inner {
  display: grid;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.process h2,
.process figcaption {
  color: var(--paper);
}

.process__media {
  padding: 0.75rem;
  border: 1px solid rgba(251, 247, 238, 0.5);
}

.process__media img,
.maker__media img,
.occasions__media img {
  width: 100%;
  object-fit: cover;
}

.process__media img,
.maker__media img {
  aspect-ratio: 4 / 5;
}

.process__media figcaption {
  padding-left: 0.25rem;
}

.occasions {
  background: var(--sage);
}

.occasions__inner {
  display: grid;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.section-heading {
  max-width: var(--measure);
  margin-bottom: 2.5rem;
}

.occasion-list {
  border-top: 2px solid var(--leaf);
}

.occasion {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.5rem 0;
  border-bottom: var(--line);
}

.occasion h3,
.occasion p {
  margin-bottom: 0;
}

.occasion p {
  max-width: 35rem;
}

.occasions__media {
  max-width: 37.5rem;
  padding: 0.8rem 0.8rem 1.1rem;
  background: var(--paper);
  transform: rotate(1.2deg);
}

.occasions__media img {
  aspect-ratio: 4 / 5;
}

.occasions__media figcaption {
  padding: 0 0.25rem;
}

.maker {
  border-top: var(--line);
  background: var(--paper);
}

.maker__media {
  padding: 0 0 1.5rem 1.5rem;
}

.maker__media::before {
  position: absolute;
  inset: 12% 12% 0 0;
  background: var(--clay);
  content: "";
}

.maker__media img {
  position: relative;
}

.maker__media figcaption {
  padding-left: 0.25rem;
}

.contact {
  background: var(--leaf);
  color: var(--paper);
}

.contact__inner {
  display: grid;
  gap: 2.5rem 5rem;
  align-items: end;
}

.contact h2,
.contact a {
  color: var(--paper);
}

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.contact__actions .button--light {
  color: var(--leaf);
}

.site-footer {
  border-top: 1px solid rgba(251, 247, 238, 0.4);
  background: var(--leaf);
  color: var(--paper);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 2rem var(--page);
  font-size: 0.78rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 47.99rem) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav,
  .site-header nav ul {
    width: 100%;
  }

  .site-header nav ul {
    justify-content: flex-start;
    gap: 0 0.85rem;
  }

  .site-header nav a {
    font-size: 0.76rem;
  }
}

@media (min-width: 48rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  }

  .process__inner,
  .maker__inner {
    grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  }

  .process__media,
  .maker__media {
    max-width: 35rem;
  }

  .occasions__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  }

  .occasion {
    grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 1.45fr);
  }

  .contact__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  }
}

@media (min-width: 75rem) {
  .hero {
    min-height: calc(100vh - 5.2rem);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.16fr) minmax(29rem, 0.84fr);
  }

  .process__media {
    margin-left: 3rem;
  }

  .occasions__media {
    margin-right: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
