@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

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

:root {
  color-scheme: light;
  --canvas: #f5f3ee;
  --ink: #23211e;
  --muted: #615c55;
  --rule: #d8d3c9;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
}
h1, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.shell { width: min(100% - 36px, 1140px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .shell { display: flex; align-items: center; min-height: 59px; }
.site-name { font-size: 1.125rem; font-weight: 700; letter-spacing: -.05em; }
main { flex: 1; }

.feature {
  display: grid;
  grid-template-areas: "title" "photo" "details";
  gap: 18px;
  padding-block: 28px 38px;
}
.feature-title { grid-area: title; }
.product-state {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.45;
  text-transform: uppercase;
}
h1 {
  font-family: var(--display);
  font-size: clamp(3.125rem, 12vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.014em;
  line-height: .89;
}
.feature-photo {
  grid-area: photo;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #ece7dd;
}
.feature-details { grid-area: details; }
.feature-details p {
  max-width: 34ch;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.6;
}
.product-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 29px;
  min-height: 47px;
  margin-top: 17px;
  padding: 10px 17px;
  color: var(--canvas);
  background: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.product-link span { font-size: 1.2rem; line-height: 1; }
@media (hover: hover) {
  .product-link:hover { background: #47413a; }
}

@media (min-width: 760px) {
  .shell { width: min(100% - 64px, 1140px); }
  .site-header .shell { min-height: 68px; }
  main { display: grid; align-items: center; }
  .feature {
    grid-template-areas: "title photo" "details photo";
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-rows: 1fr 1fr;
    gap: 19px clamp(26px, 5vw, 68px);
    padding-block: clamp(36px, 6vw, 72px);
  }
  .feature-title { align-self: end; }
  .feature-photo { align-self: center; }
  .product-state { margin-bottom: 13px; }
  h1 { font-size: clamp(4.125rem, 7.5vw, 6.5rem); }
  .feature-details p { font-size: 1rem; }
  .product-link { margin-top: 24px; }
}
