/* Susan Street Fine Art — redesign POC
   Mobile-first, gallery-grade, WCAG AA. Original design; client artwork used for proof-of-concept only. */

:root {
  --canvas: #faf8f5;
  --surface: #ffffff;
  --ink: #1b1a18;
  --muted: #6f6a63;
  --line: #e6e1d9;
  --accent: #a82a23;       /* deepened from brand red; passes AA on light */
  --accent-ink: #ffffff;
  --max: 1200px;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 96px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s4); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: var(--s2) var(--s3); z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* Headings */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .2px; }
.eyebrow {
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--s2);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,245,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand .name { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; letter-spacing: 1px; }
.brand .sub { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-links { display: none; }
.nav-links a {
  text-decoration: none; font-size: 15px; letter-spacing: .04em; color: var(--ink);
  padding: var(--s2) 2px; position: relative;
}
.nav-links a[aria-current="page"]::after,
.nav-links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: var(--s2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--s4);
  font-family: var(--sans); font-size: 14px; letter-spacing: .03em; font-weight: 500;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer; border-radius: 2px; transition: .15s ease;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #8c211b; border-color: #8c211b; color: #fff; }
.btn-ghost { border-color: var(--line); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 2px; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* Mobile drawer */
.mobile-nav {
  display: none; flex-direction: column; gap: var(--s1);
  padding: var(--s3) var(--s4) var(--s4); border-top: 1px solid var(--line); background: var(--canvas);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { text-decoration: none; padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 17px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #20201e; }
.hero img { width: 100%; height: 62vh; min-height: 420px; object-fit: cover; opacity: 1; }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s6) 0 var(--s5);
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,0) 78%);
  color: #fff;
}
.hero-caption .eyebrow { color: #e8d9c8; }
.hero-caption h1 { font-size: clamp(34px, 7vw, 64px); color: #fff; max-width: 18ch; }
.hero-caption p { max-width: 52ch; color: #f1ece6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.hero-actions .btn { border-color: rgba(255,255,255,.6); color: #fff; }
.hero-actions .btn:hover { background: #fff; color: var(--ink); }
.hero-actions .btn-accent { border-color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: clamp(36px, 5vw, 56px) 0; }
.section-tight { padding-top: var(--s4); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 4.5vw, 40px); }
.section-head .link { font-size: 14px; text-decoration: none; color: var(--accent); white-space: nowrap; }
.section-head .link:hover { text-decoration: underline; }
.lede { font-family: var(--serif); font-size: clamp(20px, 3vw, 26px); line-height: 1.4; color: var(--ink); max-width: 30ch; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; text-decoration: none; color: inherit; transition: .18s ease; }
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #efeae3; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: var(--s3) var(--s4) var(--s4); }
.card .body h3 { font-size: 23px; }
.card .body .meta { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: var(--s1); }
.card .body .cat { display: inline-block; margin-top: var(--s2); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* Works strip (home) */
.works { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.work { text-decoration: none; color: inherit; }
.work .thumb { aspect-ratio: 1/1; overflow: hidden; background: #efeae3; border: 1px solid var(--line); }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work h3 { font-size: 20px; margin-top: var(--s2); }
.work .meta { font-size: 13px; color: var(--muted); }
.work .inquire { font-size: 13px; color: var(--accent); margin-top: var(--s1); display: inline-block; }

/* Statement */
.statement { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statement blockquote { margin: 0; font-family: var(--serif); font-size: clamp(24px, 4vw, 38px); line-height: 1.3; max-width: 24ch; }
.statement .attrib { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: var(--s4); }
.statement .grid2 { display: grid; grid-template-columns: 1fr; gap: var(--s5); }

/* Consulting / visit two-col */
.split { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: center; }
.split img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 3px; }
.split ul { padding-left: 1.1em; margin: var(--s3) 0; }
.split li { margin: var(--s2) 0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.chip {
  min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; font-family: var(--sans); font-size: 14px; cursor: pointer; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; }
.cta-band h2 { font-size: clamp(28px, 5vw, 44px); color: #fff; max-width: 18ch; }
.cta-band p { color: #d8d3cc; max-width: 50ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.cta-band .btn { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn:hover { background: #fff; color: var(--ink); }

/* Footer */
.site-footer { background: #16150f; color: #cfc9c0; padding: var(--s6) 0 var(--s5); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8f897e; margin: 0 0 var(--s3); }
.site-footer a { color: #e8e3da; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand-line { font-family: var(--serif); color: #fff; font-size: 22px; }
.legal { border-top: 1px solid #2a2820; margin-top: var(--s5); padding-top: var(--s4); color: #8f897e; font-size: 12px; }

/* Newsletter */
.subscribe { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.subscribe input {
  flex: 1 1 200px; min-height: 44px; padding: 0 var(--s3); border: 1px solid #3a382f; background: #1f1e17; color: #fff;
  border-radius: 2px; font-size: 16px;
}
.subscribe input::placeholder { color: #8f897e; }

/* Modal (Inquire) */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--s4); }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-panel {
  position: relative; background: var(--surface); border-radius: 4px; padding: var(--s5);
  width: 100%; max-width: 480px; box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.modal-panel h2 { font-size: 28px; margin-bottom: var(--s2); }
.modal-panel p { color: var(--muted); margin-top: 0; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--muted); }
.field { display: block; margin-top: var(--s3); }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: var(--s2) var(--s3); border: 1px solid var(--line);
  border-radius: 2px; font-family: var(--sans); font-size: 16px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.modal .btn-accent { width: 100%; margin-top: var(--s4); }

/* Focus visibility (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .card:focus-within {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* ---------- Carousel (reusable, accessible) ---------- */
.carousel { position: relative; overflow: hidden; background: #20201e; }
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.carousel-slide.is-active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(20,20,18,.5); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; z-index: 3; transition: background .15s ease;
}
.carousel-btn:hover { background: rgba(20,20,18,.8); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots { position: absolute; right: 16px; z-index: 3; display: flex; gap: 8px; }
.carousel-dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.carousel-dot[aria-pressed="true"] { background: #fff; }

/* hero carousel sizing + control placement */
.hero .carousel { height: 62vh; min-height: 420px; }
.hero .carousel-dots { top: 18px; }

/* project page featured hero matches the home hero height */
.project-hero .carousel { height: 62vh; min-height: 420px; }

/* featured project carousel */
.featured { background: var(--surface); border-bottom: 1px solid var(--line); }
.featured .split { align-items: stretch; }
.featured-carousel { aspect-ratio: 4 / 3; border-radius: 3px; }
.featured-carousel .carousel-dots { bottom: 14px; left: 50%; right: auto; transform: translateX(-50%); }
.featured-body { display: flex; flex-direction: column; justify-content: center; }

/* Perf banner (POC only) */
.poc-note {
  background: #f3eee6; border-bottom: 1px solid var(--line); color: var(--muted);
  font-size: 12.5px; text-align: center; padding: var(--s2) var(--s3);
}
.poc-note strong { color: var(--ink); }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 768px) {
  .nav-links { display: flex; align-items: center; gap: var(--s4); }
  .menu-toggle { display: none; }
  .split { grid-template-columns: 1fr 1fr; }
  .statement .grid2 { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .works { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .works { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .card:hover .thumb img { transform: none; }
}
