/* Space Mono (labels/metadata) + Fraunces (editorial serif headlines) —
   loaded here so every page that links style.css gets both. */
@import url("https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,400;1,9..144,600&display=swap");

* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;

  /* —— Dark corporate editorial palette —— */
  --bg: #090909;                /* primary black             */
  --bg-box: #171717;            /* charcoal — card/panel surfaces */
  --bg-box-hover: #1f1f1f;      /* hover surface              */
  --text: #EFEDE7;              /* warm off-white             */
  --text-dim: #C9C7C1;          /* dimmer warm off-white      */
  --text-faint: #999790;        /* muted text                 */
  --border: rgba(239, 237, 231, 0.18);   /* fine dark-mode border   */
  --border-light: rgba(239, 237, 231, 0.32);
  --image-bg: #171717;          /* image slot backdrop        */

  /* Warm light-grey — for the deliberate light sections used
     sparingly against the black base. */
  --warm-grey: #EFEDE7;
  --grey-2: #D9D5CC;
  --border-on-light: rgba(9, 9, 9, 0.17); /* fine light-mode border */

  /* Editorial highlight band — used sparingly, not for ordinary UI. */
  --band-purple: var(--accent);
  --band-purple-text: #FFFFFF;

  /* Cobalt — the single primary accent, used selectively. */
  --accent: #244CFF;
  --accent-2: #6D84FF;
  --danger: #A84B3F;            /* muted red — rare status use only */

  /* Accent: bone is the "active/link" colour; --signal is the single
     restrained functional accent (statuses only, used sparingly). */
  --purple: #1b1b1e;           /* legacy name: accent surface  */
  --purple-2: #eceae4;         /* legacy name: accent / links  */
  --purple-deep: #202024;      /* legacy name: deep accent     */
  --purple-glow: rgba(255, 255, 255, 0.05);
  --signal: #c8a86b;           /* muted brass — status only    */

  --header-h: 56px;
  --pad: clamp(20px, 5vw, 28px);
  /* Serif = editorial headlines; sans = body/nav/UI; mono = labels/metadata. */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Helvetica Neue", "Inter", Arial, system-ui, sans-serif;
  --font: "Space Mono", "Courier New", Courier, monospace;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Utility labels, metadata, eyebrows, item IDs — the technical/mono voice. */
.section-bar__label,
.catalog-card__status,
.catalog-card__brand,
.drop-hero__eyebrow,
.home-eyebrow,
.inbox-row__from,
.inbox-header,
.product-kicker,
.product-drop,
.badge,
[class*="__eyebrow"],
[class*="__tag"],
[class*="__meta"] {
  font-family: var(--font);
}

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

button,
a,
input {
  min-height: 44px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-shell,
.site-header {
  min-width: 0;
}

.portal-shell {
  width: min(960px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  overflow-x: clip;
}

/* ============================================================
   Site header — one sticky black header, used on every page.
   Full-bleed bar; inner row aligned to the portal-shell width.
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.site-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  width: min(960px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}

.site-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  padding-bottom: 2px;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-left: 1px solid var(--border);
  transition: color 0.15s ease;
}

.site-nav a:first-child {
  border-left: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--accent-2);
  outline: none;
}

.site-header__utility {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__utility a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}
.site-header__utility a:hover,
.site-header__utility a:focus-visible { color: var(--accent-2); outline: none; }

/* —— Mobile menu toggle + full-screen overlay —— */
.site-header__menu {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}
.site-header__menu:hover, .site-header__menu:focus-visible { border-color: var(--accent); color: var(--accent-2); outline: none; }

@media (max-width: 767px) {
  .site-nav { display: none; }
  .site-header__utility a { display: none; }
  .site-header__menu { display: inline-block; }

  .site-header.is-open .site-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    z-index: 39;
    padding: 24px max(var(--pad), env(safe-area-inset-left));
    overflow-y: auto;
    justify-content: flex-start;
  }
  .site-header.is-open .site-nav a {
    border-left: none;
    border-bottom: 1px solid var(--border);
    justify-content: flex-start;
    padding: 18px 4px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a, .site-header__utility a, .site-header__menu,
  .catalog-card__image img, .study-card__image img { transition: none; }
}

/* Admin toolbar variant — full-width action bar, not centered nav. */
.site-header--admin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 max(var(--pad), env(safe-area-inset-left)) 0 max(var(--pad), env(safe-area-inset-right));
  min-height: var(--header-h);
}
.site-header--admin .site-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  overflow-x: auto;
}
.site-header--admin .site-nav a,
.site-header--admin .admin-public-link {
  border-left: none;
  color: var(--text-dim);
}
@media (max-width: 767px) {
  .site-header--admin .site-nav { display: flex; }
  .site-header--admin .site-header__menu { display: none; }
}

.page-section {
  padding-block: clamp(28px, 6vw, 52px);
  border-bottom: 1px dotted var(--border);
}

.page-section:last-child {
  border-bottom: none;
  padding-bottom: clamp(32px, 8vw, 56px);
}

/* —— Home / portal landing —— */
.portal-home {
  padding-top: clamp(24px, 6vw, 40px);
}

