/* SM-ART Studio — tokens from 02-identidad/guardrails.md ("Gallery Warm") */
:root {
  --white: #FFFDF9;
  --ink: #1A1414;
  --muted: #8C8580;
  --line: #ECE6DF;
  --accent: #6B1D2A;
  --lavender: #C9CCEB;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 10vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--white); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(48px, 8vw, 104px); line-height: 0.98; }
h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; }
h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
em { font-style: italic; }
p { margin: 0 0 1em; }
.label { font: 400 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(18px, 1.5vw, 20px); max-width: 54ch; }

/* Signature motif: row of burgundy squares, like the border of her paintings */
.squares {
  height: 14px;
  background-image: linear-gradient(90deg, var(--accent) 0 22px, transparent 22px 100%);
  background-size: 44px 14px;
  background-repeat: repeat-x;
  opacity: .9;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid var(--ink); transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.link { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.link:hover { border-color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--white) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font: 400 26px/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; }
.brand i { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14px; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .btn { padding: 11px 16px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; font: 500 14px var(--sans); color: var(--ink); }

section { padding: var(--section) 0; scroll-margin-top: 68px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-head .label { display: block; margin-bottom: 16px; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero .label { display: block; margin-bottom: 28px; }
.hero h1 { margin-bottom: 32px; }
.hero h1 em { color: var(--accent); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-art figure { margin: 0; }
.hero-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Cartela (museum label) */
.caption { margin-top: 14px; font: 400 12px/1.6 var(--mono); color: var(--muted); }
.caption .title { display: block; font: italic 400 20px/1.3 var(--serif); color: var(--ink); letter-spacing: 0; margin-bottom: 2px; }
.caption a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }

/* Work grid */
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.work { margin: 0; }
.work img { width: 100%; object-fit: cover; background: var(--line); }
.work-a { grid-column: 1 / span 7; }
.work-a img { aspect-ratio: 4 / 3; }
.work-b { grid-column: 8 / span 5; align-self: end; }
.work-b img { aspect-ratio: 3 / 4; }
.work-c { grid-column: 1 / span 5; }
.work-c img { aspect-ratio: 3 / 4; }
.work-d { grid-column: 6 / span 7; align-self: end; }
.work-d img { aspect-ratio: 4 / 3; }
.work-e { grid-column: 3 / span 8; }
.work-e img { aspect-ratio: 4 / 3; }
.works-note { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 24px 28px; background: var(--lavender); }
.works-note p { margin: 0; max-width: 62ch; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 64px 1fr 1fr auto; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.service .num { font: 400 13px var(--mono); color: var(--muted); }
.service p { margin: 0; color: #3b3533; max-width: 48ch; }
.service .price { font: 400 12px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step .label { display: block; margin-bottom: 18px; }
.step h3 { font-size: 28px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* Studio */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.studio-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facts { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts span:first-child { color: var(--muted); font: 400 12px/1.8 var(--mono); text-transform: uppercase; letter-spacing: .06em; }

/* Contact */
.contact { background: var(--accent); color: var(--white); }
.contact .label { color: #E7C9CE; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact h2 { margin: 16px 0 20px; }
.contact p { color: #F3E3E5; }
.contact .link { border-color: #A3525F; }
form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #E7C9CE; }
input, select, textarea { width: 100%; background: transparent; color: var(--white); border: 0; border-bottom: 1px solid #A3525F; padding: 10px 0; font: 400 17px var(--sans); border-radius: 0; }
select option { color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--white); }
textarea { resize: vertical; min-height: 110px; }
.contact .btn { background: var(--white); color: var(--accent); border-color: var(--white); }
.contact .btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.form-note { font-size: 13px; color: #E7C9CE; margin: 0; }
.contact .squares { background-image: linear-gradient(90deg, var(--white) 0 22px, transparent 22px 100%); opacity: .25; margin-bottom: 48px; }

/* Footer */
.site-footer { padding: 56px 0 36px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-grid .brand { display: inline-block; margin-bottom: 14px; color: var(--ink); }
.footer-grid h4 { font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; color: var(--ink); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: clamp(56px, 8vw, 104px) 0; }
.legal h1 { font-size: clamp(44px, 6vw, 76px); margin: 14px 0 10px; }
.legal .updated { color: var(--muted); margin-bottom: 52px; }
.legal-body { max-width: 68ch; }
.legal-body h2 { font-size: 30px; margin: 44px 0 14px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }

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

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; width: auto; }
  .hero-grid, .studio-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .works { grid-template-columns: 1fr; }
  .work-a, .work-b, .work-c, .work-d, .work-e { grid-column: 1 / -1; }
  .service { grid-template-columns: 1fr; gap: 8px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .facts li { flex-direction: column; gap: 2px; }
}
