/* kayleighvandongen.art — "Dark walnut" (spec §7). Dark only: there is no light theme and no colour-scheme media query. */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/eb-garamond-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/eb-garamond-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-ext-700-italic.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #2a211c;
  --surface: #4a3a30;
  --surface-hover: #574539;
  --edge: #1d1613;
  --text: #f1e4cf;
  --text-2: #c9a987;
  --accent: #d9a36a;
  --accent-hover: #e2b27e;
  --error: #f0a08a;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, sans-serif;
  --pad: 20px;
  --gap: 28px;
  --mat: 12px;
  --t: 150ms;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* A stacking context so body::before (the backdrop, z-index -1) paints above body's own background. */
  isolation: isolate;
}
body.lb-open { overflow: hidden; }
main { flex: 1 0 auto; padding-top: 24px; padding-bottom: 48px; }
main:focus { outline: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: 40px; font-weight: 500; margin-top: 0.2em; }
h2 { font-size: 28px; font-weight: 500; margin-top: 1.6em; }
h3 { font-size: 22px; }
p, li, dd, dt { max-width: 65ch; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; transition: color var(--t); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid #d9a36a; outline-offset: 3px; }
img, picture { display: block; max-width: 100%; height: auto; }
figure { margin: 0 0 1.5em; }
figcaption, .credit, .caption, .small, .hint, .post-date, time { color: var(--text-2); font-size: 15px; }
.credit { margin: 0.4em 0 0; }
figcaption + .credit { margin-top: 0.1em; }
.lede { font-size: 18px; }
.tagline { color: var(--accent); font-size: 18px; font-weight: 700; margin-top: -0.4em; }
.small { font-size: 15px; }
mark.open { background: var(--accent); color: var(--bg); padding: 0 0.3em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--pad); top: -100px; background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: 4px; z-index: 100; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; }

