/* Epiphany Sacred Arts Guild — site styles */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/CormorantGaramond-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/CormorantGaramond.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/EBGaramond-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/EBGaramond.woff2') format('woff2');
}

:root {
  --ivory: #fbf8f1;
  --parchment: #f4eee0;
  --parchment-deep: #e9dfc8;
  --paper: #fffdf8;
  --ink: #2b2420;
  --ink-soft: #5f5249;
  --oxblood: #7a1d2a;
  --oxblood-deep: #3f0f18;
  --gold: #a9832f;
  --gold-soft: #dcc78f;
  --line: rgba(122, 29, 42, 0.2);
  --display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --body: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --wrap: 1140px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.2rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--oxblood); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--oxblood-deep);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2.05rem, 3.8vw, 3rem); }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

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

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 3rem); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--oxblood); color: var(--ivory); padding: 0.6rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 248, 241, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--oxblood-deep); flex-shrink: 0; white-space: nowrap; }
.brand img { height: 46px; width: auto; }
.brand-name { display: block; font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1; letter-spacing: 0.01em; }
.brand-sub { display: block; margin-top: 0.3rem; font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.nav a {
  display: block; padding: 0.45rem 0;
  font-size: 0.8rem; letter-spacing: 0.17em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--oxblood); border-color: var(--gold-soft); }
.nav a[aria-current="page"] { color: var(--oxblood); border-color: var(--gold); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--oxblood); padding: 0.55rem 0.7rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.2rem; display: none;
    box-shadow: 0 18px 30px -20px rgba(63, 15, 24, 0.35);
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .brand-name { font-size: 1.3rem; }
  .brand img { height: 40px; }
  .brand-sub { display: none; }
}

/* ---------- Ornament ---------- */

.orn { display: flex; align-items: center; justify-content: center; gap: 0.9rem; color: var(--gold); margin: 1.4rem 0; }
.orn::before, .orn::after { content: ""; width: 70px; height: 1px; background: currentColor; opacity: 0.75; }
.orn i { width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); display: block; }
.orn--left { justify-content: flex-start; }
.orn--left::before { display: none; }

.eyebrow {
  display: block; margin-bottom: 0.9rem;
  font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 500;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 0.9rem 1.9rem;
  font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--oxblood); color: var(--oxblood); background: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--oxblood); color: var(--ivory); }
.btn--solid { background: var(--oxblood); color: var(--ivory); }
.btn--solid:hover { background: var(--oxblood-deep); border-color: var(--oxblood-deep); color: var(--ivory); }
.btn--light { border-color: rgba(251, 248, 241, 0.7); color: var(--ivory); }
.btn--light:hover { background: var(--ivory); color: var(--oxblood-deep); border-color: var(--ivory); }
.btn--gold { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn--gold:hover { background: var(--gold-soft); color: var(--oxblood-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative; isolation: isolate;
  display: grid; place-items: center; text-align: center;
  min-height: clamp(520px, 80vh, 740px);
  color: var(--ivory);
  background: var(--oxblood-deep) center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(40, 8, 14, 0.35) 0%, rgba(40, 8, 14, 0.78) 100%),
    linear-gradient(180deg, rgba(63, 15, 24, 0.55) 0%, rgba(63, 15, 24, 0.35) 40%, rgba(63, 15, 24, 0.85) 100%);
}
.hero-inner { max-width: 920px; padding: 4.5rem 1.5rem 5.5rem; }
.hero .eyebrow { color: var(--gold-soft); }
.hero blockquote {
  margin: 0; font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(2.2rem, 5.4vw, 4.3rem); line-height: 1.12; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.hero cite {
  display: block; margin-top: 1.4rem; font-style: normal;
  font-size: 0.9rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft);
}
.hero .orn { color: var(--gold-soft); }
.hero .btn-row { justify-content: center; margin-top: 0.4rem; }
.hero-credit {
  position: absolute; right: 1.5rem; bottom: 1rem; max-width: 36ch; text-align: right;
  font-size: 0.78rem; line-height: 1.4; font-style: italic; color: rgba(251, 248, 241, 0.75);
}
@media (max-width: 700px) { .hero-credit { left: 1.5rem; text-align: left; max-width: none; } }

/* ---------- Page head (inner pages) ---------- */

.page-head {
  text-align: center; padding: 5rem 0 4rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(169, 131, 47, 0.14), transparent 65%),
    var(--parchment);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: 0.1em; }