.portal-title {
  max-width: 36rem;
  margin-bottom: clamp(20px, 5vw, 32px);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

.portal-headline {
  margin: 0;
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.subhead {
  margin: 14px 0 0;
  max-width: 32rem;
  color: var(--text-dim);
  font-size: clamp(0.88rem, 2.6vw, 0.95rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.portal-meta {
  margin: 12px 0 0;
  font-size: clamp(9px, 2.4vw, 10px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  overflow-wrap: anywhere;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.portal-card {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--bg-box);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.portal-card:hover,
.portal-card:focus-visible {
  background: color-mix(in srgb, var(--bg-box-hover) 85%, var(--purple-deep));
  border-color: var(--text);
  color: var(--text);
  outline: none;
}

/* —— Section bars —— */
/* Quiet section header: an eyebrow label + a hairline rule, no box. */
.section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
}

.section-bar__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

.section-bar__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

/* —— Inbox (market-notes page) —— */
.inbox-header {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0 14px;
  align-items: center;
  padding: 8px 4px 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.inbox-header__from   { padding-left: 66px; }
.inbox-header__date   { text-align: right; white-space: nowrap; }

.inbox-list {
  display: flex;
  flex-direction: column;
}

/* Each row is a full-width link */
.inbox-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0 14px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 64px;
}

.inbox-row:hover,
.inbox-row:focus-visible {
  background: var(--bg-box);
  outline: none;
}

/* Thumbnail */
.inbox-thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  background: var(--image-bg);
  border: 1px solid var(--border);
}

.inbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inbox-thumb__placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-box);
}

/* Body: from + title + preview stacked */
.inbox-row__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.inbox-row__from {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-row__title {
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 2.6vw, 1.02rem);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-row__preview {
  font-size: clamp(0.75rem, 2vw, 0.82rem);
  font-weight: 400;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Date */
.inbox-row__date {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  white-space: nowrap;
  align-self: flex-start;
  padding-top: 2px;
}

/* Mobile: hide the header labels, thumbnail shrinks slightly */
@media (max-width: 480px) {
  .inbox-header { display: none; }

  .inbox-row {
    grid-template-columns: 44px 1fr auto;
    gap: 0 10px;
    padding: 10px 2px;
    min-height: 56px;
  }

  .inbox-thumb {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
}

/* —— Market notes (legacy styles kept for reference) —— */
.market-notes__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.note-feature,
.note-teaser {
  padding: 16px 18px;
  background: var(--bg-box);
  min-width: 0;
}

.note-feature {
  border-left: 2px solid var(--purple);
  background: color-mix(in srgb, var(--bg-box) 90%, var(--purple-deep));
}

.note-feature__title,
.note-teaser__title {
  margin: 0;
  font-size: clamp(0.92rem, 2.8vw, 1rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.note-feature__preview {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: clamp(0.85rem, 2.5vw, 0.88rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.note-rail {
  display: grid;
  gap: 12px;
}

.note-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--text);
  text-underline-offset: 3px;
}

.note-link:hover,
.note-link:focus-visible {
  color: var(--text);
  outline: none;
}

/* —— Closet capital —— */
.closet-capital__tools {
  margin: 0 0 14px;
  font-size: 10px;
}

.sheet-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-underline-offset: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}

.sheet-link:hover,
.sheet-link:focus-visible {
  color: var(--text);
  outline: none;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.metric-card {
  padding: 12px 14px;
  background: var(--bg-box);
  min-width: 0;
}

.metric-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.metric-card strong {
  display: block;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dotted var(--border);
}

.toggle-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
  border: 1px solid var(--border);
  background: var(--bg-box);
}

.toggle-group::-webkit-scrollbar {
  display: none;
}

.toggle {
  appearance: none;
  flex: 0 0 auto;
  margin: 0;
  min-height: 44px;
  padding: 0 14px;
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.toggle:last-child {
  border-right: none;
}

.toggle:hover,
.toggle:focus-visible {
  color: var(--text);
  background: var(--bg-box-hover);
  outline: none;
}

.toggle.active {
  color: var(--text);
  background: var(--purple);
}

.search-wrap {
  display: block;
  width: 100%;
}

.search-wrap input {
  width: 100%;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-box);
  color: var(--text);
  font-family: inherit;
  font-size: max(16px, 0.94rem);
  outline: none;
}

.search-wrap input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--purple-glow);
}

.status-message {
  margin-bottom: 14px;
  padding: 12px 14px;
  color: var(--text-dim);
  font-size: 0.88rem;
  border: 1px dashed var(--border);
  background: var(--bg-box);
}

.status-message.hidden {
  display: none;
}

/* —— Catalog grid (closet / bin page) —— */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 32px);
  align-items: start;  /* each card sits at its own top, not stretched */
}

/* The card itself: no box, no background — just a vertical stack */
.catalog-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.catalog-card--sold {
  opacity: 0.72;
}

/* ── Meta block: text floats above the image, visually disconnected ── */
.catalog-card__meta {
  padding: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.catalog-card__meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.catalog-card__brand {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status: plain text label, no box — keeps it editorial */
.catalog-card__status {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.catalog-card__status--closet  { color: var(--text-faint); }
.catalog-card__status--listed  { color: var(--text); }
.catalog-card__status--sold    { color: var(--text-faint); }

.catalog-card__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 2.6vw, 1.05rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.catalog-card__title-link {
  color: var(--text);
  text-decoration: none;
}

.catalog-card__title-link:hover,
.catalog-card__title-link:focus-visible {
  color: var(--text);
  outline: none;
}

.catalog-card__details {
  margin: 0;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.catalog-card__shop {
  display: inline-block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.catalog-card__shop:hover,
.catalog-card__shop:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* ── Image block: portrait, standalone, no top decoration ── */
.catalog-card__img-link {
  display: block;
  text-decoration: none;
}

.catalog-card__image {
  aspect-ratio: 3 / 4;   /* portrait — taller than wide */
  width: 100%;
  overflow: hidden;
  background: var(--image-bg);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.catalog-card__img-link:hover .catalog-card__image,
.catalog-card__img-link:focus-visible .catalog-card__image {
  border-color: var(--text);
  outline: none;
}

.catalog-card__image--sold {
  filter: grayscale(20%);
}

.catalog-card__image { overflow: hidden; }
.catalog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.catalog-card__img-link:hover .catalog-card__image img,
.catalog-card__img-link:focus-visible .catalog-card__image img {
  transform: scale(1.04);
}

.catalog-card__image--empty {
  display: grid;
  place-items: center;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Mobile: single column on very small screens */
@media (max-width: 400px) {
  .items-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Archive listings (legacy styles, still used by item.html) —— */
.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-box);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.item-card:hover {
  border-color: color-mix(in srgb, var(--text) 55%, var(--border));
}

.item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-box);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.item-card:hover {
  border-color: color-mix(in srgb, var(--text) 55%, var(--border));
}

.archive-card--sold {
  opacity: 0.92;
}

/* Status label shown top-left on every card image */
.card-corner-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  pointer-events: none;
}

.item-image,
.product-media {
  position: relative;
  overflow: hidden;
  background: var(--image-bg);
}

.item-image {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--border);
}

.item-image img,
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.empty-x-box {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  background-color: #d9d9d9;
  color: #4d4d4d;
  font-size: 48px;
  font-weight: 700;
}

.image-placeholder,
.product-placeholder,
.product-media__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  height: 100%;
  color: var(--text-faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px dotted var(--border);
  background: var(--image-bg);
}

.item-image.is-missing-image::after,
.product-media.is-missing-image::after {
  content: "No image";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  color: var(--text-faint);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--image-bg);
  border: 1px dotted var(--border);
  pointer-events: none;
}

.item-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.item-body__hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.item-body__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.item-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-2);
  background: var(--purple-deep);
  border: 1px solid var(--purple);
}

.item-ledger {
  margin: 0;
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  border-top: 1px dotted var(--border);
}

.item-ledger--closet {
  grid-template-columns: 1fr;
}

.item-ledger__row dt {
  margin: 0 0 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.item-ledger__row dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.ledger-muted {
  color: var(--text-faint);
  font-weight: 500;
}

.card-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-underline-offset: 3px;
}

.card-link:hover,
.card-link:focus-visible {
  outline: none;
  color: var(--text);
  text-decoration-color: var(--text);
}

button.card-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin-left: 10px;
  font-family: inherit;
  cursor: pointer;
}

/* —— Note article page (note.html) —— */
.note-page {
  padding-block: clamp(24px, 6vw, 48px);
}

.note-article {
  max-width: 42rem;
}

.note-article__cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  margin-bottom: clamp(20px, 5vw, 36px);
  background: var(--image-bg);
  border: 1px solid var(--border);
}

.note-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.note-article__header {
  margin-bottom: clamp(20px, 5vw, 32px);
  padding-bottom: clamp(16px, 4vw, 24px);
  border-bottom: 1px solid var(--border);
}

.note-article__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.note-article__eyebrow a {
  color: var(--text);
  text-decoration: none;
}

.note-article__eyebrow a:hover { text-decoration: underline; }

.note-article__title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.note-article__subtitle {
  margin: 0;
  font-size: clamp(0.92rem, 2.8vw, 1.05rem);
  color: var(--text-dim);
  line-height: 1.5;
}

.note-article__body p {
  margin: 0 0 1.25em;
  font-size: clamp(0.9rem, 2.6vw, 1rem);
  line-height: 1.72;
  color: var(--text);
}

.note-article__body p:last-child { margin-bottom: 0; }

/* Inline images inside the body */
.note-article__figure {
  margin: clamp(20px, 5vw, 36px) 0;
  padding: 0;
  width: 100%;
}

.note-article__figure img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  background: var(--image-bg);
}

