/* Sub-page-only rules.
   index.html does not load this file and is not affected by anything in it.
   Every value here is taken from the existing token set in site.css
   (--gold, --w5, --border, --r, the Cormorant/Inter pairing, the 5vw gutter)
   so sub-pages read as the same site rather than a second design. */

/* Page header: the homepage uses a full-height .hero with the skyline and
   particles. Sub-pages get a compact header instead — same type ramp, no
   viewport-height block between the reader and the content. */
.page-head {
  padding-top: 10rem;
  padding-bottom: 3rem;
}
.page-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--w);
  margin-top: 1rem;
  max-width: 15ch;
}

/* Readable measure for ported body copy. */
.page-wrap { max-width: 780px; }
.page-wrap h2 { margin-top: 3.2rem; }
.page-wrap h2:first-child { margin-top: 0; }

.page-h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--w);
  margin: 2.2rem 0 .7rem;
}
.page-p {
  font-size: .92rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--w8);
  margin-bottom: 1.15rem;
}
.page-list {
  list-style: none;
  margin: .4rem 0 1.6rem;
  padding: 0;
}
.page-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .7rem;
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--w8);
}
.page-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: .1rem;
  font-size: .45rem;
  color: var(--gold);
}

.page-fig {
  margin: 2.2rem 0;
  width: fit-content;
  max-width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
}
.page-fig img { display: block; width: auto; max-width: 100%; height: auto; max-height: 440px; }

/* Celestial Activities has exactly two cards; .trust-grid is a 3-col grid. */
.trust-grid-2 { grid-template-columns: repeat(2, 1fr); }

.ig-embed {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  min-height: 420px;
}
.ig-embed .instagram-media {
  margin: 0 auto !important;
  border-radius: var(--r) !important;
}

@media (max-width: 640px) {
  .page-head { padding-top: 7.5rem; padding-bottom: 2rem; }
  .trust-grid-2 { grid-template-columns: 1fr; }
  .page-wrap h2 { margin-top: 2.4rem; }
}

/* Restored post content (content/rich.py): links, emphasis, tables, embeds,
   AdSense slots and CTA buttons that the first converter dropped. */
.page-article a:not(.cta-nav) {
  color: var(--gold2);
  text-decoration: underline;
  text-decoration-color: rgba(201,168,76,.4);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.page-article a:not(.cta-nav):hover { text-decoration-color: var(--gold2); }
.page-article strong { font-weight: 500; color: var(--w); }
.page-article h2 a, .page-article h3 a { color: inherit; }
.page-list.page-ol { counter-reset: n; }
.page-list.page-ol li { counter-increment: n; padding-left: 1.8rem; }
.page-list.page-ol li::before {
  content: counter(n) '.';
  font-size: .8rem;
  top: 0;
  font-family: 'Inter', sans-serif;
}
.page-table-wrap {
  margin: 1.8rem 0 2.2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.page-table { width: 100%; border-collapse: collapse; font-size: .85rem; line-height: 1.6; color: var(--w8); }
.page-table td, .page-table th {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
  min-width: 8rem;
}
.page-table tr:first-child td, .page-table th { color: var(--gold); font-weight: 500; }
.page-table tr:last-child td { border-bottom: 0; }
.page-embed { margin: 2rem 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.page-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.page-video video { display: block; max-width: 100%; max-height: 440px; }
.page-ad { margin: 2rem 0; min-height: 1px; }
.page-cta { display: inline-block; margin: .6rem 0; text-decoration: none; }
.page-quote { border-left: 2px solid var(--gold); padding-left: 1.2rem; margin: 1.6rem 0; color: var(--w8); font-style: italic; }
.page-article { overflow-wrap: anywhere; }

/* Runs of consecutive photos sit side by side (e.g. the office photos). */
.page-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 2.4rem;
}
.page-gallery .page-fig { margin: 0; width: auto; }
.page-gallery .page-fig img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; }

/* Road Show: venue photo cards, as on the WordPress page. */
.expo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}
.expo-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg3);
  text-decoration: none;
  color: inherit;
  transition: border-color .3s, transform .3s;
}
.expo-card:hover { border-color: var(--border-g); transform: translateY(-3px); }
.expo-img { aspect-ratio: 4 / 3; overflow: hidden; }
.expo-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.expo-card:hover .expo-img img { transform: scale(1.04); }
.expo-body { padding: 1.3rem 1.4rem 1.5rem; }
.expo-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--w); line-height: 1.25; }
.expo-body p { font-size: .82rem; color: var(--w5); margin-top: .35rem; }
.expo-more { display: inline-block; margin-top: .9rem; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* Social Showcase: the Instagram grid the WordPress plugin rendered. */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}
.ig-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg3);
  text-decoration: none;
  color: inherit;
  transition: border-color .3s;
}
.ig-tile:hover { border-color: var(--border-g); }
.ig-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.ig-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.ig-tile:hover .ig-img img { transform: scale(1.04); }
.ig-badge {
  position: absolute; top: .7rem; right: .7rem;
  padding: .25rem .6rem; border-radius: 100px;
  background: rgba(9,9,13,.7); color: var(--w);
  font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
}
.ig-meta { padding: .9rem 1rem 1.1rem; }
.ig-meta span { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ig-meta p { font-size: .8rem; line-height: 1.6; color: var(--w8); margin-top: .35rem; }
@media (max-width: 640px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .ig-meta { padding: .6rem .7rem .8rem; }
  .ig-meta p { font-size: .72rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Blog index + category archives: card grid, as WordPress showed them. */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.6rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg3);
  text-decoration: none;
  color: inherit;
  transition: border-color .3s, transform .3s;
}
.blog-card:hover { border-color: var(--border-g); transform: translateY(-3px); }
.blog-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg2); display: flex; align-items: center; justify-content: center; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-ph { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--gold); opacity: .5; letter-spacing: .08em; }
.blog-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.blog-card-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; line-height: 1.25; color: var(--w); margin: .55rem 0 .6rem; }
.blog-card-body p { font-size: .82rem; font-weight: 300; line-height: 1.7; color: var(--w5); flex: 1; }
.blog-card-more { margin-top: 1rem; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 1.1rem; }
}
