/* ============================================================
   yourdailypresence — shared styles
   Design tokens
   ------------------------------------------------------------
   Background   #FAF6EE  (warm ivory)
   Ink          #23283B  (deep indigo-black)
   Gold         #B8863C  (marigold / turmeric)
   Maroon       #7A2E2E  (sindoor / deep maroon)
   Line         #DCD3BF  (soft sand hairline)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500;600&family=Noto+Serif+Devanagari:wght@400;600&display=swap');

:root {
  --bg: #FAF6EE;
  --ink: #1F1108;
  --gold: #B8863C;
  --gold-text: #8A5A1E; /* darker than --gold: meets 4.5:1 on --bg for small text; --gold stays for borders/icons */
  --maroon: #7A2E2E;
  --line: #DCD3BF;
  --ink-soft: #4A3A2E;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-hover: rgba(255, 255, 255, 0.88);
  --shadow: 0 2px 4px -2px rgba(31, 17, 8, 0.05),
            0 8px 16px -4px rgba(31, 17, 8, 0.1),
            0 24px 32px -8px rgba(31, 17, 8, 0.15);
  --max: 760px;
  --max-wide: 1040px;
  --snappy: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 246, 238, 0.86), rgba(250, 246, 238, 0.9)),
    url('https://commons.wikimedia.org/wiki/Special:FilePath/Shiva_as_the_Lord_of_Dance_LACMA_edit.jpg');
  background-size: cover;
  background-position: center 20%;
  z-index: -1;
  pointer-events: none;
}

/* Soft glow over the background image, slowly breathing and drifting
   through warm tones (gold to a rose-maroon) rather than a hard color swap. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 24%, rgba(184, 134, 60, 0.55), transparent 55%);
  mix-blend-mode: soft-light;
  z-index: -1;
  pointer-events: none;
  animation: glow-shift 26s ease-in-out infinite;
}

@keyframes glow-shift {
  0%   { opacity: 0.35; filter: hue-rotate(0deg); }
  50%  { opacity: 0.65; filter: hue-rotate(-34deg); }
  100% { opacity: 0.35; filter: hue-rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; opacity: 0.45; }
}

h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

a { color: inherit; }

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

/* Wider column for content that wants more breathing room, like the
   photography grid — everything else stays at the narrower --max for
   comfortable reading width. */
.wrap-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 28px;
}

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

header.site {
  padding: 40px 0 0;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, padding .3s ease;
}

header.site.is-scrolled {
  padding-top: 16px;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
}

.brand svg { width: 26px; height: 26px; }

.brand span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

nav.site {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  margin: 22px 0 36px;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  nav.site {
    gap: 10px 16px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
}

nav.site a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

nav.site a:hover,
nav.site a.active {
  color: var(--maroon);
  border-color: var(--gold);
}

/* ---------- Divider (signature mandala glyph) ---------- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 8px 0 44px;
  color: var(--gold);
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: 100%;
  background: var(--line);
}
.divider svg { flex-shrink: 0; width: 20px; height: 20px; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 10px 0 30px;
  position: relative;
}

.hero-layout {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 28px;
}

.hero-text { max-width: 560px; }

.hero-visual {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-visual .border-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--gold);
  pointer-events: none;
}

.hero-visual .metatron-bg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  opacity: 0.32;
  color: var(--gold-text);
  pointer-events: none;
  animation: mandala-spin 160s linear infinite;
}

.hero-visual .lotus-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 92%;
  height: auto;
  pointer-events: none;
}

@keyframes mandala-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .metatron-bg { animation: none; }
}

.hero-text .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 18px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.15;
}

.hero-text p.tagline {
  max-width: 480px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

@media (min-width: 860px) {
  .hero-layout {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 56px;
    text-align: left;
  }
  .hero-text { max-width: 460px; }
  .hero-text p.tagline { margin: 22px 0 0; }
  .hero-visual { width: 300px; height: 300px; }
}

.hero p.wip-note {
  max-width: 540px;
  margin: 26px auto 0;
  padding: 22px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--maroon);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* ---------- Section intro (used on category pages) ---------- */

.section-intro {
  text-align: center;
  padding: 46px 0 6px;
}
.section-intro .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 14px;
}
.section-intro h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.section-intro p {
  max-width: 520px;
  margin: 18px auto 0;
  color: var(--ink-soft);
}

