/*
 * ÉDIT website styles. Same tokens as the app (src/theme.ts in "EDIT appstore 2"):
 * cream, ink, one red; Archivo 900, Playfair Display italic, JetBrains Mono, Inter.
 * Square corners, no shadows, no gradients, text flush left.
 * Red only for prices, the main button, the active page, the guide label and the logo's period.
 */
:root {
  --bg: #FAFAF7;
  --ink: #0A0A0A;
  --ink-2: #4A4A4A;
  --accent: #D54122;
  --dark: #000000;
  --on-dark: #FAFAF7;
  --on-dark-2: #D6D6D1;
  --on-dark-ph: #BDBDB8;
  --pressed: #F0EFEA;
  --placeholder: #E4E1DA;

  --display: 'Archivo', 'Arial Black', Impact, sans-serif;
  --editorial: 'Playfair Display', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --pad: 20px;
  --max: 1240px;
  --topbar: 48px;
}
@media (min-width: 720px) { :root { --pad: 32px; } }
@media (min-width: 1200px) { :root { --pad: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
input { border-radius: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--on-dark); }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 8px; top: -100px; z-index: 30;
  background: var(--ink); color: var(--on-dark); padding: 10px 14px;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
}
.screen-title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(44px, 7vw, 88px);
}
.card-title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(22px, 2.2vw, 30px);
}
.label {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bold { font-weight: 700; }
.editorial {
  font-family: var(--editorial);
  font-style: italic;
  font-weight: 400;
  line-height: 1.38;
  color: var(--ink-2);
}
.muted { color: var(--ink-2); }
.red { color: var(--accent); }
.intro { color: var(--ink-2); max-width: 62ch; }
.price { font: 700 16px/1.3 var(--body); color: var(--accent); }
.u { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 0 16px;
  background: var(--accent);
  color: var(--on-dark);
  border: 0;
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn:hover { background: #BC3A1E; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn.outline { background: transparent; border: 1px solid currentColor; }
.btn.outline:hover { background: rgba(250, 250, 247, 0.12); }

/* ---------- Header and footer ---------- */
.site-header { border-bottom: 2px solid var(--ink); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 18px; }
.logo { font: 900 28px/1 var(--display); letter-spacing: -0.02em; padding: 8px 0; }
.logo span { color: var(--accent); }
.header-label { display: none; color: var(--ink-2); }
@media (min-width: 720px) { .header-label { display: inline; } }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--ink-2); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.site-footer { border-top: 2px solid var(--ink); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 28px;
}
.site-footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: transparent; }
.site-footer a:hover { text-decoration-color: currentColor; }

/* ---------- Moving strip of look photos (home) ---------- */
.strip {
  --tile-h: clamp(220px, 30vw, 420px);
  position: relative;
  overflow: hidden;
  padding: 4px 0;
  border-bottom: 2px solid var(--ink);
}
.strip-track {
  display: flex;
  gap: 4px;
  width: max-content;
  animation: strip-move 64s linear infinite;
}
@media (min-width: 720px) { .strip-track { animation-duration: 96s; } }
.strip:hover .strip-track,
.strip:focus-within .strip-track,
.strip.paused .strip-track { animation-play-state: paused; }
.strip-set { display: flex; gap: 4px; }
.strip-set a {
  display: block;
  width: calc(var(--tile-h) * 0.8);
  height: var(--tile-h);
  background: var(--placeholder);
  overflow: hidden;
}
.strip-set img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Two identical sets side by side: moving by one set (half the track plus half a gap) loops seamlessly. */
@keyframes strip-move { to { transform: translateX(calc(-50% - 2px)); } }
.strip-toggle {
  position: absolute;
  right: var(--pad);
  bottom: 16px;
  min-height: 32px;
  padding: 6px 10px;
  background: var(--bg);
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; }
  .strip-track { animation: none; }
  .strip-set[aria-hidden="true"], .strip-toggle { display: none; }
}

/* ---------- Home headline ---------- */
.hero { padding-top: 40px; padding-bottom: 32px; }
.hero-title { font-size: clamp(40px, 7.4vw, 104px); }
.hero-title span { display: block; }
.hero-sub { font-size: clamp(18px, 2vw, 24px); margin-top: 16px; }

/* ---------- Guide cards ---------- */
.guides { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .guides { grid-template-columns: repeat(2, 1fr); } }
.home-guides { padding-bottom: 64px; }
.guide-card {
  display: grid;
  grid-template-columns: minmax(112px, 38%) 1fr;
  border: 2px solid var(--ink);
  background: var(--bg);
  transition: background-color 0.15s;
}
a.guide-card:hover { background: var(--pressed); }
.guide-photo {
  position: relative;
  overflow: hidden;
  border-right: 2px solid var(--ink);
  background: var(--placeholder);
}
.guide-photo::before { content: ""; display: block; padding-top: 125%; }
.guide-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.guide-text { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
@media (min-width: 720px) { .guide-text { gap: 10px; padding: 20px 22px 22px; } }
.guide-text .editorial { font-size: 17px; }
.guide-text .meta { margin-bottom: 8px; }
.guide-text .btn { margin-top: auto; width: 100%; }
.guide-card.soon {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--dark);
  color: var(--on-dark);
  border-color: var(--dark);
}
.guide-card.soon .card-title { margin-top: 4px; }

