/* Brian Orce — brianorce.com
   Portable static rebuild. No frameworks, no build step, no external requests. */

:root {
  --accent: #ffc400;
  --ink: #1c1c1c;
  --ink-soft: #4a4a4a;
  --rule: #e4e4e4;
  --bg: #ffffff;
  --bar: #111111;
  --maxw: 1180px;
  --font: "Futura", "Century Gothic", "Avenir Next", "Segoe UI", system-ui,
          -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- header ---------- */

.topbar { background: var(--bar); height: 38px; }

.masthead {
  border-bottom: 1px solid var(--rule);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 78px;
}

.logo {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav { display: flex; gap: 26px; flex-wrap: wrap; }

.nav a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 0;
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--accent); }

.social { margin-left: auto; display: flex; gap: 16px; align-items: center; }

.social a { display: block; color: var(--ink); opacity: 0.85; transition: opacity 0.15s ease; }
.social a:hover { opacity: 1; color: var(--accent); }
.social svg { width: 22px; height: 22px; fill: currentColor; display: block; }

/* ---------- page body ---------- */

main { padding: 64px 0 90px; }

h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 1.7em 0 0.4em;
}

h1.centered, h2.centered { text-align: center; }

/* the quoted/ruled page title, matching the original */
.page-title {
  border-left: 3px solid var(--rule);
  padding-left: 28px;
  margin-bottom: 34px;
}
.page-title h1 { margin: 0; }

p { margin: 0 0 1.1em; }

ul { margin: 0.4em 0 1.4em; padding-left: 22px; }
li { margin-bottom: 0.5em; color: var(--ink-soft); }
li p { margin: 0; }

a.link, main p a, main li a, main h2 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}
main p a:hover, main li a:hover, main h2 a:hover, a.link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

hr { border: 0; border-top: 1px solid var(--rule); margin: 58px 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #111;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 999px;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

.center { text-align: center; }
.mb-xl { margin-bottom: 56px; }

/* ---------- grids ---------- */

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 34px;
  align-items: start;
}

.cols-3 h2 { margin-top: 0; }

.media { margin-bottom: 14px; }

/* responsive iframe wrapper */
.ratio { position: relative; width: 100%; background: #f2f2f2; }
.ratio > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ratio-16x9 { padding-bottom: 56.25%; }

/* soundcloud players are fixed-height, not ratio-based */
.sc { width: 100%; border: 0; display: block; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 58px;
  align-items: start;
}
.about-grid .portrait { border-radius: 4px; overflow: hidden; }
.about-grid p { font-style: italic; color: var(--ink-soft); }

/* a title set inside italic copy flips upright — standard typographic practice */
.about-grid p em { font-style: normal; }

.about-grid p strong { color: var(--ink); font-weight: 700; }

/* the closing credential line reads as a quieter coda */
.about-grid p:last-child { font-size: 0.92rem; }

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery a {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eee;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}
.gallery a:hover img { transform: scale(1.04); opacity: 0.9; }
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 26px 10px 9px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery a:hover figcaption { opacity: 1; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 34px 0 54px;
  font-size: 0.78rem;
  color: #8a8a8a;
  letter-spacing: 0.04em;
}
footer .wrap {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
}
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---------- splash / cover page ---------- */

body.splash { height: 100%; }
html:has(body.splash) { height: 100%; }

.splash-stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  background-color: #6d6a5c;
  background-image: var(--cover);
  background-size: cover;
  background-position: center 22%;
}
.splash-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.14);
}
.splash-inner { position: relative; z-index: 1; color: #fff; }

.splash-name {
  font-size: clamp(2.9rem, 11vw, 7.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 0.35em;
  line-height: 1;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.32);
}

.splash-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 12vh, 130px);
}
.splash-nav a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.72rem, 1.35vw, 0.92rem);
  letter-spacing: 0.3em;
  font-weight: 500;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
  transition: color 0.15s ease;
}
.splash-nav a:hover { color: var(--accent); }

.splash-social { display: flex; gap: 22px; justify-content: center; }
.splash-social a { color: #fff; transition: color 0.15s ease, transform 0.15s ease; }
.splash-social a:hover { color: var(--accent); transform: translateY(-2px); }
.splash-social svg { width: 30px; height: 30px; fill: currentColor; display: block; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cols-3 { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .masthead .wrap { min-height: 66px; gap: 18px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .masthead { position: static; }
  .nav { order: 3; width: 100%; gap: 18px; }
  .social { margin-left: auto; }
  main { padding: 42px 0 64px; }
  .cols-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .page-title { padding-left: 18px; }
  hr { margin: 40px 0; }
}

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