/* The Gallery: thegallery.vip
   Art Deco palette taken from the logo (#0024D0). System fonts only. */

:root {
  --blue: #0024d0;
  --blue-dark: #001a94;
  --blue-ink: #0c1640;
  --paper: #faf8f3;
  --paper-alt: #f1eee6;
  --ink: #1d1f2b;
  --muted: #555a6e;
  --line: #d9d4c7;
  --gold: #b8975a;
  --serif: "Didot", "Bodoni MT", "Bodoni 72", "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}

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

a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--blue-ink); }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 0 -2px var(--blue) inset;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .75rem; flex-wrap: wrap;
}
.brand img { width: 150px; }
.site-header nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem;
}
.site-header nav a {
  font-family: var(--serif);
  text-transform: uppercase; letter-spacing: .14em; font-size: .95rem;
  color: var(--blue-ink); text-decoration: none;
  padding: .35rem 0; border-bottom: 1px solid transparent;
}
.site-header nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.site-header nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- Hero ---------- */
.hero, .band {
  color: #fff;
  background-color: var(--blue-ink);
  background-image: linear-gradient(rgba(0, 20, 110, .72), rgba(0, 20, 110, .72)), var(--hero-jpg);
  background-image: linear-gradient(rgba(0, 20, 110, .72), rgba(0, 20, 110, .72)),
    image-set(var(--hero-webp) type("image/webp"), var(--hero-jpg) type("image/jpeg"));
  background-size: cover; background-position: center;
}
.hero { padding: clamp(3.5rem, 10vw, 7rem) 0; text-align: center; }
.hero h1 {
  color: #fff; margin: 0;
  font-size: clamp(2.1rem, 6vw, 3.75rem);
  text-transform: uppercase; letter-spacing: .12em;
}
.hero-sub {
  margin: .9rem 0 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem); letter-spacing: .04em;
}
.hero .wrap {
  /* thin deco frame */
  border: 1px solid rgba(255, 255, 255, .55);
  outline: 1px solid rgba(255, 255, 255, .3); outline-offset: 6px;
  padding: clamp(1.5rem, 5vw, 2.75rem) 1rem;
  max-width: 48rem;
}

.band { padding: 4rem 0; text-align: center; }
.band-text { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 1.25rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.75rem, 7vw, 4.5rem) 0; }
.section.alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
.lead { font-size: clamp(1.15rem, 2.4vw, 1.3rem); line-height: 1.6; }
.intro { text-align: center; }

h2.deco {
  text-align: center; text-transform: uppercase; letter-spacing: .14em;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin: 0 0 2rem;
}
h2.deco::after {
  content: ""; display: block; width: 4.5rem; height: 7px; margin: .8rem auto 0;
  border-top: 1px solid var(--blue); border-bottom: 1px solid var(--blue);
}
h2.deco.left { text-align: left; }
h2.deco.left::after { margin-left: 0; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; padding: .8rem 1.8rem;
  background: var(--blue); color: #fff; text-decoration: none;
  font-family: var(--serif); text-transform: uppercase; letter-spacing: .14em; font-size: .95rem;
  border: 1px solid var(--blue);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--blue);
  margin: .5rem;
}
.button:hover { background: var(--blue-dark); color: #fff; }
.button.outline { background: transparent; color: var(--blue); }
.button.outline:hover { background: var(--blue); color: #fff; }
.button.light { background: #fff; color: var(--blue); border-color: #fff; box-shadow: 0 0 0 3px transparent, 0 0 0 4px #fff; }
.button.light:hover { background: var(--paper-alt); }

/* ---------- Logo grid ---------- */
.logo-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 54rem; margin-inline: auto;
}
@media (min-width: 40rem) { .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 60rem) { .logo-grid { grid-template-columns: repeat(4, 1fr); max-width: 64rem; } }
.logo-card {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 2; padding: 1.25rem;
  background: #fff; border: 1px solid var(--line);
  transition: border-color .15s, transform .15s;
}
a.logo-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.logo-card picture { display: contents; }
.logo-card img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Program ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.photo { margin: 0; }
.photo img { width: 100%; border: 1px solid var(--line); outline: 1px solid var(--blue); outline-offset: 6px; }
.qa-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-bottom: 2rem; }
.qa { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 1.5rem; }
.qa h3 { font-size: 1.2rem; margin: 0 0 .6rem; }
.qa p { margin: 0; color: var(--muted); }
.two-col { display: grid; gap: 2.5rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: .35rem 0 .35rem 1.6rem; border-bottom: 1px dotted var(--line); }
.checks li::before { content: "\25C6"; position: absolute; left: 0; color: var(--blue); font-size: .75rem; top: .62rem; }

/* ---------- Mentors ---------- */
.mentor-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.mentor { background: #fff; border: 1px solid var(--line); padding: 1.75rem 1.25rem; text-align: center; }
.avatar {
  width: 9rem; height: 9rem; margin: 0 auto 1rem; border-radius: 50%;
  object-fit: cover; object-position: center 25%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--blue);
}
.mentor h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
.mentor ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.mentor li + li { margin-top: .2rem; }

/* ---------- Contact ---------- */
.email-big { font-family: var(--serif); font-size: clamp(1.4rem, 4.5vw, 2.1rem); margin: 2rem 0; overflow-wrap: anywhere; }
.email-big a { text-decoration: none; border-bottom: 1px solid var(--blue); }
.actions { margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-ink); color: #cfd5f2; padding: 3rem 0 2rem; text-align: center; }
.footer-logo { width: 140px; margin: 0 auto 1rem; }
.site-footer a { color: #fff; }
.site-footer .small { font-size: .85rem; color: #9aa3cf; margin-top: 1.5rem; }

/* ---------- Larger screens ---------- */
@media (min-width: 52rem) {
  .brand img { width: 170px; }
  .split { grid-template-columns: 1.2fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ---------- Small screens ---------- */
@media (max-width: 40rem) {
  .header-inner { justify-content: center; text-align: center; }
  .site-header nav ul { justify-content: center; gap: .1rem 1.1rem; }
  .site-header nav a { font-size: .85rem; letter-spacing: .1em; }
  .button { display: block; margin: 1rem auto; max-width: 20rem; text-align: center; }
}

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