/* ---------- Page heads ---------- */
.page-head { padding-top: 40px; padding-bottom: 32px; }
.screen-title .red { color: var(--accent); }
.page-head .editorial { font-size: clamp(18px, 2vw, 24px); margin-top: 14px; }

/* ---------- Guides page ---------- */
.guide-list { display: grid; gap: 24px; padding-bottom: 64px; }
.guide-feature { display: grid; border: 2px solid var(--ink); }
.guide-feature-photo { display: block; background: var(--placeholder); border-bottom: 2px solid var(--ink); }
.guide-feature-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.guide-feature-text { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 24px; }
.guide-feature-text h2 { font-size: clamp(34px, 4.6vw, 64px); }
.guide-feature-text .editorial { font-size: clamp(19px, 1.8vw, 24px); }
.guide-feature-text .btn { align-self: flex-start; margin-top: 6px; }
@media (min-width: 820px) {
  .guide-feature { grid-template-columns: 5fr 7fr; }
  .guide-feature-photo { border-bottom: 0; border-right: 2px solid var(--ink); }
  .guide-feature-text { justify-content: center; padding: 36px 40px; }
}

/* ---------- Guide feed ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--topbar);
}
.topbar a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; white-space: nowrap; }
.topbar a:hover { color: var(--ink-2); }
.topbar-name { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.feed-head { padding: 40px 0 36px; border-bottom: 2px solid var(--ink); }
.feed-title { font-size: clamp(40px, 6.4vw, 88px); margin: 10px 0 18px; }
.feed-tagline { font-size: 24px; line-height: 1.3; }
.feed-head .intro { margin-top: 12px; }

.look {
  display: grid;
  gap: 20px;
  padding: 28px 0 32px;
  border-bottom: 2px solid var(--ink);
  scroll-margin-top: calc(var(--topbar) + 8px);
}
.look-photo { position: relative; align-self: start; background: var(--placeholder); }
.look-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.plate { position: absolute; left: 12px; bottom: 12px; padding: 5px 8px; background: var(--bg); }
.look-title { font-size: clamp(34px, 4.2vw, 56px); margin: 8px 0 14px; }
.look-note { font-size: 18px; max-width: 52ch; }
.pieces-label { margin: 24px 0 8px; }
@media (min-width: 820px) {
  .look { grid-template-columns: 5fr 7fr; gap: 48px; padding: 48px 0; }
  .look-photo { position: sticky; top: calc(var(--topbar) + 24px); }
}

.items { border-top: 1px solid var(--ink); }
.item { border-bottom: 1px solid var(--ink); }
.item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  margin: 0 -8px;
  padding: 10px 8px;
  transition: background-color 0.15s;
}
a.item-row:hover { background: var(--pressed); }
.item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-brand { font: 400 11px/1.4 var(--mono); text-transform: uppercase; color: var(--ink-2); }
.item-name { font: 500 15px/1.3 var(--body); }
.item-shop {
  max-width: 16ch;
  font: 700 11px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
}
@media (min-width: 560px) { .item-shop { max-width: none; white-space: nowrap; } }

.more { padding-top: 40px; padding-bottom: 64px; }
.more > .label { margin-bottom: 14px; }

/* ---------- Email sign-up (one list with the app) ---------- */
.dark { background: var(--dark); color: var(--on-dark); }
.signup .wrap { padding-top: 48px; padding-bottom: 52px; }
.signup-inner { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .signup-inner { grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
}
.signup-headline {
  max-width: 24ch;
  margin-top: 10px;
  font-family: var(--editorial);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
  color: var(--on-dark);
}
.field { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 560px) { .field { flex-direction: row; gap: 0; } }
.field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--on-dark);
  color: var(--on-dark);
  font: 400 16px/1 var(--body);
}
.field input::placeholder { color: var(--on-dark-ph); }
.field .btn { flex: 0 0 auto; }
.signup-msg { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--on-dark); }
.signup-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--on-dark-2); }
.signup-done { display: none; font-family: var(--editorial); font-style: italic; font-size: 24px; line-height: 1.3; }
.signed-up .signup-form, .signup-slot.done .signup-form { display: none; }
.signed-up .signup-done, .signup-slot.done .signup-done { display: block; }

.feed-card { display: grid; gap: 12px; margin: 32px 0; padding: 18px 24px 26px; }
.feed-card .signup-headline { margin-top: 0; font-size: clamp(24px, 2.4vw, 30px); }
.feed-card-top { display: flex; justify-content: space-between; align-items: center; }
.not-now {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.signed-up .feed-card, .card-dismissed .feed-card, .feed-card.gone { display: none; }

/* ---------- About ---------- */
.about { padding-top: 40px; padding-bottom: 64px; }
.about-title { margin-top: 10px; }
.about-title em {
  font-family: var(--editorial);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
}
.about-photo { margin: 32px 0; border: 2px solid var(--ink); background: var(--placeholder); }
.about-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 15%; }
.about-text { display: grid; gap: 16px; max-width: 66ch; }
.about-lead { font-size: clamp(22px, 2.4vw, 28px); color: var(--ink); }
.about-accent { font-size: clamp(20px, 2.2vw, 24px); color: var(--ink); }
.about-text strong { font-weight: 700; }
.about-text .btn { justify-self: start; margin-top: 8px; }
