/* Bell Martys — site styles
   Colours and type follow the original site: gold headings in Marcellus,
   soft charcoal text, deep-blue panels over the space collage. */

@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --gold: #f3bd15;
  --gold-deep: #b98500;      /* same hue, darker: used for small gold text on white */
  --ink: #303131;
  --ink-soft: #5a5c5c;
  --blue: 12 80 138;
  --mist: #f0f3f6;
  --line: #d9dee3;
  --white: #fff;
  --display: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Nunito Sans", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: clamp(16px, 2.6vw, 30px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  font-family: var(--body); font-size: clamp(1.0625rem, 1rem + .25vw, 1.125rem); line-height: 1.65;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, ul { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
p { overflow-wrap: break-word; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgb(var(--blue)); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--white); padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: .5rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgb(20 29 39 / .05); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1.5rem; padding-block: .7rem; }
.brand { font-family: var(--display); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); line-height: 1.1; color: var(--gold); text-decoration: none; white-space: nowrap; }
.site-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem clamp(.5rem, 1.6vw, 1.5rem); }
.site-nav a { display: block; padding: .45rem .15rem; font-size: 1rem; letter-spacing: .05em; text-decoration: none; color: var(--ink); background: linear-gradient(var(--gold), var(--gold)) no-repeat left 100% / 0 2px; transition: background-size .25s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 2px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-right: -.5rem; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
  .nav-toggle svg { width: 26px; height: 26px; }
  .nav-toggle .x { display: none; }
  .nav-toggle[aria-expanded="true"] .x { display: block; }
  .nav-toggle[aria-expanded="true"] .bars { display: none; }
  .js .site-nav { flex-basis: 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
  .js .site-nav > ul { overflow: hidden; flex-flow: column nowrap; gap: 0; min-height: 0; }
  .js .site-nav.is-open { grid-template-rows: 1fr; }
  .js .site-nav li + li { border-top: 1px solid var(--mist); }
  .js .site-nav a { padding: .8rem .15rem; font-size: 1.05rem; background: none; }
  .js .site-nav a[aria-current="page"] { color: var(--gold-deep); font-weight: 600; }
  .js .site-nav li:last-child a { margin-bottom: .4rem; }
}

/* ---------- Page titles and text ---------- */
.page-head { text-align: center; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.25rem); }
.title { font-family: var(--display); font-weight: 400; color: var(--gold); font-size: clamp(2rem, 1.15rem + 4vw, 3.5rem); line-height: 1.12; text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .16em; text-wrap: balance; }
.subtitle { font-family: var(--display); color: var(--gold); font-size: clamp(1.25rem, 1rem + 1.3vw, 1.9rem); line-height: 1.25; margin-top: .6rem; text-wrap: balance; }
.lede { max-width: 60ch; margin: 1rem auto 0; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); text-wrap: pretty; }
.prose { max-width: 66ch; margin-inline: auto; }
.prose p + p { margin-top: 1.15em; }
.prose p { text-wrap: pretty; }
/* Subheading inside running text: same font, gold and underline as the page title, one size smaller */
.prose .subhead { font-family: var(--display); font-weight: 400; color: var(--gold); text-align: center; font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.15; text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .16em; text-wrap: balance; margin: 1.4em 0 .8em; }
.prose .subhead + p { margin-top: 0; }

