:root {
  --paper: #f5f1e9;
  --paper-deep: #e9e2d6;
  --ink: #3b0d12;
  --green: #354629;
  --line: rgba(59, 13, 18, 0.22);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

body.bag-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 90px;
  padding: 0 3.4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 233, 0.96);
}

.brand {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.1rem);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: clamp(24px, 5vw, 78px);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a,
.bag-button {
  position: relative;
}

.site-nav a::after,
.bag-button::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.bag-button:hover::after,
.bag-button:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.bag-button,
.menu-button {
  justify-self: end;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-button {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100svh - 90px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 7vw 6vw 7vw 9.4vw;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 6.7vw, 7.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero-copy p {
  max-width: 430px;
  margin: 36px 0 30px;
  color: #2c2924;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.55;
}

.hero-media {
  min-height: 560px;
  margin: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button {
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  color: #fff;
}

.button-primary:hover {
  background: var(--ink);
}

.collection {
  padding: 96px 5.5vw 110px;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-heading span {
  display: block;
  width: 1px;
  height: 48px;
  margin: 0 auto 24px;
  background: var(--green);
}

.section-heading h2,
.letters h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.8vw, 5.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 22px 0 0;
  color: #61594f;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.product-line h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 400;
  text-transform: uppercase;
}

.product-line em {
  font-weight: 400;
  text-transform: none;
}

.product > p {
  min-height: 44px;
  color: #61594f;
  font-size: 0.9rem;
  line-height: 1.5;
}

.text-button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.story {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  min-height: 410px;
  padding: 70px 10vw;
  background: var(--ink);
  color: var(--paper);
}

.story h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.5vw, 6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.story-copy {
  max-width: 410px;
  padding-left: 64px;
  border-left: 1px solid rgba(255, 255, 255, 0.6);
}

.story-copy p {
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.button-outline {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.button-outline:hover {
  background: var(--paper);
  color: var(--ink);
}

.letters {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 8vw;
  padding: 76px 10vw;
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr auto;
}

.signup-form input {
  min-width: 0;
  min-height: 62px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-right: 0;
  background: transparent;
}

.form-success {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--green);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: end;
  gap: 40px;
  margin: 0 5.5vw;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.site-footer span,
.site-footer small,
.site-footer nav {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.shade {
  position: fixed;
  z-index: 30;
  inset: 0;
  visibility: hidden;
  background: rgba(30, 20, 15, 0.48);
  opacity: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.bag-panel {
  position: fixed;
  z-index: 31;
  top: 0;
  right: 0;
  display: flex;
  width: min(460px, 92vw);
  height: 100dvh;
  flex-direction: column;
  padding: 34px;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.bag-open .shade {
  visibility: visible;
  opacity: 1;
}

.bag-open .bag-panel {
  transform: none;
}

.bag-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.bag-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
}

.bag-heading button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bag-items {
  flex: 1;
  overflow: auto;
  padding: 12px 0;
}

.bag-items p {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.checkout {
  width: 100%;
}

.toast {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 48px));
  margin: 0;
  padding: 16px 20px;
  background: var(--green);
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    min-height: 68px;
    gap: 20px;
  }

  .brand {
    font-size: 1.7rem;
  }

  .menu-button {
    display: block;
    order: 2;
  }

  .bag-button {
    order: 3;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 5vw 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    min-height: 550px;
    padding: 70px 7vw;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 15vw, 6.2rem);
  }

  .hero-media {
    min-height: 62vw;
    max-height: 650px;
  }

  .collection {
    padding: 72px 5vw;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .story,
  .letters {
    grid-template-columns: 1fr;
  }

  .story {
    gap: 42px;
    padding: 68px 7vw;
  }

  .story-copy {
    padding: 0;
    border: 0;
  }

  .letters {
    gap: 42px;
    padding: 68px 7vw;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 12px;
  }

  .menu-button,
  .bag-button {
    font-size: 0.68rem;
  }

  .hero-copy {
    min-height: 510px;
  }

  .signup-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .signup-form input {
    border-right: 1px solid var(--ink);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
