/* ============================================================
   Anne Von Ehr — Pastel Artist
   Modern stylesheet for the restored static site (2025 rebuild)
   Palette: warm gallery ivory + terracotta accent, serif display
   ============================================================ */

/* ---------- Tokens & reset ---------- */
:root {
  --paper: #f8f4ec;
  --paper-2: #f1eadd;
  --card: #fffdf8;
  --ink: #2c2921;
  --muted: #6f675a;
  --accent: #a34a28;
  --accent-dark: #7f3a1f;
  --gold: #b98f4e;
  --line: #e6ddcc;
  --dark: #211d16;
  --dark-2: #2b261d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(44, 41, 33, .06), 0 10px 30px rgba(44, 41, 33, .08);
  --shadow-soft: 0 1px 2px rgba(44, 41, 33, .05), 0 6px 18px rgba(44, 41, 33, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(163, 74, 40, .035), rgba(163, 74, 40, 0) 320px),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: .01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 .5em; }
h3 { font-size: 1.15rem; margin: 0 0 .4em; }

p { margin: 0 0 1em; }

.lead { font-size: 1.13rem; color: var(--ink); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

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

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.brand-tag {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--accent);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 8px 11px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: .93rem;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--paper-2); color: var(--accent-dark); }
.site-nav a[aria-current="page"] {
  background: var(--dark);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  padding: 16px 0 0;
  font-size: .85rem;
  color: var(--muted);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.crumbs li { display: flex; gap: 6px; align-items: center; }
.crumbs li + li::before { content: "\203A"; color: var(--gold); margin-right: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- Page scaffold ---------- */
main { padding-bottom: 72px; }

.page-head { padding: 44px 0 10px; }
.page-head .kicker {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .74rem;
  color: var(--accent);
  margin: 0 0 10px;
}
.page-head p.lede { color: var(--muted); font-size: 1.08rem; max-width: 66ch; }

.section { padding: 34px 0; }
.section > h2 { margin-bottom: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--dark); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Hero (home) ---------- */
.hero {
  padding: 52px 0 30px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .78rem;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero .lead { margin-bottom: 1.2em; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-media .hero-caption {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Cards & grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 16px 18px 18px; }
.card .card-body p { color: var(--muted); font-size: .95rem; margin-bottom: .6em; }
.card .card-link { font-weight: 600; font-size: .95rem; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }

/* Artwork thumbnails grid */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 20px;
}
.art-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.art-card .art-media {
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.art-card .art-media img { width: 100%; height: 100%; object-fit: cover; }
.art-card .art-info { padding: 12px 15px 14px; }
.art-card .art-info .t { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }
.art-card .art-info .m { color: var(--muted); font-size: .85rem; margin-top: 2px; }

/* ---------- Artwork placeholder ---------- */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(193, 154, 84, .16), transparent 60%),
    linear-gradient(150deg, #efe8da 0%, #e6dcc8 55%, #ddd2ba 100%);
  border: 1px solid var(--line);
  padding: 18px;
  text-align: center;
}
.ph .ph-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #7c6f58;
}
.ph .ph-note {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #9a8d74;
}

/* ---------- Artwork detail ---------- */
.artwork-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 40px;
  align-items: start;
  margin-top: 26px;
}
.artwork-stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.artwork-stage img { border-radius: 8px; max-height: 640px; width: auto; }
.artwork-stage img.small { max-width: 320px; }
.artwork-stage .ph { border-radius: 8px; min-height: 360px; }

.artwork-side .meta-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.artwork-side .meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: .97rem;
}
.artwork-side .meta-list .k { color: var(--muted); }
.artwork-side .meta-list .v { font-weight: 600; text-align: right; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge-available { background: #e4efe2; color: #3c6b3f; }
.badge-sold { background: #f3e3e0; color: #8c3b2e; }

.artwork-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}
.artwork-nav a { text-decoration: none; font-weight: 600; }
.artwork-nav a:hover { text-decoration: underline; }

.print-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--muted);
}
.print-note a { font-weight: 600; }

/* ---------- Prose / content sections ---------- */
.prose { max-width: 72ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }

.figure-frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}
.figure-frame figcaption {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

/* ---------- Shows table ---------- */
.show-list {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}
.show-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.show-item .when { font-weight: 700; font-family: var(--serif); }
.show-item .what strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 2px; }
.show-item .what span { color: var(--muted); font-size: .93rem; display: block; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 76ch; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  margin-bottom: 12px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1.04rem;
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-list details[open] .faq-summary,
.faq-list summary:hover { color: var(--accent-dark); }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 1.2rem;
  color: var(--accent);
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list .faq-a { padding: 0 0 16px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: 48px;
  background: var(--dark);
  color: #d8d2c4;
  border-radius: var(--radius);
  padding: 38px 34px;
  text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #b7af9d; max-width: 60ch; margin: 0 auto 18px; }
.cta-band .btn-primary { background: var(--accent); }
.cta-band a { color: #e8c89a; }
.cta-band a.btn-primary { color: #fff; }
.cta-band .btn-ghost { border-color: #8b8271; color: #e8c89a; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #b7af9d;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 48px 22px 34px;
}
.site-footer h2 {
  color: var(--paper);
  font-size: 1.02rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer p { font-size: .94rem; }
.site-footer a { color: #d9cfae; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; font-size: .94rem; }
.site-footer address { font-style: normal; font-size: .94rem; line-height: 1.7; }
.site-footer .footer-link { display: inline-block; margin-top: 12px; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 16px 0;
  font-size: .82rem;
  color: #8b8271;
}
.footer-bottom p { margin: 0; }

/* ---------- Utility ---------- */
.notice {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--muted);
  font-size: .95rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .artwork-layout { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    padding: 10px 22px 18px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { border-radius: 10px; font-size: 1rem; }
  .page-head { padding-top: 30px; }
  .show-item { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .art-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .cta-band { padding: 30px 22px; }
}