/* Jeffrey Lazarus Art Works — approved "Warm Coastal" design (Option B, approved 2026-10-29).
   Edit this file in tools/site_template/; the build copies it into the output folder. */
:root {
  --page: #f5eee3; --band: #e8f0ee; --accent: #1d5463; --footer: #1f3a42; --mat-white: #fffdf9;
  --ink: #2d2a26; --ink-soft: #4a4239; --muted: #6a5d4d;
  --mat: 20px;            /* one mat thickness for every artwork at this breakpoint */
  --vh: 1vh;              /* viewport-height unit (screenshot tooling pins it to a real screen height) */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 18px/1.7 "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: normal; line-height: 1.25; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.draft-bar {
  margin: 0; padding: .55rem 1.25rem; background: #fff6d6; color: #4a3b00;
  font: 14px/1.45 "Segoe UI", system-ui, sans-serif; text-align: center; border-bottom: 1px solid #e8d98f;
}
.tbd { color: #8a3b12; font-style: italic; }

/* Header and navigation */
.site-header {
  position: relative; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto; padding: 1.75rem 1.5rem;
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.brand-name { font-size: 1.75rem; letter-spacing: .01em; }
.brand-sub { font: 13px/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.site-header ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 0; padding: 0; list-style: none; font: 15px/1 "Segoe UI", system-ui, sans-serif; }
.site-header li > a { display: inline-block; padding: .6rem .95rem; border-radius: 999px; text-decoration: none; color: #3d3a35; }
.site-header li > a:hover { background: var(--band); color: var(--accent); }
.site-header a[aria-current] { background: var(--accent); color: #fff; }
.site-header a[aria-current]:hover { background: var(--accent); color: #fff; }
.menu-toggle { display: none; align-items: center; gap: .55rem; font: 15px/1 "Segoe UI", system-ui, sans-serif;
  color: var(--accent); background: transparent; border: 1.5px solid var(--accent); border-radius: 999px;
  padding: .7rem 1.1rem; min-height: 44px; cursor: pointer; }
.menu-toggle:hover { background: var(--accent); color: #fff; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; } .menu-icon::after { top: 5px; }
.site-header.nav-open .menu-icon { background: transparent; }
.site-header.nav-open .menu-icon::before { top: 0; transform: rotate(45deg); }
.site-header.nav-open .menu-icon::after { top: 0; transform: rotate(-45deg); }

main { display: block; }
section { padding: 4.5rem 1.5rem; }
.inner { max-width: 1240px; margin: 0 auto; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 2.25rem; text-align: center; color: var(--accent); }

/* Even white mat: the same padding on all four sides; the image keeps its own proportions. */
.mat { display: block; background: var(--mat-white); padding: var(--mat);
  box-shadow: 0 2px 4px rgba(60,45,25,.10), 0 14px 30px rgba(60,45,25,.14); }
.mat > img { display: block; width: 100%; height: auto; }

.button { display: inline-block; font: 15px/1 "Segoe UI", system-ui, sans-serif; padding: .85rem 1.4rem;
  border: 1.5px solid var(--accent); border-radius: 999px; text-decoration: none; color: var(--accent); background: transparent; }
.button:hover { background: var(--accent); color: #fff; }

/* Titles under thumbnails / hero / Featured (full details live in the enlarged view) */
.card-title { font-size: 1.1rem; margin: .9rem 0 0; color: var(--ink); line-height: 1.35; }
.art-link { display: block; text-decoration: none; color: inherit; }
/* Optional fields (location, availability, story, quote, notes): render only when filled, or as draft placeholders */
.art-location { font-size: .9rem; color: var(--muted); margin: .15rem 0 0; line-height: 1.4; }
.art-status { display: inline-block; font: 12px/1.4 "Segoe UI", system-ui, sans-serif; letter-spacing: .08em;
  color: var(--muted); border: 1px solid #cfc3b2; border-radius: 999px; padding: .1rem .6rem; margin: .45rem 0 0; }
.viewer-caption .art-location { margin: 0 0 .4rem; }
.art-story { font-size: .95rem; margin: .5rem 0 0; line-height: 1.5; }
.viewer-caption .art-status { margin-top: .5rem; }
.artist-quote { margin: 0 0 1.5rem; font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.45; font-style: italic; color: var(--accent); }
.contact-note { margin: 0 0 1rem; }
.footer-note { margin: .5rem 0 0; }
.art-link:hover .mat { box-shadow: 0 2px 4px rgba(60,45,25,.14), 0 18px 36px rgba(60,45,25,.22); }

/* Home hero */
.hero {
  display: grid; gap: 3rem; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  max-width: 1240px; margin: 0 auto; padding-top: 2rem;
}
.eyebrow { font: 13px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #9a4a22; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0 0 1.25rem; color: #1f2b2e; }
.hero-text p { margin: 0 0 1.25rem; color: var(--ink-soft); }
.hero-art { margin: 0; }
/* Limit hero height by narrowing the mat to the painting's own aspect ratio (no letterboxing). */
.hero-art .mat { width: min(100%, calc(72 * var(--vh) * var(--ar) + 2 * var(--mat))); margin: 0 auto; }
.hero-art .card-title { text-align: center; }

/* Home Featured pair: two equal columns, captions below */
.featured { background: linear-gradient(var(--band), var(--page)); }
.featured-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem);
  max-width: 1120px; margin: 0 auto; align-items: end; }  /* bottom-aligned pair; each keeps its own ratio */
.featured-pair figure { margin: 0; }

/* Galleries — centered rows, so 7 shows as 4 + 3, 8 as 4 + 4, and 30 still scales cleanly */
.page-intro { max-width: 46rem; margin: 0 auto; text-align: center; padding-bottom: 1rem; }
.page-intro h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 1rem; color: var(--accent); }
.page-intro p { margin: 0 0 1rem; color: var(--ink-soft); }
.gallery { --cols: 4; --gap: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 3rem var(--gap); margin: 0; padding: 0; list-style: none; }
.gallery > li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.gallery-count { text-align: center; font: 14px/1.5 "Segoe UI", system-ui, sans-serif; color: var(--muted); margin: -1.25rem 0 2.5rem; }
.more { margin: 3rem 0 0; text-align: center; }

/* About / prints cards */
.cards { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  max-width: 1120px; margin: 0 auto; }
.card { background: var(--mat-white); border-radius: 6px; padding: 2.25rem; box-shadow: 0 1px 3px rgba(60,45,25,.10); }
.card h2 { text-align: left; font-size: 1.6rem; margin-bottom: 1rem; }
.card .button { margin-top: .5rem; }
.portrait { width: 140px; margin-bottom: 1.5rem; }
.contact-line { font-family: "Segoe UI", system-ui, sans-serif; }

/* About page */
.about-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 3rem; max-width: 1000px; margin: 0 auto; align-items: start; }
.about-layout.no-portrait { grid-template-columns: minmax(0, 1fr); max-width: 44rem; text-align: center; }
.about-layout .portrait { width: 100%; margin: 0; }
.about-layout h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 1rem; color: var(--accent); }
.button-row .button { margin: .25rem .2rem; }

/* Contact page */
.contact-wrap { max-width: 760px; margin: 0 auto; }
.contact-wrap h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 1rem; color: var(--accent); text-align: center; }
.contact-wrap > p { text-align: center; }
.inquiry-list { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.email-box { font: 1.1rem/1.5 "Segoe UI", system-ui, sans-serif; padding: 1.25rem 1.5rem; background: var(--band); border-radius: 6px; margin: 1.5rem 0; overflow-wrap: anywhere; }
.fine { font-size: .95rem; color: #5c5246; }

/* Footer */
.site-footer { background: var(--footer); color: #e7efed; text-align: center; padding: 2.5rem 1.5rem 3rem; margin-top: 3rem;
  font: 14px/1.6 "Segoe UI", system-ui, sans-serif; }
.site-footer .brand-name { font: 1.3rem/1.4 "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; margin-bottom: .35rem; }
.site-footer p { margin: .2rem 0; }
.site-footer a { color: #e7efed; }
.site-footer nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: 0 0 1rem; }
/* Five footer links can't share one row below ~430px: use a deliberate 3 + 2 layout (second row centred). */
@media (max-width: 430px) {
  .site-footer nav[data-links="5"] ul { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem .5rem; max-width: 22rem; margin: 0 auto 1rem; }
  .site-footer nav[data-links="5"] li { grid-column: span 2; }
  .site-footer nav[data-links="5"] li:nth-child(4) { grid-column: 2 / span 2; }
}

/* Enlarged view */
.viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.viewer::backdrop { background: rgba(24, 32, 35, .95); }
.viewer-inner { --avail-h: calc(100vh - 20rem); position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1rem; height: 100%; max-width: 1200px; margin: 0 auto; padding: 4rem 4.5rem 1.5rem; }
.viewer-figure { margin: 0; width: 100%; display: flex; justify-content: center; }
.viewer-figure .mat { width: min(100%, calc(var(--avail-h) * var(--ar, 1.333) + 2 * var(--mat))); }
.viewer-caption { background: var(--mat-white); border-radius: 6px; padding: 1rem 1.25rem; max-width: 640px; width: 100%; }
.viewer-caption.no-details .viewer-caption-body { display: none; }
.viewer-caption .art-title { font-size: 1.2rem; margin: 0 0 .35rem; }
.art-meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .1rem .9rem; font-size: .95rem; }
.art-meta dt { font: 12px/1.95 "Segoe UI", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.art-meta dd { margin: 0; }
.viewer-count { font: 13px/1.4 "Segoe UI", system-ui, sans-serif; color: var(--muted); margin: .5rem 0 0; }
.viewer-caption.no-details .viewer-count { margin: 0; }
.viewer button { font: 15px/1 "Segoe UI", system-ui, sans-serif; background: var(--mat-white); color: var(--accent); border: 1.5px solid var(--accent);
  border-radius: 999px; padding: .7rem 1rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.viewer button:hover { background: var(--accent); color: #fff; }
.viewer-close { position: absolute; top: 1rem; right: 1rem; }
.viewer-prev, .viewer-next { position: absolute; top: 45%; }
.viewer-prev { left: 1rem; }
.viewer-next { right: 1rem; }

@media (max-width: 1100px) { .gallery { --cols: 3; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .about-layout { grid-template-columns: 1fr; }
  .about-layout .portrait { max-width: 260px; }
}
@media (max-width: 800px) { .gallery { --cols: 2; --gap: 1.5rem; } }
@media (max-width: 640px) {
  :root { --mat: 12px; }
  body { font-size: 17px; }
  section { padding: 3rem 1.1rem; }
  .site-header { justify-content: center; text-align: center; padding: 1.4rem 1rem; }
  .brand { align-items: center; }
  .site-header ul { gap: .25rem; font-size: 14px; flex-wrap: nowrap; }
  .site-header li > a { padding: .55rem .6rem; }
  .featured-pair { grid-template-columns: 1fr; }
  .card { padding: 1.6rem; }
  .viewer-inner { --avail-h: calc(100vh - 24rem); padding: 4rem .75rem 5rem; }
  .viewer-prev, .viewer-next { top: auto; bottom: 1rem; }
}
@media (max-width: 520px) { .gallery { --cols: 1; --gap: 0px; gap: 2.5rem; } }

/* Menu button: used only where the links can't sit on one row (breakpoint set by the build from the link count). */
@media (max-width: 600px) {
  .js .site-header[data-collapse="600"], .js .site-header[data-collapse="720"] { justify-content: space-between; text-align: left; }
  .js .site-header[data-collapse="600"] .brand, .js .site-header[data-collapse="720"] .brand { align-items: flex-start; }
  .js .site-header[data-collapse="600"] .menu-toggle, .js .site-header[data-collapse="720"] .menu-toggle { display: inline-flex; }
  .js .site-header[data-collapse="600"] nav, .js .site-header[data-collapse="720"] nav { display: none; width: 100%; }
  .js .site-header[data-collapse="600"].nav-open nav, .js .site-header[data-collapse="720"].nav-open nav { display: block; }
}
@media (min-width: 601px) and (max-width: 720px) {
  .js .site-header[data-collapse="720"] { justify-content: space-between; text-align: left; }
  .js .site-header[data-collapse="720"] .brand { align-items: flex-start; }
  .js .site-header[data-collapse="720"] .menu-toggle { display: inline-flex; }
  .js .site-header[data-collapse="720"] nav { display: none; width: 100%; }
  .js .site-header[data-collapse="720"].nav-open nav { display: block; }
}
@media (max-width: 360px) {
  .js .site-header[data-collapse="360"] { justify-content: space-between; text-align: left; }
  .js .site-header[data-collapse="360"] .brand { align-items: flex-start; }
  .js .site-header[data-collapse="360"] .menu-toggle { display: inline-flex; }
  .js .site-header[data-collapse="360"] nav { display: none; width: 100%; }
  .js .site-header[data-collapse="360"].nav-open nav { display: block; }
}
.js .site-header.nav-open nav ul { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .25rem;
  background: var(--mat-white); border-radius: 8px; padding: .5rem; box-shadow: 0 6px 20px rgba(60,45,25,.15); font-size: 16px; }
.js .site-header.nav-open nav li > a { display: block; padding: .85rem 1rem; text-align: left; }
.site-footer .tbd { color: #f0c9ab; }  /* draft placeholders readable on the dark footer */
