/* Vincent Skiller - site styles
   Layout follows the original "Cento" look: white page, centred name,
   centred uppercase menu, content column max 960px wide. */

@font-face { font-family: "Libre Franklin"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/libre-franklin-400.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("fonts/libre-franklin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/libre-franklin-700.woff2") format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 700; font-style: italic; font-display: swap;
  src: url("fonts/libre-franklin-700-italic.woff2") format("woff2"); }

:root {
  --text: #3e3e3e;
  --heading: #45464c;
  --muted: #b9b9b9;
  --muted-dark: #6f6f6f;
  --line: #f0f0f0;
  --bg: #ffffff;
  --max: 960px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 "Libre Franklin", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.text a { color: var(--heading); text-decoration-color: var(--muted); text-underline-offset: 3px; }
.text a:hover { text-decoration-color: currentColor; }

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

/* ---------- header ---------- */
.site-header { position: relative; padding: 40px 16px 10px; text-align: center; border-bottom: 2px solid #f7f7f7; }
.logo {
  display: inline-block; color: #515151; text-decoration: none;
  font-weight: 700; font-size: 34px; letter-spacing: .06em; line-height: 1.2;
}
.logo img { max-width: 220px; margin: 0 auto; }
nav ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
nav a {
  display: block; padding: 6px 15px; color: var(--muted); text-decoration: none;
  text-transform: uppercase; letter-spacing: .07em; font-size: 14px; transition: color .2s;
}
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
.menu-toggle { display: none; }

/* ---------- content ---------- */
main section { padding: 28px 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.band { background-size: cover; background-position: center; background-repeat: no-repeat; padding: 40px 0; }

h2 { margin: 18px 0 12px; color: var(--heading); font-size: 26px; font-weight: 700; line-height: 1.25; }
h2 small { font-size: 13px; font-weight: 400; color: var(--muted-dark); margin-left: .3em; }
.text { margin: 0 0 14px; line-height: 1.6; }
.spacer { display: block; }

.cols { display: flex; gap: 30px; }
.col { flex: 1 1 50%; min-width: 0; }

figure { margin: 0; }
.img { margin: 10px 0 14px; }
.img.align-center img { margin: 0 auto; }
.img.align-right img { margin-left: auto; }
.img figcaption { font-size: 90%; margin-top: 6px; }
.img.align-center figcaption { text-align: center; }

.video { position: relative; aspect-ratio: 16 / 9; margin: 10px 0 18px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- project grids (home, community art, projects) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f4f4f4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
a.tile:hover img { transform: scale(1.04); opacity: .9; }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 14px;
}

/* ---------- slideshow (project pages) ----------
   Without the script the photos simply stack; site.js turns them into
   a viewer with arrows and a thumbnail strip. */
.slideshow { margin: 0 0 22px; }
.slideshow figure { margin: 0 0 10px; }
.slideshow.ready figure { margin: 0; }
.ss-stage { position: relative; aspect-ratio: 16 / 9; background: #f4f4f4; overflow: hidden; }
.ss-stage img { width: 100%; height: 100%; object-fit: contain; }
.ss-stage figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: rgba(0,0,0,.45); color: #fff; font-size: 14px; }
.ss-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--text);
  font-size: 22px; line-height: 44px; cursor: pointer; opacity: .85;
}
.ss-btn:hover, .ss-btn:focus-visible { opacity: 1; }
.ss-prev { left: 10px; } .ss-next { right: 10px; }
.ss-count { position: absolute; top: 10px; right: 12px; font-size: 12px; color: #fff; background: rgba(0,0,0,.4); padding: 2px 8px; border-radius: 10px; }
.ss-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.ss-thumbs button { flex: 0 0 auto; width: 84px; height: 56px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .6; }
.ss-thumbs button[aria-current="true"] { border-color: var(--text); opacity: 1; }
.ss-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact details ---------- */
.contact { display: grid; grid-template-columns: max-content 1fr; gap: 4px 28px; margin: 18px 0 10px; }
.contact dt { color: var(--muted-dark); }
.contact dd { margin: 0; }
.contact a { color: var(--heading); text-decoration-color: var(--muted); text-underline-offset: 3px; }

/* ---------- social icons + footer ---------- */
.social { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.social a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; color: var(--muted-dark); transition: color .2s; }
.social a:hover { color: var(--text); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer { border-top: 2px solid #f7f7f7; margin-top: 30px; padding: 24px 16px 30px; text-align: center; font-size: 13px; color: var(--muted-dark); }
.site-footer .social { justify-content: center; }
.site-footer p { margin: 6px 0 0; }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  .site-header { padding: 14px 56px; }
  .logo { font-size: 20px; }
  .menu-toggle {
    display: block; position: absolute; left: 8px; top: 8px; width: 44px; height: 44px;
    border: 0; background: none; cursor: pointer;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); content: ""; transition: transform .25s, background .25s;
  }
  .menu-toggle span { top: 21px; }
  .menu-toggle span::before { left: 0; top: -7px; }
  .menu-toggle span::after { left: 0; top: 7px; }
  .menu-open .menu-toggle span { background: transparent; }
  .menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
  .js nav { display: none; }
  .js.menu-open nav { display: block; }
  nav ul { flex-direction: column; margin-top: 10px; }
  nav a { padding: 10px; }
  .cols { flex-direction: column; gap: 0; }
  .col .spacer { display: none; }
  .gallery, .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  h2 { font-size: 22px; }
  .band { padding: 20px 0; }
  .band .text { background: rgba(255,255,255,.85); padding: 16px 18px; border-radius: 2px; }
  .ss-btn { width: 38px; height: 38px; line-height: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