/* ---------- Category tiles on home ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 60px;
}

.tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 34px 20px;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.4s var(--snappy), transform 0.4s var(--snappy), box-shadow 0.4s var(--snappy), background-color 0.4s var(--snappy);
}
.tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.tile:hover {
  border-color: var(--gold);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.tile:hover::before { transform: scaleX(1); }
.tile svg { width: 30px; height: 30px; color: var(--gold-text); margin-bottom: 14px; }
.tile h3 { font-size: 1.3rem; }
.tile p { color: var(--ink-soft); font-size: 0.88rem; margin-top: 8px; }

@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
}

/* ---------- Wide Photography tile (spans 2 columns, thumbnail strip) ---------- */

.tile-photography {
  grid-column: 1 / -1;
  max-width: calc((200% - 18px) / 3);
  margin: 0 auto;
  text-align: left;
  padding: 26px 28px;
}

.tile-photography-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.tile-photography-header svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-bottom: 0;
}
.tile-photography-header h3 { font-size: 1.3rem; }
.tile-photography-header p { color: var(--ink-soft); font-size: 0.88rem; margin-top: 6px; }

.tile-photography-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.tile-photography-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (max-width: 600px) {
  .tile-photography { grid-column: auto; max-width: none; }
  .tile-photography-thumbs { grid-template-columns: repeat(4, 1fr); }
  .tile-photography-thumbs img:nth-child(5) { display: none; }
}

/* ---------- Entry cards ---------- */

.entries {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 60px;
}

.entry {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 24px;
  margin: 0 -22px;
  padding: 30px 22px;
  border-bottom: 1px dashed var(--line);
  transition: background-color .25s ease;
}
.entry:first-child { border-top: 1px dashed var(--line); }
.entry:hover { background: var(--surface); }

.entry .thumb {
  width: 108px;
  height: 108px;
  object-fit: cover;
  background: #EFE9DB;
  border: 1px solid var(--line);
}

.entry .thumb.symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.entry .thumb.symbol span {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.5rem;
  line-height: 1.15;
  text-align: center;
  color: var(--gold-text);
}

/* ---------- Multiple images on one entry (admin "+ Add another image") ---------- */