/* Header, footer */
.site-header { border-bottom: 1px solid var(--edge); }
.header-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 14px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.wordmark:hover { color: var(--accent-hover); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { color: var(--text-2); text-decoration: none; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; font-size: 17px; }
.nav a:hover { color: var(--accent-hover); }
.nav a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.site-footer { border-top: 1px solid var(--edge); padding: 24px 0 32px; color: var(--text-2); font-size: 15px; }
.site-footer p { margin: 0 0 0.5em; }

/* Buttons, cards */
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 20px; border-radius: 4px; border: 0;
  background: var(--accent); color: var(--bg); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color var(--t), color var(--t);
}
.button:hover, button.button:hover { background: var(--accent-hover); color: var(--bg); }
.button:focus-visible, button.button:focus-visible { outline-color: #f1e4cf; }
.card { background: var(--surface); border: 1px solid var(--edge); border-radius: 6px; padding: 20px; margin: 24px 0; }
.card h2 { margin-top: 0; }
.state { color: var(--accent); font-weight: 700; margin: 0 0 0.3em; font-size: 15px; letter-spacing: 0.02em; }
.exh-title { font-size: 24px; }
.exh-dates, .exh-venue { margin: 0 0 0.3em; }
.exh-hours { color: var(--text-2); font-size: 15px; }
.exh-more { margin-bottom: 0; font-size: 15px; }
.card p:last-child { margin-bottom: 0; }
.details-card dl { margin: 0 0 1em; display: grid; gap: 8px; }
.details-card dl div { display: grid; grid-template-columns: minmax(6em, 9em) 1fr; gap: 12px; }
.details-card dt { color: var(--text-2); font-size: 15px; }
.details-card dd { margin: 0; }

/* Paintings grid: every cell is a 4:3 mat, the painting is fitted inside it, never cropped. */
.painting-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.painting-cell { margin: 0; max-width: none; }
.frame-link { display: block; color: var(--text-2); text-decoration: none; }
.frame {
  display: block; background: var(--surface); border: 1px solid var(--edge); padding: var(--mat);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: background-color var(--t);
}
.painting-grid .frame { aspect-ratio: 4 / 3; }
.painting-grid .frame picture, .painting-grid .frame img { width: 100%; height: 100%; }
.painting-grid .frame img { object-fit: contain; }
.frame-link:hover .frame, .frame-link:focus-visible .frame { background: var(--surface-hover); }
.caption { display: block; margin-top: 12px; font-size: 15px; color: var(--text-2); line-height: 1.4; }
.caption-year, .caption-status { display: block; }
.caption-status { color: var(--text-2); }
.repro-line { margin-top: 8px; }

/* Painting details: a plain list without JavaScript, hidden and moved into the lightbox with it. */
.painting-list { list-style: none; padding: 0; margin: 0; }
.painting-item { padding: 20px 0; border-top: 1px solid var(--edge); }
.painting-item-title { margin-bottom: 0.2em; }
.painting-item-details, .painting-item-status { margin: 0 0 0.4em; color: var(--text-2); }
.painting-item-repro { color: var(--text-2); font-size: 15px; }
html.has-js .painting-details, html.has-js .no-js-only { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(42, 33, 28, 0.97); color: var(--text);
  overflow-y: auto; padding: 0 var(--pad) 40px; opacity: 0; transition: opacity var(--t);
}
.lightbox.is-open { opacity: 1; }
.lightbox:focus { outline: none; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; min-height: 56px; max-width: 1120px; margin: 0 auto; }
.lb-counter { margin: 0; color: var(--text-2); font-size: 15px; }
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px;
  border: 1px solid var(--edge); background: var(--surface); color: var(--text); cursor: pointer; padding: 0; flex: none;
  transition: background-color var(--t);
}
.lb-btn:hover { background: var(--surface-hover); }
.lb-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; align-items: center; max-width: 1120px; margin: 0 auto; }
.lb-frame { margin: 0; max-height: calc(100vh - 220px); }
.lb-frame picture, .lb-frame img { max-height: calc(100vh - 220px - 2 * var(--mat)); width: auto; margin: 0 auto; object-fit: contain; }
.lb-info { max-width: 65ch; margin: 20px auto 0; }
.lb-info h2 { margin-top: 0; font-size: 28px; }
.lb-info .painting-item-title { display: none; }
.lb-info .painting-item-view { display: none; }

/* Posts */
.post-list { list-style: none; padding: 0; margin: 0 0 16px; }
.post-item { padding: 20px 0; border-top: 1px solid var(--edge); max-width: none; }
.post-item time { display: block; }
.post-title { margin: 0.2em 0 0.4em; }
.post-thumb { max-width: 240px; margin: 12px 0; }
.post-figure { margin: 24px 0; }
.post-date { margin-top: -0.4em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.4em; }
.pagination { display: flex; gap: 24px; margin: 16px 0; }
.touch { margin-bottom: 8px; }
.photo { margin: 8px 0 24px; }

