/* The Sculpture Artist: personal site of Charles Luminary.
   Ivory and ink with Luminary gold; Cormorant Garamond + Space Grotesk tie it to the studio brand. */
:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --ink: #17140f;
  --muted: #5e574c;
  --line: #d8cfbe;
  --gold: #d4a843;
  --gold-text: #8a6818; /* gold that passes contrast on paper */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 0.4em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(243, 238, 228, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; text-decoration: none; }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a { font-size: 0.92rem; text-decoration: none; color: var(--muted); transition: color .2s; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.nav-cta { color: var(--ink); border-bottom: 1px solid var(--gold); }

/* Buttons */
.btn { display: inline-block; padding: 14px 26px; font: 500 0.95rem var(--sans); text-decoration: none; border: 1px solid var(--ink); transition: background .2s, color .2s; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2d271e; }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(3.2rem, 7vw, 5.6rem); margin-bottom: 0.25em; }
.hero-quote { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.3; margin-bottom: 1.2em; }
.hero-lead { color: var(--muted); max-width: 34em; }
.hero-lead a, .prose a, .teaching a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-photo { margin: 0; }
.hero-photo img { aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 38% 30%; width: 100%; }
figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }

/* Facts */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-row div { padding: 28px 0; display: flex; flex-direction: column; gap: 2px; }
.facts-row div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts strong { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1; }
.facts span { font-size: 0.85rem; color: var(--muted); }

/* Sections */
.section { padding-top: 104px; padding-bottom: 104px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); }

/* Works grid */
.works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.work a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; text-decoration: none; }
.work-img { grid-column: 1 / -1; overflow: hidden; background: var(--paper-2); margin-bottom: 16px; }
.work-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.work a:hover .work-img img { transform: scale(1.035); }
.work-num { font-size: 0.78rem; color: var(--gold-text); font-weight: 600; padding-top: 7px; }
.work-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.work-meta { grid-column: 2; font-size: 0.86rem; color: var(--muted); }
.work a:hover .work-title { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* About */
.about { background: var(--ink); color: var(--paper); }
.about .eyebrow { color: var(--gold); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.prose { color: #d9d2c4; font-size: 1.05rem; }
.about .text-link { color: var(--gold); }

/* Studios */
.studios { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.studio-card { display: flex; flex-direction: column; gap: 10px; padding: 36px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, background .2s; }
.studio-card:hover { border-color: var(--ink); background: var(--paper-2); }
.studio-name { font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.studio-desc { color: var(--muted); }
.studio-go { margin-top: auto; padding-top: 12px; font-weight: 500; font-size: 0.92rem; }

/* Teaching */
.teaching { background: var(--paper-2); }
.teaching-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.teaching-photo { margin: 0; }
.teaching-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.teaching p { color: var(--muted); }
.topics { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.topics li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.topics li::before { content: "✦"; color: var(--gold-text); margin-right: 12px; font-size: 0.8rem; }

/* Contact */
.contact { text-align: center; max-width: 760px; }
.contact > p { color: var(--muted); }
.elsewhere { list-style: none; padding: 0; margin: 28px 0 0; display: flex; justify-content: center; gap: 28px; }
.elsewhere a { color: var(--muted); text-decoration: none; }
.elsewhere a:hover { color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.8rem; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Scroll reveal: only applied once app.js confirms motion is welcome, so content never depends on JS. */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero, .about-grid, .teaching-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; }
  .works { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .facts-row div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-row div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .studios { grid-template-columns: 1fr; }
  .section { padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header nav { gap: 16px; }
  .site-header nav a:not(.nav-cta):not([href="#work"]) { display: none; }
  .works { grid-template-columns: 1fr; }
  .studio-card { padding: 26px; }
  .contact .btn { font-size: 0.85rem; padding: 14px 18px; word-break: break-all; }
}