.thumb-row {
  width: 108px;
  height: 108px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.thumb-row .thumb { width: 100%; height: 100%; }

@media (max-width: 560px) {
  .thumb-row { width: 72px; height: 72px; }
}

/* ---------- Extra links beyond the primary title link ---------- */

.extra-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.extra-link {
  font-size: 0.78rem;
  color: var(--gold-text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.extra-link:hover { color: var(--maroon); border-color: var(--gold); }

.entry .meta {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 6px;
}

.entry h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.entry h2 a {
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}

.entry h2 a::after {
  content: " ↗";
  font-size: 0.75em;
  color: var(--ink-soft);
  transition: color .2s ease;
}

.entry h2 a:hover { color: var(--gold-text); border-color: var(--gold); }
.entry h2 a:hover::after { color: var(--gold); }

.entry p.desc {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.entry .sub {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

@media (max-width: 560px) {
  .entry { grid-template-columns: 72px 1fr; gap: 16px; }
  .entry .thumb { width: 72px; height: 72px; }
  .entry .thumb.symbol span { font-size: 1.05rem; }
}

/* ---------- Quotes page: bold editorial pull-quote feel ---------- */

.entries.quotes .entry {
  grid-template-columns: 72px 1fr;
  position: relative;
}
.entries.quotes .entry .thumb { width: 72px; height: 72px; }
.entries.quotes .entry .thumb.symbol span { font-size: 1.05rem; }
.entries.quotes .entry .thumb-row { width: 72px; height: 72px; }

.entries.quotes .entry h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  line-height: 1.25;
  position: relative;
}

.entries.quotes .entry h2::before {
  content: "\201C";
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 3rem;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 10px;
}

.entries.quotes .entry .sub {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-top: 4px;
}
.entries.quotes .entry .sub::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

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

footer.site {
  text-align: center;
  padding: 40px 0 60px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.mantra-emblem { margin-bottom: 12px; }
.mantra-emblem .fol-mark { width: 34px; height: 34px; color: var(--gold); }

/* footer.site prefix needed: the generic "footer.site p" rule below
   (1 class + 2 elements) otherwise outranks a bare ".mantra-*" class
   (1 class + 0 elements) at the element-count tiebreaker. */
footer.site .mantra-devanagari {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.05rem;
  color: var(--maroon);
  margin: 0 0 4px;
}

footer.site .mantra-translit {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 16px;
}

footer.site p { margin: 0 0 14px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--maroon);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover { color: var(--gold-text); border-color: var(--gold); }

/* ---------- Empty state ---------- */

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Focus visibility ---------- */
a:focus-visible, .tile:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { transition: none; }
}

/* ---------- Scroll reveal (applied via render.js to cards/entries) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Home: featured quote ---------- */

.featured-quote {
  position: relative;
  max-width: 560px;
  margin: 46px auto 60px;
  text-align: center;
  padding: 40px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.featured-quote p.text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0;
}

.featured-quote p.text::before {
  content: "\201C";
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 4px;
}

.featured-quote p.source {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ---------- Author Spotlight (Books page) ---------- */

.spotlight {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  margin: 10px 0 56px;
  position: relative;
}

.spotlight::before,
.spotlight::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
  opacity: 0.6;
}
.spotlight::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.spotlight::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.spotlight-header { text-align: center; margin-bottom: 30px; }

.spotlight-header .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 10px;
}

.spotlight-header h2 {
  font-size: 1.9rem;
}
.spotlight-header h2 .years {
  font-size: 1rem;
  color: var(--ink-soft);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
}

.spotlight-header .bio {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.spotlight-books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.spotlight-book h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.spotlight-book h3 a {
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.spotlight-book h3 a::after {
  content: " ↗";
  font-size: 0.75em;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.spotlight-book h3 a:hover { color: var(--gold-text); border-color: var(--gold); }
.spotlight-book h3 a:hover::after { color: var(--gold); }

.spotlight-book h3 .year {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.spotlight-book p.desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.spotlight-book blockquote {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}

@media (max-width: 640px) {
  .spotlight-books { grid-template-columns: 1fr; }
  .spotlight { padding: 30px 22px; }
}

/* ---------- Audiobooks / Music entries ---------- */

.audiobooks {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 60px;
}

.audio-entry {
  padding: 34px 0;
  border-bottom: 1px dashed var(--line);
}
.audio-entry:first-child { border-top: 1px dashed var(--line); }

.audio-thumb-row {
  width: 100%;
  max-width: 260px;
  height: 130px;
  margin-bottom: 18px;
  gap: 6px;
}
.audio-thumb-row .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.audio-entry h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.audio-entry .sub {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.audio-entry .desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.audio-entry blockquote {
  margin: 0 0 14px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}
.audio-entry blockquote .attr {
  display: block;
  margin-top: 6px;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.audio-entry .reflection {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 10px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.listen-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #fff;
  background: var(--maroon);
  border: 1px solid var(--maroon);
  border-radius: 999px;
  padding: 9px 18px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.listen-link::after { content: "↗"; font-size: 0.9em; }
.listen-link:hover {
  background: var(--gold-text);
  border-color: var(--gold-text);
  color: #fff;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.link-row .listen-link { margin-top: 0; }

/* ---------- To Think About ---------- */

.tta-book {
  padding-bottom: 60px;
}

.tta-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 8px;
}

.tta-book h2 {
  text-align: center;
  font-size: 2rem;
}

.tta-listen {
  text-align: center;
  margin: 6px 0 30px;
}

.tta-byline {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin: 4px 0 28px;
}

.tta-bio, .tta-summary {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.tta-sections {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tta-section {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}

.tta-section h3 {
  font-size: 1.25rem;
  color: var(--maroon);
  margin-bottom: 14px;
}

.tta-section ol {
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
}

.tta-section li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.tta-section li:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .tta-section { padding: 20px 18px; }
}

/* ---------- Myself page ---------- */

.about-hero {
  text-align: center;
  padding: 20px 0 60px;
}

.about-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line);
  margin-bottom: 26px;
}

.about-hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 12px;
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 26px;
}

.about-note {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.7;
}

.about-signature {
  margin-top: 22px;
  color: var(--maroon);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .about-photo { width: 116px; height: 116px; }
  .about-note { padding: 18px 20px; }
}

/* ---------- Search bar ---------- */

.search-bar {
  max-width: 420px;
  margin: 0 auto 40px;
  position: relative;
}

.search-bar input {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px 11px 40px;
  outline: none;
  transition: border-color .2s ease;
}
.search-bar input::placeholder { color: var(--ink-soft); opacity: 0.7; }
.search-bar input:focus { border-color: var(--gold); }

.search-bar svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
  pointer-events: none;
}

.search-empty {
  text-align: center;
  padding: 20px 20px 40px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Today's Spotlight (home page) ---------- */

.spotlight-today-card {
  display: block;
  max-width: 480px;
  margin: 0 auto 56px;
  text-decoration: none;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 30px 28px;
  position: relative;
  transition: border-color 0.4s var(--snappy), transform 0.4s var(--snappy), box-shadow 0.4s var(--snappy), background-color 0.4s var(--snappy);
}
.spotlight-today-card:hover {
  border-color: var(--gold);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.spotlight-today-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.spotlight-today-card h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.spotlight-today-card p {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Quote of the Day ---------- */

.qotd-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 14px;
}

.shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--maroon);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.shuffle-btn svg { width: 14px; height: 14px; }
.shuffle-btn:hover { border-color: var(--gold); color: var(--gold-text); }

/* ---------- Photography: Instagram-style grid ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-bottom: 60px;
}

.photo-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: none;
  background: #EFE9DB;
  cursor: pointer;
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.photo-tile:hover img,
.photo-tile:focus-visible img { transform: scale(1.05); }

.photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 10px;
  background: linear-gradient(to top, rgba(20, 12, 6, 0.7), transparent);
  color: #fff;
  font-size: 0.76rem;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.photo-tile:hover .photo-caption,
.photo-tile:focus-visible .photo-caption { opacity: 1; transform: translateY(0); }

@media (max-width: 560px) {
  .photo-grid { gap: 2px; }
}

/* ---------- Photography: lightbox ---------- */

/* Chromium (and possibly others) can composite a sticky-positioned header
   above a later fixed z-index:200 element regardless of z-index order —
   hiding the header outright while a modal is open sidesteps that. */
body.lightbox-open header.site {
  visibility: hidden;
}

body.lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 200;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox-figure {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  margin: 0;
  text-align: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.lightbox-caption {
  color: #F4EEDD;
  font-size: 0.9rem;
  margin-top: 14px;
  font-style: italic;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #F4EEDD;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  padding: 10px;
  transition: color .2s ease;
}
.lightbox-close { top: 16px; right: 20px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--gold); }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); font-size: 2.4rem; }

@media (max-width: 560px) {
  .lightbox-prev { left: 2px; }
  .lightbox-next { right: 2px; }
}