/* ---------- Home ---------- */
.home-band { --band-pad: clamp(.75rem, 2vw, 1.25rem); background: var(--mist); padding-block: var(--band-pad); flex: 1; display: grid; place-items: center; }
.home-band .wrap { max-width: calc(1600px + 2 * var(--gutter)); }
.home main { display: flex; flex-direction: column; }
.hero { width: min(100%, calc((100svh - 4.4rem - 2 * var(--band-pad)) * 1.328)); min-width: min(100%, 20rem); margin-inline: auto; }
.hero img { width: 100%; aspect-ratio: 3000 / 2259; object-fit: cover; border-radius: clamp(8px, 1.4vw, 16px); box-shadow: 0 18px 50px rgb(12 40 80 / .22); background: #3f6fb0; }
/* Phones: show the Home picture square (trims the side edges only) so it fills more of the screen; the words stay in view */
@media (max-width: 600px) { .hero img { aspect-ratio: 1 / 1; object-position: 50% 50%; } }

/* ---------- Collage sections with blue panels ---------- */
.collage { background: #2d5f9e center / cover no-repeat; padding: clamp(1rem, 5vw, 3.5rem) clamp(.75rem, 6vw, 5.5rem); display: grid; gap: clamp(1rem, 3.5vw, 2.5rem); border-radius: clamp(0px, 1.2vw, 14px); }
.collage--about { background-image: url("../images/pages/about-bg.webp"); }
.collage--philosophy { background-image: url("../images/pages/philosophy-bg.webp"); }
@media (max-width: 800px) {
  .collage--about { background-image: url("../images/pages/about-bg-800.webp"); }
  .collage--philosophy { background-image: url("../images/pages/philosophy-bg-800.webp"); }
  .collage-wrap { padding-inline: 0; }
  .collage { border-radius: 0; }
}
.panel { background: rgb(var(--blue) / .84); color: var(--white); border-radius: var(--radius); padding: clamp(1.25rem, 4.5vw, 2.75rem); box-shadow: 0 10px 30px rgb(4 24 48 / .25); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.panel .prose { max-width: 64ch; }
.panel h2 { font-family: var(--display); font-weight: 400; color: var(--gold); text-align: center; font-size: clamp(1.8rem, 1.2rem + 2.8vw, 3rem); line-height: 1.15; text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .16em; margin-bottom: .7em; }

/* ---------- Artists ---------- */
.artists { list-style: none; padding: 0; margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%/2 - 1rem, 170px), 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem) clamp(.9rem, 2.4vw, 1.75rem); }
.artist { text-align: center; }
.artist-photo { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: rgb(var(--blue)); color: var(--gold); font-family: var(--display); font-size: clamp(2rem, 6vw, 3rem); letter-spacing: .04em; }
.artist:nth-child(4n+2) .artist-photo { background: var(--gold); color: rgb(var(--blue)); }
.artist:nth-child(4n+3) .artist-photo { background: var(--mist); color: rgb(var(--blue)); }
.artist:nth-child(4n+4) .artist-photo { background: #0a3a66; color: var(--white); }
.artist-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.artist-name { margin-top: .7rem; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.artist-place { font-size: .88rem; color: var(--ink-soft); letter-spacing: .04em; }

/* ---------- Rich learning units ---------- */
.callout { text-align: center; margin-top: clamp(1.5rem, 4vw, 2.5rem); font-family: var(--display); font-weight: 400; color: var(--gold); font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.2rem); line-height: 1.2; text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .16em; text-wrap: balance; }  /* same look as the unit headings */
.unit { border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.25rem); }
.units { margin-top: clamp(2rem, 5vw, 3rem); }
.unit h2 { font-family: var(--display); font-weight: 400; color: var(--gold); text-align: center; font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.2rem); line-height: 1.2; text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .16em; text-wrap: balance; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.unit-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.unit-media { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgb(20 29 39 / .16); text-decoration: none; }
.unit-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.unit-media:hover img { transform: scale(1.035); }
.unit-media .dl { position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; max-width: calc(100% - 1.5rem); background: rgb(var(--blue) / .92); color: var(--white); font-size: .88rem; font-weight: 600; letter-spacing: .02em; padding: .45rem .95rem; border-radius: 999px; }
.unit-media .dl svg { width: 1em; height: 1em; flex: none; }
.unit-media:hover .dl { background: var(--gold); color: #1c2b3a; }
@media (min-width: 760px) { .unit:nth-child(even) .unit-media { order: 2; } }

/* ---------- Portfolio ---------- */
.arches { --gap: clamp(.9rem, 3.5vw, 3rem); --cols: 2; list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem) var(--gap); padding-bottom: clamp(1rem, 3vw, 2rem); }
.arch { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
@media (min-width: 760px) { .arches { --cols: 3; } }
.arch a { display: block; text-decoration: none; text-align: center; }
.arch-img { border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 3 / 4; background: var(--mist); }
.arch-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.arch a:hover img { transform: scale(1.05); }
.arch-title { display: inline-block; margin-top: .8rem; font-family: var(--display); font-size: clamp(1rem, .9rem + .6vw, 1.3rem); line-height: 1.25; color: var(--ink); background: linear-gradient(var(--gold), var(--gold)) no-repeat center 100% / 0 2px; padding-bottom: .15rem; transition: background-size .25s ease; text-wrap: balance; }
.arch a:hover .arch-title { background-size: 100% 2px; }

/* ---------- Project galleries ---------- */
.back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-family: var(--display); font-size: 1.1rem; color: var(--gold-deep); text-decoration: none; }
.back:hover { text-decoration: underline; text-underline-offset: .2em; }
.gallery { --row: 150px; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 560px) { .gallery { --row: 210px; gap: 10px; } }
@media (min-width: 1000px) { .gallery { --row: 280px; } }
.gallery li { flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row)); min-width: 0; }
.gallery::after { content: ""; flex: 100000 1 0; }
.gallery a { display: block; border-radius: 6px; overflow: hidden; background: var(--mist); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; transition: transform .5s ease, filter .3s; }
.gallery a:hover img { transform: scale(1.04); }
.pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--display); }
.pager a { text-decoration: none; display: grid; gap: .1rem; max-width: 100%; }
.pager a.next { text-align: right; margin-left: auto; }
.pager small { font-family: var(--body); font-size: .9rem; color: var(--ink-soft); }
.pager span { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); color: var(--gold-deep); }
.pager a:hover span { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgb(6 20 38 / .96); color: var(--white); overflow: hidden; }
.lightbox::backdrop { background: rgb(6 20 38 / .96); }
.lightbox[open] { display: grid; grid-template: 1fr auto / 1fr; }
.lb-stage { --px: clamp(.5rem, 6vw, 5rem); grid-area: 1 / 1; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 4rem var(--px) .5rem; }
.lb-stage img { max-width: calc(100vw - 2 * var(--px)); max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-count { grid-area: 2 / 1; text-align: center; padding: .5rem 0 1rem; font-size: .9rem; letter-spacing: .1em; color: rgb(255 255 255 / .75); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: var(--white); cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: var(--gold); color: #1c2b3a; }
.lb-btn svg { width: 1.4rem; height: 1.4rem; }
.lb-close { top: .6rem; right: .6rem; }
.lb-prev { left: .6rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .6rem; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: .55rem; translate: none; width: 2.6rem; height: 2.6rem; } .lb-stage { --px: .25rem; } }

/* ---------- Footer ---------- */
.site-footer { background: #0a3a66; color: rgb(255 255 255 / .85); padding-block: clamp(2rem, 5vw, 3rem); font-size: .95rem; }
.foot-inner { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.foot-brand { font-family: var(--display); font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); line-height: 1.1; color: var(--gold); text-decoration: none; }
.foot-nav { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.4rem; }
.foot-nav a { color: var(--white); text-decoration: none; padding-block: .3rem; display: inline-block; }
.foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .3em; }
.site-footer :focus-visible { outline-color: var(--gold); }
.foot-copy { color: rgb(255 255 255 / .7); font-size: .9rem; }
.section-pad { padding-bottom: clamp(1.5rem, 4vw, 3rem); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header { position: static; } .nav-toggle, .lightbox { display: none !important; } }

/* Artistic Representation: light band intro, then text beside the artist photos */
.intro-band { background: var(--mist); padding-block: clamp(1.75rem, 4.5vw, 3.25rem); margin-bottom: clamp(1rem, 3vw, 2rem); }
.ar-split .artists { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
/* Side by side only on wider screens, where text and photos come out about the same height; smaller screens stack them */
@media (min-width: 1200px) {
  .ar-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  .ar-split .prose { max-width: none; }
  .ar-split .subhead { text-align: left; margin-top: 0; }
  .ar-split .artists { margin-top: .4rem; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1rem; }
}

/* Philosophy: one blue panel with tabs */
.ph-tablist { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.ph-tablist button { font: inherit; font-weight: 600; font-size: clamp(.95rem, .9rem + .3vw, 1.08rem); color: var(--white); background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; padding: .55rem 1.2rem; cursor: pointer; transition: background .2s, color .2s; }
.ph-tablist button:hover { background: rgb(255 255 255 / .22); }
.ph-tablist button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: rgb(var(--blue)); }
.ph-tablist button:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.ph-tabs { width: 100%; max-width: 54rem; margin-inline: auto; }
.ph-pane h2 { margin-bottom: .6em; }
html:not(.js) .ph-tablist { display: none; }
html:not(.js) .ph-pane[hidden] { display: block; margin-top: 2rem; }

/* ---------- Version 2.0 ---------- */
/* The arch is the site's signature shape: portfolio covers, Home links, artist portraits and the About picture */
.arch-img, .artist-photo, .about-art img { border-radius: 999px 999px 0 0; }
.artist-photo { font-size: clamp(1.6rem, 4vw, 2.4rem); padding-top: 12%; }

/* Home: five arch links under the big picture */
.explore { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 760px) { .arches--five { --cols: 5; } }
@media (min-width: 560px) and (max-width: 759px) { .arches--five { --cols: 3; } }

/* About: picture beside the text on wide screens, above it on smaller ones */
.about-split { display: grid; gap: clamp(1.75rem, 5vw, 4rem); justify-items: center; }
.about-art { width: min(70%, 22rem); }
.about-art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 100%; }  /* crop from the bottom: hides the wall corner at the top of the photo */
.about-text { max-width: 66ch; }
@media (min-width: 1000px) {
  .about-split { grid-template-columns: minmax(16rem, 5fr) minmax(0, 8fr); align-items: start; justify-items: stretch; }
  .about-art { width: 100%; position: sticky; top: 6rem; }
  .about-text { margin: 0; }
}
