/* =========================================================
   Atelier — editorial fashion styling
   Palette: warm paper, deep ink, muted accent
   ========================================================= */

:root {
  --paper: #f7f4ef;
  --paper-2: #efeae1;
  --ink: #171512;
  --ink-2: #2b2925;
  --muted: #8a857c;
  --line: #e3ddd1;
  --line-2: #d9d1c1;
  --accent: #6b5843;
  --accent-soft: #b9a68d;
  --danger: #8a3a3a;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(23, 21, 18, 0.04),
    0 8px 24px -16px rgba(23, 21, 18, 0.12);
  --shadow-md: 0 2px 4px rgba(23, 21, 18, 0.06),
    0 24px 48px -28px rgba(23, 21, 18, 0.18);
  --serif: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button {
  cursor: pointer;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}

.muted {
  color: var(--muted);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 244, 239, 0.78);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.site-nav a {
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[hidden] {
  display: none !important;
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

.nav-auth-user,
.nav-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.14);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav-auth-user {
  color: var(--ink-2);
}

.nav-auth-user:hover,
.nav-auth-link:hover {
  background: rgba(17, 17, 17, 0.04);
}

.inline-auth-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- HERO ---------- */
.hero {
  padding: 96px 32px 72px;
  text-align: left;
  max-width: 1080px;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 8px 0 28px;
}

.display em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-tags li {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-2);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
  font-family: inherit;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-block {
  width: 100%;
  margin-top: 16px;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- HOW ---------- */
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  padding: 56px 32px 96px;
}

.how-item {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.how-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 12px;
}

.how-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.how-item p {
  color: var(--ink-2);
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  max-width: 32ch;
}

/* ---------- STUDIO ---------- */
.studio {
  padding: 80px 32px 96px;
  border-top: 1px solid var(--line);
}

.studio-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

.section-sub {
  color: var(--ink-2);
  font-size: 16px;
  margin: 0;
  max-width: 56ch;
}

.studio-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.upload-panel {
  position: sticky;
  top: 96px;
}

/* ---------- DROPZONE ---------- */
.dropzone {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--paper);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--ink);
  background: var(--paper-2);
}

.dz-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  color: var(--ink-2);
  transition: opacity 0.2s var(--ease);
}

.dz-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  color: var(--accent);
}

.dz-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--ink);
}

.dz-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.02em;
}

.preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.dropzone.has-image .dz-inner {
  opacity: 0;
  pointer-events: none;
}

.dropzone.has-image .preview {
  display: block;
}

.clear-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(23, 21, 18, 0.78);
  color: #fff;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 0.2s var(--ease);
}

.clear-btn:hover {
  background: var(--ink);
}

/* ---------- CONTROLS ---------- */
.gender-toggle {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px;
  background: var(--paper);
}

.gender-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.gender-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-option span {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.gender-option input:checked + span {
  background: var(--ink);
  color: var(--paper);
}

.gender-option:hover span {
  color: var(--ink);
}

.gender-option input:checked + span:hover {
  color: var(--paper);
}

.person-ref {
  margin-top: 18px;
}

.person-label {
  display: block;
  cursor: pointer;
}

.person-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.person-label:hover .person-inner {
  border-color: var(--ink);
  background: var(--paper-2);
}

.person-avatar {
  position: relative;
  width: 48px;
  height: 62px;
  border-radius: 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.person-avatar-placeholder {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}

.person-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.person-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.person-sub {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.person-clear {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(23, 21, 18, 0.72);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
}

.person-clear:hover {
  background: var(--ink);
}

.person-hint {
  margin: 8px 2px 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}


.field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 42px;
  padding: 0 36px 0 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path fill='none' stroke='%23171512' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' d='M2 3.5L5 6.5L8 3.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s var(--ease);
}

.field select:focus {
  outline: none;
  border-color: var(--ink);
}

.fine-print {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 0;
  letter-spacing: 0.02em;
}

/* ---------- RESULTS ---------- */
.results-panel {
  min-height: 520px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.results-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
}

.results-empty h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}

.results-empty p {
  margin: 0;
}

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.results-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: var(--paper-2);
}