/* —— About —— */
.about__text {
  margin: 0;
  max-width: 40rem;
  color: var(--text);
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* Mobile-first: keep controls stacked, full-width search, scrollable filters */
@media (max-width: 899px) {
  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    width: 100%;
    flex: none;
  }

  .toggle-group {
    flex: none;
    width: 100%;
  }

  /* Catalog layout: image on top, details below */
  .item-card {
    display: flex;
    flex-direction: column;
  }

  .item-image {
    aspect-ratio: 4 / 3;
    min-height: auto;
  }
}

@media (max-width: 379px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .item-ledger {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 520px) {
  .portal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .site-logo {
    max-width: none;
    flex: 0 0 auto;
  }

  .site-nav {
    max-width: none;
  }
}

@media (min-width: 720px) {
  .market-notes__body {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .note-rail {
    grid-template-rows: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .controls {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .toggle-group {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .search-wrap {
    flex: 0 1 280px;
    min-width: 200px;
    width: auto;
  }

  .search-wrap input {
    font-size: 0.94rem;
  }
}

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

  /* Catalog: 3 columns on wide screens */
  .items-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* —— Dashboard card → detail links —— */
.item-card__asset-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.item-card__asset-link--title {
  display: inline;
  min-height: auto;
}

.item-card__asset-link--title:hover,
.item-card__asset-link--title:focus-visible {
  color: var(--text);
  outline: none;
}

.item-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: auto;
  padding-top: 4px;
}

.asset-link,
.card-link.external-listing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
}

.asset-link {
  color: var(--text);
  text-decoration-color: var(--purple);
}

.asset-link:hover,
.asset-link:focus-visible {
  color: var(--text);
  text-decoration-color: var(--text);
  outline: none;
}

.external-listing {
  color: var(--text);
  text-decoration-color: var(--text);
}

.external-listing:hover,
.external-listing:focus-visible {
  color: var(--text);
  text-decoration-color: var(--text);
  outline: none;
}

.item-card__actions .card-link {
  margin-top: 0;
}

/* —— Product detail page (item.html) —— */
.pdp-body {
  min-height: 100vh;
}

.site-header--pdp {
  margin-bottom: 0;
}

.nav--pdp a:first-child {
  border-left: none;
}

.product-page {
  padding-block: clamp(16px, 4vw, 28px);
  max-width: 100%;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border: 1px solid var(--border);
  background: var(--bg-box);
  min-width: 0;
}

.product-layout--sold {
  opacity: 0.92;
}

.product-media {
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--border);
}

.product-info {
  padding: clamp(14px, 3.5vw, 20px);
  min-width: 0;
}

.product-kicker {
  margin: 0 0 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.product-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.product-status {
  margin: 12px 0 8px;
}

/* Prominent "Shop on {Platform}" call-to-action on the item detail page. */
.product-buy-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 20px;
}

.product-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 15px 22px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 18px var(--purple-glow);
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.product-buy:hover,
.product-buy:focus-visible {
  background: #333333;
  color: #ffffff;
  box-shadow: 0 8px 22px var(--purple-glow);
  outline: none;
}

.product-buy:active {
  transform: translateY(1px);
}

.product-buy__arrow {
  font-size: 1.05em;
  line-height: 1;
}

.product-buy__note {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.product-details {
  margin: 0;
  padding: 0;
  border-top: 1px dotted var(--border);
  border-bottom: 1px dotted var(--border);
}

.product-detail-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.product-detail-row:last-child {
  border-bottom: none;
}

.product-detail-row span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.product-detail-row strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}

.product-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  background: color-mix(in srgb, var(--bg-box) 90%, var(--purple-deep));
}

.product-note p {
  margin: 0;
  font-size: clamp(0.82rem, 2.4vw, 0.88rem);
  line-height: 1.55;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.product-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.product-actions .external-listing {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-link {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-underline-offset: 3px;
}

.product-link:hover,
.product-link:focus-visible {
  color: var(--text);
  text-decoration-color: var(--text);
  outline: none;
}

.product-link--external {
  text-decoration-color: var(--border-light);
}

.product-error {
  padding: 20px 16px;
  border: 1px dashed var(--border);
  background: var(--bg-box);
  max-width: 28rem;
}

.product-error p {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .product-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 0;
  }

  .product-media {
    border-bottom: none;
    border-right: 1px solid var(--border);
    aspect-ratio: auto;
    min-height: 320px;
    max-height: 520px;
  }

  .product-media img,
  .product-placeholder,
  .product-media__placeholder {
    min-height: 100%;
    max-height: 520px;
  }

  .product-media.is-missing-image::after {
    min-height: 100%;
    max-height: 520px;
  }
}

/* —— Site footer —— */
.site-footer {
  border-top: 1px dotted var(--border);
  margin-top: 48px;
  padding: 18px 0 max(clamp(24px, 6vw, 40px), env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  max-width: 100%;
}

.footer-left {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}

.footer-brand {
  flex: 0 0 auto;
  color: var(--text-faint);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer-admin {
  flex: 0 0 auto;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: color 0.12s ease, opacity 0.12s ease;
}

.footer-admin:hover,
.footer-admin:focus-visible {
  color: var(--text);
  opacity: 1;
  outline: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-icon:hover,
.footer-icon:focus-visible {
  color: var(--text);
  outline: none;
}

.footer-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.pdp-body .site-footer {
  margin-top: 32px;
}

@media (max-width: 560px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* ============================================================
   Home / index page — medium grey + muted green, typewriter font
   ============================================================ */

/* Colour tokens for the home page */
:root {
  --home-bg:        #0b0b0c;              /* near-black              */
  --home-green:     #eceae4;              /* bone nav text          */
  --home-green-dim: rgba(236, 234, 228, 0.4); /* muted eyebrow     */
  --home-font:      "Space Mono", "Courier New", Courier, monospace;
}

.home-body {
  background: var(--home-bg);
  /* smooth momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* crisp text rendering on retina */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  /* center vertically so content sits mid-screen when it fits */
  align-items: center;
  justify-content: center;
  /* respect notch / dynamic island / home bar */
  padding-top: max(clamp(40px, 10vw, 72px), env(safe-area-inset-top));
  padding-bottom: max(clamp(40px, 10vw, 72px), env(safe-area-inset-bottom));
  padding-left: max(clamp(20px, 6vw, 48px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 6vw, 48px), env(safe-area-inset-right));
}

.home-inner {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  /* mobile: centre everything */
  align-items: center;
}

.home-eyebrow {
  margin: 0 0 clamp(16px, 4vw, 32px);
  font-family: var(--home-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--home-green-dim);
  /* mobile: centred */
  text-align: center;
}

/* Nav list */
.home-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* mobile: centred */
  align-items: center;
  width: 100%;
}

/* Desktop: flip everything to left-aligned */
@media (min-width: 600px) {
  .home {
    justify-content: flex-start;
  }

  .home-inner {
    align-items: flex-start;
  }

  .home-eyebrow {
    text-align: left;
  }

  .home-nav {
    align-items: flex-start;
  }
}

.home-nav__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
  padding: 2px 16px 2px 12px;
  border-radius: 100px;
  font-family: var(--home-font);
  color: var(--home-green);
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
  width: fit-content;
  -webkit-tap-highlight-color: transparent;
}

.home-nav__item:hover,
.home-nav__item:focus-visible {
  background: var(--home-green);
  color: var(--home-bg);
  outline: none;
}

.home-nav__item:active {
  background: var(--home-green);
  color: var(--home-bg);
  opacity: 0.85;
}

.home-nav__item--active {
  background: var(--home-green);
  color: var(--home-bg);
}

/* Icon — scales with the text but stays proportionally small */
.home-nav__icon {
  width:  clamp(16px, 4vw, 36px);
  height: clamp(16px, 4vw, 36px);
  flex: 0 0 auto;
  opacity: 0.8;
  transition: opacity 0.14s ease;
}

.home-nav__item:hover .home-nav__icon,
.home-nav__item--active .home-nav__icon {
  opacity: 1;
}

/* Label: big word + tiny descriptor stacked */
.home-nav__label {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-nav__word {
  /* Slightly smaller + single-line so longer labels (e.g. "Sell to Poda")
     read all the way across instead of wrapping to two lines. */
  font-size: clamp(1.5rem, 8vw, 3.9rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.home-nav__sub {
  font-size: clamp(0.55rem, 1.5vw, 0.7rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  line-height: 1;
  padding-bottom: 4px;
}

/* Keep sub visible but slightly more opaque on active/hover */
.home-nav__item:hover .home-nav__sub,
.home-nav__item--active .home-nav__sub {
  opacity: 0.65;
}

/* Legacy — no longer used but kept for safety */
.home-nav__lock {
  width: clamp(16px, 2.6vw, 24px);
  height: clamp(16px, 2.6vw, 24px);
  flex: 0 0 auto;
  opacity: 0.75;
}

/* ============================================================
   Legacy landing page (kept for backwards compat)
   ============================================================ */
.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(var(--pad), env(safe-area-inset-top))
           max(var(--pad), env(safe-area-inset-right))
           max(var(--pad), env(safe-area-inset-bottom))
           max(var(--pad), env(safe-area-inset-left));
  text-align: center;
}

.landing-inner {
  width: min(520px, 100%);
}

.landing-eyebrow {
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
}

.landing-title {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 6.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  line-height: 1.1;
}

.landing-tagline {
  margin: 0 0 clamp(28px, 7vw, 44px);
  color: var(--text-dim);
  font-size: clamp(0.78rem, 2.3vw, 0.86rem);
}

.landing-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 8px;
  background: none;
  border: none;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.12s ease;
}

.landing-lock {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.landing-links a:hover,
.landing-links a:focus-visible {
  opacity: 0.7;
  outline: none;
}

/* ============================================================
   Archive — Pinterest-style masonry grid
   ============================================================ */

.archive-masonry {
  columns: 3 160px;
  column-gap: clamp(6px, 1.5vw, 10px);
  padding: clamp(16px, 4vw, 32px) 0;
}

.archive-masonry__item {
  break-inside: avoid;
  margin-bottom: clamp(6px, 1.5vw, 10px);
  overflow: hidden;
  display: block;
  background: var(--image-bg);
}

.archive-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.archive-masonry__item img:hover {
  opacity: 0.9;
}

/* Admin variant — delete button on hover */
.archive-masonry__item--admin {
  position: relative;
}

.archive-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  appearance: none;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  min-height: 24px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  border-radius: 2px;
}

.archive-masonry__item--admin:hover .archive-delete-btn {
  opacity: 1;
}

@media (max-width: 560px) {
  .archive-masonry {
    columns: 2;
  }
}

@media (max-width: 320px) {
  .archive-masonry {
    columns: 1;
  }
}

/* —— Note article substack link —— */
.note-article__substack {
  margin: clamp(20px, 5vw, 32px) 0 0;
  padding-top: clamp(16px, 4vw, 24px);
  border-top: 1px solid var(--border);
}

.note-article__substack a {
  font-size: clamp(0.9rem, 2.6vw, 1rem);
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--font);
}

.note-article__substack a:hover {
  opacity: 0.7;
}

.note-article__signup {
  margin: clamp(20px, 5vw, 32px) 0 0;
  padding-top: clamp(16px, 4vw, 24px);
  border-top: 1px solid var(--border);
}
.note-article__signup-label {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================================
   App shell — persistent sidebar + content panel (desktop only)
   Mobile keeps the old layout unchanged.
   ============================================================ */

.app-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Sidebar ── */
.app-sidebar {
  flex: 0 0 220px;
  width: 220px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 97%, var(--purple-deep));
  display: flex;
  flex-direction: column;
  padding: 28px 0 24px;
  transition: flex-basis 0.2s ease, width 0.2s ease, opacity 0.15s ease, padding 0.2s ease;
  z-index: 30;
}

.app-sidebar__brand {
  display: block;
  padding: 0 20px 28px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.app-sidebar__nav {
  display: flex;
  flex-direction: column;
}

.app-sidebar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  min-height: 36px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-left: 2px solid transparent;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.app-sidebar__link:hover,
.app-sidebar__link:focus-visible {
  color: var(--purple-2);
  background: var(--purple-deep);
  outline: none;
}

.app-sidebar__link--active {
  color: var(--purple-2);
  border-left-color: var(--purple-2);
  background: color-mix(in srgb, var(--purple-deep) 70%, transparent);
}

.app-sidebar__divider {
  height: 1px;
  background: var(--border);
  margin: 8px 20px;
}

/* ── Content panel ── */
.app-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* ── Topbar inside content panel ── */
.app-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 max(var(--pad), env(safe-area-inset-left));
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 94%, var(--purple-deep));
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-topbar__toggle {
  appearance: none;
  background: none;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 0;
  min-height: 32px;
  min-width: 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  border-radius: 3px;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
  flex-shrink: 0;
}

.app-topbar__toggle:hover,
.app-topbar__toggle:focus-visible {
  color: var(--purple-2);
  background: var(--purple-deep);
  border-color: var(--border);
  outline: none;
}

.app-topbar__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex: 1;
}

.app-topbar__home {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  flex-shrink: 0;
}

.app-topbar__home:hover { color: var(--text); }

/* Fullscreen: sidebar collapses to zero width */
.app-shell--fullscreen .app-sidebar {
  flex-basis: 0;
  width: 0;
  padding: 0;
  opacity: 0;
  border-right: none;
  pointer-events: none;
  overflow: hidden;
}

/* Mobile: hide sidebar + toggle entirely, content is full width */
@media (max-width: 767px) {
  .app-sidebar {
    display: none;
  }

  .app-topbar__toggle {
    display: none;
  }

  /* On mobile the topbar acts like a minimal header */
  .app-topbar {
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-top: env(safe-area-inset-top);
    min-height: calc(44px + env(safe-area-inset-top));
  }
}

/* ============================================================
   Poda v3 — consignment additions
   Monochrome, Space Mono, editorial. Reuses existing tokens.
   ============================================================ */

/* —— Status / category badges (new) —— */
.badge--available { color: var(--text); background: var(--bg); border-color: var(--text); }
.badge--selected  { color: var(--bg); background: var(--text); border-color: var(--text); }

/* —— Drop hero (public store header) —— */
.drop-hero {
  padding: 6px 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px dotted var(--border);
}
/* When drop-hero is used as a purple-band's inner content, the band
   itself owns spacing/edges — don't double up. */
.drop-hero.purple-band__inner {
  padding: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.drop-hero__eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.drop-hero__title {
  margin: 10px 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.92;
}
.drop-hero__sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* —— Sold overlay tag on cards —— */
.catalog-card__image { position: relative; }
.catalog-card__sold-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
}

/* —— Item detail: drop label + price + secondary buy —— */
.product-drop {
  margin: 4px 0 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.product-price {
  margin: 6px 0 16px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.product-buy--alt {
  background: var(--bg);
  color: var(--text);
  box-shadow: none;
  font-size: 11px;
  padding: 12px 20px;
}
.product-buy--alt:hover,
.product-buy--alt:focus-visible {
  background: var(--bg-box);
  color: var(--text);
}

/* —— Inbox category tag —— */
.inbox-row__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
  vertical-align: middle;
}
.inbox-row__tag--buy   { color: var(--bg); background: var(--text); border-color: var(--text); }
.inbox-row__tag--sell  { color: var(--text); border-color: var(--text); }
.inbox-row__tag--watch { color: var(--text-faint); }

/* —— Admin: filter labels, hints, wrapping status toggles —— */
.filter-label {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.admin-hint {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
}
.toggle-group--wrap { flex-wrap: wrap; overflow: visible; }
.metric-card small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* —— Admin: closets grid —— */
.closet-owner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.closet-owner-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--bg-box);
}
.closet-owner-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.closet-owner-card__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.closet-owner-card__count {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* —— Sell-to-Poda form —— */
.sell-form { margin-top: 18px; }
.sell-form textarea { min-height: 96px; resize: vertical; }
.about__lede {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

/* ============================================================
   OVERHAUL — shared chrome (centralized via layout.js)
   ============================================================ */

/* Sidebar meta strapline under the nav */
.app-sidebar__meta {
  margin: auto 0 0;
  padding-top: 20px;
  font-family: var(--font);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.app-sidebar__meta span { color: var(--border-light); }

/* Footer — rebuilt structure (footer-top / footer-bottom) */
.site-footer {
  display: block;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 28px;
  padding-bottom: 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand-block { display: flex; flex-direction: column; gap: 4px; }
.footer-brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.footer-tag {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-nav,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a,
.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-nav a:hover,
.footer-links a:hover,
.footer-nav a:focus-visible,
.footer-links a:focus-visible { color: var(--text); }
.footer-signup {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-build { color: var(--signal); }
.footer-status {
  margin-top: 8px;
  font-family: var(--font);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .footer-top { gap: 24px; }
}

/* ============================================================
   OVERHAUL — The Edit cards (image first, status overlay)
   ============================================================ */
.catalog-card__image { position: relative; }

/* Meta now sits BELOW the image */
.catalog-card__meta {
  padding: 12px 0 0;
}
.catalog-card__meta-row {
  margin-bottom: 3px;
}

/* Item ID — the technical/mono voice, right-aligned in the meta row */
.catalog-card__id {
  font-family: var(--font);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Status becomes a small label overlaid on the image */
.catalog-card__image > .catalog-card__status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 8px;
  letter-spacing: 0.16em;
  z-index: 2;
}
.catalog-card__status--available { color: var(--text); }
.catalog-card__status--external  { color: var(--signal); }
.catalog-card__status--sourcing  { color: var(--text-dim); }
.catalog-card__status--sold {
  color: var(--text-dim);
  background: rgba(11, 11, 12, 0.85);
}

/* Drop hero thesis line */
.drop-hero__thesis {
  margin: 10px 0 0;
  max-width: 52ch;
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.4;
  color: var(--text);
}
#dropControls { margin: 22px 0 6px; }

/* ============================================================
   OVERHAUL — Product detail (gallery + full spec + CTA)
   ============================================================ */
.product-layout {
  grid-template-columns: 1fr;
  border: none;
  background: transparent;
  gap: clamp(20px, 4vw, 40px);
}
@media (min-width: 860px) {
  .product-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
  .product-gallery { position: sticky; top: 24px; }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.product-layout .product-media {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  background: var(--image-bg);
  overflow: hidden;
}
.product-layout .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.product-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-info { padding: 0; }

.product-subline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
}
.product-id {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.product-subline .catalog-card__status {
  position: static;
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: var(--bg-box);
}

/* CTA button — bone on dark; readable hover */
.product-buy {
  border-radius: 0;
  box-shadow: none;
}
.product-buy:hover,
.product-buy:focus-visible {
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
}
.product-buy--alt {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.product-buy--alt:hover,
.product-buy--alt:focus-visible {
  background: var(--bg-box);
  color: var(--text);
}

/* "Why poda selected it" */
.product-selection {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--signal);
  background: var(--bg-box);
}
.product-selection__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}
.product-selection p { margin: 0; color: var(--text); }

/* ============================================================
   OVERHAUL — Homepage (editorial)
   ============================================================ */
.site-body { background: var(--bg); }

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

/* Buttons */
.btn-solid, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-solid { background: var(--text); color: var(--bg); border: 1px solid var(--text); }
.btn-solid:hover, .btn-solid:focus-visible { background: transparent; color: var(--text); outline: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--bg-box); border-color: var(--text); outline: none; }

/* ============================================================
   Purple editorial highlight band — used sparingly (see
   requirement: current thesis, a note headline, a drop
   announcement, one signup callout). Full-bleed background,
   content re-centered to match the page's own container width.
   ============================================================ */
.purple-band {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: var(--band-purple);
  color: var(--band-purple-text);
  padding: 64px 0;
}
.purple-band__inner {
  width: min(960px, 100%);
  margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}
/* The homepage uses a wider container (.home2) — match it exactly. */
.home2 .purple-band__inner {
  width: 100%;
  max-width: 1180px;
  padding: 0 clamp(20px, 5vw, 48px);
}
.purple-band h1,
.purple-band h2,
.purple-band h3,
.purple-band p,
.purple-band span {
  color: var(--band-purple-text);
}
.purple-band .thesis__keywords li {
  color: var(--band-purple-text);
  border-color: var(--band-purple-text);
}
@media (max-width: 700px) {
  .purple-band { padding: 40px 0; }
}

/* Email signup component (subscribe.js) */
.subscribe-form { max-width: 560px; }
.subscribe-form__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.subscribe-form__name,
.subscribe-form__email {
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg-box);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
}
.subscribe-form__name:focus,
.subscribe-form__email:focus {
  outline: none;
  border-color: var(--text);
}
.subscribe-form__submit {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
}
.subscribe-form__submit:disabled { opacity: 0.6; cursor: default; }
.subscribe-form__consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-faint);
}
.subscribe-form__consent input { flex: 0 0 auto; }
.subscribe-form__message {
  margin-top: 8px;
  font-size: 12px;
}
.subscribe-form__message--success  { color: var(--text); }
.subscribe-form__message--duplicate { color: var(--text-dim); }
.subscribe-form__message--error    { color: var(--signal); }

@media (max-width: 480px) {
  .subscribe-form__row { flex-direction: column; }
  .subscribe-form__submit { width: 100%; justify-content: center; }
}

/* ============================================================
   Homepage hero — split-screen composition.
   ============================================================ */
.hero { width: 100%; background: var(--bg); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  min-height: clamp(360px, 56vw, 560px);
  max-width: 1180px;
  margin: 0 auto;
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 48px);
}
.hero__eyebrow {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.hero__status {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 14ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__visual {
  position: relative;
  background: var(--accent);
  background-image:
    linear-gradient(rgba(239,237,231,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,237,231,0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}
.hero__visual-number {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 16vw, 13rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.9);
  padding: 0 clamp(12px, 2vw, 24px) clamp(4px, 1vw, 12px) 0;
}

@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { min-height: 220px; order: -1; }
}

/* —— Contextual strip beneath the hero —— */
.context-strip {
  width: 100%;
  background: var(--bg-box);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px clamp(20px, 5vw, 48px);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Home sections */
.home2 { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.home2 > section { padding: clamp(48px, 8vw, 96px) 0; border-bottom: 1px solid var(--border); }
/* A section that IS a purple band shouldn't double up padding/border. */
.home2 > section.purple-band { padding: 0; border-bottom: none; }

/* A. Premise */
.premise__meta {
  display: flex;
  gap: 20px;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.premise__statement {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.premise__support {
  margin: 28px 0 0;
  max-width: 54ch;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.5;
  color: var(--text-dim);
}
.premise__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* B. Thesis */
.thesis__statement {
  margin: 0;
  font-size: clamp(1.5rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.thesis__body { margin: 20px 0 0; max-width: 60ch; color: var(--text-dim); font-size: 1rem; line-height: 1.6; }
.thesis__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.thesis__keywords li {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 12px;
}

/* C. Featured note */
.feature-note__inner { display: grid; grid-template-columns: 1fr; gap: 24px; }
.feature-note__media { display: block; border: 1px solid var(--border); background: var(--image-bg); aspect-ratio: 4 / 3; overflow: hidden; }
.feature-note__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-note__meta { display: flex; gap: 16px; font-family: var(--font); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 12px; }
.feature-note__title { margin: 0 0 12px; font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.feature-note__title a { color: var(--text); text-decoration: none; }
.feature-note__title a:hover { color: var(--text-dim); }
.feature-note__abstract { margin: 0 0 16px; max-width: 56ch; color: var(--text-dim); line-height: 1.6; }

/* D. Featured study */
.feature-study__inner { display: grid; grid-template-columns: 1fr; gap: 24px; }
.feature-study__title { margin: 0 0 12px; font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.feature-study__title a { color: var(--text); text-decoration: none; }
.feature-study__meta { font-family: var(--font); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 12px; }
.feature-study__framing { margin: 0 0 16px; max-width: 52ch; color: var(--text-dim); line-height: 1.6; }
.feature-study__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feature-study__cell { aspect-ratio: 3 / 4; border: 1px solid var(--border); background: var(--image-bg); overflow: hidden; }
.feature-study__cell img { width: 100%; height: 100%; object-fit: cover; }

/* E. Home edit */
.home-edit__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.home-edit__all { font-family: var(--font); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; }
.home-edit__all:hover { color: var(--text); }

/* F/G. Bands */
.home-band__title { margin: 0 0 16px; font-family: var(--font-serif); font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 600; line-height: 0.95; letter-spacing: -0.02em; max-width: 24ch; }
.home-band__body { margin: 0 0 24px; max-width: 58ch; color: var(--text-dim); line-height: 1.6; }
.home-band__form-wrap { margin-top: 32px; }

/* Footer inside home max-width */
.site-body .site-footer { max-width: 1180px; margin: 0 auto; padding-left: clamp(20px, 5vw, 48px); padding-right: clamp(20px, 5vw, 48px); }

@media (min-width: 760px) {
  .feature-note__inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .feature-study__inner { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
}


/* ============================================================
   OVERHAUL — Lookbook + Visual Study + forms (Phase 3)
   ============================================================ */

/* Lookbook grid */
.study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 44px);
  margin-top: 28px;
}
@media (max-width: 560px) { .study-grid { grid-template-columns: 1fr; } }

.study-card { display: block; text-decoration: none; color: inherit; }
.study-card__image {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  background: var(--image-bg);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.study-card:hover .study-card__image,
.study-card:focus-visible .study-card__image { border-color: var(--text); outline: none; }
.study-card__image { overflow: hidden; }
.study-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.study-card:hover .study-card__image img,
.study-card:focus-visible .study-card__image img { transform: scale(1.04); }
.study-card__image .image-placeholder {
  display: grid; place-items: center; height: 100%;
  color: var(--text-faint); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
.study-card__meta { padding: 12px 0 0; }
.study-card__num {
  font-family: var(--font); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-faint);
}
.study-card__title { margin: 6px 0 0; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.study-card__framing { margin: 6px 0 0; font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* Study detail */
.study-article__header { max-width: 720px; margin: 0 auto 32px; }
.study-article__eyebrow {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-faint);
}
.study-article__eyebrow a { color: var(--text-dim); text-decoration: none; }
.study-article__eyebrow a:hover { color: var(--text); }
.study-article__title { margin: 14px 0 0; font-family: var(--font-serif); font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 0.9; }
.study-article__framing { margin: 14px 0 0; font-size: 1.05rem; color: var(--text-dim); line-height: 1.5; max-width: 60ch; }
.study-article__body { display: flex; flex-direction: column; gap: clamp(10px, 2vw, 18px); }
.study-figure { margin: 0; border: 1px solid var(--border); background: var(--image-bg); overflow: hidden; }
.study-figure img { width: 100%; display: block; }
.study-figure figcaption {
  padding: 8px 12px; font-family: var(--font); font-size: 10px;
  letter-spacing: 0.08em; color: var(--text-faint); border-top: 1px solid var(--border);
}
.study-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2vw, 18px); }
@media (max-width: 560px) { .study-pair { grid-template-columns: 1fr; } }
.study-article__related { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Process steps (Sell with poda) */
.process-steps {
  list-style: none; margin: 24px 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.process-steps li {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-dim); border: 1px solid var(--border); padding: 8px 12px;
}
.process-steps li span { color: var(--signal); font-weight: 700; }

/* Form success message */
.field-success {
  margin: 12px 0 0; font-size: 12px; color: var(--signal);
  font-family: var(--font); letter-spacing: 0.04em;
}

/* Public form image upload (Sell with poda + Sourcing) */
.submit-form { margin-top: 18px; }
.submit-form textarea { min-height: 120px; resize: vertical; }

.upload-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border: 1px dashed var(--border-light);
  background: var(--bg-box);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.upload-dropzone:hover,
.upload-dropzone:focus-within { border-color: var(--text); color: var(--text); }

.upload-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.upload-thumb {
  position: relative;
  width: 84px;
  height: 84px;
  border: 1px solid var(--border);
  background: var(--image-bg);
  overflow: hidden;
}
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: rgba(11, 11, 12, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.upload-thumb button:hover { background: var(--bg); color: var(--signal); }

