/* My Art Cabin — site styles.
   Colors come from CSS variables. Every page sets them on <body>,
   so painting pages can take their colors from the painting. */

:root {
  --bg: #0b1622;
  --bg-2: #10202f;
  --bg-3: #07101a;
  --line: #1f3346;
  --text: #dfe8ee;
  --soft: #c3d0d9;
  --muted: #9fb2bf;
  --accent: #8fdbd0;
  --accent-hover: #c4f0ea;
  --on-accent: #0b1622;
  --gutter: clamp(16px, 4vw, 56px);
  --display: 'Cormorant', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { margin: 0 0 10px; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; z-index: 10; }

/* Placeholder for content Arlene still needs to supply (removed automatically once filled in) */
.todo { display: inline-block; border: 1px dashed var(--muted); color: var(--muted); padding: 0 8px; font-style: normal; font-family: var(--body); font-size: 0.85em; border-radius: 3px; }
p.todo, div.todo { display: block; padding: 10px 14px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: 0.3px; }
.logo:hover { color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 26px; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; }
.site-nav a { color: var(--text); text-decoration: none; padding: 12px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* Buttons */
.btn { display: inline-block; text-align: center; text-decoration: none; padding: 14px 28px; font-weight: 700; letter-spacing: 0.4px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-family: var(--body); font-size: 16px; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); font-weight: 400; }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow-link { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; }

/* Home hero */
.hero { position: relative; height: min(78vh, 760px); min-height: 480px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 160px var(--gutter) 56px; background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, transparent 100%); }
.hero h1 { font-size: clamp(46px, 7.5vw, 104px); line-height: 1; max-width: 980px; margin-bottom: 30px; }

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(38px, 4vw, 52px); }
.band { background: var(--bg-2); }
.rule-top { border-top: 1px solid var(--line); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 32px; }
.card { display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; }
.card:hover { color: var(--text); }
.card-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title span:first-child { font-family: var(--display); font-size: 26px; line-height: 1.15; }
.card-meta { color: var(--muted); font-size: 15px; }
.tag { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tag.sold { color: var(--muted); }
.tag.avail { color: var(--accent); }

/* Studio / statement block */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split-img { height: 540px; object-fit: cover; width: 100%; }
.big-italic { font-style: italic; font-size: clamp(36px, 4vw, 50px); margin-bottom: 24px; }

/* Trio */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.trio > div { border: 1px solid var(--line); padding: 40px; display: flex; flex-direction: column; gap: 12px; }
.trio h3 { font-size: 32px; font-weight: 600; }
.trio p { color: var(--muted); margin: 0; }
.trio a { margin-top: auto; padding-top: 8px; }

/* Shows strip */
.strip { display: flex; flex-wrap: wrap; gap: 24px 32px; justify-content: space-between; align-items: center; }
.strip .big { font-family: var(--display); font-size: clamp(28px, 3vw, 38px); margin: 0; }

/* Page intro */
.page-intro { padding-top: 72px; padding-bottom: 40px; }
.page-intro h1 { font-size: clamp(52px, 7vw, 96px); margin-bottom: 18px; }
.page-intro p { max-width: 640px; color: var(--soft); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { font: inherit; font-size: 14px; letter-spacing: 1px; min-height: 44px; padding: 8px 20px; background: transparent; color: var(--text); border: 1px solid var(--line); cursor: pointer; }
.filters button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.masonry { columns: 3 320px; column-gap: 28px; }
.masonry .tile { break-inside: avoid; margin: 0 0 36px; display: block; color: var(--text); text-decoration: none; }
.masonry .tile img { width: 100%; height: auto; background: var(--bg-2); transition: opacity .3s; }
.masonry .tile:hover img { opacity: .88; }
.tile-cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; }
.tile-cap span:first-child { font-family: var(--display); font-size: 22px; line-height: 1.2; }
.tile[hidden] { display: none; }

/* Painting page */
.crumbs { padding-top: 24px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.piece { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 28px; padding-bottom: 80px; }
.viewer { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.stage { background: var(--bg-3); display: flex; align-items: center; justify-content: center; height: min(78vh, 820px); }
.stage img, .stage video { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.stage a { display: contents; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.thumbs a, .thumbs button { display: block; position: relative; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs [aria-current="true"] { border-color: var(--accent); }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); color: #fff; }
.info { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 24px; }
.info h1 { font-size: clamp(46px, 5vw, 72px); line-height: 1; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.buy { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.price { font-family: var(--display); font-size: 36px; line-height: 1.1; }
.small { font-size: 14px; color: var(--muted); }
.story p { color: var(--soft); }

/* Paint journal */
.masonry.journal { columns: 4 220px; }
.journal-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.journal-strip img { width: 100%; height: auto; }

/* Shop */
.shop-card .card-img { aspect-ratio: 1; }
.shop-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.shop-actions .btn { padding: 10px 18px; font-size: 14px; }

/* Forms */
.form { display: grid; gap: 20px; max-width: 640px; }
.form label { display: block; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); padding: 14px; border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 180px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* Shows */
.show { display: flex; flex-wrap: wrap; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.show-text { flex: 1 1 320px; min-width: 0; }
.show-text h2 { font-size: 44px; margin-bottom: 10px; }
.show-photos { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.show-photos img { width: 100%; height: 260px; object-fit: cover; }

.ex-list { list-style: none; margin: 0; padding: 0; }
.ex-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2.4fr); gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ex-title { font-family: var(--display); font-size: 24px; line-height: 1.2; }
.ex-kind { color: var(--accent); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.ex-where { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .ex-row { grid-template-columns: 1fr; } }

/* Prose */
.prose { max-width: 680px; }
.prose p { color: var(--soft); }

/* Footer */
.site-footer { background: var(--bg-3); padding: 48px var(--gutter); display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .site-nav { gap: 0 18px; }
  .split-img { height: 360px; }
  .stage { height: auto; min-height: 280px; }
  .info { position: static; }
  .show-photos { grid-template-columns: 1fr 1fr; }
  .show-photos img { height: 160px; }
  .trio > div { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
