/* ============================================================
   Sindy — S.S Art Studio
   Shared styles for the MVP static build.
   ============================================================ */

:root {
  --bone: #F7F4EE;
  --bone-deep: #EFEAE0;
  --ink: #1A1A1A;
  --ink-deep: #0E0D0B;
  --ink-soft: #4A4744;
  --gold: #B8956A;
  --rule: #E5E1D8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bone); color: var(--ink); }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--bone); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.serif { font-family: 'Playfair Display', serif; }
.italic { font-style: italic; }
.smallcaps {
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-soft);
}
.gold { color: var(--gold); }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 28px 40px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink);
  background: transparent;
  transition: color 500ms ease, background 500ms ease, padding 300ms ease, box-shadow 500ms ease;
}
/* Over a hero artwork: white text, soft top scrim for legibility */
.nav.over-art {
  color: #fff;
  background: linear-gradient(180deg, rgba(20,19,15,0.45) 0%, rgba(20,19,15,0) 100%);
}
.nav.over-art .mark img { filter: invert(1); }
/* Scrolled past the hero: warm bone bar with a hairline */
.nav.scrolled {
  background: rgba(247,244,238,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 1px 0 var(--rule);
  padding-top: 18px; padding-bottom: 18px;
}
.nav .mark img { width: 36px; height: auto; transition: filter 500ms ease; }
.nav ul { list-style: none; display: flex; gap: 36px; }
.nav a {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  position: relative; padding: 4px 0;
  color: inherit;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 400ms ease;
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current]::after { background: var(--gold); }

@media (max-width: 720px) {
  .nav { padding: 18px 22px; }
  .nav ul { gap: 18px; }
  .nav a { font-size: 10px; letter-spacing: 0.24em; }
  .nav .mark img { width: 28px; }
}

/* ============ PAGE HEAD (non-home pages) ============ */
.pageHead {
  padding: 200px 32px 96px;
  text-align: center; max-width: 920px; margin: 0 auto;
}
.pageHead .eyebrow {
  font-size: 10px; letter-spacing: 0.6em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 28px;
}
.pageHead h1 {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.15; letter-spacing: -0.01em;
}
.pageHead p.lede {
  margin-top: 32px; max-width: 56ch; margin-left: auto; margin-right: auto;
  color: var(--ink-soft); font-size: 17px; line-height: 1.7;
}
.pageHead .rule {
  width: 1px; height: 56px; background: var(--rule);
  margin: 0 auto 48px;
}

/* ============ FOOTER ============ */
footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 80px;
  padding: 80px 40px 64px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 32px;
}
footer.site .left, footer.site .right {
  display: flex; gap: 28px;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft);
}
footer.site .right { justify-content: flex-end; }
footer.site .center { display: flex; flex-direction: column; align-items: center; gap: 10px; }
footer.site .center img { width: 28px; }
footer.site .center .studio {
  font-size: 9px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  footer.site { grid-template-columns: 1fr; text-align: center; }
  footer.site .left, footer.site .right { justify-content: center; }
}

/* ============ ART TILE (used in home / works / shop) ============ */
.tile { display: block; cursor: pointer; }
.tile .frame {
  overflow: hidden; background: var(--bone-deep);
  aspect-ratio: 3 / 4;
}
.tile .frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1200ms cubic-bezier(.2,.7,.2,1);
}
.tile:hover .frame img { transform: scale(1.025); }
.tile .meta {
  margin-top: 22px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.tile .title {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: 22px;
}
.tile .price {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0; transform: translateY(4px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.tile:hover .price { opacity: 1; transform: translateY(0); }
@media (hover: none) { .tile .price { opacity: 1; transform: none; } }
.tile .dim {
  margin-top: 6px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-soft);
}
.tile.sold .frame { position: relative; }
.tile.sold .frame::after {
  content: 'SOLD';
  position: absolute; top: 16px; right: 16px;
  background: rgba(247,244,238,0.92);
  color: var(--gold);
  font-size: 9px; letter-spacing: 0.4em; padding: 6px 10px;
}

/* ============ GRIDS ============ */
.grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 96px 64px;
  max-width: 1280px; margin: 0 auto; padding: 0 32px 200px;
}
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 48px;
  max-width: 1320px; margin: 0 auto; padding: 0 32px 200px;
}
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 80px; padding-bottom: 140px; }
}

/* ============ TABS (shop) ============ */
.tabs {
  display: flex; justify-content: center; gap: 56px;
  margin: 0 auto 80px;
  padding: 0 32px 24px;
  max-width: 1320px;
  border-bottom: 1px solid var(--rule);
}
.tabs a {
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 12px 0;
  position: relative;
}
.tabs a.active { color: var(--ink); }
.tabs a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--ink);
}

