/* Raven Oak Art — site styles */
:root {
  --ink: #0f0d0c;
  --ink-2: #171412;
  --ink-3: #221d1a;
  --line: #3a312b;
  --bone: #ece2d2;
  --bone-dim: #b9ad9c;
  --mute: #8a7f72;
  --ember: #d0813f;
  --ember-hi: #e9a062;
  --moss: #6f8a6a;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--ember); text-underline-offset: 3px; }
a:hover { color: var(--ember-hi); }
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bone); color: var(--ink); padding: 8px 12px; }

/* ---------- type ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.8rem, 7.5vw, 6.2rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
p { margin: 0 0 1em; }
.eyebrow {
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--bone-dim); max-width: 58ch; }
em.ital { font-style: italic; color: var(--ember-hi); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 16px 26px; border: 1px solid var(--ember); color: var(--ink); background: var(--ember);
  text-decoration: none; border-radius: var(--radius); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--ember-hi); border-color: var(--ember-hi); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--bone); color: var(--bone); }
.btn[disabled], .btn.is-sold { background: transparent; color: var(--mute); border-color: var(--line); cursor: default; }
.btn svg { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.solid { background: rgba(15, 13, 12, .92); backdrop-filter: blur(10px); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand span { font: 600 1.35rem/1 var(--serif); letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font: 500 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--bone-dim); padding: 8px 0; position: relative;
}
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ember); transition: right .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--bone-dim); font-size: .85rem; }
.cart-link svg { width: 20px; height: 20px; }
.menu-btn { display: none; background: none; border: 0; color: var(--bone); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { display: block; padding: 16px 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .brand span { font-size: 1.15rem; }
  .cart-link .lbl { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 140px 0 72px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(1.05) contrast(1.05); transform: scale(1.06); animation: drift 26s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 80% 10%, transparent 0%, rgba(15,13,12,.4) 55%, rgba(15,13,12,.92) 100%),
    linear-gradient(180deg, rgba(15,13,12,.55) 0%, rgba(15,13,12,.15) 35%, rgba(15,13,12,.95) 100%);
}
@keyframes drift { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.hero h1 { max-width: 12ch; }
.hero .lede { margin: 26px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-quote { border-left: 1px solid var(--ember); padding-left: 22px; font: italic 500 1.5rem/1.3 var(--serif); color: var(--bone); max-width: 22ch; justify-self: end; }
.hero-quote small { display: block; margin-top: 12px; font: 600 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-dim); font-style: normal; }
.hero-caption { position: absolute; right: var(--gutter); top: 104px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); writing-mode: vertical-rl; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-quote { justify-self: start; font-size: 1.25rem; }
  .hero-caption { display: none; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section.alt { background: var(--ink-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .lede { margin: 18px 0 0; }

/* marquee strip */
.strip { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--ink); }
.strip-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.strip span { font: italic 500 1.6rem/1 var(--serif); color: var(--bone-dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.strip span::after { content: "✦"; font-style: normal; font-size: .9rem; color: var(--ember); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- artwork grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 500 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 11px 16px; border: 1px solid var(--line); background: transparent; color: var(--bone-dim);
  cursor: pointer; border-radius: 999px; transition: .2s;
}
.chip:hover { color: var(--bone); border-color: var(--bone-dim); }
.chip[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
@media (max-width: 1000px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .art-grid { grid-template-columns: 1fr; } }
.art-grid.featured > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1000px) { .art-grid.featured > :nth-child(1) { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .art-grid.featured > :nth-child(1) { grid-column: auto; } }

.art-card { display: flex; flex-direction: column; text-align: left; background: none; border: 0; color: inherit; padding: 0; cursor: pointer; font: inherit; }
.art-frame { position: relative; overflow: hidden; background: var(--ink-3); aspect-ratio: 4 / 5; }
.art-grid.featured > :nth-child(1) .art-frame { aspect-ratio: auto; flex: 1; min-height: 420px; }
.art-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s; }
.art-card:hover .art-frame img { transform: scale(1.17); }
.art-frame .tag {
  position: absolute; top: 14px; left: 14px; padding: 7px 10px;
  font: 600 .65rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  background: var(--ink); color: var(--bone);
}
.art-frame .tag.sale { background: var(--ember); color: var(--ink); }
.art-frame .view {
  position: absolute; inset: auto 14px 14px auto; padding: 10px 14px; background: rgba(15,13,12,.85);
  font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: .3s;
}
.art-card:hover .view, .art-card:focus-visible .view { opacity: 1; transform: none; }
.art-card.sold .art-frame img { filter: grayscale(.55) brightness(.75); }
.art-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; }
.art-meta h3 { font-size: 1.45rem; }
.art-meta .sub { color: var(--mute); font-size: .82rem; margin-top: 6px; letter-spacing: .02em; }
.price { font: 500 1.05rem/1.2 var(--sans); white-space: nowrap; text-align: right; }
.price del { display: block; color: var(--mute); font-size: .8rem; }
.price .sold-lbl { color: var(--mute); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }

.skeleton .art-frame { background: linear-gradient(100deg, var(--ink-3) 30%, #2b2420 50%, var(--ink-3) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- split / artist ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split.rev { grid-template-columns: 1.1fr 1fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.portrait::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid var(--ember); z-index: -1; }
@media (max-width: 560px) { .portrait::before { inset: 14px -10px -14px 14px; } }
.signature { font: italic 500 2rem/1 var(--serif); color: var(--ember-hi); margin-top: 26px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.facts div { background: var(--ink); padding: 22px 18px; }
.section.alt .facts div { background: var(--ink-2); }
.facts b { display: block; font: 500 2.2rem/1 var(--serif); color: var(--bone); }
.facts span { font-size: .78rem; color: var(--mute); letter-spacing: .06em; }
@media (max-width: 560px) { .facts b { font-size: 1.6rem; } .facts div { padding: 16px 12px; } }

/* ---------- classes ---------- */
.class-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 720px) { .class-cards { grid-template-columns: 1fr; } }
.class-card { border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); position: relative; background: var(--ink); transition: border-color .3s; }
.class-card:hover { border-color: var(--ember); }
.class-card .amt { font: 500 4rem/1 var(--serif); color: var(--bone); }
.class-card .amt sup { font-size: 1.6rem; vertical-align: super; color: var(--ember); margin-right: 2px; }
.class-card .amt small { font: 400 .85rem var(--sans); color: var(--mute); margin-left: 6px; }
.class-card ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--bone-dim); font-size: .95rem; }
.class-card li { display: flex; gap: 12px; }
.class-card li::before { content: "—"; color: var(--ember); }
.note { border-left: 2px solid var(--ember); background: var(--ink-3); padding: 18px 22px; color: var(--bone-dim); font-size: .95rem; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { list-style: none; counter-increment: s; border-top: 1px solid var(--line); padding-top: 22px; }
.steps li::before { content: "0" counter(s); font: 500 1rem var(--serif); color: var(--ember); display: block; margin-bottom: 12px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--bone-dim); font-size: .95rem; }
.steps ol, ol.steps { padding: 0; margin: 0; }

