/* ALMARI website: the app's "Clean" direction (design/v2, mobile/src/theme/tokens.ts). */
:root {
  --bg: #FFFFFF;
  --surface: #F4F4F6;
  --tile-start: #F9F9FB;
  --tile-end: #EDEEF2;
  --ink: #0B0B0D;
  --ink2: #5E5F66;
  --line: #E6E6EA;
  --accent: #2E5BFF;
  --success: #27633D;
  --glass: rgba(255, 255, 255, 0.92);
  --radius-card: 32px;
  --radius-tile: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.wordmark { font-size: 14px; font-weight: 700; letter-spacing: 0.42em; text-decoration: none; }

/* Buttons and chips */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font: 600 16px/1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:hover { background: #29292F; }
.button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.button-small { min-height: 40px; padding: 0 18px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.chip-glass { background: var(--glass); box-shadow: 0 1px 2px rgba(22, 26, 50, 0.08); }
.chip-ink { background: var(--ink); color: #fff; padding: 11px 22px; font-size: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-own { background: var(--success); }
.dot-swap { background: var(--accent); }
.dot-missing { background: #A3A4AC; }

/* Tiles: the quiet grey cards the clothes sit on */
.tile {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--tile-start), var(--tile-end));
  border-radius: var(--radius-card);
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center;
  padding-block: 40px 96px;
}
.hero h1 { font-size: clamp(44px, 4.5vw, 66px); font-weight: 700; text-wrap: balance; }
.lede { margin-top: 22px; max-width: 30ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink2); }
.hero-tile { aspect-ratio: 4 / 4.6; }
/* Absolute images keep their whole picture inside a fixed-shape tile. */
.hero-tile img, .step-tile > img { position: absolute; inset: 8% 10%; width: 80%; height: 84%; object-fit: contain; }

/* Waitlist form */
.waitlist { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; }
.waitlist input {
  flex: 1 1 220px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  background: var(--surface); color: var(--ink); font: 400 16px var(--font);
}
.waitlist input::placeholder { color: #8A8B93; }
.waitlist .form-note { flex-basis: 100%; padding-left: 22px; font-size: 14px; color: var(--ink2); }
.waitlist.done input, .waitlist.done .button { display: none; }
.waitlist.done .form-note { padding-left: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.waitlist-center { margin-inline: auto; justify-content: center; }
.waitlist-center .form-note { text-align: center; padding-left: 0; }

/* Three steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 120px; }
.step h3 { margin-top: 22px; font-size: 24px; font-weight: 700; }
.step p { margin-top: 6px; color: var(--ink2); max-width: 32ch; }
.step-tile { aspect-ratio: 4 / 5; }
.step-tile > img { inset: 15% 14% 17%; width: 72%; height: 68%; }
.chip-top { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); }
.step-tile .chip-ink { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); }
.match { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0 12px; }

.pieces { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; padding: 12% 9% 18%; }
.pieces img {
  position: static; width: 100%; height: 100%; object-fit: contain; padding: 14%;
  background: #fff; border-radius: var(--radius-tile); box-shadow: 0 1px 2px rgba(22, 26, 50, 0.06);
}
.pieces .chip { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); }

/* Every wardrobe, every moment */
.moments { padding-bottom: 120px; }
.moments h2, .fabrics h2, .privacy h2, .studio h2, .closing h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; }
.section-lede { margin-top: 14px; max-width: 44ch; font-size: 19px; color: var(--ink2); }
.moment-row { margin-top: 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.moment { margin: 0; }
.moment .tile { aspect-ratio: 3 / 4; border-radius: var(--radius-tile); padding: 8%; }
.moment img { width: 100%; height: 100%; object-fit: contain; }
.moment figcaption { margin-top: 10px; font-size: 15px; font-weight: 600; }

/* Privacy */
.privacy { padding: 72px 56px; background: var(--surface); border-radius: var(--radius-card); }
.promises { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.promises li { display: grid; gap: 6px; }
.promises svg { width: 30px; height: 30px; margin-bottom: 10px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.promises strong { font-size: 19px; }
.promises span { color: var(--ink2); }

/* Closing call to action */
.closing { padding-block: 120px; text-align: center; }

/* Footer */
.footer {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink2);
}
.footer .wordmark { color: var(--ink); }
.footer nav { display: flex; gap: 24px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer p { margin-left: auto; }

/* Navigation: Sign in switch */
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-signin { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-signin:hover { background: var(--surface); }

/* A stitched seam between chapters, like the edge of a garment */
.seam { height: 2px; margin-bottom: 72px; background: repeating-linear-gradient(90deg, var(--line2, #D3D4DA) 0 10px, transparent 10px 18px); }

/* Fabrics: swatches woven in CSS */
.fabrics { padding-bottom: 120px; }
.swatches { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.swatches li { display: grid; gap: 2px; }
.swatches b { margin-top: 12px; font-size: 16px; }
.swatches small { font-size: 13px; color: var(--ink2); }
.swatch {
  display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-tile); position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(11, 11, 13, 0.06), 0 10px 24px -14px rgba(22, 26, 50, 0.35);
}
/* Pinked edge along the bottom, like a cut swatch */
.swatch::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 10px;
  background: linear-gradient(135deg, #fff 33%, transparent 33%) 0 0 / 10px 10px, linear-gradient(225deg, #fff 33%, transparent 33%) 0 0 / 10px 10px;
}
.sw-denim { background:
  repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 2px, transparent 2px 5px),
  repeating-linear-gradient(45deg, rgba(0,0,0,.18) 0 1px, transparent 1px 4px), #34507A; }
.sw-khadi { background:
  repeating-linear-gradient(0deg, rgba(120,96,60,.16) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(90deg, rgba(120,96,60,.14) 0 1px, transparent 1px 4px),
  radial-gradient(circle at 30% 40%, rgba(255,255,255,.35), transparent 60%), #E8DCC4; }
.sw-ikat { background:
  repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.0) 14px 15px),
  linear-gradient(90deg, #7A2E3A 0 18%, #E6B84A 18% 24%, #1F4E79 24% 46%, #F3EDE2 46% 52%, #7A2E3A 52% 70%, #E6B84A 70% 76%, #1F4E79 76%);
  background-size: auto, 100% 100%; filter: saturate(.95); }
.sw-ikat::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.18) 0 3px, transparent 3px 9px); mix-blend-mode: soft-light; }
.sw-kente { background:
  linear-gradient(90deg, transparent 0 46%, #1E6B3A 46% 54%, transparent 54%) 0 0 / 28px 28px,
  linear-gradient(0deg, #C8322B 0 22%, #E8B321 22% 50%, #1E1F24 50% 58%, #E8B321 58% 86%, #1E6B3A 86%) 0 0 / 28px 28px; }
.sw-tweed { background:
  repeating-linear-gradient(60deg, rgba(255,255,255,.14) 0 2px, transparent 2px 6px),
  repeating-linear-gradient(-60deg, rgba(0,0,0,.16) 0 2px, transparent 2px 6px), #7C6A55; background-size: 12px 24px, 12px 24px, auto; }
.sw-linen { background:
  repeating-linear-gradient(0deg, rgba(255,255,255,.35) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(90deg, rgba(150,140,120,.18) 0 1px, transparent 1px 2px), #D9D2C3; }

/* Made by hand: archival pictures on warm paper */
.archive { padding-bottom: 120px; }
.archive h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; }
.archive-row { margin-top: 40px; display: flex; gap: 16px; align-items: flex-end; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
.archive-row::-webkit-scrollbar { display: none; }
.archive figure { margin: 0; flex: none; scroll-snap-align: start; }
.archive figure a { display: block; padding: 12px; border-radius: var(--radius-tile); background: #F5F1E8; box-shadow: inset 0 0 0 1px rgba(120, 96, 60, 0.12); }
.archive img { height: 300px; width: auto; border-radius: 6px; filter: saturate(0.92) contrast(1.02); transition: transform 0.4s ease; }
.archive figure a:hover img { transform: scale(1.02); }
.archive figcaption { margin-top: 10px; display: grid; gap: 1px; }
.archive figcaption b { font-size: 15px; }
.archive figcaption span { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink2); }
.archive-credit { margin-top: 18px; font-size: 13px; color: var(--ink2); }
@media (prefers-reduced-motion: reduce) { .archive img { transition: none; } }

/* For designers */
.studio { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; padding-block: 120px 0; }
.studio-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.studio-art svg {
  width: 100%; aspect-ratio: 1; padding: 18%; border-radius: var(--radius-tile);
  background: linear-gradient(180deg, var(--tile-start), var(--tile-end)),
              linear-gradient(rgba(46, 91, 255, .06) 1px, transparent 1px) 0 0 / 12px 12px;
  fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.studio-art svg:nth-child(2) { transform: translateY(-18px); }
.eyebrow-chip { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; letter-spacing: .02em; }

/* Tablets */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 72px; }
  .hero-tile { aspect-ratio: 1 / 1; max-height: 560px; }
  .hero-tile img { inset: 6% 12%; width: 76%; height: 88%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .moment-row { grid-template-columns: repeat(3, 1fr); }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .studio { grid-template-columns: 1fr; gap: 36px; }
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 40px, var(--wrap)); }
  .nav { padding-block: 16px; }
  .hero { padding-top: 16px; }
  .waitlist .button { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; gap: 48px; padding-bottom: 88px; }
  .moments { padding-bottom: 88px; }
  .moment-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    width: 100%; padding-inline: 20px; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .moment-row::-webkit-scrollbar { display: none; }
  .moment { flex: 0 0 44%; scroll-snap-align: start; }
  .privacy { width: 100%; border-radius: 0; padding: 56px 20px; }
  .promises { grid-template-columns: 1fr; gap: 28px; }
  .closing { padding-block: 88px; }
  .footer { gap: 16px 24px; }
  .footer p { margin-left: 0; flex-basis: 100%; }
  .nav-signin { padding: 0 10px; }
  .swatches { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .studio { padding-top: 88px; }
  .archive { padding-bottom: 88px; }
  .archive-row { padding-inline: 20px; width: 100%; scroll-padding-inline: 20px; }
  .archive img { height: 220px; }
}