/* ============ ARTWORK DETAIL ============ */
.artwork {
  padding-top: 140px;
  display: grid; grid-template-columns: 60% 40%;
  max-width: 1320px; margin: 0 auto;
}
@media (max-width: 900px) {
  .artwork { grid-template-columns: 1fr; padding-top: 100px; }
}
.artwork .pic { padding: 40px 40px 80px; display: flex; align-items: start; justify-content: center; }
.artwork .pic img { max-height: 84vh; width: auto; object-fit: contain; }
.artwork .label {
  position: sticky; top: 120px; align-self: start;
  padding: 40px 60px 80px 0;
}
@media (max-width: 900px) {
  .artwork .label { position: relative; top: 0; padding: 0 32px 80px; }
  .artwork .pic { padding: 0 16px 48px; }
}
.artwork .label .eyebrow {
  font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.artwork .label h1 {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: clamp(34px, 4.2vw, 50px); line-height: 1.1; letter-spacing: -0.01em;
}
.artwork .label .byline {
  margin-top: 14px; font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ink-soft);
}
.artwork .label .specs {
  margin-top: 36px; padding: 24px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: grid; gap: 10px;
  font-size: 14px; color: var(--ink-soft);
}
.artwork .label .specs .row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.artwork .label .specs .row span:first-child {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink); padding-top: 2px;
}
.artwork .label .desc {
  margin-top: 28px;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: 18px; line-height: 1.55; color: var(--ink);
}
.artwork .label .price {
  margin-top: 36px;
  font-size: 22px; letter-spacing: 0.02em;
}
.artwork .label .acquire {
  display: block; text-align: center;
  margin-top: 24px; padding: 18px 24px;
  border: 1px solid var(--ink); background: transparent;
  color: var(--ink);
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  cursor: pointer; transition: background 300ms ease, color 300ms ease;
  width: 100%;
}
.artwork .label .acquire:hover { background: var(--ink); color: var(--bone); }
.artwork .label .acquire.sold {
  border: none; background: transparent; padding: 0;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: 18px; color: var(--gold); cursor: default; text-transform: none; letter-spacing: 0;
  text-align: left;
}
.artwork .label .acquire.sold:hover { background: transparent; color: var(--gold); }
.artwork .label .ship {
  margin-top: 18px; font-size: 12px; line-height: 1.65;
  color: var(--ink-soft); letter-spacing: 0.02em;
}
.artwork .label .framing {
  margin-top: 12px; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft);
}

.artwork-also {
  border-top: 1px solid var(--rule);
  padding: 96px 32px 200px;
  max-width: 1320px; margin: 80px auto 0;
}
.artwork-also h2 {
  text-align: center;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: 28px; margin-bottom: 64px;
}
.artwork-also .row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px;
}
@media (max-width: 900px) { .artwork-also .row { grid-template-columns: 1fr; gap: 80px; } }

/* ============ ABOUT ============ */
.about {
  max-width: 720px; margin: 0 auto;
  padding: 200px 32px 96px;
}
.about .portrait {
  width: 100%; aspect-ratio: 4 / 5;
  background: var(--bone-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 80px;
}
.about p { margin-bottom: 32px; }
.about .pull {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.35;
  text-align: center; padding: 64px 0; color: var(--ink);
}
.about .studio-row {
  margin: 96px 0 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 720px) { .about .studio-row { grid-template-columns: 1fr; } }
.about .studio-row .placeholder {
  aspect-ratio: 4 / 5; background: var(--bone-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ink-soft);
}
.about .signature {
  text-align: center; padding-top: 56px;
  border-top: 1px solid var(--rule);
}
.about .signature .name {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: 40px;
}
.about .signature img { width: 28px; margin: 18px auto 8px; }
.about .signature .studio {
  font-size: 9px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============ FORMS (commissions / contact) ============ */
.form-page { max-width: 640px; margin: 0 auto; padding: 0 32px 160px; }
.form { display: grid; gap: 28px; }
.form label {
  display: grid; gap: 8px;
  font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--ink-soft);
}
.form input, .form textarea, .form select {
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 300;
  padding: 14px 0;
  border: none; border-bottom: 1px solid var(--rule);
  background: transparent; color: var(--ink);
  outline: none; transition: border-color 200ms ease;
  border-radius: 0;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-bottom-color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form button {
  margin-top: 12px;
  padding: 18px 24px;
  border: 1px solid var(--ink); background: transparent;
  color: var(--ink); cursor: pointer;
  font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase;
  transition: background 300ms ease, color 300ms ease;
}
.form button:hover { background: var(--ink); color: var(--bone); }

/* ============ MISC ============ */
.section-rule {
  width: 1px; height: 56px; background: var(--rule);
  margin: 0 auto 56px;
}