/* Contact form */
.contact-form { max-width: 560px; margin: 8px 0 24px; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { margin: -2px 0 6px; }
.req { color: var(--accent); }
input[type="text"], input[type="email"], select, textarea {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 4px;
  background: var(--surface); color: var(--text); border: 1px solid var(--text-2); font: inherit; color-scheme: dark;
}
textarea { resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
/* Reserve the error line's space: an error appearing on blur must not move the Send button under the pointer. */
.field-error { color: var(--error); font-size: 15px; margin: 6px 0 0; min-height: 1.6em; }
.field-error[hidden] { display: block; visibility: hidden; }
.error-summary { border: 1px solid var(--error); border-radius: 6px; padding: 16px 20px; margin: 0 0 20px; }
.error-summary h2 { margin: 0 0 0.4em; font-size: 22px; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); }
.form-status { min-height: 1.6em; }
.form-status.is-error { color: var(--error); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field.is-hidden { display: none; }

/* Home hero (supplement 2 §1.3). Photo first in one column; two columns from 700 px. */
.hero { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 4px 0 8px; }
.hero-photo { margin: 0; }
.hero-photo picture, .hero-photo img { width: 100%; }
.hero-photo img {
  aspect-ratio: 4 / 5; max-height: 55vh; object-fit: cover; object-position: 65% 35%;
  border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.hero-text h1 { margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 1.2em; }
@media (min-width: 700px) {
  .hero { grid-template-columns: 55fr 45fr; column-gap: 40px; align-items: center; }
  .hero-photo { order: 2; justify-self: end; max-width: 100%; }
  .hero-text { order: 1; }
  .hero-photo picture { width: auto; }
  .hero-photo img { aspect-ratio: auto; width: auto; height: auto; max-width: 100%; max-height: 70vh; object-fit: contain; }
}

/* Backdrop (supplement 2 §2): a fixed, still gradient behind everything; html/body stay walnut. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
html[data-backdrop="dusk"] body::before {
  background:
    radial-gradient(90% 55% at 50% 108%, rgba(217,163,106,0.18) 0%, rgba(217,163,106,0.06) 40%, rgba(217,163,106,0) 70%),
    radial-gradient(70% 50% at 6% -8%,   rgba(74,122,168,0.30) 0%,  rgba(74,122,168,0) 62%),
    radial-gradient(55% 45% at 96% -4%,  rgba(106,76,138,0.24) 0%,  rgba(106,76,138,0) 60%),
    #2a211c;
}
html[data-backdrop="sunburst"] body::before {
  background:
    radial-gradient(90% 40% at 50% 112%, rgba(74,122,168,0.22) 0%, rgba(74,122,168,0) 60%),
    radial-gradient(100% 85% at 50% -12%, rgba(42,33,28,0) 34%, #2a211c 72%),
    radial-gradient(80% 60% at 50% -12%, rgba(217,163,106,0.14) 0%, rgba(217,163,106,0.05) 45%, rgba(217,163,106,0) 72%),
    repeating-conic-gradient(from 180deg at 50% -12%,
      rgba(217,163,106,0) 0deg,
      rgba(217,163,106,0.06) 2.5deg 5deg,
      rgba(217,163,106,0) 7.5deg 15deg),
    #2a211c;
}
html[data-backdrop="river"] body::before {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(95,138,74,0.25) 0%,   rgba(95,138,74,0) 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(74,122,168,0.30) 0%,  rgba(74,122,168,0) 60%),
    radial-gradient(45% 35% at 50% 50%, rgba(217,163,106,0.08) 0%, rgba(217,163,106,0) 70%),
    #2a211c;
}
html[data-backdrop="sky"] body::before {
  background:
    radial-gradient(60% 26% at 50% 62%, rgba(217,163,106,0.10) 0%, rgba(217,163,106,0) 70%),
    linear-gradient(to bottom,
      rgba(106,76,138,0.28) 0%,
      rgba(74,122,168,0.16) 30%,
      rgba(42,33,28,0)      50%,
      rgba(217,163,106,0.10) 62%,
      rgba(42,33,28,0)      72%,
      rgba(74,122,168,0.26) 100%),
    #2a211c;
}
@media (prefers-contrast: more) {
  html[data-backdrop] body::before { background: none; }
}
/* Every surface that carries a painting or text panel stays opaque over the backdrop. */
.site-header, .site-footer { background: transparent; }

@media (min-width: 600px) {
  .painting-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  :root { --pad: 40px; --gap: 40px; --mat: 16px; }
  body { font-size: 18px; }
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }
  h3 { font-size: 26px; }
  .wordmark { font-size: 26px; }
  .tagline, .lede { font-size: 20px; }
  .lede { font-size: 19px; }
  .nav a { font-size: 18px; }
  .painting-grid { grid-template-columns: repeat(3, 1fr); }
  .exh-title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --t: 0ms; }
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}