.page-head .lead { max-width: 58ch; margin: 0 auto; color: var(--ink-soft); font-style: italic; font-size: 1.3rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--parchment); }
.section--dark { background: var(--oxblood-deep); color: #f1e6d0; }
.section--dark h2, .section--dark h3 { color: var(--ivory); }
.section--dark a { color: var(--gold-soft); }
.section--dark a:hover { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head h2 { margin-bottom: 0; }

.lead-text { font-family: var(--display); font-size: clamp(1.55rem, 2.6vw, 2.05rem); line-height: 1.35; font-weight: 500; color: var(--oxblood-deep); }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--even { grid-template-columns: 1fr 1fr; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: 1fr; } }

.frame { position: relative; isolation: isolate; margin: 0 14px 14px 0; }
.frame::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid var(--gold);
}
.frame img { width: 100%; }
.frame figcaption { margin-top: 1.7rem; font-size: 0.95rem; font-style: italic; color: var(--ink-soft); }
.arch img { border-radius: 999px 999px 0 0; }

/* Three-up feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.feature { background: var(--paper); border: 1px solid var(--line); padding: 2.2rem 2rem 2.4rem; text-align: center; position: relative; }
.feature::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(169, 131, 47, 0.35); pointer-events: none; }
.feature .num { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.feature h3 { margin: 0.2rem 0 0.7rem; }
.feature p { font-size: 1.05rem; margin: 0 0 1rem; color: var(--ink-soft); }
.feature .more { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold-soft); }

/* Photo mosaic on the home page */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 190px; gap: 0.9rem; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; background: var(--parchment-deep); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem 0.8rem; color: #fff; font-size: 0.92rem; line-height: 1.3; font-style: italic;
  background: linear-gradient(180deg, transparent, rgba(30, 8, 12, 0.82));
}
.mosaic .m1 { grid-column: span 3; grid-row: span 2; }
.mosaic .m2 { grid-column: span 3; }
.mosaic .m3 { grid-column: span 3; }
.mosaic .m4 { grid-column: span 3; }
.mosaic .m5 { grid-column: span 3; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .mosaic .m1 { grid-column: span 2; grid-row: span 2; }
  .mosaic .m2, .mosaic .m3, .mosaic .m4, .mosaic .m5 { grid-column: span 1; }
}

/* Meeting details */
.meeting { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .meeting { grid-template-columns: 1fr; } }
.meeting h2 { margin-bottom: 0.4em; }
.meeting-card { border: 1px solid rgba(220, 199, 143, 0.45); padding: 2.2rem 2rem; position: relative; }
.meeting-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(220, 199, 143, 0.2); pointer-events: none; }
.meeting-card dl { margin: 0 0 1.6rem; }
.meeting-card dt { font-size: 0.74rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-soft); margin-top: 1.1rem; }
.meeting-card dt:first-child { margin-top: 0; }
.meeting-card dd { margin: 0.2rem 0 0; font-family: var(--display); font-size: 1.55rem; line-height: 1.3; color: var(--ivory); }
.meeting-card address { font-style: normal; }
.meeting-photo { margin: 0 0 2rem; }
.meeting-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid rgba(220, 199, 143, 0.4); }
.meeting-photo figcaption { margin-top: 0.7rem; font-size: 0.9rem; font-style: italic; color: rgba(241, 230, 208, 0.75); }

/* ---------- About ---------- */

.prose { max-width: 68ch; }
.prose--dropcap > p:first-of-type::first-letter {
  float: left; font-family: var(--display); font-weight: 600; font-size: 4.6rem; line-height: 0.78;
  padding: 0.35rem 0.6rem 0 0; color: var(--oxblood);
}
.prose .pull {
  margin: 2rem 0; padding: 0.4rem 0 0.4rem 1.6rem; border-left: 2px solid var(--gold);
  font-family: var(--display); font-style: italic; font-size: 1.6rem; line-height: 1.4; color: var(--oxblood-deep);
}

