/* kayleysmith.art — site styles
   Palette and type come from Kayley's Kit page. */
/* Fonts are self-hosted (SIL Open Font License): Aboreto, Albert Sans, Allison */
@font-face { font-family: 'Aboreto'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/aboreto-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/albert-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/albert-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/albert-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Allison'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/allison-latin-400-normal.woff2') format('woff2'); }

:root {
  --paper: #fffcf3;
  --paper-deep: #f6f1e3;
  --ink: #2b2521;
  --ink-soft: #4a433d;
  --stone: #77736c;
  --line: #e4ddcb;
  --olive: #666e54;
  --olive-deep: #4e5540;
  --olive-wash: #eceee3;
  --sold: #8a5a44;

  --display: 'Aboreto', 'Cormorant Garamond', Georgia, serif;
  --body: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Allison', cursive;

  --measure: 64ch;
  --gutter: clamp(16px, 4vw, 48px);
  --wall: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--olive); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* ——— Type ——— */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 7vw, 5.25rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
h4 { font-size: 1rem; font-weight: 600; margin: 0 0 0.4em; color: var(--olive-deep); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--stone); }
.signature { font-family: var(--script); font-size: 3rem; line-height: 1; color: var(--ink); margin: 0.2em 0 0; }

/* ——— Layout ——— */
.wrap { max-width: var(--wall); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section + .section { padding-top: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ——— Header ——— */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.wordmark { font-family: var(--display); font-size: 1.45rem; text-decoration: none; letter-spacing: 0.02em; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 1.8vw, 28px); font-size: 0.95rem; white-space: nowrap; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--olive); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-size: 0.95rem; padding: 8px 0; }
.menu summary::-webkit-details-marker { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
  .menu[open] .nav {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; left: 0; right: 0; top: 76px; z-index: 20;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .menu[open] .nav a { font-size: 1.1rem; padding: 10px 0; }
  .site-header { position: relative; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 0.98rem/1 var(--body);
  padding: 15px 26px; border-radius: 2px; border: 1px solid var(--olive);
  background: var(--olive); color: #fff; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--olive-deep); border-color: var(--olive-deep); }
.btn-quiet { background: transparent; color: var(--olive-deep); }
.btn-quiet:hover { background: var(--olive-wash); color: var(--olive-deep); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ——— Hero: one painting, hung ——— */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero-art { margin: 0; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* A painting on the wall: cream mat, soft cast shadow, never cropped. */
.hung {
  background: #fff;
  padding: clamp(8px, 1.2vw, 14px);
  box-shadow: 0 1px 2px rgba(43, 37, 33, 0.08), 0 18px 40px -18px rgba(43, 37, 33, 0.35);
}

/* Museum wall label */
.label { margin-top: 18px; font-size: 0.92rem; line-height: 1.45; color: var(--ink-soft); }
.label .title { display: block; font-weight: 600; color: var(--ink); font-size: 1rem; }
.label .meta { display: block; }
.label .award { display: block; color: var(--olive-deep); font-style: italic; }
.label .price { display: flex; align-items: baseline; gap: 14px; margin-top: 8px; color: var(--ink); }
.label .sold { color: var(--sold); }
.label .buy { font-weight: 500; color: var(--olive-deep); text-decoration: underline; text-decoration-color: var(--olive); }

/* ——— Work: salon wall ——— */
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.work-head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.95rem; }
.filters a { text-decoration: none; color: var(--stone); padding: 4px 0; border-bottom: 1px solid transparent; }
.filters a:hover { color: var(--ink); }
.filters a[aria-current='true'] { color: var(--ink); border-bottom-color: var(--olive); }
.filters .count { color: var(--stone); font-size: 0.85em; margin-left: 3px; }

.wall { columns: 3 300px; column-gap: clamp(24px, 3.5vw, 48px); }
.piece { break-inside: avoid; margin: 0 0 clamp(40px, 5vw, 64px); }
.piece button.view { all: unset; display: block; cursor: zoom-in; width: 100%; }
.piece button.view:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.piece img { width: 100%; }

/* ——— Lightbox ——— */
dialog.viewer {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: rgba(30, 27, 24, 0.94); color: #f3efe4;
}
dialog.viewer::backdrop { background: rgba(30, 27, 24, 0.94); }
.viewer-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 56px var(--gutter) 20px; gap: 16px; }
.viewer-inner img { max-height: calc(100dvh - 170px); width: auto; max-width: 100%; margin: auto; object-fit: contain; }
.viewer-caption { text-align: center; font-size: 0.95rem; }
.viewer-caption .title { font-family: var(--display); font-size: 1.4rem; display: block; color: #fff; }
.viewer-btn { position: absolute; background: none; border: 0; color: #f3efe4; font: 400 1rem var(--body); padding: 12px 16px; cursor: pointer; }
.viewer-btn:hover { color: #fff; text-decoration: underline; }
.viewer-close { top: 8px; right: 8px; }
.viewer-prev { left: 4px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.viewer-next { right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }

/* ——— Newsletter (posts to Kit) ——— */
.letter { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.letter .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 820px) { .letter .wrap { grid-template-columns: 1fr; } }
.kit-form { display: grid; gap: 14px; max-width: 460px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 10px 0; width: 100%;
}
.field textarea { border: 1px solid var(--ink); padding: 12px; resize: vertical; min-height: 160px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 1px 0 0 var(--olive); }
.form-note { font-size: 0.85rem; color: var(--stone); margin: 0; }
.form-status { font-size: 0.95rem; margin: 0; min-height: 1.5em; }
.form-status.ok { color: var(--olive-deep); }
.form-status.err { color: var(--sold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ——— Footer ——— */
.site-footer { padding: 56px 0 40px; font-size: 0.92rem; color: var(--ink-soft); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer .wordmark { font-size: 1.3rem; display: inline-block; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.fineprint { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; color: var(--stone); font-size: 0.82rem; }
@media (max-width: 680px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ——— Inner pages ——— */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts { margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.facts dt { color: var(--stone); }
.facts dd { margin: 0; }
blockquote.statement { margin: 0; padding: 0; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--ink); max-width: 30ch; }
.statement-wrap { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statement-wrap .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
@media (max-width: 720px) { .statement-wrap .wrap { grid-template-columns: 1fr; } }

/* Timeline (Journey) — a real sequence, so it is numbered by time */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 36px 32px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--olive); }
.timeline li.mark::before { background: var(--olive); }
.timeline .when { font-size: 0.88rem; color: var(--stone); display: block; }
.timeline .what { font-weight: 600; display: block; margin: 2px 0 4px; }

/* Price lists (Commissions) */
.price-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-list .amt { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps li { counter-increment: step; border-top: 1px solid var(--olive); padding-top: 14px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.6rem; color: var(--olive); display: block; margin-bottom: 6px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Testimonials (Teaching) */
.quotes { columns: 2 320px; column-gap: clamp(28px, 4vw, 56px); }
.quotes figure { break-inside: avoid; margin: 0 0 36px; }
.quotes blockquote { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.6; }
.quotes figcaption { color: var(--stone); font-size: 0.9rem; }
.tag { display: inline-block; font-size: 0.82rem; color: var(--olive-deep); border: 1px solid var(--olive); padding: 2px 10px; border-radius: 999px; margin-bottom: 12px; }

/* Toast (right-click notice) */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: 0.9rem; max-width: calc(100vw - 32px); z-index: 50; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.toast.show { opacity: 1; }

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

/* ——— Phase 2: commerce ——— */
.buy-form { display: inline; margin: 0; }
button.buy { all: unset; cursor: pointer; font-weight: 500; color: var(--olive-deep); text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 3px; }
button.buy:hover { color: var(--ink); }
button.buy:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.label a.title { text-decoration: none; }
.label a.title:hover { text-decoration: underline; text-decoration-color: var(--olive); }
.prints-link { display: inline-block; margin-top: 6px; font-size: 0.88rem; color: var(--olive-deep); }
.viewer-caption a { color: #f3efe4; }

.painting-detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .painting-detail { grid-template-columns: 1fr; } }
.detail-art { margin: 0; }
.detail-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 0.2em; }
.painting-detail .label { margin-top: 0; font-size: 1rem; }
.detail-desc { margin-top: 24px; }
.detail-prints { margin-top: 36px; }
.detail-prints h4 { margin-top: 24px; }
.row-buy { display: inline-flex; gap: 16px; align-items: baseline; white-space: nowrap; }

.print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(32px, 4vw, 56px); margin-top: 40px; }
.print-item h3 { margin: 18px 0 10px; font-size: 1.25rem; }
.print-item h3 a { text-decoration: none; }
.print-item .price-list li { flex-wrap: wrap; font-size: 0.95rem; }

.steps-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .steps-2 { grid-template-columns: 1fr; } }
.club-join { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.club-price { font-size: 1.1rem; margin-bottom: 4px; }
.club-price .amt { font-family: var(--display); font-size: 2.6rem; color: var(--ink); }

/* ——— Kit embed, restyled to match the site (Kit's own heading is hidden; ours is editable) ——— */
.kit-embed { min-height: 120px; }
.kit-embed.compact { min-height: 60px; }
.kit-embed .formkit-form { max-width: 460px !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; font-family: var(--body) !important; }
.kit-embed .formkit-background { display: none !important; }
.kit-embed .formkit-form > div { padding: 0 !important; }
.kit-embed .formkit-header, .kit-embed .formkit-subheader { display: none !important; }
.kit-embed .formkit-fields { display: grid !important; gap: 14px !important; margin: 0 !important; }
.kit-embed .formkit-field, .kit-embed .formkit-submit { margin: 0 !important; flex: none !important; }
.kit-embed .formkit-input { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--ink) !important; border-radius: 0 !important; padding: 10px 0 !important; font: 400 1rem var(--body) !important; color: var(--ink) !important; }
.kit-embed .formkit-input::placeholder { color: var(--stone) !important; opacity: 1 !important; }
.kit-embed .formkit-input:focus { outline: none !important; border-bottom-color: var(--olive) !important; box-shadow: 0 1px 0 0 var(--olive) !important; }
.kit-embed .formkit-submit { background: var(--olive) !important; border-radius: 2px !important; justify-self: start !important; width: auto !important; }
.kit-embed .formkit-submit > span { padding: 15px 26px !important; font: 500 0.98rem var(--body) !important; color: #fff !important; }
.kit-embed .formkit-submit:hover { background: var(--olive-deep) !important; }
.kit-embed .formkit-guarantee { text-align: left !important; color: var(--stone) !important; font-size: 0.85rem !important; margin-top: 12px !important; }
.kit-embed .formkit-guarantee p { margin: 0 !important; }
.kit-embed .formkit-powered-by-convertkit-container { justify-content: flex-start !important; margin: 14px 0 0 !important; }
.kit-embed .formkit-alert-success { background: var(--olive-wash) !important; border-color: var(--olive) !important; color: var(--olive-deep) !important; }
.kit-embed.compact .formkit-guarantee, .kit-embed.compact .formkit-powered-by-convertkit-container { display: none !important; }
.painting-detail .label .title { display: none; }

/* ——— Rebuild 2: home, gallery, store, studio, about ——— */
/* Home: the name, then one painting hung large on the wall */
.home-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); text-align: center; }
.home-name { font-size: clamp(3rem, 11vw, 8.75rem); letter-spacing: 0.03em; line-height: 0.95; margin: 0; text-wrap: balance; }
.home-tagline { margin: 18px auto 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); letter-spacing: 0.01em; }
.home-art { margin: clamp(36px, 6vw, 72px) auto 0; max-width: min(1080px, 100%); }
.home-art .hung { display: block; padding: clamp(10px, 1.6vw, 20px); box-shadow: 0 2px 4px rgba(43, 37, 33, 0.06), 0 40px 80px -36px rgba(43, 37, 33, 0.45); }
.home-art img { width: 100%; }
.home-caption { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 0.95rem; color: var(--ink-soft); }
.home-caption a { color: var(--ink); font-weight: 600; text-decoration: none; }
.home-caption a:hover { text-decoration: underline; text-decoration-color: var(--olive); }
.actions.centered { justify-content: center; margin-top: clamp(28px, 4vw, 40px); }
@media (prefers-reduced-motion: no-preference) {
  .home-art .hung { animation: hang 1.1s cubic-bezier(.2,.7,.2,1) both .15s; }
  @keyframes hang { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
.home-selected { border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); }
.work-head a { font-size: 0.95rem; color: var(--olive-deep); }
.studio-teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.studio-teaser .hung { display: block; }
.studio-teaser h3 { font-family: var(--body); font-weight: 600; font-size: 1.15rem; letter-spacing: 0; margin: 0 0 8px; }
@media (max-width: 760px) { .studio-teaser { grid-template-columns: 1fr; } }

/* Newsletter: what you actually get */
.perks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; max-width: 46ch; }
.perks li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.perks li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--olive); }
.perks strong { color: var(--ink); }
.perks span { color: var(--ink-soft); }
.letter .form-note { margin-top: 12px; }

/* Gallery: viewing only */
.gallery-filters { margin: 0 0 40px; }
a.piece-link { display: block; cursor: pointer; }
a.piece-link:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.piece .hung { transition: box-shadow 0.25s ease; }
a.piece-link:hover .hung { box-shadow: 0 1px 2px rgba(43, 37, 33, 0.08), 0 26px 50px -20px rgba(43, 37, 33, 0.45); }
.label a.title { color: var(--ink); }

/* Store */
.store-head .crumb { margin: 0 0 6px; font-size: 0.92rem; }
.store-head .crumb a { color: var(--stone); text-decoration: none; }
.store-head .crumb a:hover { color: var(--ink); }
.store-tabs { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 28px; border-bottom: 1px solid var(--line); }
.store-tabs a { text-decoration: none; color: var(--stone); padding: 10px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.store-tabs a:hover { color: var(--ink); }
.store-tabs a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--olive); }
.store-sections { display: grid; gap: clamp(40px, 6vw, 72px); }
.store-section { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; text-decoration: none; color: inherit; }
.store-section:nth-child(even) .store-section-art { order: 2; }
.store-section h2 { margin-bottom: 0.3em; }
.store-section-go { display: inline-block; margin-top: 8px; font-weight: 500; color: var(--olive-deep); text-decoration: underline; text-decoration-color: var(--olive); text-underline-offset: 3px; }
.store-section:hover .hung { box-shadow: 0 1px 2px rgba(43, 37, 33, 0.08), 0 26px 50px -20px rgba(43, 37, 33, 0.45); }
@media (max-width: 760px) { .store-section { grid-template-columns: 1fr; } .store-section:nth-child(even) .store-section-art { order: 0; } }
.detail-back { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* About: a letter */
.letter-body { font-size: 1.08rem; line-height: 1.75; }
.letter-body .greeting { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin-bottom: 0.8em; color: var(--ink); }
.letter-body .signoff { margin-top: 1.4em; font-weight: 600; }
.timeline.story { margin-top: 32px; max-width: 760px; }

/* Studio journal */
.journal { display: grid; gap: clamp(56px, 8vw, 96px); max-width: 980px; }
.note { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.note-date { margin: 0; color: var(--stone); font-size: 0.95rem; }
.note-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.5em; }
.note-image { margin: 0 0 24px; display: block; max-width: 720px; }
@media (max-width: 720px) { .note { grid-template-columns: 1fr; gap: 8px; } }

/* Contact */
.commission-note { padding: 20px 22px; background: var(--paper-deep); border: 1px solid var(--line); margin-bottom: 28px; }
.commission-note h4 { margin-top: 0; }
.commission-note p { margin: 0; }
.page-head .tag { margin: 4px 0 18px; }

/* Store listings + custom pages (Update #13) */
.row-title { color: var(--ink); text-decoration: none; }
.row-title:hover { text-decoration: underline; }
.painting-detail .crumb { margin: 0 0 8px; font-size: 0.92rem; color: var(--stone); }
.painting-detail .crumb a { color: var(--stone); text-decoration: none; }
.painting-detail .crumb a:hover { color: var(--ink); }
.prose .bullets { padding-left: 1.2em; }
.prose .bullets li { margin: 0.3em 0; }

/* Home link affordance (Updates #14/#15) */
.wordmark { color: var(--ink); transition: color .15s; }
.wordmark:hover, .wordmark:focus-visible { color: var(--olive-deep, var(--olive)); }
.home-name a { color: inherit; text-decoration: none; }

/* Home hero: painting at most ~60% of the screen height (Update #17) */
.home-hero { padding-top: clamp(28px, 4vh, 56px); padding-bottom: clamp(40px, 6vw, 80px); }
.home-name { font-size: clamp(2.4rem, 6vw, 5rem); }
.home-art { margin-top: clamp(20px, 3vh, 36px); }
.home-hero .actions { margin-top: 20px; }
.home-art .hung { display: inline-block; max-width: 100%; }
.home-art img { width: auto; height: auto; max-width: 100%; max-height: clamp(260px, calc(100vh - 430px), 58vh); display: block; }

/* "Edit this page" button, only shown to Kayley when signed in */
.edit-this { position: fixed; right: 16px; bottom: 16px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--olive-deep); color: #fff; text-decoration: none; font-size: 0.95rem; box-shadow: 0 6px 20px rgba(43, 37, 33, 0.25); }
.edit-this:hover { background: var(--ink); color: #fff; }

/* Print Club: subscribe or one month (BRIEF-002) */
.club-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; margin: 20px 0 8px; }
.club-option { margin: 0; }
.club-option .btn { width: 100%; justify-content: center; text-align: center; }
.club-option p { margin: 8px 0 0; font-size: 0.92rem; }

/* Home hero as a wide landscape banner (BRIEF-002 Fix 3). "Whole painting" keeps the framed style above. */
.home-art-banner { max-width: 100%; }
.home-art-banner .hung { display: block; width: 100%; }
.home-art-banner img {
  width: 100%; max-width: none; max-height: none;
  height: clamp(240px, min(calc(100vh - 430px), 46vw), 600px);
  object-fit: cover; object-position: 50% var(--focus, 50%);
}

/* Studio videos (TASK-011) */
.note-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 24px; background: var(--paper-deep, #f6f1e3); box-shadow: 0 2px 4px rgba(43, 37, 33, 0.06), 0 24px 48px -28px rgba(43, 37, 33, 0.4); }
.note-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Size choices (TASK-011) */
.price-list li.has-sizes { flex-wrap: wrap; align-items: center; }
.size-select { font: inherit; font-size: 0.92rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); max-width: 100%; }
.size-picker { margin-top: 24px; }
.size-picker fieldset { border: 0; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.size-picker legend { font-size: 0.92rem; color: var(--stone); padding: 0 0 8px; }
.size-choice { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.size-choice .size-name { flex: 1; }
.size-choice input { accent-color: var(--olive); width: 18px; height: 18px; }
.size-choice:has(input:checked) { background: var(--olive-wash, #eceee3); }

/* ——— Events (TASK-012) ——— */
.event-head .crumb { margin: 0 0 6px; font-size: 0.92rem; }
.event-head .crumb a { color: var(--stone); text-decoration: none; }
.event-head .actions { margin-top: 24px; }
.event-hero .hung { display: block; }
.event-hero img { width: 100%; max-height: clamp(260px, 62vh, 640px); object-fit: cover; display: block; }
.event-intro { max-width: 68ch; font-size: 1.08rem; }
.event-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.event-photos figure { margin: 0; }
.event-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.event-photos figcaption { margin-top: 8px; font-size: 0.92rem; }
.collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: 32px; align-items: stretch; }
.collection { background: #fff; padding: clamp(24px, 3vw, 36px); border-top: 3px solid var(--olive); box-shadow: 0 2px 4px rgba(43, 37, 33, 0.05), 0 28px 56px -32px rgba(43, 37, 33, 0.35); display: flex; flex-direction: column; }
.collection h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 400; margin: 0 0 6px; letter-spacing: 0.02em; }
.collection-price { font-family: var(--display); font-size: 2.2rem; color: var(--ink); margin: 0; }
.collection-size { color: var(--stone); font-size: 0.92rem; margin: 4px 0 16px; }
.collection-tagline { font-style: italic; color: var(--olive-deep); margin: 0 0 12px; }
.collection p { margin: 0 0 14px; }
.collection-includes { list-style: none; padding: 16px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.95rem; }
.collection-includes li { padding-left: 20px; position: relative; }
.collection-includes li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 1px; background: var(--olive); }
.event-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 5vw, 72px); }
.event-notes h2 { font-size: 1.5rem; }
.process { counter-reset: step; list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px clamp(24px, 4vw, 48px); }
.process li { counter-increment: step; border-top: 1px solid var(--olive); padding-top: 14px; }
.process li::before { content: counter(step); font-family: var(--display); font-size: 1.8rem; color: var(--olive); display: block; margin-bottom: 4px; }
.process h3 { font-size: 1.05rem; margin: 0 0 6px; }
.process p { margin: 0; color: var(--ink-soft); }
.event-inquire { border-top: 1px solid var(--line); }
/* Quote page */
.quote-hero img { width: 100%; height: clamp(160px, 28vh, 320px); object-fit: cover; display: block; }
.quote { max-width: 760px; }
.quote .crumb { color: var(--stone); font-size: 0.92rem; margin: 0 0 6px; }
.quote-table { width: 100%; border-collapse: collapse; margin: 28px 0 8px; font-size: 1.02rem; }
.quote-table td { padding: 14px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.quote-table td.amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote-table tr.total td { font-weight: 600; border-bottom: 2px solid var(--ink); }
.quote-note { padding: 14px 18px; background: var(--paper-deep, #f6f1e3); border-left: 3px solid var(--stone); }
.quote-note.ok { background: var(--olive-wash, #eceee3); border-left-color: var(--olive); }
.quote-notes { margin-top: 32px; }
.quote-actions { margin: 32px 0 8px; display: grid; gap: 16px; }
.quote-actions form p { margin: 8px 0 0; }
.quote h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0 0 8px; }

/* Pre-orders */
.preorder-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--olive-deep); border: 1px solid var(--olive); border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.preorder-note { margin: 4px 0 16px; color: var(--ink-soft); }
.preorder-note .preorder-tag { margin-left: 0; }
.prints-info { border-top: 1px solid var(--line); }
.prints-info .prose { max-width: 68ch; }
.prints-info { padding-top: clamp(40px, 6vw, 72px); }
