:root {
  --paper: #f5f0e8;
  --paper-deep: #ebe1d2;
  --ink: #282725;
  --muted: #706b62;
  --terracotta: #b85f43;
  --terracotta-deep: #8f4532;
  --ochre: #c39345;
  --line: rgba(40, 39, 37, .18);
  --card: #fbf8f2;
  --shadow: 0 1.25rem 3rem rgba(61, 43, 30, .1);
  --measure: 78rem;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'Source Code Pro', ui-monospace, monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-synthesis: none;
}

html[data-theme="dark"], html.dark {
  --paper: #25231f;
  --paper-deep: #332e28;
  --ink: #f3ede3;
  --muted: #c0b6a8;
  --terracotta: #e18463;
  --terracotta-deep: #f09a76;
  --ochre: #dbad5d;
  --line: rgba(243, 237, 227, .2);
  --card: #302d28;
  --shadow: 0 1.25rem 3rem rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 18rem; background: var(--paper); color: var(--ink); line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  width: min(100% - 3rem, var(--measure));
  margin: 0 auto;
  min-height: 5.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 2.55rem; height: 2.55rem; color: var(--terracotta); }
.wordmark { font: 600 1.55rem/1 var(--font-display); letter-spacing: -.035em; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { position: relative; padding: .7rem 0; color: var(--muted); font-size: .95rem; font-weight: 600; text-decoration: none; }
.main-nav a::after { content: ''; position: absolute; right: 0; bottom: .35rem; left: 0; height: 2px; background: var(--terracotta); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.chrome-controls { display: flex; align-items: center; gap: .55rem; }
.theme-toggle, .menu-toggle { width: 2.7rem; height: 2.7rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
.theme-toggle { font-size: 1.1rem; }
.menu-toggle { display: none; }

.page-wrap { width: min(100% - 3rem, var(--measure)); margin: 0 auto; }
.rail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 11.5rem; gap: 3rem; align-items: start; }
.rail-layout:has([data-side-links][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-side-links][hidden] { display: none; }
.side-links { position: sticky; top: 2rem; border-top: 2px solid var(--terracotta); padding-top: .9rem; }
.side-links h2 { margin: 0 0 .65rem; font: 600 1rem var(--font-display); }
.side-links ol { margin: 0; padding-left: 1.3rem; color: var(--muted); font-size: .9rem; }
.side-links li + li { margin-top: .55rem; }
.side-links a { text-decoration-color: var(--ochre); text-underline-offset: .2em; }

.eyebrow { margin: 0 0 1rem; color: var(--terracotta-deep); font: 600 .75rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
h1 { margin: 0; font-size: clamp(2.8rem, 7vw, 6.5rem); }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 3.8vw, 3.45rem); }
h3 { margin: 0 0 .5rem; font-size: 1.45rem; }
p { margin: 0 0 1rem; }
.lede { max-width: 37rem; color: var(--muted); font-size: 1.18rem; line-height: 1.55; }

.hero { padding: 4.8rem 0 5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(20rem, 1.16fr); gap: clamp(2rem, 6vw, 6.5rem); align-items: center; }
.hero-copy h1 { max-width: 9ch; }
.hero-copy .lede { margin-top: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; border: 1px solid var(--terracotta); padding: .72rem 1.2rem; background: var(--terracotta); color: #fffaf2; font-weight: 600; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.button:hover { background: var(--terracotta-deep); transform: translateY(-2px); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: var(--terracotta); color: var(--terracotta-deep); background: transparent; }
.hero-art { position: relative; min-height: 33rem; padding: 1.5rem; background: var(--paper-deep); }
.hero-art::before { content: ''; position: absolute; inset: -.7rem .7rem .7rem -.7rem; border: 1px solid var(--ochre); pointer-events: none; }
.hero-art img { width: 100%; height: 30rem; object-fit: cover; }
.art-caption { position: absolute; right: 1.5rem; bottom: .6rem; left: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8rem; }

.section { padding: 5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading p { max-width: 31rem; margin: 0; color: var(--muted); }
.section-link { color: var(--terracotta-deep); font-weight: 600; text-underline-offset: .25em; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.category-card { position: relative; min-height: 25rem; overflow: hidden; color: #fffaf2; background: var(--ink); }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .5s ease, opacity .3s ease; }
.category-card::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(20, 16, 12, .9)); }
.category-card:hover img { transform: scale(1.05); opacity: .84; }
.category-card-content { position: absolute; z-index: 1; right: 1.35rem; bottom: 1.25rem; left: 1.35rem; }
.category-card h3 { margin-bottom: .35rem; font-size: 1.8rem; }
.category-card p { margin: 0; color: #f3e9da; font-size: .95rem; }

.art-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-auto-rows: 15rem; gap: 1rem; }
.art-tile { position: relative; overflow: hidden; background: var(--paper-deep); }
.art-tile:first-child { grid-row: span 2; }
.art-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.art-tile:hover img { transform: scale(1.04); }
.art-tile figcaption { position: absolute; right: .8rem; bottom: .7rem; left: .8rem; color: #fff; font-size: .85rem; text-shadow: 0 1px 8px #000; }

.quote-band { padding: 4rem clamp(1.5rem, 7vw, 7rem); background: var(--terracotta); color: #fffaf2; }
.quote-band blockquote { max-width: 55rem; margin: 0 auto; font: 500 clamp(1.8rem, 4vw, 3.5rem)/1.18 var(--font-display); text-align: center; }
.quote-band cite { display: block; margin-top: 1.4rem; font: normal .85rem var(--font-body); text-align: center; }

.artist-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.artist-band img { width: 100%; height: 28rem; object-fit: cover; }
.artist-band .lede { margin: 1rem 0 1.5rem; }

.page-intro { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.page-intro h1 { max-width: 13ch; }
.page-intro .lede { margin-top: 1.2rem; }
.archive-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin: 2rem 0; }
.search-box { display: flex; min-width: min(100%, 23rem); flex: 1; }
.search-box input { width: 100%; border: 1px solid var(--line); border-right: 0; padding: .8rem 1rem; background: var(--card); color: var(--ink); }
.search-box button { border: 1px solid var(--terracotta); padding: .8rem 1.1rem; background: var(--terracotta); color: #fff; font-weight: 600; }
.filter-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter-list a { border: 1px solid var(--line); border-radius: 2rem; padding: .4rem .8rem; color: var(--muted); font-size: .88rem; text-decoration: none; }
.filter-list a:hover { border-color: var(--terracotta); color: var(--terracotta-deep); }
.news-grid, .archive-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem; align-items: start; }
.story-card { min-width: 0; border-top: 1px solid var(--line); padding-top: .8rem; }
.story-image { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin: -.8rem 0 1rem; background: var(--paper-deep); }
.story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; color: var(--muted); font: .75rem var(--font-mono); }
.category-label { color: var(--terracotta-deep); text-transform: uppercase; letter-spacing: .06em; }
.story-card h2, .story-card h3 { margin: .55rem 0 .45rem; font-size: 1.55rem; }
.story-card p { color: var(--muted); }
.empty-state { color: var(--muted); font-style: italic; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.3rem 1.4rem; }
.portfolio-piece { margin: 0; }
.portfolio-piece a { display: block; color: inherit; text-decoration: none; }
.portfolio-piece .piece-image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-deep); }
.portfolio-piece:nth-child(2) .piece-image, .portfolio-piece:nth-child(3) .piece-image, .portfolio-piece:nth-child(6) .piece-image, .portfolio-piece:nth-child(7) .piece-image { aspect-ratio: 5 / 4; }
.portfolio-piece img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-piece a:hover img { transform: scale(1.035); }
.piece-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.piece-info h2 { margin: 0; font-size: 1.4rem; }
.piece-info p { margin: 0; color: var(--muted); font-size: .9rem; text-align: right; }
.piece-info .piece-note { margin: .4rem 0 0; max-width: 34rem; color: var(--ink); font-size: .95rem; line-height: 1.45; text-align: left; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, .72fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.about-copy { max-width: 42rem; }
.about-copy p { font-size: 1.12rem; }
.about-copy h2 { margin-top: 2.5rem; font-size: 2rem; }
.about-photo { position: relative; padding: 1rem; background: var(--paper-deep); }
.about-photo img { width: 100%; height: 30rem; object-fit: cover; }
.about-photo figcaption { position: absolute; bottom: .6rem; left: 1rem; color: var(--muted); font-size: .85rem; }
.contact-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 8rem); padding: 3rem; background: var(--paper-deep); }
.contact-panel h2 { font-size: 2.5rem; }
.contact-panel a { color: var(--terracotta-deep); font-weight: 600; }
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); padding: .75rem .85rem; background: var(--card); color: var(--ink); }
.field textarea { min-height: 8rem; resize: vertical; }
.form-note { min-height: 1.5em; color: var(--terracotta-deep); font-size: .9rem; }

