/* Debbie Clark Art. One stylesheet, light and dark. */

/* Self-hosted fonts (SIL Open Font License, see /assets/fonts/): Lora for headings, titles and Scripture,
   Inter for everything else. Latin subset only, about 115KB in all, cached for a year. */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/lora-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #faf8f4;
  --paper-2: #f1ece4;
  --card: #ffffff;
  --ink: #1f1c18;
  --muted: #6a6359;
  --line: #e2dbcf;
  --accent: #85642a;
  --accent-hover: #6d5121;
  --accent-ink: #ffffff;
  --star: #c4922d;
  --shadow: 0 1px 2px rgb(40 30 15 / 6%), 0 8px 24px rgb(40 30 15 / 8%);
  --radius: 8px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151310;
    --paper-2: #1d1a16;
    --card: #221e19;
    --ink: #eee8de;
    --muted: #a69d8f;
    --line: #322d26;
    --accent: #d6ad5f;
    --accent-hover: #e6c27c;
    --accent-ink: #1a1610;
    --star: #d6ad5f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16.5px/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}

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

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 0.8em; }
.small-heading { font-size: 1.15rem; margin-top: 1.6em; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; border-radius: 4px; }
.skip-link:focus { left: 8px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  padding: 0.8em 1.4em; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.15s, border-color 0.15s;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button-quiet:hover { background: var(--paper-2); color: var(--ink); border-color: var(--muted); }
.button-small { padding: 0.55em 1.05em; font-size: 0.88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand img { height: 64px; width: auto; }
.nav-desktop { display: flex; gap: 26px; margin-left: auto; }
.nav-desktop a, .nav-mobile nav a { color: var(--ink); text-decoration: none; font-weight: 400; }
.nav-desktop a:hover, .nav-mobile nav a:hover { color: var(--accent); }
.nav-desktop a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.5em; text-decoration-thickness: 2px; }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.9rem;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; }
.burger::after { top: 5px; }
.nav-mobile nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; padding: 8px var(--gutter) 16px;
}
.nav-mobile nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav-mobile nav a:last-child { border-bottom: 0; color: var(--accent); }

@media (max-width: 900px) {
  .nav-desktop, .header-shop { display: none; }
  .nav-mobile { display: block; }
  .header-inner { min-height: 68px; }
  .brand img { height: 50px; }
}

.notice { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin-top: 16px; }

/* Sections */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-tight { padding-bottom: clamp(40px, 6vw, 72px); }
.section-tint { background: var(--paper-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-intro { color: var(--muted); margin-top: -8px; }
.page-head { padding-block: clamp(32px, 5vw, 56px) 20px; }
.count { margin: 16px 0 0; font-size: 0.92rem; }

/* Home hero */
.hero { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 6vw, 72px); }
.hero h1 { max-width: 12em; }
.hero-image { position: relative; display: block; color: var(--muted); text-decoration: none; }
.hero-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-caption { display: block; margin-top: 10px; font-size: 0.9rem; font-family: var(--serif); font-style: italic; }
.trust { margin-top: 1.4em; font-size: 0.92rem; color: var(--muted); }
.stars { color: var(--star); letter-spacing: 0.08em; }
.stars-off { opacity: 0.25; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.05fr; }
}

/* Painting cards and collection tiles */
.cards, .tiles, .reviews, .post-list { list-style: none; margin: 0; padding: 0; }
.cards, .tiles { display: grid; gap: clamp(14px, 2.4vw, 28px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .cards, .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .cards, .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 700px) { .cards-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.card-image { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); aspect-ratio: 1; margin-bottom: 8px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-image img { transform: scale(1.03); }
.card-title { font-family: var(--serif); font-size: 1.08rem; line-height: 1.25; }
.card:hover .card-title { color: var(--accent); }
.card-meta { font-size: 0.86rem; color: var(--muted); }

.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; background: var(--paper-2); color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile-label {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px;
  background: linear-gradient(to top, rgb(0 0 0 / 72%), rgb(0 0 0 / 0%));
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.2;
}
.tile-label small { font-family: var(--sans); font-size: 0.78rem; opacity: 0.8; margin-left: 4px; }
.tile-intro { font-size: 0.9rem; margin: 8px 0 0; }

/* Filters and chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 0.88rem; background: var(--card);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Painting page */
.breadcrumb { font-size: 0.9rem; color: var(--muted); padding-top: 22px; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.painting { display: grid; gap: clamp(24px, 4vw, 56px); padding-block: 18px clamp(32px, 5vw, 56px); align-items: start; }
@media (min-width: 900px) {
  .painting { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .gallery { position: sticky; top: 20px; }
}
.gallery-main { display: block; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; max-height: 82vh; object-fit: contain; margin: 0 auto; }
.thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 12px 0 0; }
.thumbs a { display: block; width: 72px; height: 72px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: 0.75; }
.thumbs a[aria-current], .thumbs a:hover { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.byline { color: var(--muted); font-size: 1.05rem; margin-top: -0.2em; }

.offers { display: grid; gap: 12px; margin: 24px 0 8px; }
.offer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; }
.offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.offer h3 { font-size: 1.1rem; margin: 0; font-family: var(--serif); font-weight: 600; }
.price { font-family: var(--serif); font-size: 1.35rem; margin: 0; white-space: nowrap; }
.price small { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }
.offer-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.offer .button { justify-self: start; }
.offer-trust { font-size: 0.86rem; color: var(--muted); margin: 4px 0 0; }

.scripture { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.scripture blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-style: italic; line-height: 1.5; }
.scripture blockquote p { margin: 0; }
.scripture blockquote p::before { content: "“"; }
.scripture blockquote p::after { content: "”"; }
.scripture figcaption { margin-top: 8px; color: var(--muted); font-size: 0.92rem; letter-spacing: 0.04em; }

.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 20px 0 0; font-size: 0.95rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }

/* Reviews */
.reviews { display: grid; gap: 16px; }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.review .stars { margin: 0 0 8px; font-size: 0.95rem; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; }
.review-meta { margin: 12px 0 0; font-size: 0.85rem; color: var(--muted); }

/* Two-column block on the home page */
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; } }
.book-feature { display: grid; gap: 6px; color: var(--ink); text-decoration: none; }
.book-feature img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 8px; }
.book-title { font-family: var(--serif); font-size: 1.25rem; }

