/* pages.css — styles for the content pages (location, service, journal) and the
   expanded footer. Built only on the tokens + vocabulary already in styles.css
   (--ink, --ink-faint, --ink-line, --accent, --serif, --sans) so new pages read
   as native to the original editorial design. */

/* ─── Content pages ───────────────────────────────────── */
/* Eyebrow above the title — same treatment as .meta-line. */
.page-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 clamp(20px, 2.5vw, 30px);
}

/* Reuses .project-title for the H1 and .project-body for prose (see styles.css). */
.content-section { margin-top: clamp(48px, 6vw, 84px); }

.content-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 clamp(16px, 2vw, 26px);
}

/* Inline prose links — the site's quiet underline that warms to the accent. */
.project-body a {
  border-bottom: 1px solid var(--ink-line);
  transition: border-color 320ms ease, color 320ms ease;
}
.project-body a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Simple area/related lists. */
.inline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.inline-list a {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.25s ease;
}
.inline-list a:hover { color: var(--accent); }

/* ─── FAQ ─────────────────────────────────────────────── */
.faq { margin-top: clamp(56px, 7vw, 88px); max-width: 60ch; }
.faq-item { border-top: 1px solid var(--ink-line); padding: clamp(18px, 2.2vw, 24px) 0; }
.faq-item:last-child { border-bottom: 1px solid var(--ink-line); }
.faq-q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.faq-a {
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft, rgba(26,22,18,0.8));
  margin: 10px 0 0;
}

/* Closing line — reuses .contact-line treatment from styles.css. */
.page-close { margin-top: clamp(56px, 8vw, 96px); }

/* ─── Card list (portfolio / journal indexes) ─────────── */
.entry-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-line); }
.entry {
  display: block;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--ink-line);
}
.entry h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 6px;
  transition: color 0.25s ease;
}
.entry:hover h2 { color: var(--accent); }
.entry .entry-meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.entry .entry-sub {
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft, rgba(26,22,18,0.8));
  margin: 8px 0 0;
  max-width: 60ch;
}

/* ─── Expanded footer (link columns above the existing bar) ─ */
footer.site {
  flex-direction: column;
  align-items: stretch;
  gap: clamp(36px, 5vw, 60px);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 56px);
}
/* Each column is a native <details> disclosure — click the head to drop down. */
.footer-col { min-width: 0; }
.footer-head {
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  user-select: none;
  transition: color 0.25s ease;
}
.footer-head::-webkit-details-marker { display: none; }
.footer-head:hover { color: var(--accent); }
/* Chevron — points down when closed, up when open. */
.footer-head::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.25s ease;
  opacity: 0.5;
}
.footer-col[open] .footer-head::after { transform: translateY(2px) rotate(-135deg); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
}
.footer-col[open] .footer-links { animation: footerDrop 0.25s ease; }
@keyframes footerDrop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.footer-link {
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.2em;
  transition: color 0.25s ease;
}
.footer-col .footer-link:hover { color: var(--accent); }
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--ink-line);
  padding-top: clamp(24px, 3vw, 36px);
}

@media (max-width: 760px) {
  .footer-bar { flex-direction: column; gap: 14px; text-align: center; }
  .footer-bar .footer-left { align-items: center; }
}

/* ─── Journal posts (markdown collection) ─────────────── */
.post-title {
  font-style: normal;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
}
.post-hero { margin: 0 0 clamp(28px, 4vw, 48px); }
.post-hero img {
  width: 100%;
  height: clamp(240px, 38vw, 460px);
  object-fit: cover;
  display: block;
}
.post-credit {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-top: 8px;
}
.post-credit a { border-bottom: 1px solid var(--ink-line); }
.post-credit a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Markdown body inside .project-body — match the content-section vocabulary. */
.post-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.08;
  color: var(--ink);
  margin: clamp(40px, 5vw, 68px) 0 clamp(14px, 1.6vw, 22px);
}
.post-body h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  margin: clamp(28px, 3vw, 40px) 0 0.4em;
  color: var(--ink);
}
.post-body ul { padding-left: 1.1em; margin: 0 0 1.35em; }
.post-body li { margin: 0.3em 0; }

/* Journal index image cards. */
.entry-img {
  margin: 0 0 1em;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.04);
}
.entry-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.entry:hover .entry-img img { transform: scale(1.03); }