/* ---------- videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }
.yt { position: relative; aspect-ratio: 16/9; background: var(--ink-3); overflow: hidden; border: 0; padding: 0; width: 100%; cursor: pointer; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; filter: brightness(.8); }
.yt:hover img { transform: scale(1.04); filter: brightness(1); }
.yt .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: rgba(15,13,12,.75); border: 1px solid var(--bone); display: grid; place-items: center; transition: .3s; }
.yt:hover .play { background: var(--ember); border-color: var(--ember); }
.yt .play svg { width: 22px; height: 22px; margin-left: 4px; fill: var(--bone); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { margin-top: 14px; font: 500 1.3rem/1.2 var(--serif); }
.video-sub { color: var(--mute); font-size: .82rem; }

/* ---------- archive ---------- */
.archive { columns: 4 240px; column-gap: 18px; }
.archive figure { margin: 0 0 18px; break-inside: avoid; position: relative; overflow: hidden; cursor: zoom-in; }
.archive img { width: 100%; height: auto; transition: transform .8s; }
.archive figure:hover img { transform: scale(1.04); }
.archive figcaption { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(15,13,12,.9)); font: italic 500 1.1rem var(--serif); opacity: 0; transition: .3s; }
.archive figure:hover figcaption { opacity: 1; }
@media (hover: none) { .archive figcaption { opacity: 1; } }