.milestones { position: sticky; top: calc(var(--header-h) + 2rem); }
.milestones h3 { font-size: 1.5rem; }
.milestones ol { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 1px solid var(--gold); }
.milestones li { position: relative; padding-bottom: 1.15rem; line-height: 1.4; font-size: 1.02rem; }
.milestones li::before {
  content: ""; position: absolute; left: calc(-1.6rem - 4.5px); top: 0.5em; width: 8px; height: 8px;
  background: var(--ivory); border: 1px solid var(--gold); transform: rotate(45deg);
}
.milestones time { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--oxblood); }
.history-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 960px) { .history-layout { grid-template-columns: 1fr; } .milestones { position: static; } }

.history-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2.5rem 0; }
.history-photos figure { margin: 0; }
.history-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.history-photos figcaption { margin-top: 0.5rem; font-size: 0.92rem; font-style: italic; color: var(--ink-soft); }
@media (max-width: 560px) { .history-photos { grid-template-columns: 1fr; } }

.exec { display: grid; gap: 3.5rem; }
.exec-item { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.exec-item .portrait { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.exec-item .portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; }
.exec-item h3 { margin-bottom: 0.1em; }
.role { display: block; margin-bottom: 1rem; font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.exec-item p { font-size: 1.08rem; }
.exec-item h4 { margin-top: 1.4rem; margin-bottom: 0.3rem; font-size: 1.15rem; letter-spacing: 0.04em; }
.exec-item ul { margin: 0 0 1.1rem; padding-left: 1.2rem; font-size: 1.05rem; }
.contact-link { display: inline-block; margin-top: 0.4rem; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
@media (max-width: 760px) {
  .exec-item { grid-template-columns: 1fr; }
  .exec-item .portrait { position: static; max-width: 260px; }
}

.past { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 860px) { .past { grid-template-columns: 1fr; } }
.past-card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.past-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.past-card .txt { padding: 1.4rem 1.6rem 1.6rem; }
.past-card h3 { font-size: 1.6rem; margin-bottom: 0.1em; }
.past-card p { font-size: 1.03rem; line-height: 1.6; margin-bottom: 0.8em; }
.past-card.long { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; }
.past-card.long img { width: 340px; flex: none; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 760px) { .past-card.long { flex-direction: column; } .past-card.long img { width: 100%; position: static; } }

/* ---------- Members ---------- */

.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 2.2rem; }
.member { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.member .art { aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--parchment-deep); }
.member .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.member:hover .art img { transform: scale(1.04); }
.member .avatar {
  width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--paper);
  margin: -46px 0 0 1.5rem; position: relative; overflow: hidden; background: var(--parchment-deep);
  box-shadow: 0 0 0 1px var(--gold-soft);
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member .body { padding: 0.9rem 1.6rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.member h3 { font-size: 1.7rem; margin-bottom: 0.35em; }
.member p { font-size: 1.04rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 1rem; }
.member .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.member .links a { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px; }
.in-memoriam { font-style: italic; color: var(--gold); font-size: 0.95rem; }

/* ---------- Activities / events ---------- */

.activity { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.activity + .activity { border-top: 1px solid var(--line); }
.activity:nth-of-type(even) .activity-media { order: -1; }
.activity h2 { margin-bottom: 0.4em; }
.activity .num { display: block; font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--gold); margin-bottom: 0.2rem; }
@media (max-width: 860px) { .activity { grid-template-columns: 1fr; } .activity:nth-of-type(even) .activity-media { order: 0; } }

.notice { border-left: 2px solid var(--gold); padding: 0.2rem 0 0.2rem 1.4rem; font-style: italic; margin: 2rem 0 0; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.photo-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Gallery ---------- */

.masonry { columns: 3 290px; column-gap: 1.8rem; }
.work { break-inside: avoid; margin: 0 0 2rem; }
.work button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.work img { width: 100%; transition: opacity 0.3s; background: var(--parchment-deep); }
.work button:hover img { opacity: 0.88; }
.work figcaption { padding-top: 0.7rem; }
.work .t { display: block; font-family: var(--display); font-size: 1.4rem; font-style: italic; font-weight: 500; line-height: 1.2; color: var(--oxblood-deep); }
.work .a { display: block; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 0.2rem; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lightbox::backdrop { background: rgba(25, 6, 10, 0.93); }
.lightbox-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 1.5rem; color: var(--ivory); text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6); }
.lightbox p { margin: 1rem 0 0; font-family: var(--display); font-style: italic; font-size: 1.35rem; }
.lightbox p small { display: block; font-family: var(--body); font-style: normal; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); margin-top: 0.2rem; }
.lb-btn { position: absolute; background: none; border: 1px solid rgba(251, 248, 241, 0.4); color: var(--ivory); cursor: pointer; width: 46px; height: 46px; font-size: 1.4rem; line-height: 1; }
.lb-btn:hover { background: rgba(251, 248, 241, 0.12); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; }
.lb-next { right: 1rem; top: 50%; }

/* ---------- Resources ---------- */

.res-group { margin-bottom: 4rem; }
.res-group > h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); display: flex; align-items: center; gap: 1.2rem; }
.res-group > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.res-list li { background: var(--paper); border: 1px solid var(--line); padding: 1rem 1.3rem; }
.res-list strong { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.2; color: var(--oxblood-deep); }
.res-list a { font-size: 0.98rem; word-break: break-all; }
.books { display: grid; gap: 1.4rem; }
.book { display: grid; grid-template-columns: 4px minmax(0, 1fr); gap: 1.3rem; }
.book::before { content: ""; background: var(--gold-soft); }
.book h3 { font-size: 1.5rem; margin-bottom: 0.1em; font-style: italic; }
.book .by { font-size: 1rem; color: var(--ink-soft); }
.book .pub { font-size: 0.86rem; letter-spacing: 0.08em; color: var(--gold); }
.book p { margin: 0.4rem 0 0; font-size: 1.05rem; }