.source-badge.ai {
  border-color: var(--accent-soft);
  color: var(--accent);
}

.source-badge.ai::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.source-badge.local::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.results-head .regen {
  font-size: 13px;
  color: var(--accent);
  background: transparent;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.04em;
  padding: 6px 0;
  border-bottom: 1px solid var(--accent-soft);
  font-family: inherit;
}

.results-head .regen:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.lookbook {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto 28px;
  aspect-ratio: 2 / 3;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lookbook-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: fade 0.6s var(--ease);
}

.lookbook-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(
    110deg,
    var(--paper-2) 0%,
    #f4efe6 45%,
    var(--paper-2) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

.looks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.palette-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.palette-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(6px);
  animation: rise 0.45s var(--ease) forwards;
}

.palette-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.palette-mood {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.palette-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.palette-swatches span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(23, 21, 18, 0.08);
  box-shadow: inset 0 0 0 2px #fff;
}

.look {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.5s var(--ease) forwards;
}

.look-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.look-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.look-visual:empty {
  display: none;
}

.look-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: fade 0.6s var(--ease);
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.visual-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(
    110deg,
    var(--paper-2) 0%,
    #f4efe6 45%,
    var(--paper-2) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.skeleton-bar {
  width: 56px;
  height: 1px;
  background: var(--accent-soft);
}

.visual-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.look:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}

.look-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.look-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}

.look-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  white-space: nowrap;
  margin-top: 6px;
}

.look-mood {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  width: fit-content;
  padding: 5px 10px;
  background: var(--paper-2);
  border-radius: 999px;
}

.look-mood::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.look-palette {
  display: flex;
  gap: 6px;
}

.look-palette span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(23, 21, 18, 0.08);
  box-shadow: inset 0 0 0 2px #fff;
}

.items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.items li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.items li:last-child {
  border-bottom: 0;
}

.items .slot {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.items .piece {
  color: var(--ink);
  line-height: 1.55;
}

.why {
  margin: 0;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 2px solid var(--accent-soft);
  border-radius: 2px;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

.occasions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.occasions span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- LOADING ---------- */
.loader {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
}

.loader h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 10px;
}

.loader-bar {
  position: relative;
  height: 2px;
  width: 220px;
  max-width: 60%;
  margin: 22px auto 6px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}

.loader-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--ink);
  animation: slide 1.2s var(--ease) infinite;
}

@keyframes slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

.loader-steps {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 6px;
  min-height: 1.4em;
}

/* ---------- ERROR ---------- */
.error-box {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  color: var(--ink-2);
}

/* ---------- NOTES ---------- */
.notes {
  padding: 80px 32px 120px;
  border-top: 1px solid var(--line);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 16px;
}

.notes-grid article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.notes-grid h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
}

.notes-grid p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.65;
}
/* ---------- GUIDES ---------- */
.guides {
  padding: 16px 32px 0;
}

.guides-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.guide-card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}

.guide-card p {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- FOOTER ---------- */
.site-footer {
  margin-top: 96px;
  padding: 32px 0 64px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .upload-panel {
    position: static;
  }
  .how {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 64px;
  }
  .looks,
  .palette-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guides-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }
  .hero {
    padding: 64px 20px 56px;
  }
  .studio {
    padding: 56px 20px 72px;
  }
  .notes {
    padding: 56px 20px 88px;
  }
  .guides {
    padding: 0 20px;
  }
  .guides-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-nav a:not(.nav-cta) {
    display: none;
  }
  .controls {
    grid-template-columns: 1fr;
  }
  .items li {
    grid-template-columns: 96px 1fr;
  }
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .palette-row {
    grid-template-columns: 1fr;
  }
}
