/* Sweetpea Labs · sweetpealabs.co */

:root {
  --ink: #111111;
  --ink-soft: #171414;
  --cream: #F1F0E4;
  --cream-base: #E9E8DD;
  --paper: #F7F6EE;
  --teal: #045D69;
  --teal-dark: #023A42;
  --purple: #815AFD;
  --purple-light: #AD93FE;
  --magenta: #CF5AF8;
  --pink: #F45FD8;
  --coral: #FD7362;
  --font-display: 'Urbanist', system-ui, sans-serif;
  --font-type: 'Special Elite', 'Courier New', monospace;
  --font-label: 'Mulish', system-ui, sans-serif;
  --gutter: clamp(24px, 6vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream-base);
  color: var(--ink);
  font-family: var(--font-type);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--cream); text-decoration: none;
  font-family: var(--font-label); font-weight: 700;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: 1680px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Backgrounds */
.tex-cream {
  background-color: var(--cream-base);
  background-image: linear-gradient(rgba(241,240,228,0.5), rgba(241,240,228,0.5)), url('img/tex-cream.jpg');
  background-size: cover;
  background-position: center;
}
.tx {
  background-image: url('img/tex-gray.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}
.bg-purple { background-color: var(--purple-light); }
.bg-magenta { background-color: var(--magenta); }
.bg-coral { background-color: var(--coral); }
.bg-black { background-color: #000000; color: #E6E6E6; }

/* Type */
.eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Header and nav */
.site-header .bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 32px;
}
.logo { display: block; line-height: 0; }
.logo img { width: 260px; height: auto; display: block; }
.nav-links { display: flex; flex-wrap: wrap; gap: 28px; }
.nav-links a, .back {
  font-family: var(--font-label); font-size: 14px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover, .back:hover { color: var(--teal); }
.back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }

.burger {
  display: none; width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--cream); cursor: pointer;
}
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  margin: 16px var(--gutter) 0; padding: 8px 24px; border-radius: 20px;
  background: var(--cream); box-shadow: 8px 8px 0 0 var(--ink);
  font-family: var(--font-display); font-size: 22px; font-weight: 900; text-transform: uppercase;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: block; padding: 16px 0;
  border-bottom: 1px solid rgba(17,17,17,0.15);
  color: var(--ink); text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: 0; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .logo img { width: 210px; }
}
@media (min-width: 721px) {
  .mobile-menu { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 0 10px 0 30px;
  border-radius: 999px;
  background: var(--ink); color: var(--cream); text-decoration: none;
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); background-color: var(--teal); color: var(--cream); }
.btn .arrow {
  width: 42px; height: 42px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero-body { padding-top: 120px; padding-bottom: 140px; }
.hero-body .eyebrow { margin-bottom: 28px; font-weight: 600; color: var(--teal); }
.hero-title { font-size: clamp(52px, 8.5vw, 132px); line-height: 0.92; max-width: 1200px; color: var(--ink-soft); }
.hero-lead { margin: 40px 0 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; max-width: 640px; }
.hero-cta { margin-top: 48px; }
@media (max-width: 720px) { .hero-body { padding-top: 72px; padding-bottom: 96px; } }

/* Split sections */
.split {
  display: flex; flex-wrap: wrap; align-items: center; gap: 72px;
  padding-top: 120px; padding-bottom: 120px;
}
@media (max-width: 720px) { .split { gap: 48px; padding-top: 88px; padding-bottom: 88px; } }

/* What we do */
.what-copy { flex: 1 1 480px; min-width: 0; }
.what-copy .display { font-size: clamp(44px, 5.5vw, 76px); }
.what-copy .lead { margin: 28px 0 0; font-size: 22px; line-height: 1.45; }
.what-copy .body {
  margin-top: 28px; max-width: 600px;
  display: flex; flex-direction: column; gap: 18px;
  font-family: var(--font-display); font-size: 20px; line-height: 1.5;
}
.what-copy .body p { margin: 0; }
.what-photo { flex: 1 1 380px; min-width: 0; max-width: 520px; padding: 0 12px 12px 0; }
.what-photo img {
  width: 100%; height: 560px; object-fit: cover; display: block;
  border-radius: 12px; box-shadow: 12px 12px 0 0 #000000;
}
@media (max-width: 720px) { .what-photo img { height: 440px; } }

/* Focus timer */
.timer-copy { flex: 1 1 400px; min-width: 0; }
.pill {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: #000000; color: var(--cream);
  font-family: var(--font-label); font-size: 13px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.timer-copy .display { margin-top: 28px; font-size: clamp(40px, 5vw, 68px); }
.timer-copy p { margin: 28px 0 0; font-size: 20px; line-height: 1.55; max-width: 540px; }

.phones { flex: 1 1 500px; min-width: 0; display: flex; justify-content: center; align-items: flex-start; gap: 28px; }
.ph { width: 234px; height: 506px; border-radius: 20px; overflow: hidden; box-shadow: 12px 12px 0 0 #000000; flex: none; }
.ph-inner { width: 390px; height: 844px; transform: scale(0.6); transform-origin: top left; }
.ph-low { margin-top: 48px; }
@media (max-width: 560px) {
  .phones { gap: 16px; }
  .ph { width: 148px; height: 321px; border-radius: 14px; box-shadow: 8px 8px 0 0 #000000; }
  .ph-inner { transform: scale(0.38); }
  .ph-low { margin-top: 28px; }
}

/* Timer screens */
.screen { width: 390px; height: 844px; display: flex; flex-direction: column; gap: 24px; overflow: hidden; }
.screen label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; }
.screen input { height: 48px; padding: 0 16px; font-size: 16px; }
.screen .controls { display: flex; gap: 12px; align-items: center; }
.screen .controls button { cursor: pointer; }

.quilt { padding: 40px 24px 32px; background: #EDE3D1; color: #2B2118; font-family: 'Work Sans', system-ui, sans-serif; }
.quilt .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.quilt .top strong { font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.quilt .grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px; background: #2B2118; }
.quilt .grid span { aspect-ratio: 1 / 1; background: #E2D6C1; outline: 1px dashed #9C8C72; outline-offset: -5px; }
.quilt .clock { flex-grow: 1; display: flex; align-items: center; justify-content: center; font-family: 'DM Serif Display', Georgia, serif; font-size: 112px; line-height: 1; letter-spacing: -0.02em; }
.quilt .clock b { font-weight: 400; color: #B5452B; }
.quilt input { border: 2px dashed #2B2118; border-radius: 6px; background: #F7F0E3; color: #2B2118; font-family: 'Work Sans', system-ui, sans-serif; }
.quilt .go { flex-grow: 1; height: 56px; border: 0; border-radius: 6px; background: #2E4A7A; color: #F7F0E3; font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; }
.quilt .reset { width: 56px; height: 56px; border: 2px solid #2B2118; border-radius: 6px; background: transparent; color: #2B2118; display: flex; align-items: center; justify-content: center; }

.soul { padding: 40px 28px 32px; background: #F26A21; color: #2A160E; font-family: 'Outfit', system-ui, sans-serif; }
.soul .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.soul .top strong { letter-spacing: 0.18em; text-transform: uppercase; }
.soul .stage { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.soul .record { width: 290px; height: 290px; border-radius: 50%; background: repeating-radial-gradient(circle at center, #141010 0 3px, #221A17 3px 5px); box-shadow: 0 0 0 6px #2A160E; display: flex; align-items: center; justify-content: center; }
.soul .record.spinning { animation: spin 1.8s linear infinite; }
.soul .label-disc { width: 116px; height: 116px; border-radius: 50%; background: conic-gradient(#F6C445 var(--deg, 0deg), #FFF1DC 0); display: flex; align-items: center; justify-content: center; }
.soul .label-disc i { width: 12px; height: 12px; border-radius: 50%; background: #141010; }
.soul .clock { font-family: 'Shrikhand', Georgia, serif; font-size: 96px; line-height: 1; color: #FFF1DC; text-shadow: 5px 5px 0 #2A160E; }
.soul input { padding: 0 18px; border: 2px solid #2A160E; border-radius: 24px; background: #FFF1DC; color: #2A160E; font-family: 'Outfit', system-ui, sans-serif; }
.soul .go { flex-grow: 1; height: 56px; border: 0; border-radius: 28px; background: #2A160E; color: #FFF1DC; font-family: 'Shrikhand', Georgia, serif; font-size: 22px; }
.soul .reset { width: 56px; height: 56px; border: 2px solid #2A160E; border-radius: 50%; background: transparent; color: #2A160E; display: flex; align-items: center; justify-content: center; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Marquee */
.marquee { background: #000000; color: var(--cream); overflow: hidden; padding: 22px 0; }
.marquee-track {
  display: flex; width: max-content;
  font-family: var(--font-display); font-weight: 300; font-size: 28px; letter-spacing: 0.04em; white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@media (max-width: 560px) { .marquee-track { font-size: 22px; } }

/* Client Studio */
.studio-intro { padding-top: 48px; padding-bottom: 48px; }
.studio-intro .eyebrow { font-weight: 600; }
.studio-intro .display { font-size: clamp(40px, 5.5vw, 84px); max-width: 1200px; color: #E0E0E0; }
.studio-intro p { margin: 20px 0 0; font-size: 22px; }

.services { padding-top: 96px; padding-bottom: 112px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px 56px; align-items: start; }
.service { padding-top: 22px; border-top: 2px solid #000000; }
.service h3 { margin: 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 2.5vw, 34px); line-height: 1.1; }
.service p { margin: 18px 0 0; font-size: 17px; line-height: 1.55; }
.studio-cta { margin-top: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.studio-cta h3 { margin: 0; flex: 1 1 420px; min-width: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.studio-cta .btn { flex: none; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.foot-left { display: flex; flex-direction: column; gap: 14px; }
.foot-left img { width: 220px; height: auto; display: block; }
.foot-left p, .foot-legal { margin: 0; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.icons { display: flex; gap: 8px; }
.ico { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: color .2s ease; }
.ico:hover { color: var(--teal); }
.foot-legal { display: flex; gap: 20px; }
.foot-legal a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
.foot-legal a:hover { color: var(--teal); }
@media (max-width: 640px) {
  .foot { flex-direction: column; justify-content: center; text-align: center; }
  .foot-left, .foot-right { align-items: center; }
  .foot-legal { justify-content: center; flex-wrap: wrap; }
}

/* Legal pages */
.legal-page { background: var(--paper); }
.legal-hero { max-width: 1680px; margin: 0 auto; padding: 56px var(--gutter) 64px; }
.legal-hero > * { max-width: 900px; }
.legal-hero .eyebrow { margin-bottom: 20px; color: var(--teal); }
.legal-hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 0.95; color: var(--ink-soft); }
.legal-hero .updated { margin: 28px 0 0; font-size: 18px; }
.legal {
  max-width: 1680px; margin: 0 auto; padding: 56px var(--gutter) 112px;
  font-family: var(--font-display); font-size: 18px; line-height: 1.65;
}
.legal h2 { margin: 56px 0 16px; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; }
.legal > * { max-width: 820px; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal a { color: var(--teal); }
.legal a:hover { color: var(--teal-dark); }