/* ---------- Blog ---------- */

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 2.4rem; }
.post-card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16 / 11; overflow: hidden; background: var(--parchment-deep); display: block; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.post-card h3 { font-size: 1.65rem; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--oxblood); }
.post-card p { font-size: 1.02rem; line-height: 1.6; color: var(--ink-soft); }
.post-card .more { margin-top: auto; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold-soft); align-self: flex-start; }

.article { padding: 4rem 0 2rem; }
.article .post-meta { text-align: center; }
.article h1 { text-align: center; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.article figure { margin: 2.2rem 0; }
.article figure img { margin-inline: auto; max-height: 80vh; width: auto; }
.article figcaption { margin-top: 0.7rem; text-align: center; font-size: 0.95rem; font-style: italic; color: var(--ink-soft); }
.article .photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2.2rem 0; }
.article .photo-grid img { width: 100%; height: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
.article-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.article-nav a { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; }

/* ---------- Footer ---------- */

.site-footer { background: #260910; color: #e9dcc3; padding: 4.5rem 0 2rem; border-top: 3px double rgba(220, 199, 143, 0.55); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(220, 199, 143, 0.25); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--body); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem; }
.site-footer a { color: #e9dcc3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 1.05rem; line-height: 1.9; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-brand .name { font-family: var(--display); font-size: 1.7rem; font-weight: 600; color: var(--ivory); line-height: 1.1; margin-bottom: 0.8rem; }
.footer-brand p { font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.4; color: rgba(233, 220, 195, 0.85); max-width: 30ch; }
.social { display: flex; gap: 0.9rem; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(220, 199, 143, 0.45); border-radius: 50%; color: var(--gold-soft); transition: background 0.2s, color 0.2s; }
.social a:hover { background: var(--gold-soft); color: var(--oxblood-deep); text-decoration: none; }
.social svg { width: 20px; height: 20px; }
.copyright { padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; color: rgba(233, 220, 195, 0.7); }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .nav-toggle, .hero-credit, .lightbox { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section--dark, .site-footer { background: none; color: #000; }
}