/* ---------- CTA / contact ---------- */
.cta { text-align: center; padding: clamp(90px, 12vw, 160px) 0; position: relative; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -1; opacity: .22; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, transparent, var(--ink) 85%); }
.cta h2 { max-width: 16ch; margin: 0 auto 22px; }
.cta .lede { margin: 0 auto 36px; }
.cta .hero-actions { justify-content: center; }

.contact-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-list a, .contact-list div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; background: var(--ink); text-decoration: none; transition: background .2s; flex-wrap: wrap; }
.contact-list a:hover { background: var(--ink-3); color: var(--bone); }
.contact-list small { font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.contact-list span { font: 500 1.25rem var(--serif); overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 36px; background: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin: 0 0 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: var(--bone-dim); }
.foot-grid a:hover { color: var(--bone); }
.foot-brand img { width: 96px; margin-bottom: 16px; }
.foot-brand p { color: var(--mute); max-width: 34ch; font-size: .92rem; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: .8rem; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 170px 0 70px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -1; opacity: .18; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 30%, transparent), linear-gradient(0deg, var(--ink), transparent 60%); }
.page-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); max-width: 16ch; }
.page-hero .lede { margin-top: 22px; }

.prose { max-width: 68ch; }
.prose p { color: var(--bone-dim); font-size: 1.05rem; }
.prose p:first-of-type::first-letter { font: 500 4.2rem/0.8 var(--serif); float: left; margin: 8px 12px 0 0; color: var(--ember); }
blockquote.pull { margin: 40px 0; padding: 0; font: italic 500 clamp(1.7rem, 3vw, 2.4rem)/1.2 var(--serif); color: var(--bone); }
blockquote.pull footer { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ember); margin-top: 16px; font-style: normal; }

/* ---------- lightbox / detail ---------- */
.dlg { border: 0; padding: 0; background: transparent; color: var(--bone); max-width: min(1180px, 100vw - 24px); width: 100%; max-height: calc(100svh - 24px); }
.dlg::backdrop { background: rgba(8, 7, 6, .9); backdrop-filter: blur(4px); }
.dlg-inner { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--ink-2); border: 1px solid var(--line); max-height: calc(100svh - 24px); }
.dlg-img { background: #0a0908; display: grid; place-items: center; min-height: 320px; overflow: hidden; }
.dlg-img img { max-height: calc(100svh - 26px); width: 100%; object-fit: contain; }
.dlg-body { padding: clamp(28px, 4vw, 52px); overflow-y: auto; display: flex; flex-direction: column; }
.dlg-body h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 8px; }
.dlg-body .sub { color: var(--mute); margin-bottom: 26px; }
.dlg-body .price { text-align: left; font-size: 1.6rem; font-family: var(--serif); margin-bottom: 24px; }
.dlg-body .price del { display: inline; margin-right: 10px; font-size: 1.1rem; }
.spec { list-style: none; padding: 0; margin: 0 0 30px; border-top: 1px solid var(--line); }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.spec li span:first-child { color: var(--mute); }
.dlg-body .desc { color: var(--bone-dim); }
.dlg-body .fine { color: var(--mute); font-size: .8rem; margin-top: 16px; }
.dlg-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 10px; }
.dlg-close { position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink); color: var(--bone); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.dlg-close:hover { border-color: var(--bone); }
.dlg-close svg { width: 18px; height: 18px; }
.dlg.photo .dlg-inner { grid-template-columns: 1fr; background: transparent; border: 0; }
.dlg.photo .dlg-body { display: none; }
@media (max-width: 860px) {
  .dlg-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .dlg-img img { max-height: 62svh; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.grain { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.empty { color: var(--mute); padding: 40px 0; }

@media (max-width: 860px) {
  .hero::after { background: linear-gradient(180deg, rgba(15,13,12,.55) 0%, rgba(15,13,12,.72) 30%, rgba(15,13,12,.94) 100%); }
  .hero-bg img { object-position: 30% center; }
}
