/* Lettuce Swap site. Same neobrutalist look as the app: ink borders, hard
   offset shadows, flat loud colours, Archivo Black + Space Grotesk. */

@font-face {
  font-family: "Archivo Black";
  src: url("fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #151515;
  --paper: #fbf5e6;
  --white: #ffffff;
  --muted: #5f5f5f;
  --lime: #b9f56b;
  --tomato: #ff6a5c;
  --sun: #ffd449;
  --sky: #8ad5ff;
  --grape: #cda9ff;
  --mint: #7fefc6;
  --peach: #ffb58a;
  --mushroom: #e8c9a0;
  --teal: #3f9bb0;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, .display {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-weight: 400;
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
}

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- reusable bits ---------- */

.box {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 6px 12px 5px;
  border: var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 16px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .08s ease, box-shadow .08s ease;
  min-width: 220px;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn svg { width: 30px; height: 30px; flex: none; fill: currentColor; }
.btn small { display: block; font-size: 12px; letter-spacing: .04em; opacity: .85; }
.btn strong { display: block; font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: 20px; line-height: 1.1; }

/* While a store link isn't set the button reads "coming soon" and does nothing. */
.btn.is-soon { background: var(--white); color: var(--ink); cursor: default; }
.btn.is-soon:hover, .btn.is-soon:active { transform: none; box-shadow: var(--shadow-sm); }

/* ---------- header ---------- */

.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 48px; height: 48px; border: var(--border); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.logo span { font-family: "Archivo Black", sans-serif; font-size: 22px; text-transform: uppercase; }
.site-header nav { display: flex; gap: 22px; font-weight: 700; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- hero ---------- */

.hero { padding: 40px 0 90px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
/* The headline is sized from its column's width so "farmers market." always
   fits on one line inside the lime box. */
.hero-copy { container-type: inline-size; }

.hero h1 { font-size: min(64px, 8.5cqi); }
.hero h1 .hl {
  display: inline-block;
  background: var(--lime);
  border: var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 4px 14px 0;
  margin-top: 10px;
  transform: rotate(-2deg);
  white-space: nowrap;
}
.hero .lede { font-size: 21px; max-width: 34ch; margin: 30px 0 34px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .note { margin-top: 18px; font-size: 15px; color: var(--muted); }

.hero-art { position: relative; justify-self: center; width: min(440px, 100%); }
.hero-art .icon {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 22%;
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(3deg);
}
.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  border: var(--border);
  box-shadow: var(--shadow-sm);
}
.sticker.free { top: -22px; right: -18px; width: 110px; height: 110px; border-radius: 50%; background: var(--sun); font-size: 24px; transform: rotate(12deg); }
.sticker.nomoney { bottom: -24px; left: -26px; padding: 10px 16px 8px; border-radius: 10px; background: var(--tomato); font-size: 16px; transform: rotate(-5deg); }

/* ---------- marquee strip ---------- */

.strip {
  background: var(--ink);
  color: var(--paper);
  border-block: var(--border);
  overflow: hidden;
  white-space: nowrap;
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  padding: 14px 0 12px;
}
.strip .track { display: inline-block; animation: scroll 40s linear infinite; }
.strip span { margin: 0 18px; }
.strip span:nth-child(3n+1) { color: var(--lime); }
.strip span:nth-child(3n+2) { color: var(--sun); }
.strip span:nth-child(3n) { color: var(--peach); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip .track { animation: none; } }

/* ---------- sections ---------- */

section { padding: 96px 0; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(36px, 5vw, 58px); }
.section-head p { font-size: 20px; max-width: 46ch; margin: 16px 0 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; padding: 0; margin: 0; }
.step { padding: 28px 26px 30px; }
.step .num {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 20px;
  font-family: "Archivo Black", sans-serif; font-size: 28px;
  border: var(--border); border-radius: 10px; box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { margin: 0; }

.swap-what { background: var(--lime); border-block: var(--border); }
.swap-what .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 14px; }
.tags .tag { font-size: 18px; padding: 10px 16px 8px; }
.tags .tag:nth-child(5n+1) { background: var(--sun); transform: rotate(-2deg); }
.tags .tag:nth-child(5n+2) { background: var(--sky); transform: rotate(1.5deg); }
.tags .tag:nth-child(5n+3) { background: var(--peach); }
.tags .tag:nth-child(5n+4) { background: var(--grape); transform: rotate(-1deg); }
.tags .tag:nth-child(5n)   { background: var(--mint); transform: rotate(2deg); }

.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.why .box { padding: 28px; }
.why h3 { font-size: 22px; margin-bottom: 8px; }
.why p { margin: 0; }
.why .box:nth-child(1) { background: var(--sky); }
.why .box:nth-child(2) { background: var(--sun); }
.why .box:nth-child(3) { background: var(--grape); }
.why .box:nth-child(4) { background: var(--peach); }

.faq { max-width: 820px; }
.faq details { margin-bottom: 18px; padding: 0; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 60px 20px 24px; position: relative;
  font-weight: 700; font-size: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-52%);
  font-family: "Archivo Black", sans-serif; font-size: 28px;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 24px 22px; }

.cta { background: var(--tomato); border-top: var(--border); text-align: center; }
.cta h2 { font-size: clamp(40px, 7vw, 80px); margin-bottom: 18px; }
.cta p { font-size: 21px; margin: 0 auto 34px; max-width: 36ch; }
.cta .store-buttons { justify-content: center; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: var(--paper); padding: 36px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--paper); }

/* ---------- prose pages (privacy, support) ---------- */

.prose { max-width: 760px; padding: 30px 0 90px; }
.prose h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 10px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose .updated { color: var(--muted); margin-bottom: 30px; }
.prose li { margin-bottom: 8px; }
.prose .box { padding: 22px 26px; margin: 26px 0; background: var(--sun); }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero { padding-top: 16px; }
  .hero .wrap, .swap-what .wrap { grid-template-columns: 1fr; gap: 64px; }
  .hero-art { width: min(340px, 82%); grid-row: 1; }
  .steps { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-header nav { display: none; }
  .btn { width: 100%; }
  .sticker.free { width: 86px; height: 86px; font-size: 19px; right: -10px; }
  .sticker.nomoney { left: -10px; font-size: 14px; }
}
