:root {
  --background: #fff;
  --foreground: #14181f;
  --muted-foreground: #61697a;
  --card: #fff;
  --brand-red: #e02a1c;
  --brand-red-foreground: #fdfdfd;
  --brand-cyan: #8fd6ec;
  --brand-green: #86e0a1;
  --brand-yellow: #ffd34d;
  --radius: 1rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* Header */
.site-header {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 3.5rem;
  width: auto;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--brand-red);
}

/* Hero */
.hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero,
  .story {
    grid-template-columns: 1fr 1fr;
  }
}

.eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-red);
}

h1 {
  margin: 1rem 0 0;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.02em;
}

h1 span {
  display: block;
  color: var(--brand-red);
}

h2 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}

.lede {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  border-radius: 999px;
  background: var(--brand-red);
  color: var(--brand-red-foreground);
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.15s ease;
}

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

.hero-media {
  position: relative;
}

.hero-blob {
  position: absolute;
  inset: -1.5rem;
  border-radius: 2rem;
  background: var(--brand-yellow);
  transform: rotate(-3deg);
}

.hero-media img {
  position: relative;
  width: 100%;
  border-radius: 1.5rem;
  background: var(--card);
  object-fit: cover;
}

/* Patterns */
.patterns {
  border-block: 4px solid var(--foreground);
  background: var(--brand-cyan);
  padding-block: 4rem;
}

.grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 4px solid var(--foreground);
  background: var(--card);
}

.card .swatch {
  height: 10rem;
}

.card-body {
  border-top: 4px solid var(--foreground);
  padding: 1rem;
}

.card-body h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 900;
}

.card-body .tag {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.card-body .price {
  margin: 0.75rem 0 0;
  font-weight: 700;
}

/* Story */
.story {
  display: grid;
  gap: 2.5rem;
  padding-block: 5rem;
}

.story img {
  border-radius: var(--radius);
  border: 4px solid var(--foreground);
  object-fit: cover;
}

.story > div {
  align-self: center;
}

.stats {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stats div {
  border-radius: 0.75rem;
  border: 4px solid var(--foreground);
  background: var(--brand-green);
  padding: 1rem;
}

.stats dt {
  font-size: 1.5rem;
  font-weight: 900;
}

.stats dd {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  border-top: 4px solid var(--foreground);
  background: var(--foreground);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.site-footer .brand {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--background);
}

.site-footer .fine {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Swatches */
.swatch-dots {
  background-color: #e02a1c;
  background-image: radial-gradient(circle, #fdfdfd 22%, transparent 23%);
  background-size: 44px 44px;
}

.swatch-stripes {
  background: repeating-linear-gradient(
    180deg,
    #1e2a63 0 16px,
    #37b3dd 16px 32px,
    #e5479b 32px 40px
  );
}

.swatch-argyle {
  background-color: #fdfdfd;
  background-image:
    linear-gradient(135deg, #2fb457 25%, transparent 25%, transparent 75%, #2fb457 75%),
    linear-gradient(45deg, #e02a1c 25%, transparent 25%, transparent 75%, #e02a1c 75%);
  background-size: 48px 48px;
  background-position: 0 0, 24px 24px;
}

.swatch-zigzag {
  background-color: #ddc7ef;
  background-image:
    linear-gradient(135deg, #7c3fbe 25%, transparent 25%),
    linear-gradient(225deg, #7c3fbe 25%, transparent 25%);
  background-size: 32px 32px;
}
