/* Oil & Altar — Swiss/editorial system after brandnewalias.com:
 * white page, black Helvetica, amber/gold accent, fixed corner identity block,
 * content in a right-hand scrolling column. Navigation is loud (bold),
 * prose and captions are quiet (regular) — the photographs are the
 * only thing that speaks. */

:root {
  --ink: #1d1d1d;
  --ink-soft: #2e2e2e;   /* long-form prose */
  --mute: #8b8b8b;       /* eyebrows, secondary text */
  --caption-ink: #6b6b6b; /* photo captions — darker so they read as titles */
  --hairline: #e4e4e4;
  --accent: #c89b5c;     /* amber/gold, sampled from the tungsten range in the work */
  --alert: #c0392b;      /* muted red, error states only */
  --paper: #ffffff;
  --col: 41%;            /* where the content column starts */
  --edge: 20px;
  --prose: 15px;
  --caption: 16px;       /* photo captions — sized to read as titles, not watermarks */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ======================= corner block ======================= */

.corner {
  position: fixed;
  top: var(--edge);
  left: var(--edge);
  z-index: 10;
  max-width: 34%;
}

.wordmark {
  display: block;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.corner nav { margin-top: 10px; }

.corner nav a,
.nav-parent {
  display: block;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.32;
  background: none;
  border: 0;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.corner nav a:hover,
.nav-parent:hover { color: var(--accent); }
.corner nav a.active { color: var(--accent); }

.caret {
  display: inline-block;
  font-size: 0.7em;
  transition: transform 0.18s ease;
}
.nav-parent.open .caret { transform: rotate(180deg); }

/* Bible Belt link + its expand caret share a row; the link still navigates. */
.nav-row { display: flex; align-items: baseline; gap: 8px; }
.subcaret {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--mute);
  line-height: 1;
  transition: color 0.15s ease;
}
.subcaret .caret { font-size: 17px; }
.subcaret:hover { color: var(--accent); }
.subcaret.open .caret { transform: rotate(180deg); }

.submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}
.submenu.open { max-height: 200px; }
.submenu a {
  font-size: 20px;
  line-height: 1.5;
  padding-left: 22px;
}

.social {
  display: flex;
  gap: 2.2rem;
  margin-top: 30px;
  align-items: center;
}
.social a { color: var(--ink); transition: color 0.15s ease; }
.social a:hover { color: var(--accent); }
.social svg { display: block; }

/* ======================= content column ======================= */

main {
  margin-left: var(--col);
  padding: var(--edge) var(--edge) 120px 0;
  min-height: 100vh;
}

/* ---------- landing carousel ---------- */

.carousel {
  position: relative;
  height: calc(100vh - 2 * var(--edge));
}
.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86%;
  opacity: 0;
  transition: opacity 0.3s ease;   /* ~300ms fade, per spec */
}
.slide.show { opacity: 1; }

/* ---------- project pages ---------- */

/* series eyebrow — small wayfinding above the excerpt; wide tracking so the
 * small size reads as intentional (not content, per Bren's note) */
.kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--mute);
  margin: 6px 0 16px;
}
.kicker-numeral {
  color: var(--accent);
  margin-right: 10px;
}

/* project excerpt / description at the top of a series */
.project-intro {
  max-width: 560px;
  margin-bottom: 64px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.project-intro p {
  font-size: var(--prose);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
}
.project-intro p + p { margin-top: 14px; }

/* portrait session headers */
.session-head {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--ink);
  padding-top: 10px;
  margin: 64px 0 18px;
}
.kicker + .session-head,
.project-intro + .session-head { margin-top: 0; }

.empty-note {
  font-size: var(--prose);
  font-weight: 400;
  color: var(--mute);
  margin-top: 8px;
}

.piece { margin-bottom: 88px; }
.piece img,
.piece canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #f4f4f4;   /* quiet placeholder while the file streams in */
}
.piece img.shot {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.piece img.shot.loaded { opacity: 1; }
.piece figcaption {
  font-size: var(--caption);
  font-weight: 400;
  color: var(--caption-ink);
  letter-spacing: 0.01em;
  margin-top: 10px;
}

/* two-column grid (portrait sessions, ephemera) */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.grid2 .piece { margin-bottom: 0; }

/* masonry columns (Wanderings) — packs mixed frames without ragged rows */
.masonry {
  columns: 2;
  column-gap: 18px;
}
.masonry .piece {
  break-inside: avoid;
  margin-bottom: 36px;
}

/* ---------- in passing (video) ---------- */

.bay-wrap { margin-bottom: 88px; }
.bay {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}
.bay canvas,
.bay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bay canvas { image-rendering: pixelated; }
.bay-wrap figcaption {
  font-size: var(--caption);
  font-weight: 400;
  color: var(--caption-ink);
  letter-spacing: 0.01em;
  margin-top: 10px;
}

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

.about { max-width: 560px; }

.about-name {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 30px;
}
.about-name span { color: var(--mute); font-weight: 400; }

.about .bio p,
.about-statement {
  font-size: var(--prose);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
}
.about .bio p + p { margin-top: 14px; }

.about-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
  margin: 40px 0 12px;
}

.about-edu {
  font-size: var(--prose);
  font-weight: 400;
  color: var(--ink-soft);
}
.about-contact { list-style: none; }
.about-contact li {
  font-size: var(--prose);
  font-weight: 400;
  line-height: 1.9;
}
.about-contact a { transition: color 0.15s ease; }
.about-contact a:hover { color: var(--accent); }

.about form {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
  padding-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.about label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mute);
}
.about input,
.about textarea {
  border: 0;
  border-bottom: 1px solid var(--ink);
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: normal;
  padding: 6px 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}
.about input:focus,
.about textarea:focus { outline: none; border-bottom-color: var(--accent); }
.about textarea { resize: vertical; }
.about button {
  align-self: flex-start;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 12px 40px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.about button:hover { background: var(--accent); }
#form-status {
  font-size: 13px;
  font-weight: 400;
  min-height: 1.2em;
  color: var(--mute);
}
#form-status.error { color: var(--alert); }

/* ======================= responsive ======================= */

@media (max-width: 900px) {
  .corner {
    position: static;
    max-width: none;
    padding: var(--edge) var(--edge) 0;
  }
  main {
    margin-left: 0;
    padding: 28px var(--edge) 80px;
  }
  .carousel { height: 62vh; }
  .wordmark { font-size: 33px; }
  .corner nav a, .nav-parent { font-size: 22px; }
  .submenu a { font-size: 18px; }
  .piece { margin-bottom: 56px; }
  .bay-wrap { margin-bottom: 56px; }
  .grid2 { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .masonry .piece { margin-bottom: 56px; }
  .session-head { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .submenu { transition: none; }
  .piece img.shot { transition: none; }
}
