@font-face {
  font-family: "Fraunces Soft";
  src: url("/sway/assets/FrauncesSoft-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/sway/assets/Manrope-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2b2420;
  --muted: #5a5149;
  --teal: #24675f;
  --celadon: #c3d4c6;
  --rule: #dedbd3;
  --gutter: clamp(20px, 4vw, 48px);
  --display: "Fraunces Soft", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px / 1.65 Manrope, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration-color: var(--celadon);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

p,
figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

.page-width {
  width: min(1160px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.masthead,
.footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
}

.masthead {
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

.brand:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.875rem;
}

.product {
  font: 600 1.4rem / 1 var(--display);
  text-decoration: none;
}

.hero {
  padding-top: clamp(32px, 5.5vw, 78px);
}

.hero-copy,
.details-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: end;
  gap: 24px clamp(28px, 5vw, 74px);
}

.hero-copy {
  margin-bottom: clamp(24px, 3vw, 44px);
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
}

.hero p,
.details p {
  max-width: 38ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.hero .availability,
.details .compatibility {
  margin-top: 12px;
  font-size: 0.875rem;
}

.availability {
  color: var(--teal);
  font-weight: 700;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--celadon);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 54px);
  padding-block: clamp(48px, 7vw, 96px);
}

.feature img {
  width: 100%;
  max-width: 268px;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 8px;
}

.feature figcaption {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.feature h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
}

.details {
  padding-block: clamp(36px, 5vw, 64px);
  background: var(--celadon);
}

.details-inner {
  align-items: start;
}

.details h2 {
  max-width: 17ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.footer {
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 690px) {
  .hero-copy,
  .details-inner {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: clamp(16px, 5vw, 32px);
  }

  .feature + .feature {
    padding-top: 30px;
    border-top: 1px solid var(--rule);
  }

  .feature figcaption {
    margin-top: 0;
    padding-top: 0;
    border: 0;
  }

  .footer {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}