.article-shell { padding: 4rem 0 6rem; }
.article-reader { max-width: 54rem; }
.article-header h1 { max-width: 18ch; font-size: clamp(2.7rem, 6vw, 5.2rem); }
.article-deck { max-width: 42rem; margin: 1.3rem 0 2rem; color: var(--muted); font-size: 1.25rem; }
.article-cover { aspect-ratio: 16 / 8; overflow: hidden; margin: 2rem 0 2.8rem; background: var(--paper-deep); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.byline { display: flex; align-items: center; gap: .8rem; max-width: 42rem; margin: 0 0 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .8rem 0; }
.byline img { width: 2.8rem; height: 2.8rem; border-radius: 50%; object-fit: cover; }
.byline p { margin: 0; color: var(--muted); font-size: .9rem; }
.prose { max-width: 42rem; font-size: 1.13rem; line-height: 1.72; }
.prose h2 { margin: 2.4rem 0 .8rem; font-size: 2rem; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose a { color: var(--terracotta-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.prose img.article-inline { width: 100%; margin: 2rem 0; }
.category-results { margin-top: 2rem; }

.not-found { min-height: 50vh; display: grid; place-items: center; padding: 5rem 0; text-align: center; }
.not-found h1 { font-size: clamp(4rem, 14vw, 10rem); color: var(--terracotta); }
.not-found p { max-width: 28rem; margin: 1rem auto 1.5rem; color: var(--muted); font-size: 1.15rem; }

.site-footer { margin-top: 5rem; border-top: 1px solid var(--line); padding: 2.2rem 0; }
.footer-inner { width: min(100% - 3rem, var(--measure)); margin: 0 auto; display: flex; align-items: start; justify-content: space-between; gap: 2rem; }
.footer-inner p { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.3rem; font-size: .9rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--terracotta-deep); }

@media (max-width: 800px) {
  .site-header { width: min(100% - 2rem, var(--measure)); min-height: 5rem; }
  .page-wrap, .footer-inner { width: min(100% - 2rem, var(--measure)); }
  .menu-toggle { display: block; order: 3; font-size: 0; }
  .menu-toggle::before { content: '☰'; font-size: 1.15rem; }
  .main-nav { position: absolute; z-index: 5; top: 5rem; right: 1rem; left: 1rem; display: none; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); padding: .5rem 1rem; background: var(--card); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .75rem 0; }
  .chrome-controls { margin-left: auto; }
  .hero-grid, .artist-band, .about-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 3.2rem; }
  .hero-art { min-height: auto; }
  .hero-art img { height: 23rem; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 18rem; }
  .section-heading { display: block; }
  .section-heading .section-link { display: inline-block; margin-top: 1rem; }
  .art-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 12rem; }
  .art-tile:first-child { grid-row: span 1; }
  .rail-layout { display: block; }
  .side-links { position: static; margin-top: 3rem; }
  .portfolio-grid { gap: 1.5rem .8rem; }
  .piece-info { display: block; }
  .piece-info p { margin-top: .25rem; text-align: left; }
  .contact-panel { padding: 1.5rem; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 1.4rem; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2.5rem, 15vw, 4rem); }
  .hero-copy h1 { max-width: 10ch; }
  .hero-art { padding: .8rem; }
  .hero-art img { height: 20rem; }
  .art-caption { right: .8rem; bottom: .15rem; left: .8rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-piece .piece-image, .portfolio-piece:nth-child(2) .piece-image, .portfolio-piece:nth-child(3) .piece-image, .portfolio-piece:nth-child(6) .piece-image, .portfolio-piece:nth-child(7) .piece-image { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
