/* Photos export — "Matted Cinematic". One fixed design for both profiles. */
:root {
  --ink: #2b2724;            /* near-black warm gray */
  --muted: #7a726a;
  --accent: #a3752f;         /* sparing dark goldenrod */
  --page-bg: #ffffff;
  --radius: 8px;
  --col: 1040px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.page {
  max-width: var(--col);
  margin: 0 auto;
  padding: 64px 32px 96px;
}
/* Moodier grade for every photo: higher contrast, lower brightness/saturation. */
img { filter: contrast(1.06) brightness(.93) saturate(.86); }

/* ---- Nav: breadcrumb above the hero/index header, prev/next pager after
   a Page's Sections. Deliberately quiet — wayfinding, not a focal element. */
.crumbs { margin-bottom: 22px; font-size: 12px; letter-spacing: .04em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .crumb-sep { margin: 0 8px; color: var(--muted); opacity: .5; }
.pager {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  margin-top: 8px; padding-top: 28px; border-top: 1px solid #e8e4df; font-size: 15px;
}
.pager-link { color: var(--ink); text-decoration: none; }
.pager-link:hover { color: var(--accent); }
.pager-link.next { margin-left: auto; text-align: right; }

/* ---- Hero ---- */
.hero { margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid #e8e4df; }
.hero .kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 {
  margin: 0 0 12px;
  font-size: 44px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: .01em;
}
.hero .subtitle { margin: 0; color: var(--muted); font-size: 19px; max-width: 60ch; }
.hero-photo {
  position: relative; overflow: hidden; border: none;
  min-height: 440px; padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-photo .hero-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo .scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 65%;
  background: linear-gradient(to top, rgba(20, 17, 14, .82), rgba(20, 17, 14, 0));
}
.hero-photo .hero-text { position: relative; }
.hero-photo h1 { color: #f7f3ed; }
.hero-photo .subtitle { color: #e4ddd2; }
.hero-photo .kicker { margin-bottom: 10px; }

/* ---- Sections: 40px rhythm ---- */
.section { margin-bottom: 40px; }

/* Panes */
.pane { min-height: 0; min-width: 0; position: relative; }
.pane-photo {
  background: var(--page-bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pane-photo img { border-radius: var(--radius); box-shadow: 0 6px 24px rgba(43, 39, 36, .12); }
.pane-text { display: flex; align-items: center; padding: 24px; overflow: hidden; }
.pane-text p { margin: 0; white-space: pre-wrap; color: #3b3733; }

/* Row templates: side-by-side panes, split by the section's ratios. */
.row { display: flex; flex-direction: row; align-items: stretch; gap: 12px; }
.row > .pane { flex-grow: 0; flex-shrink: 1; }
.row > .pane-photo { align-self: stretch; }

/* Stacked templates: panes on top of each other. */
.stacked { display: flex; flex-direction: column; gap: 12px; }
.stacked > .pane-photo { width: 100%; }

/* Grid mosaics: shared outer split into bands, independent inner split per band. */
.grid { display: flex; gap: 12px; }
.grid-row { flex-direction: column; }
.grid-col { flex-direction: row; }
.grid-band { display: flex; gap: 12px; min-height: 0; min-width: 0; }
.grid-band-row { flex-direction: row; }
.grid-band-col { flex-direction: column; }
.grid-band > .pane-photo { flex-grow: 0; flex-shrink: 1; }
.grid-row > .grid-band { flex-grow: 1; }
.grid-col > .grid-band { flex-grow: 1; }

/* Overlay caption: photo with a caption bar over its bottom edge. */
.overlay { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(43, 39, 36, .12); }
.overlay .pane-photo { border-radius: 0; }
.overlay .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 24px 18px;
  background: linear-gradient(to top, rgba(20, 17, 14, .72), rgba(20, 17, 14, 0));
  color: #f5f1ec;
  font-size: 15px;
}
.overlay .caption p { margin: 0; white-space: pre-wrap; }

/* ---- Index ---- */
.index-head { margin-bottom: 40px; }
.index-head .kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.index-head h1 { margin: 8px 0 0; font-size: 40px; font-weight: 300; }
.card-stack { display: flex; flex-direction: column; gap: 40px; }
.card {
  display: block; position: relative; overflow: hidden;
  height: 420px; border-radius: 10px;
  text-decoration: none; color: #fff;
  box-shadow: 0 10px 32px rgba(43, 39, 36, .16);
}
.card .card-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.card .scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(to top, rgba(20, 17, 14, .78), rgba(20, 17, 14, 0));
}
.card .card-text { position: absolute; left: 28px; right: 28px; bottom: 22px; }
.card .kicker { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.card .card-title { display: block; font-size: 28px; font-weight: 300; line-height: 1.2; }
.card-empty {
  background: #f2efe9; color: var(--ink); box-shadow: none;
  display: flex; align-items: flex-end;
}
.card-empty .card-text { position: static; padding: 28px; }
.card-empty .kicker { color: var(--accent); }

/* ---- Responsive reflow below the breakpoint ---- */
@media (max-width: 760px) {
  .page { padding: 28px 16px 72px; }
  .hero { padding-bottom: 28px; min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
  .hero-photo { padding: 32px 22px; }
  .hero h1 { font-size: 30px; }
  /* Every Section becomes content-driven below the breakpoint: Row Sections
     restack vertically, Grid bands lose their fixed height-share, and fixed
     footprints can never clip reflowed text. */
  .section { height: auto !important; }
  .section > .pane, .grid-band > .pane { flex-basis: auto !important; height: auto !important; }
  .row { flex-direction: column; }
  .grid-col { flex-direction: column; }
  .grid-band { flex-basis: auto !important; height: auto !important; }
  /* Index Cards switch to aspect-ratio-driven heights. */
  .card { height: auto; aspect-ratio: 16 / 10; }
  .card-title { font-size: 22px; }
}