/* Writing */
.prose { max-width: 720px; padding-block: clamp(24px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 1.08rem; }
.prose a { word-break: break-word; }
.post-list { display: grid; gap: 28px; max-width: 760px; }
.post-list li > a { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; color: var(--ink); }
.post-list li > a:hover { color: var(--accent); }
.post-list p { margin: 4px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: 0; font-size: 0.93rem; }
.footer-inner { display: grid; gap: 28px; padding-block: 40px 24px; }
@media (min-width: 600px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-inner nav { display: grid; gap: 6px; align-content: start; }
.footer-inner nav a { color: var(--ink); text-decoration: none; }
.footer-inner nav a:hover { color: var(--accent); }
.footer-name { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.4em; }
.footer-legal { border-top: 1px solid var(--line); padding-block: 16px 28px; color: var(--muted); font-size: 0.82rem; }
.footer-legal p { margin: 0 0 4px; }

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

/* Sale */
.sale-bar { margin: 0; background: var(--accent); text-align: center; font-size: 0.92rem; }
.sale-bar a { display: block; padding: 9px var(--gutter); color: var(--accent-ink); text-decoration: none; }
.sale-bar a:hover { text-decoration: underline; }
.price del { color: var(--muted); font-size: 0.8em; margin-right: 4px; }
.price ins { text-decoration: none; color: var(--accent); }
.offer-sale { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--accent); }

/* News */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.news-item { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 16px 20px; align-items: start; }
@media (min-width: 700px) { .news-item { grid-template-columns: 220px 1fr; } }
.section-latest .news { gap: 18px; }
@media (min-width: 1050px) {
  .section-latest .news { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .section-latest .news-item { grid-template-columns: 1fr; }
}
.news-image { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); position: relative; }
.news-image img { width: 100%; height: 100%; object-fit: cover; }
.news-label { margin: 0 0 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; }
.news-title { font-size: 1.2rem; margin: 0 0 6px; }
.news-title a { color: var(--ink); text-decoration: none; }
.news-title a:hover { color: var(--accent); }
.news-item p.muted { margin: 0; font-size: 0.93rem; }

/* Videos */
.cards-video { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 700px) { .cards-video { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .cards-video { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card-image.is-video { aspect-ratio: 16 / 9; position: relative; }
.is-video::after, .video-frame .play {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgb(0 0 0 / 55%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 34px no-repeat;
  transition: background-color 0.15s;
}
.card:hover .is-video::after, .video-frame:hover .play { background-color: rgb(0 0 0 / 75%); }
.news-image.is-video::after { width: 44px; height: 44px; margin: -22px 0 0 -22px; background-size: 24px; }
.video-page { max-width: 900px; padding-block: 8px clamp(32px, 5vw, 56px); }
.video-frame { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; margin-top: 16px; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame .play { width: 84px; height: 84px; margin: -42px 0 0 -42px; background-size: 44px; }
.prose-body { max-width: 720px; margin-top: 24px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buying: the original, then prints */
.buy-group { margin-top: 22px; display: grid; gap: 10px; }
.buy-heading { font-size: 0.82rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0; }
.buy-status { margin: 0; padding: 14px 18px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 0.95rem; }
.painting-info .offer-trust { margin-top: 14px; }

/* Social media */
.icon { display: block; }
.social { display: flex; gap: 4px; align-items: center; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink); }
.social a:hover { color: var(--accent); background: var(--paper-2); }
.social-header { margin-left: -12px; }
.social-footer { margin-top: 12px; margin-left: -9px; }
.follow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .follow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.follow-card {
  display: flex; gap: 14px; align-items: center; padding: 18px 20px; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none;
}
.follow-card .icon { width: 34px; height: 34px; flex: none; color: var(--accent); }
.follow-card:hover { border-color: var(--accent); }
.follow-blurb { font-size: 0.9rem; color: var(--muted); }
.filters-below { margin-top: 26px; }
.about-teaser { max-width: 820px; }
@media (max-width: 900px) {
  .social-header { margin-left: auto; }
  .social-header + .header-shop + .nav-mobile { margin-left: 4px; }
}
@media (max-width: 420px) {
  .social a { width: 34px; height: 34px; }
  .nav-mobile summary { padding: 8px 10px; font-size: 0; gap: 0; }
  .nav-mobile summary .burger { margin: 0 2px; }
}

/* On phones the filter chips are one row that scrolls sideways instead of a tall stack. */
@media (max-width: 700px) {
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 4px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
}

.nav-mobile nav a.nav-sub { padding-left: 16px; font-weight: 400; color: var(--muted); }

/* Typography: only weights 400 and 600 are loaded, so every bold is 600 and nothing is faked by the browser. */
strong, b { font-weight: 600; }
.card-title, .tile-label, .footer-name, .book-title, .post-list li > a, .price, .hero-caption { font-weight: 400; }
h1, h2, h3, .offer h3 { font-weight: 600; }

/* Contact form */
.contact-layout { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.contact-form { display: grid; gap: 4px; max-width: 640px; }
.field { display: grid; gap: 6px; margin: 0 0 14px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 6px; padding: 11px 13px; width: 100%;
}
.field textarea { resize: vertical; min-height: 9em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: 0.86rem; }
button.button { cursor: pointer; font-family: inherit; }
.follow-compact { grid-template-columns: 1fr !important; gap: 10px; margin-top: 16px; }
.follow-compact .follow-card { padding: 12px 16px; }
.follow-compact .icon { width: 26px; height: 26px; }
.ask { margin: 10px 0 0; font-size: 0.92rem; }

/* Seasonal band on the home page */
.season-band a {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding: 16px 20px; margin-bottom: 8px;
  border: 1px solid var(--accent); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none;
}
.season-band .eyebrow { margin: 0; }
.season-band strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.season-band a:hover { background: var(--paper-2); }

/* Debbie's studio */
.studio-section { padding-bottom: 36px; }
.studio-saved { background: var(--paper-2); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 4px; }
.glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0; }
.glance div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.glance dt { color: var(--muted); font-size: 0.85rem; }
.glance dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.studio-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.studio-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.studio-card h3 { font-size: 1.1rem; margin: 0 0 4px; }
.studio-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 0.95rem; }
.tidy { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.tidy details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.tidy summary { cursor: pointer; }
.studio-form h2 { margin-top: 12px; }
.studio-checks { display: grid; gap: 10px; margin-bottom: 28px; }
@media (min-width: 800px) { .studio-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 0.3em; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.studio-hide { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; }
.studio-hide summary { cursor: pointer; font-weight: 600; }
.hide-list { display: grid; gap: 8px; margin-top: 12px; max-height: 420px; overflow-y: auto; padding-right: 6px; }
.studio-search { font: inherit; width: 100%; max-width: 360px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.studio-save { position: sticky; bottom: 0; background: var(--paper); padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Phones: painting thumbnails in one row that swipes sideways. */
@media (max-width: 700px) {
  .thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs li { flex: none; }
  .thumbs a { width: 64px; height: 64px; }
}
/* Grid columns may shrink below their content (the swipeable thumbnail row would otherwise widen the page). */
.painting > *, .hero > *, .split > *, .contact-layout > * { min-width: 0; }

/* Studio alert: listings missing a TITLE: line */
.studio-alert { border: 1px solid var(--accent); border-left-width: 4px; border-radius: var(--radius); background: var(--card); padding: 18px 20px; }
.studio-alert h2 { font-size: 1.25rem; margin-bottom: 8px; }
.studio-alert code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; background: var(--paper-2); padding: 1px 6px; border-radius: 4px; }
.studio-example { margin: 4px 0 10px; }
.studio-example code { font-size: 1rem; padding: 6px 10px; display: inline-block; }
.studio-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.93rem; }
.studio-table th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 8px 6px 0; }
.studio-table td { border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; vertical-align: top; }
@media (max-width: 600px) {
  .studio-table thead { display: none; }
  .studio-table tr { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .studio-table td { border: 0; padding: 2px 0; }
}

/* ===================================================================== Gallery polish */

:root {
  --mount: #eee8de;
  --frame: #ffffff;
  --frame-shadow: 0 1px 2px rgb(40 30 15 / 12%), 0 10px 26px rgb(40 30 15 / 16%);
  --frame-shadow-lift: 0 2px 4px rgb(40 30 15 / 14%), 0 18px 38px rgb(40 30 15 / 22%);
  --footer-bg: #1c1915;
  --footer-ink: #efe8dc;
  --footer-muted: #a89f92;
  --footer-accent: #e0b866;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mount: #1e1a16;
    --frame: #2c2721;
    --frame-shadow: 0 1px 2px rgb(0 0 0 / 45%), 0 10px 26px rgb(0 0 0 / 55%);
    --frame-shadow-lift: 0 2px 4px rgb(0 0 0 / 50%), 0 18px 38px rgb(0 0 0 / 65%);
    --footer-bg: #0e0c0a;
  }
}

::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* Paintings are shown whole, mounted like prints in a gallery, never cropped. */
.card-image:not(.is-video) {
  display: grid; place-items: center; padding: 11%;
  background: var(--mount); border-radius: 3px; overflow: visible;
}
.card-image:not(.is-video) img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 1px; box-shadow: var(--frame-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover .card-image:not(.is-video) img { transform: translateY(-3px); box-shadow: var(--frame-shadow-lift); }
.card-title { margin-top: 6px; }

/* The home page painting in a thin frame. */
.hero-image img { border: clamp(8px, 1.1vw, 14px) solid var(--frame); border-radius: 2px; box-shadow: var(--frame-shadow-lift); }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.3vw, 3.7rem); letter-spacing: -0.015em; }

/* The painting page's main image, mounted. */
.gallery-main { background: var(--mount); padding: clamp(14px, 5%, 40px); border-radius: 3px; }
.gallery-main img { width: auto; max-width: 100%; max-height: 74vh; box-shadow: var(--frame-shadow-lift); border-radius: 1px; }

/* Small gold touches, echoing the swirl in the logo. */
.section-head h2::after {
  content: ""; display: block; width: 40px; height: 2px; margin-top: 12px;
  background: var(--accent); border-radius: 2px;
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }

/* Scripture set apart, with a large quotation mark. */
.scripture { position: relative; border-left: 0; padding: 26px 26px 22px 30px; background: var(--mount); border-radius: 4px; }
.scripture::before {
  content: "“"; position: absolute; top: -14px; left: 14px;
  font-family: var(--serif); font-size: 4.6rem; line-height: 1; color: var(--accent); opacity: 0.55;
}
.scripture blockquote { font-size: 1.2rem; }
.scripture blockquote p::before, .scripture blockquote p::after { content: none; }
.scripture figcaption { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.12em; }

/* Header stays at the top while scrolling. */
.site-header { position: sticky; top: 0; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); }

/* Buttons: a touch more refined. */
.button { letter-spacing: 0.01em; transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.button:not(.button-quiet) { box-shadow: 0 1px 2px rgb(0 0 0 / 10%); }
.button:hover { transform: translateY(-1px); }

/* A dark footer to close each page. */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); border-top: 0; }
.site-footer .muted, .footer-legal { color: var(--footer-muted); }
.footer-inner { padding-block: 52px 28px; }
.footer-inner nav a { color: var(--footer-ink); opacity: 0.88; }
.footer-inner nav a:hover { color: var(--footer-accent); opacity: 1; }
.footer-legal { border-top-color: rgb(255 255 255 / 10%); }
.site-footer .social a { color: var(--footer-ink); }
.site-footer .social a:hover { color: var(--footer-accent); background: rgb(255 255 255 / 8%); }
.footer-logo { height: 76px; width: auto; margin-bottom: 14px; }
/* A definite grid track, so each painting's max-height is measured against the mount and never spills out. */
.card-image:not(.is-video) { grid-template: 100% / 100%; }
.card-image:not(.is-video) img { min-width: 0; min-height: 0; }

/* Sort and price filter on gallery pages */
.list-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 18px; }
.list-controls[hidden] { display: none; }
.sort { display: flex; gap: 8px; align-items: center; font-size: 0.92rem; color: var(--muted); }
.sort select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 30px 6px 13px; }
.price-bands { display: flex; flex-wrap: wrap; gap: 8px; }
button.chip { font: inherit; font-size: 0.88rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.no-results { margin-top: 20px; }
.link-button { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Search */
.search-form { display: flex; gap: 10px; margin: 8px 0 14px; max-width: 640px; }
.search-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px;
}
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.search-link[aria-current] { color: var(--accent); }

/* Paintings by Bible verse */
.testament { font-size: 1.35rem; margin: 8px 0 14px; }
.books { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.book-link { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; }
.book-link:hover { border-color: var(--accent); }
.book-thumb { flex: none; width: 64px; height: 64px; border-radius: 4px; overflow: hidden; background: var(--mount); }
.book-thumb img { width: 100%; height: 100%; object-fit: cover; }
.book-name { font-family: var(--serif); font-size: 1.1rem; }
.card-verse { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; margin-top: 6px; }
.card-verse + .card-title { margin-top: 0; }
.scripture figcaption a { color: inherit; }
.section-links { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.eyebrow a { color: inherit; text-decoration: none; }

/* Verse of the day on the home page */
.verse-day { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .verse-day { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.verse-day-image { display: grid; place-items: center; background: var(--mount); padding: clamp(18px, 5%, 44px); border-radius: 3px; }
.verse-day-image img { max-height: 520px; width: auto; max-width: 100%; box-shadow: var(--frame-shadow-lift); }
.verse-day blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.85rem); line-height: 1.45; }
.verse-day blockquote p { margin: 0; }
.verse-day blockquote p::before { content: "“"; color: var(--accent); }
.verse-day blockquote p::after { content: "”"; color: var(--accent); }
.verse-day-ref { margin: 16px 0 6px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; font-weight: 600; }
.verse-day-ref a { color: var(--accent); text-decoration: none; }
.verse-day-painting { color: var(--muted); margin: 0; }

/* Studio: pictures to share */
.share-today { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin: 16px 0; }
.share-today img { width: 220px; height: auto; border-radius: 4px; box-shadow: var(--frame-shadow); }
.share-today h3 { font-size: 1.15rem; margin: 0 0 6px; }
.share-list { list-style: none; padding: 0; margin: 12px 0 0; columns: 3 220px; column-gap: 24px; max-height: 420px; overflow-y: auto; }
.share-list li { break-inside: avoid; padding: 3px 0; }

/* Studio: logo */
.logo-previews { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 18px; }
.logo-previews figure { margin: 0; }
.logo-preview { display: grid; place-items: center; width: 180px; height: 100px; border-radius: var(--radius); border: 1px solid var(--line); }
.logo-preview-light { background: #faf8f4; }
.logo-preview-dark { background: #1c1915; }
.logo-preview img { height: 64px; width: auto; }
.logo-form { max-width: 560px; }
.logo-form input[type="file"] { font: inherit; font-size: 0.92rem; }

/* An uploaded logo with no dark version: shown on a light plate in dark places. */
.logo-plate .footer-logo, .logo-plate .logo-preview-dark img { background: #faf8f4; padding: 6px 10px; border-radius: 6px; box-sizing: content-box; }
@media (prefers-color-scheme: dark) {
  .logo-plate .brand img { background: #faf8f4; padding: 4px 8px; border-radius: 6px; }
}
.brand img, .footer-logo { width: auto; }

/* Studio guide */
.guide h2 { font-size: 1.4rem; }
.guide-example {
  font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 0.92rem; line-height: 1.55;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px;
  padding: 16px 18px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 720px;
}
.guide-lines { display: grid; gap: 4px 0; max-width: 820px; }
.guide-lines dt { font-weight: 600; margin-top: 16px; }
.guide-lines dd { margin: 4px 0 0; color: var(--ink); }
.guide code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; background: var(--paper-2); padding: 1px 6px; border-radius: 4px; }
.guide-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-left: 6px; }
.guide-stat { display: inline-block; margin-top: 4px; font-size: 0.85rem; color: var(--muted); }
.guide-stat::before { content: "✓ "; color: var(--accent); }
.guide ul { max-width: 820px; padding-left: 20px; display: grid; gap: 6px; }
.guide-words td:first-child { white-space: nowrap; padding-right: 16px; }

/* ===================================================================== Typography: calmer and tidier */

/* Large titles in Lora's regular weight, which reads as refined rather than loud; semibold is kept for
   small headings, where it helps them stand out. Headings break into balanced lines, and paragraphs
   avoid leaving a single word on the last line. */
h1, h2, h3 { text-wrap: balance; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }

h1 { font-size: clamp(1.9rem, 1.45rem + 1.6vw, 2.6rem); font-weight: 400; letter-spacing: -0.005em; line-height: 1.12; }
.hero h1 { font-size: clamp(2.2rem, 1.55rem + 2.3vw, 3.15rem); font-weight: 400; max-width: 13em; }
.painting-info h1 { font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem); font-weight: 400; letter-spacing: 0; }
h3, .offer h3, .small-heading { font-weight: 600; }
.small-heading { font-size: 1.05rem; }
.section-head h2::after { margin-top: 10px; width: 32px; }
.page-head { padding-block: clamp(28px, 4vw, 44px) 12px; }
.page-head .lead { margin-bottom: 0.6em; }
.lead { font-size: 1.08rem; line-height: 1.6; max-width: 40em; }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.16em; margin-bottom: 0.9em; }

/* Prices, sizes and short labels never split across lines. */
.price, .card-meta span, .nowrap { white-space: nowrap; }
.card-meta { line-height: 1.45; }
.card-title { text-wrap: balance; }

/* ===================================================================== Gallery toolbar */
/* One tidy row: Subject menu, Price and Sort, and the count. The old chip rows are retired. */
.filters, .list-controls, .count { display: none; }
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding-top: 6px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.toolbar-count { margin: 0 0 0 auto; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.menu { position: relative; }
.menu summary, .select {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer;
  font-size: 0.92rem; color: var(--ink); white-space: nowrap;
}
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after {
  content: ""; width: 7px; height: 7px; margin: -3px 0 0 4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform 0.2s;
}
.menu[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.menu summary:hover, .select:hover { border-color: var(--muted); }
.menu-label { color: var(--muted); }
.menu-value { font-weight: 600; }
.menu-panel {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 240px; max-height: 60vh; overflow-y: auto;
  display: grid; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.menu-panel a { padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.menu-panel a:hover { background: var(--paper-2); }
.menu-panel a[aria-current] { font-weight: 600; color: var(--accent); }
.menu-panel .menu-more { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; font-size: 0.88rem; color: var(--muted); }
.select select {
  font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 0; padding: 0 2px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.select::after {
  content: ""; width: 7px; height: 7px; margin: -3px 0 0 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none;
}
.select[hidden] { display: none; }
.select select:focus { outline: none; }
.select:focus-within, .menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.section-tight > .cards:first-child { margin-top: 0; }
@media (max-width: 600px) {
  .toolbar { gap: 8px; }
  .toolbar-count { flex-basis: 100%; margin: 4px 0 0; order: 5; }
  .menu summary, .select { height: 38px; padding: 0 12px; font-size: 0.88rem; }
  .menu-panel { min-width: min(280px, calc(100vw - 32px)); }
}

.toolbar { border-bottom: 0; padding-bottom: 0; margin-bottom: 26px; }
.toolbar::after { content: ""; flex-basis: 100%; height: 1px; margin-top: 12px; background: var(--line); }

/* ===================================================================== Gentle effects */
.fade-in { opacity: 0; transition: opacity 0.6s ease; }
.fade-in.is-loaded { opacity: 1; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Menu links: a gold line slides in under the one you point at, and stays under the current page. */
.nav-desktop a { position: relative; text-decoration: none !important; }
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.28s ease;
}
.nav-desktop a:hover::after, .nav-desktop a[aria-current]::after { transform: scaleX(1); }

/* Tiles: the label lifts slightly as the picture zooms. */
.tile-label { transition: padding-bottom 0.3s ease; }
.tile:hover .tile-label { padding-bottom: 16px; }

/* The painting can be clicked to see it large. */
.gallery-main { cursor: zoom-in; }
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgb(14 12 10 / 94%); }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: 92vw; max-height: 88vh; width: auto; height: auto; box-shadow: 0 24px 70px rgb(0 0 0 / 55%); }
.lightbox button {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 12%); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgb(255 255 255 / 24%); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: calc(50% - 24px); }
.lightbox .lb-next { right: 18px; top: calc(50% - 24px); }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .reveal { opacity: 1 !important; transform: none !important; }
  .nav-desktop a::after, .tile-label { transition: none; }
}

/* Writing: a related video above the text, e.g. her testimony. */
.post-videos { margin: 20px 0 28px; }
.post-videos h2 { font-size: 1.15rem; margin: 0 0 12px; font-weight: 600; }
.post-videos .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Menu items and buttons never wrap; below 1080px the header switches to the compact menu. */
.nav-desktop a, .button, .menu summary, .select { white-space: nowrap; }
.nav-desktop { gap: 22px; }
@media (max-width: 1080px) {
  .nav-desktop, .header-shop { display: none; }
  .nav-mobile { display: block; }
  .social-header { margin-left: auto; }
  .header-inner { min-height: 68px; }
  .brand img { height: 50px; }
}
@media (max-width: 1080px) { .nav-mobile { margin-left: 4px; } }

/* Phones: the toolbar as a neat grid, Subject across the top, Price and Sort side by side beneath. */
@media (max-width: 600px) {
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .toolbar > .menu, .toolbar-count, .toolbar::after { grid-column: 1 / -1; }
  .toolbar > .menu + .select:nth-last-child(2) { grid-column: 1 / -1; }
  .toolbar .menu summary, .toolbar .select { width: 100%; justify-content: space-between; }
  .toolbar .select select { flex: 1; min-width: 0; text-overflow: ellipsis; }
  .toolbar-count { margin: 2px 0 0; order: 0; flex-basis: auto; }
}
@media (max-width: 600px) {
  .toolbar > * { min-width: 0; }
  .toolbar .menu summary { justify-content: flex-start; }
  .toolbar .menu-value { margin-left: auto; }
}

/* ===================================================================== Original sold */
:root { --sold: #a8322b; --sold-tint: #fbefed; --sold-line: rgb(168 50 43 / 28%); }
@media (prefers-color-scheme: dark) { :root { --sold: #e57a6c; --sold-tint: #2a1916; --sold-line: rgb(229 122 108 / 30%); } }
.gallery { position: relative; }
.sold-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 3px; background: var(--sold); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%); pointer-events: none;
}
@media (prefers-color-scheme: dark) { .sold-tag { color: #1a1210; } }
.sold-box {
  display: flex; gap: 14px; align-items: center; padding: 14px 18px;
  background: var(--sold-tint); border: 1px solid var(--sold-line); border-left: 4px solid var(--sold); border-radius: var(--radius);
}
.sold-box p { margin: 0; color: var(--ink); }
.sold-badge {
  flex: none; padding: 5px 11px; border: 1.5px solid var(--sold); border-radius: 3px; color: var(--sold);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ===================================================================== Paintings without a mount */
/* Card pictures hang straight on the page with a soft shadow: bigger, and no box around room photos.
   Each sits on a common bottom line in a square slot, so the titles below line up across the row. */
.card-image:not(.is-video) { background: none; padding: 0; border-radius: 0; align-items: end; justify-items: center; }
.card-image:not(.is-video) img { box-shadow: 0 1px 2px rgb(40 30 20 / 18%), 0 8px 22px -6px rgb(40 30 20 / 32%); }
.card:hover .card-image:not(.is-video) img { box-shadow: 0 2px 4px rgb(40 30 20 / 16%), 0 16px 32px -8px rgb(40 30 20 / 38%); }
/* The same on the painting page and the verse of the day: the painting on the page, no box behind it. */
.gallery-main, .verse-day-image { background: none; padding: 0 0 12px; border-radius: 0; }
.gallery-main img, .verse-day-image img { box-shadow: 0 2px 4px rgb(40 30 20 / 16%), 0 18px 40px -10px rgb(40 30 20 / 38%); }

/* ===================================================================== Gallery rows */
/* Paintings in tidy rows: every painting in a row is the same height and shown whole, and each row fills
   the width. A card grows in proportion to its painting's shape (width / height, set by its ar-NNN class). */
.page-head .lead { max-width: 62em; }
.cards-justified { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 34px) clamp(14px, 1.8vw, 22px); --row: 150px; }
@media (min-width: 700px) { .cards-justified { --row: 205px; } }
@media (min-width: 1050px) { .cards-justified { --row: 245px; } }
.cards-justified > li { flex: calc(var(--ar, 1) * 100) 1 calc(var(--ar, 1) * var(--row)); min-width: 0; }
/* The last row keeps its natural size rather than stretching one or two paintings across the page. */
.cards-justified::after { content: ""; flex: 100000 1 0px; }
.cards-justified .card-image:not(.is-video) { display: block; aspect-ratio: var(--ar, 1); padding: 0; margin-bottom: 10px; }
.cards-justified .card-image:not(.is-video) img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.cards-justified .card-title { margin-top: 0; }
.ar-50{--ar:0.50} .ar-51{--ar:0.51} .ar-52{--ar:0.52} .ar-53{--ar:0.53}
.ar-54{--ar:0.54} .ar-55{--ar:0.55} .ar-56{--ar:0.56} .ar-57{--ar:0.57} .ar-58{--ar:0.58} .ar-59{--ar:0.59}
.ar-60{--ar:0.60} .ar-61{--ar:0.61} .ar-62{--ar:0.62} .ar-63{--ar:0.63} .ar-64{--ar:0.64} .ar-65{--ar:0.65}
.ar-66{--ar:0.66} .ar-67{--ar:0.67} .ar-68{--ar:0.68} .ar-69{--ar:0.69} .ar-70{--ar:0.70} .ar-71{--ar:0.71}
.ar-72{--ar:0.72} .ar-73{--ar:0.73} .ar-74{--ar:0.74} .ar-75{--ar:0.75} .ar-76{--ar:0.76} .ar-77{--ar:0.77}
.ar-78{--ar:0.78} .ar-79{--ar:0.79} .ar-80{--ar:0.80} .ar-81{--ar:0.81} .ar-82{--ar:0.82} .ar-83{--ar:0.83}
.ar-84{--ar:0.84} .ar-85{--ar:0.85} .ar-86{--ar:0.86} .ar-87{--ar:0.87} .ar-88{--ar:0.88} .ar-89{--ar:0.89}
.ar-90{--ar:0.90} .ar-91{--ar:0.91} .ar-92{--ar:0.92} .ar-93{--ar:0.93} .ar-94{--ar:0.94} .ar-95{--ar:0.95}
.ar-96{--ar:0.96} .ar-97{--ar:0.97} .ar-98{--ar:0.98} .ar-99{--ar:0.99} .ar-100{--ar:1.00} .ar-101{--ar:1.01}
.ar-102{--ar:1.02} .ar-103{--ar:1.03} .ar-104{--ar:1.04} .ar-105{--ar:1.05} .ar-106{--ar:1.06} .ar-107{--ar:1.07}
.ar-108{--ar:1.08} .ar-109{--ar:1.09} .ar-110{--ar:1.10} .ar-111{--ar:1.11} .ar-112{--ar:1.12} .ar-113{--ar:1.13}
.ar-114{--ar:1.14} .ar-115{--ar:1.15} .ar-116{--ar:1.16} .ar-117{--ar:1.17} .ar-118{--ar:1.18} .ar-119{--ar:1.19}
.ar-120{--ar:1.20} .ar-121{--ar:1.21} .ar-122{--ar:1.22} .ar-123{--ar:1.23} .ar-124{--ar:1.24} .ar-125{--ar:1.25}
.ar-126{--ar:1.26} .ar-127{--ar:1.27} .ar-128{--ar:1.28} .ar-129{--ar:1.29} .ar-130{--ar:1.30} .ar-131{--ar:1.31}
.ar-132{--ar:1.32} .ar-133{--ar:1.33} .ar-134{--ar:1.34} .ar-135{--ar:1.35} .ar-136{--ar:1.36} .ar-137{--ar:1.37}
.ar-138{--ar:1.38} .ar-139{--ar:1.39} .ar-140{--ar:1.40} .ar-141{--ar:1.41} .ar-142{--ar:1.42} .ar-143{--ar:1.43}
.ar-144{--ar:1.44} .ar-145{--ar:1.45} .ar-146{--ar:1.46} .ar-147{--ar:1.47} .ar-148{--ar:1.48} .ar-149{--ar:1.49}
.ar-150{--ar:1.50} .ar-151{--ar:1.51} .ar-152{--ar:1.52} .ar-153{--ar:1.53} .ar-154{--ar:1.54} .ar-155{--ar:1.55}
.ar-156{--ar:1.56} .ar-157{--ar:1.57} .ar-158{--ar:1.58} .ar-159{--ar:1.59} .ar-160{--ar:1.60} .ar-161{--ar:1.61}
.ar-162{--ar:1.62} .ar-163{--ar:1.63} .ar-164{--ar:1.64} .ar-165{--ar:1.65} .ar-166{--ar:1.66} .ar-167{--ar:1.67}
.ar-168{--ar:1.68} .ar-169{--ar:1.69} .ar-170{--ar:1.70} .ar-171{--ar:1.71} .ar-172{--ar:1.72} .ar-173{--ar:1.73}
.ar-174{--ar:1.74} .ar-175{--ar:1.75} .ar-176{--ar:1.76} .ar-177{--ar:1.77} .ar-178{--ar:1.78} .ar-179{--ar:1.79}
.ar-180{--ar:1.80} .ar-181{--ar:1.81} .ar-182{--ar:1.82} .ar-183{--ar:1.83} .ar-184{--ar:1.84} .ar-185{--ar:1.85}
.ar-186{--ar:1.86} .ar-187{--ar:1.87} .ar-188{--ar:1.88} .ar-189{--ar:1.89} .ar-190{--ar:1.90} .ar-191{--ar:1.91}
.ar-192{--ar:1.92} .ar-193{--ar:1.93} .ar-194{--ar:1.94} .ar-195{--ar:1.95} .ar-196{--ar:1.96} .ar-197{--ar:1.97}
.ar-198{--ar:1.98} .ar-199{--ar:1.99} .ar-200{--ar:2.00} 

/* ===================================================================== Bands */
/* Below a painting, each section (videos, reviews, more paintings) is a full-width band, tinted and plain in
   turn, so a short section reads as a deliberate panel rather than something floating on the page. */
.painting { padding-bottom: clamp(36px, 5vw, 64px); }
.band-tint { background: var(--paper-2); }
.band + .band { border-top: 1px solid var(--line); }
.band-tint .review { background: var(--card); }

/* One review: a single quotation, centred, in the band. Two: side by side, filling the width. */
.reviews-1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.reviews-1 .review { padding: clamp(22px, 3vw, 34px) clamp(22px, 4vw, 44px); }
.reviews-1 blockquote p { font-family: var(--serif); font-size: 1.18rem; line-height: 1.6; }
@media (min-width: 1050px) { .reviews-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===================================================================== Share buttons */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 6px; }
.share-label { font-size: 0.86rem; color: var(--muted); margin-right: 4px; }
.share-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  font: inherit; font-size: 0.86rem; cursor: pointer; text-decoration: none; transition: border-color 0.15s, color 0.15s;
}
.share-button[hidden] { display: none; }
.share-button .icon { width: 18px; height: 18px; }
.share-button:hover { border-color: var(--accent); color: var(--accent); }
.share-copied { font-size: 0.86rem; color: var(--accent); }

/* ===================================================================== Price labels on gallery pictures */
/* A small gallery-style label on the corner of each picture: the original's price, or "from £…" for prints. */
.card-image { position: relative; }
.price-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 1;
  padding: 3px 9px 4px; border-radius: 3px;
  background: rgb(255 253 248 / 94%); color: #2a241d; box-shadow: 0 1px 4px rgb(0 0 0 / 22%);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.3; white-space: nowrap;
  transition: transform 0.35s ease;
}
.price-tag del { font-weight: 400; color: #6f665c; margin-right: 2px; }
.price-tag.is-sale { background: #8f2f24; color: #fff; }
.price-tag.is-sale del { color: rgb(255 255 255 / 75%); }
.card:hover .price-tag { transform: translateY(-3px); }
@media (max-width: 600px) { .price-tag { left: 6px; bottom: 6px; padding: 2px 7px 3px; font-size: 0.76rem; } }
@media (prefers-reduced-motion: reduce) { .price-tag { transition: none; } .card:hover .price-tag { transform: none; } }
.band-centre h2 { text-align: center; }
.band-centre .reviews-1 { margin-inline: auto; }
.band-centre .reviews-1 .review { text-align: center; align-items: center; }

/* ===================================================================== Studio hub */
.studio-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: clamp(24px, 4vw, 40px) 0 clamp(18px, 3vw, 28px); }
.studio-head h1 { margin: 2px 0 6px; }
.studio-sub { margin: 0; max-width: 62em; color: var(--ink); }
.studio-head .studio-saved { margin: 12px 0 0; }

.studio-tabs { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--line); }
.studio-tabs-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.studio-tabs-inner::-webkit-scrollbar { display: none; }
.studio-tabs a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 0.93rem; white-space: nowrap;
}
.studio-tabs a:hover { color: var(--ink); background: var(--paper-2); }
.studio-tabs a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.tab-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #8f2f24; color: #fff; font-size: 0.74rem; font-weight: 600; display: inline-grid; place-items: center; }

.studio-panel { padding-block: clamp(22px, 3vw, 34px) clamp(40px, 6vw, 64px); }
.studio-panel[hidden] { display: none; }
.studio-panel > h2:first-child, .studio-panel > .studio-split:first-child h2 { margin-top: 0; }
.studio-panel h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.studio-panel .studio-card h3.spaced { margin-top: 20px; }

.studio-split { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .studio-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.studio-alerts { display: grid; gap: 8px; margin-bottom: 26px; }
.studio-alert-line { display: block; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--card); color: var(--ink); text-decoration: none; }
.studio-alert-line:hover { border-color: var(--accent); }
.studio-alert-line.is-warning, .studio-alert.is-warning { border-left-color: #b4542a; }
.studio-alert.is-warning { margin-top: 18px; }

.tiles-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
@media (min-width: 600px) { .tiles-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tiles-stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tiles-stats dt { color: var(--muted); font-size: 0.85rem; }
.tiles-stats dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }

.share-today-small { display: flex; gap: 14px; align-items: flex-start; }
.share-today-small img { width: 108px; height: auto; border-radius: 3px; box-shadow: 0 2px 8px rgb(0 0 0 / 18%); }
.share-today-small h3 { margin-top: 0; }

.studio-empty { text-align: center; padding: 34px 20px; }
.period-table td, .period-table th[scope="row"] { font-variant-numeric: tabular-nums; }
.period-table th[scope="row"] { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .period-table thead { display: table-header-group; }
  .period-table tr { display: table-row; }
  .period-table td, .period-table th { padding: 6px 6px 6px 0; border-bottom: 1px solid var(--line); font-size: 0.84rem; }
}

.studio-chart { margin: 22px 0 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px; }
.studio-chart figcaption { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.studio-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-bar { fill: var(--accent); opacity: 0.75; }
.chart-bar:hover, .chart-bar.is-today { opacity: 1; }
.chart-label { fill: var(--muted); font-size: 11px; font-family: inherit; }

.bar-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.bar-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 0.92rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-count { font-variant-numeric: tabular-nums; color: var(--muted); }
.bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--accent); opacity: 0.55; min-width: 3px; }
.w0{width:0} .w5{width:5%} .w10{width:10%} .w15{width:15%} .w20{width:20%} .w25{width:25%} .w30{width:30%}
.w35{width:35%} .w40{width:40%} .w45{width:45%} .w50{width:50%} .w55{width:55%} .w60{width:60%} .w65{width:65%}
.w70{width:70%} .w75{width:75%} .w80{width:80%} .w85{width:85%} .w90{width:90%} .w95{width:95%} .w100{width:100%}
.own-device { margin-top: 22px; }

.update-box h3 { margin-top: 0; }
.update-state { margin: 12px 0 6px; }
.update-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.update-steps li { padding-left: 22px; position: relative; }
.update-steps li::before { content: "•"; position: absolute; left: 6px; color: var(--muted); }
.update-steps li.is-good::before { content: "✓"; color: #3f7a3a; left: 3px; }
.update-steps li.is-bad::before { content: "!"; color: #b4542a; font-weight: 700; left: 7px; }
td.is-bad { color: #9a4321; }
.button[disabled] { opacity: 0.55; cursor: progress; }
.studio-split h2 { margin-top: 0; }
.studio-alerts + .studio-split { margin-top: 0; }
.share-today-small p { margin: 0; }
.studio-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.studio-chart svg { height: 150px; }
.chart-dates { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.8rem; color: var(--muted); }

/* ===================================================================== Book pages */
.gift-line { font-family: var(--serif); font-style: italic; color: var(--muted); margin: -4px 0 16px; }
.book .buy-group { margin-top: 8px; }
.cards-wide .card-image { position: relative; }
/* Book rows: few enough to fill the width; one or two books are kept to a sensible size. */
.cards-fill::after { display: none; }
.cards-few { max-width: 760px; }

/* Studio notification after saving */
.studio-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: min(520px, calc(100vw - 32px));
  margin: 0; padding: 12px 18px 12px 42px; border-radius: 10px;
  background: #23201b; color: #f6f1e8; box-shadow: 0 10px 30px rgb(0 0 0 / 28%); font-size: 0.95rem;
  opacity: 0; transform: translate(-50%, 12px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.studio-toast::before { content: "✓"; position: absolute; left: 16px; top: 11px; color: #9fd28f; font-weight: 700; }
.studio-toast.is-problem::before { content: "!"; color: #f0a87a; left: 19px; }
.studio-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.studio-toast[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .studio-toast { transition: none; } }
.studio-made { margin: 6px 0 0; }

/* ===================================================================== Studio sign-in */
.sign-in { display: grid; place-items: center; padding-block: clamp(40px, 8vw, 96px); }
.sign-in-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: clamp(22px, 4vw, 34px); box-shadow: 0 8px 30px rgb(40 30 20 / 8%); }
.sign-in-card h1 { margin: 4px 0 18px; }
.sign-in-card input[type="password"] { width: 100%; }
.sign-in-card .check { margin: 4px 0 18px; }
.sign-in-message { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: #fbeee6; color: #8a3a1b; font-size: 0.93rem; }
.studio-sign-out { margin: 0 0 0 auto; padding-left: 12px; flex: none; }
.studio-sign-out button { font: inherit; font-size: 0.9rem; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.studio-sign-out button:hover { color: var(--ink); border-color: var(--muted); }

/* ===================================================================== Design audit fixes */
/* The breadcrumb lines up with the page (its own margin was cancelling the page width's centring). */
.breadcrumb { margin-inline: auto; }

/* Chosen selections in neat rows that always exactly fill the width (see cards.php $rowsOf). */
.cards-rows { display: grid; gap: clamp(24px, 3vw, 34px); }
.cards-row { flex-wrap: nowrap; }
.cards-row::after { display: none; }
.cards-row > li { flex: calc(var(--ar, 1) * 100) 1 0px; }
@media (max-width: 699px) {
  .cards-row { flex-wrap: wrap; }
  .cards-row > li { flex-basis: calc(var(--ar, 1) * var(--row)); }
}

/* The whole hero painting fits on a laptop screen as the page opens. */
@media (min-width: 900px) {
  .hero-image { width: fit-content; max-width: 100%; justify-self: center; }
  .hero-image img { width: auto; max-width: 100%; max-height: calc(100vh - 210px); }
}

/* "About Debbie" on the home page: in line with the other sections, with her testimony video beside it. */
.about-teaser { max-width: var(--wrap); }
.about-teaser .about-text { max-width: 720px; }
.about-teaser.has-video { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .about-teaser.has-video { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.about-video .card-title { margin-top: 2px; }

/* Phones: the footer's link lists in two columns rather than one very long one. */
@media (max-width: 599px) { .footer-inner nav { grid-template-columns: 1fr 1fr; column-gap: 16px; } }

/* ===================================================================== Studio: Words, Look & feel, Take a break */
.word-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 6px 20px 14px; margin: 0 0 18px; }
.word-group legend { font-family: var(--serif); font-size: 1.12rem; padding: 0 6px; }
.word-group .field { margin-top: 12px; }
.word-group textarea, .word-group input[type="text"] { width: 100%; font: inherit; line-height: 1.55; }
.field-help { display: block; margin: -2px 0 4px; }
.word-switch { margin-top: 12px; }

.ark { max-width: 640px; }
.ark-bar { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 14px; color: var(--muted); }
.ark-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ark-card { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; cursor: pointer; background: none; perspective: 600px; }
.ark-card > * { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; backface-visibility: hidden; transition: transform 0.4s ease; }
.ark-back { background: var(--accent) repeating-linear-gradient(45deg, rgb(255 255 255 / 10%) 0 6px, transparent 6px 12px); box-shadow: 0 2px 6px rgb(0 0 0 / 18%); }
.ark-front { object-fit: cover; transform: rotateY(180deg); box-shadow: 0 2px 6px rgb(0 0 0 / 18%); }
.ark-card.is-up .ark-back { transform: rotateY(180deg); }
.ark-card.is-up .ark-front { transform: rotateY(0); }
.ark-card.is-found .ark-front { outline: 3px solid #6c9a4f; outline-offset: -3px; }
.ark-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ark-done { text-align: center; margin-top: 18px; }
.ark-verse { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .ark-card > * { transition: none; } }

/* The notice Debbie can put at the top of every page */
.site-notice { background: var(--paper-2); border-bottom: 1px solid var(--line); text-align: center; font-size: 0.93rem; padding: 8px 16px; }
.site-notice p { margin: 0 auto; max-width: 62em; }

/* "About your original" under an original painting's price */
.collector-note { margin: -4px 0 8px; font-size: 0.93rem; }
.collector-note summary { cursor: pointer; color: var(--accent); }
.collector-note p { margin: 8px 0 0; }
.word-encourage { margin: 12px 0 4px; padding: 10px 14px; border-radius: 8px; background: var(--paper-2); font-size: 0.93rem; }
.music .prose-body { margin-top: 0; }
.music h2 { margin-top: 32px; }
.music-follow { margin-top: 24px; }

/* ===================================================================== Special touches (studio: Look & feel) */
/* Glistening logo: a slow gold gleam passes across it as the page opens, and again on hover. */
html[data-features~="shimmer"] .brand { position: relative; display: inline-block; }
html[data-features~="shimmer"] .brand picture, html[data-features~="shimmer"] .brand img { display: block; }
html[data-features~="shimmer"] .brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 238 196 / 95%) 50%, transparent 62%) no-repeat;
  background-size: 320% 100%; background-position: 160% 0;
  -webkit-mask: url(logo-on-light.png) left center / contain no-repeat; mask: url(logo-on-light.png) left center / contain no-repeat;
  animation: dc-gleam 2.6s ease-in-out 0.8s both;
}
html[data-features~="shimmer"] .brand:hover::after { animation: dc-gleam-again 1.8s ease-in-out both; }
@keyframes dc-gleam { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@keyframes dc-gleam-again { from { background-position: 160% 0; } to { background-position: -60% 0; } }

/* The white butterfly */
.butterfly { position: fixed; left: 0; top: 0; z-index: 60; display: block; will-change: transform; filter: drop-shadow(0 3px 3px rgb(0 0 0 / 18%)); }
.butterfly svg { display: block; overflow: visible; }
.bf-wing { animation: bf-flap 0.15s ease-in-out infinite alternate; }
.butterfly.is-resting .bf-wing { animation-duration: 1.2s; }
@keyframes bf-flap { from { transform: scaleX(1); } to { transform: scaleX(0.22); } }

/* The lost sheep, peeping out on today's page */
.has-sheep { position: relative; }
.lost-sheep { position: absolute; left: 10px; bottom: -12px; z-index: 3; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; animation: sheep-peep 6s ease-in-out infinite; }
.page-head .lost-sheep { left: auto; right: var(--gutter); bottom: 4px; }
.lost-sheep:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.lost-sheep.is-found { animation: sheep-hop 0.5s ease-in-out 3; }
@keyframes sheep-peep { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-5px) rotate(-3deg); } 90% { transform: translateY(0) rotate(2deg); } }
@keyframes sheep-hop { 50% { transform: translateY(-14px); } }
.sheep-found { border: 0; border-radius: 14px; padding: 26px 30px 18px; text-align: center; max-width: min(380px, 92vw); box-shadow: 0 20px 60px rgb(0 0 0 / 30%); background: var(--card); color: var(--ink); }
.sheep-found::backdrop { background: rgb(20 16 10 / 45%); }
.sheep-verse { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin: 0 0 4px; }
.sheep-hint { font-size: 0.86rem; color: var(--footer-muted, var(--muted)); margin-top: 0; padding-bottom: 6px; }

/* Seasonal touches */
.season-fall { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
@property --season-glow { syntax: '<number>'; inherits: false; initial-value: 1; }
.season-easter .hero { background: radial-gradient(ellipse 70% 60% at 72% 0%, rgb(255 210 140 / calc(32% * var(--season-glow))), transparent 70%); transition: --season-glow 3s ease; }
.season-faded .hero { --season-glow: 0; }

/* Close-up magnifier */
.gallery { position: relative; }
.gallery-main { position: relative; }
.loupe-toggle { position: absolute; top: 10px; right: 10px; z-index: 4; font: inherit; font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border: 0; border-radius: 999px; background: rgb(255 253 248 / 92%); color: #2a241d; box-shadow: 0 1px 4px rgb(0 0 0 / 25%); cursor: pointer; }
.gallery-main.is-looking { cursor: none; }
.loupe { display: none; position: absolute; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; pointer-events: none; z-index: 5; background-repeat: no-repeat; box-shadow: 0 0 0 3px #fff, 0 10px 28px rgb(0 0 0 / 40%); }
.gallery-main.is-looking .loupe:not([hidden]) { display: block; }

/* See it on your wall */
.wall-slot { margin-top: 12px; }
.wall-dialog { width: min(1000px, 94vw); padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--card); color: var(--ink); }
.wall-dialog::backdrop { background: rgb(20 16 10 / 60%); }
.wall-scene { position: relative; aspect-ratio: 16 / 9; transition: background-color 0.3s; }
.wall-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4%; background: linear-gradient(#b89a76, #a3865f); }
.wall-art { position: absolute; left: 50%; transform: translateX(-50%); object-fit: cover; box-shadow: 0 6px 18px rgb(0 0 0 / 35%); }
.wall-sofa { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); display: block; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 18%)); }
.wall-scene::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4%; height: 2.2%; background: rgb(255 255 255 / 55%); box-shadow: 0 -1px 0 rgb(0 0 0 / 6%); }
.wall-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 18px; }
.wall-sizes, .wall-colours { display: flex; flex-wrap: wrap; gap: 8px; }
.wall-sizes .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.wall-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.wall-controls p { margin: 0 0 0 auto; }
.link-button { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html[data-features~="shimmer"] .brand::after { animation: none; display: none; }
  .lost-sheep, .lost-sheep.is-found, .bf-wing { animation: none; }
}

/* ===================================================================== Reflect */
.reflect { background: #14110d; color: #efe8dc; padding: clamp(24px, 4vw, 48px) 16px 28px; display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - 80px); }
.reflect:fullscreen { justify-content: center; min-height: 100vh; }
.reflect-stage { width: 100%; max-width: 1100px; flex: 1; display: grid; place-items: center; }
.reflect-slide { margin: 0; display: grid; justify-items: center; gap: 22px; transition: opacity 0.45s ease; }
.reflect-slide.is-changing { opacity: 0; }
.reflect-image img { display: block; max-width: min(100%, 1000px); max-height: 62vh; width: auto; height: auto; box-shadow: 0 18px 50px rgb(0 0 0 / 55%); }
.reflect:fullscreen .reflect-image img { max-height: 70vh; }
.reflect-slide figcaption { max-width: 760px; text-align: center; }
.reflect-verse { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); line-height: 1.5; color: #f6efe3; }
.reflect-verse p { margin: 0; text-wrap: balance; }
.reflect-ref { margin: 10px 0 0; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; color: #c9ab72; }
.reflect-ref a { color: inherit; }
.reflect-controls { display: flex; gap: 10px; margin-top: 26px; }
.reflect-controls button { font: inherit; font-size: 0.92rem; color: #efe8dc; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 18%); border-radius: 999px; padding: 8px 16px; cursor: pointer; min-width: 44px; }
.reflect-controls button:hover { background: rgb(255 255 255 / 16%); }
.reflect-note { margin: 14px 0 0; font-size: 0.82rem; color: #9d9384; text-align: center; }
.verse-day-reflect { margin-top: 10px; font-size: 0.92rem; }

/* Studio: post kits, week ideas, calendar */
.week-ideas { display: grid; gap: 16px; }
@media (min-width: 1000px) { .week-ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.week-idea h3 { font-size: 1.05rem; }
.week-idea textarea, .post-kit textarea { width: 100%; font: inherit; font-size: 0.88rem; line-height: 1.5; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; resize: vertical; }
.post-kit { display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; }
.post-kit-picture img { width: 96px; height: auto; border-radius: 3px; box-shadow: 0 2px 6px rgb(0 0 0 / 18%); display: block; }
.post-kit-text { flex: 1; min-width: 0; }
.post-kit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
@media (max-width: 600px) { .post-kit { flex-direction: column; } }
.calendar { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.calendar li { padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.calendar-date { display: inline-block; min-width: 4.5em; font-weight: 600; color: var(--accent); }
.kit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.kit-list details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
.kit-list summary { cursor: pointer; }
.price-table td:nth-child(n+3) { font-variant-numeric: tabular-nums; }
.listing-template { margin: 18px 0 24px; max-width: 760px; }
.listing-template textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 0.86rem; line-height: 1.5; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }

/* Words tab: section titles inside their boxes (not on the border), tick boxes in line with the labels. */
.word-group { padding: 18px 20px 16px; }
.word-group legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font-size: 1.15rem; }
.word-group > :not(legend) { clear: left; }
.word-group .field:first-of-type, .word-group .word-switch:first-of-type { margin-top: 8px; }
.word-group .check { margin-left: 0; padding-left: 0; }
.word-group .check input { margin-left: 0; }
.word-group .field label { display: block; }
.logo-specs { margin: 4px 0 16px; }
.sheep-today { margin: 24px 0 0; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.gallery-main:not(.is-looking) { cursor: zoom-in; }

/* Glistening logo, take two: a warm gold gleam (visible on both the dark and the light logo) that sweeps
   across as the page opens and glistens again every 14 seconds or so. */
html[data-features~="shimmer"] .brand::after {
  background: linear-gradient(105deg, transparent 34%, rgb(212 160 60 / 0%) 38%, rgb(232 186 86 / 95%) 46%, rgb(255 236 180 / 100%) 50%, rgb(232 186 86 / 95%) 54%, rgb(212 160 60 / 0%) 62%, transparent 66%) no-repeat;
  background-size: 300% 100%;
  background-position: 150% 0;
  animation: dc-glisten 14s ease-in-out 0.9s infinite;
}
@keyframes dc-glisten {
  0% { background-position: 150% 0; }
  18% { background-position: -50% 0; }
  100% { background-position: -50% 0; }
}

/* ===================================================================== See it to scale (a room drawn to scale) */
.wall-scene {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  /* a faint plaster texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wall-scene::before, .wall-scene::after { content: none; }
.wall-light { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 75% at 50% -12%, rgb(255 250 236 / 55%), transparent 72%), linear-gradient(to bottom, transparent 55%, rgb(0 0 0 / 9%)); }
.wall-scene.is-dark .wall-light { background: radial-gradient(ellipse 55% 75% at 50% -12%, rgb(255 226 170 / 22%), transparent 72%), linear-gradient(to bottom, transparent 55%, rgb(0 0 0 / 25%)); }
.wall-art { position: absolute; transform: none; box-shadow: 0 1px 2px rgb(0 0 0 / 30%), 5px 12px 22px rgb(0 0 0 / 30%); }
.wall-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wall-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgb(255 255 255 / 10%), transparent 45%); pointer-events: none; }
.wall-sofa { transform: none; filter: drop-shadow(0 8px 10px rgb(0 0 0 / 22%)); }
.wall-lamp { position: absolute; display: block; filter: drop-shadow(0 4px 6px rgb(0 0 0 / 18%)); }
.wall-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 6%;
  background: repeating-linear-gradient(90deg, #b2906a 0 118px, #9f7d57 118px 120px, #b89670 120px 250px, #a5835d 250px 252px);
  box-shadow: inset 0 8px 10px -6px rgb(0 0 0 / 30%); }
.wall-floor::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 13px; background: linear-gradient(#f6f2ea, #ddd5c7); box-shadow: 0 -1px 0 rgb(0 0 0 / 7%); }
.wall-scene.is-dark .wall-floor::before { background: linear-gradient(#5d5a55, #4a4743); }

/* Measurements */
.wall-dim { position: absolute; z-index: 2; color: #4a4036; font-size: 12px; font-weight: 600; pointer-events: none; }
.wall-scene.is-dark .wall-dim { color: #f1e9dc; }
.wall-dim span { position: absolute; white-space: nowrap; background: rgb(255 255 255 / 75%); color: #3b332a; padding: 1px 7px; border-radius: 4px; }
.wall-dim-w { height: 0; border-top: 1px solid currentColor; }
.wall-dim-w::before, .wall-dim-w::after { content: ""; position: absolute; top: -5px; width: 0; height: 9px; border-left: 1px solid currentColor; }
.wall-dim-w::before { left: 0; } .wall-dim-w::after { right: 0; }
.wall-dim-w span { left: 50%; top: 5px; transform: translateX(-50%); }
.wall-dim-h { width: 0; border-left: 1px solid currentColor; }
.wall-dim-h::before, .wall-dim-h::after { content: ""; position: absolute; left: -5px; width: 9px; height: 0; border-top: 1px solid currentColor; }
.wall-dim-h::before { top: 0; } .wall-dim-h::after { bottom: 0; }
.wall-dim-h span { left: 8px; top: 50%; transform: translateY(-50%); }
.wall-dim-sofa { height: 0; border-top: 1px solid #fff8ec; color: #fff8ec; }
.wall-dim-sofa::before, .wall-dim-sofa::after { content: ""; position: absolute; top: -5px; height: 9px; border-left: 1px solid #fff8ec; }
.wall-dim-sofa::before { left: 0; } .wall-dim-sofa::after { right: 0; }
.wall-dim-sofa span { left: 50%; top: -9px; transform: translateX(-50%); background: rgb(60 45 30 / 70%); color: #fff8ec; }
.wall-scene.no-dims .wall-dim { display: none; }
.wall-measure { align-items: center; font-size: 0.9rem; }
.wall-note { margin: 0 0 0 auto; }
@media (max-width: 600px) { .wall-dim { font-size: 10px; } }

/* Glistening logo, silver: a bright core with cool grey edges, so it shows on the dark lettering (light pages)
   and on the white logo (dark mode) alike. */
html[data-features~="shimmer"] .brand::after {
  background: linear-gradient(105deg, transparent 34%, rgb(150 160 176 / 0%) 38%, rgb(150 160 176 / 75%) 45%, rgb(255 255 255 / 100%) 50%, rgb(150 160 176 / 75%) 55%, rgb(150 160 176 / 0%) 62%, transparent 66%) no-repeat;
  background-size: 300% 100%;
}


/* ===================================================================== Pictures under the pointer (studio: Look & feel) */
/* Chosen in the studio: glint, soft fade, glow or none. Computers only; phones have no pointer to hover. */
@media (hover: hover) and (pointer: fine) {
  /* Glint: a soft band of light crosses the picture once. */
  [data-hover="glint"] .card-image:not(.is-video)::after, [data-hover="glint"] .tile::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(115deg, transparent 37%, rgb(255 255 255 / 0%) 41%, rgb(255 255 255 / 34%) 50%, rgb(255 255 255 / 0%) 59%, transparent 63%) no-repeat;
    background-size: 260% 100%; background-position: 135% 0; opacity: 0; transition: transform 0.35s ease;
  }
  [data-hover="glint"] .card:hover .card-image:not(.is-video)::after, [data-hover="glint"] .tile:hover::after { animation: dc-glint 1s ease-out forwards; }
  [data-hover="glint"] .card:hover .card-image:not(.is-video)::after { transform: translateY(-3px); }

  /* Soft fade: the picture softens a little. */
  [data-hover="fade"] .card-image img, [data-hover="fade"] .tile img { transition: opacity 0.4s ease, transform 0.35s ease, box-shadow 0.35s ease; }
  [data-hover="fade"] .card:hover .card-image img, [data-hover="fade"] .tile:hover img { opacity: 0.78; }

  /* Glow: a warm glow gathers around the picture, which brightens a touch. */
  [data-hover="glow"] .card-image:not(.is-video) img, [data-hover="glow"] .tile { transition: transform 0.35s ease, box-shadow 0.45s ease, filter 0.45s ease; }
  [data-hover="glow"] .card:hover .card-image:not(.is-video) img, [data-hover="glow"] .tile:hover {
    box-shadow: 0 0 0 1px rgb(232 196 120 / 45%), 0 0 26px 4px rgb(232 190 110 / 45%), 0 14px 30px -10px rgb(40 30 20 / 35%);
    filter: brightness(1.05);
  }
}
@keyframes dc-glint { 0% { background-position: 135% 0; opacity: 1; } 100% { background-position: -35% 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  [data-hover="glint"] .card-image::after, [data-hover="glint"] .tile::after { display: none; }
}

/* Studio: the preview row for choosing the effect */
.hover-choice { display: grid; gap: 8px; margin: 6px 0 14px; }
@media (min-width: 800px) { .hover-choice { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hover-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 640px; margin: 4px 0 26px; }
.hover-preview .card-image { display: block; aspect-ratio: 1; }
.hover-preview .card-image img { width: 100%; height: 100%; object-fit: cover; }
.wall-art img { position: absolute; }
.wall-art.is-paper { background: #fbfaf7; }
.wall-art.is-paper img { object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / 6%); }
.wall-art.is-paper::after { background: linear-gradient(125deg, rgb(255 255 255 / 6%), transparent 45%); }

/* Studio: first-picture chooser */
.pick-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 6px; }
.pick-list details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.pick-list summary { cursor: pointer; display: flex; align-items: center; gap: 10px; }
.pick-current { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.pick-mine { font-size: 0.75rem; font-weight: 600; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; }
.pick-photos { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.pick-photo { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; line-height: 0; }
.pick-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; }
.pick-photo:hover { border-color: var(--line); }
.pick-photo.is-first { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pick-help { margin: 4px 0 6px; }
.is-saving { opacity: 0.6; pointer-events: none; }

/* Footer: links grouped under small headings */
.footer-heading { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--footer-accent, var(--accent)); margin: 0 0 6px; }
@media (min-width: 1000px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
@media (max-width: 599px) { .footer-inner nav { grid-template-columns: 1fr 1fr; } .footer-heading { grid-column: 1 / -1; } }

/* Studio Overview: to do and notices, each with a cross to take it off the list. */
.todo { margin-bottom: 30px; }
.todo h2 { margin-bottom: 10px; }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo-item { position: relative; padding: 12px 52px 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--card); }
.todo-item.is-warning { border-left-color: #b4542a; }
.todo-item.is-notice { border-left-color: var(--line); }
.todo-item p { margin: 0; }
.todo-kind { display: block; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.todo-item.is-warning .todo-kind { color: #b4542a; }
.todo-done { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 50%; background: none; color: var(--muted); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.todo-done:hover, .todo-done:focus-visible { color: var(--ink); background: var(--paper-2); border-color: var(--line); }
.todo + .studio-split { margin-top: 0; }
@media (prefers-color-scheme: dark) {
  .todo-item.is-warning { border-left-color: #d9825a; }
  .todo-item.is-warning .todo-kind { color: #e39a76; }
}

/* The cross in the page fades (placed and animated in transitions.css) and its preview in the studio:
   two bars in the site's gold, sized by --cross-h (the studio's "The cross in the page fades" setting). */
.fade-cross, html.has-fade-cross.is-leaving::after, html.has-fade-cross.is-arriving::after, .cross-shape {
  --cross-bar: max(3px, calc(var(--cross-h, 46px) * 0.09));
  display: block; height: var(--cross-h, 46px); width: calc(var(--cross-h, 46px) * 0.7);
  background: linear-gradient(var(--accent), var(--accent)) 50% 0 / var(--cross-bar) 100% no-repeat,
              linear-gradient(var(--accent), var(--accent)) 0 30% / 100% var(--cross-bar) no-repeat;
}
.cross-setting { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 8px; }
.cross-preview { display: grid; place-items: center; width: 170px; height: 170px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.cross-size { display: grid; gap: 6px; }
.cross-size-row { display: flex; align-items: center; gap: 10px; }
.cross-size input[type="range"] { width: min(260px, 52vw); accent-color: var(--accent); }

/* Studio Visitors tab: the numbers for any dates. */
.stats-range { display: grid; gap: 12px; margin-bottom: 20px; }
.range-chips { margin-top: 0; }
.range-own { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; font-size: 0.92rem; }
.range-own label { display: grid; gap: 4px; color: var(--muted); }
.range-own input[type="date"] { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; }
.stats-view { transition: opacity 0.2s; }
.stats-view.is-loading { opacity: 0.5; }
.stats-period { margin: 0 0 12px; }
.stats-tiles .is-key { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.tiles-stats dd.tile-change { font-family: var(--sans); font-size: 0.8rem; line-height: 1.35; color: var(--muted); margin-top: 6px; }
.stats-rate { margin: 10px 0 0; }
.chart-measure { margin-top: 0; gap: 6px; }
.chart-measure .chip { padding: 3px 10px; font-size: 0.8rem; }
.studio-card.is-key { border-color: var(--accent); }
.period-table .is-key { font-weight: 600; }

/* Studio Technical tab: changing the password. */
.password-form { max-width: 520px; }
.password-form .field input { width: 100%; }
.password-save { margin: 6px 0 0; }
.season-pentecost .hero { background: radial-gradient(ellipse 70% 60% at 72% 0%, rgb(255 120 60 / calc(24% * var(--season-glow))), transparent 70%); transition: --season-glow 3s ease; }

/* Studio: a line between the sections of a tab, so it's clear what belongs together. */
.studio-panel > .section-start { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 46px; }
.studio-panel > .section-start:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.studio-panel > form.section-start > h2:first-of-type { margin-top: 0; }

/* Studio Look & feel: seasonal touches, each with a preview. */
.season-touches { display: grid; gap: 12px; }
.season-touch { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.season-touch .check { flex: 1 1 320px; margin: 0; }
.season-now { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; background: var(--accent); color: var(--accent-ink); }

/* Studio Words: links to each part of the page. */
.word-jumps { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 4px 0 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: 0.92rem; }
.word-group { scroll-margin-top: 140px; }

/* Studio Look & feel: how long the seasonal touches last. */
.motion-heading { margin: 22px 0 4px; font-size: 1.05rem; }
.motion-choice { margin-top: 10px; }

/* Debbie's words (About, Exhibitions, Commissions, Music): paintings and videos shown from a link on a line
   of its own, Bible verses from lines starting with ">", and lists. */
.words-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin: 1.6em 0; }
.words-cards.is-single { grid-template-columns: minmax(0, 520px); }
.words-card { display: grid; gap: 6px; color: var(--ink); text-decoration: none; }
.words-card-image { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-2); }
.words-card-image img { display: block; width: 100%; height: auto; transition: transform 0.4s ease; }
.words-card-image.is-video img { height: 100%; object-fit: cover; }
.words-card:hover .words-card-image img { transform: scale(1.02); }
.words-card-title { font-family: var(--serif); font-size: 1.08rem; }
.words-card:hover .words-card-title { color: var(--accent); }
.words-card-note { color: var(--muted); font-size: 0.88rem; }
.words-verse { margin: 1.8em 0; }
@media (prefers-reduced-motion: reduce) { .words-card-image img { transition: none; } }

/* Studio: "?" help buttons and the box they open. */
.help-button { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 6px; padding: 0; border: 1px solid var(--accent); border-radius: 50%; background: none; color: var(--accent); font: 600 0.85rem/1 var(--sans); vertical-align: middle; cursor: pointer; }
.help-button:hover, .help-button:focus-visible { background: var(--accent); color: var(--accent-ink); }
.label-with-help { display: flex; align-items: center; gap: 2px; }
.help-box { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.help-box::backdrop { background: rgb(0 0 0 / 50%); }
.help-box h2 { margin-top: 0; }
.help-list { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 8px 16px; margin: 14px 0 18px; }
.help-list dt { font-weight: 600; }
.help-list dd { margin: 0; }
@media (max-width: 560px) { .help-list { grid-template-columns: 1fr; } .help-list dd { margin-bottom: 6px; } }
.help-box code { font-family: ui-monospace, Consolas, monospace; background: var(--paper-2); padding: 1px 6px; border-radius: 4px; }
.help-example { white-space: pre-wrap; font: 0.88rem/1.5 ui-monospace, Consolas, monospace; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }

/* Studio: sub-tabs on the longer tabs (Products, Look & feel). */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.subtabs a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.92rem; background: var(--card); }
.subtabs a:hover { border-color: var(--accent); color: var(--accent); }
.subtabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.subpanel[hidden] { display: none !important; }
.subpanel > .section-start { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 46px; }
.subpanel > .section-start:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.subpanel > form.section-start > h2:first-of-type { margin-top: 0; }

/* Studio: password boxes with an eye button to show or hide what has been typed. */
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 46px; }
.reveal-password { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.reveal-password:hover, .reveal-password:focus-visible { color: var(--ink); background: var(--paper-2); }
.reveal-password[aria-pressed="false"] .eye-slash { display: none; }
