/* site.css — extends styles.css for the multi-page build.
   Reuses the existing tokens; defines only what the new templates need. */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------- page heads */

.pagehead {
  position: relative;
  background: var(--black);
  color: var(--ivory);
  padding: calc(var(--header-height) + clamp(3.5rem, 7vw, 6.5rem)) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.pagehead h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  max-width: 18ch;
}

.pagehead h1 em { font-style: italic; color: var(--gold-light); }

.pagehead-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.72);
  max-width: 58ch;
  margin: 0;
}

/* ---------------------------------------------------------- ventures */

.venture-detail {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.venture-detail:first-child { border-top: 0; padding-top: 0; }

.venture-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: 1.8rem;
}

.venture-detail h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0.35rem 0 0.5rem;
  color: var(--ink);
}

.venture-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-dark);
  margin: 0;
}

.venture-detail-meta { display: grid; gap: 0.75rem; }

.venture-detail-meta p {
  margin: 0;
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.venture-detail-meta span {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.venture-detail-meta strong { font-size: 0.95rem; font-weight: 500; color: var(--ink); }

.venture-detail-body {
  max-width: 68ch;
  margin-bottom: 2rem;
}

.venture-detail-body p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.venture-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 2rem;
}

.venture-facts-grid div {
  padding: 1rem 1.25rem 1rem 0;
  border-bottom: 1px solid var(--line);
}

.venture-facts-grid dt {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.venture-facts-grid dd { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink); }

/* ---------------------------------------------------------- search */

.search-section { padding-bottom: 0; }

.searchbar { position: relative; max-width: 620px; }

.searchbar input {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.searchbar input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(186, 132, 61, 0.14);
}

.searchbar input::placeholder { color: var(--muted); }

.search-status {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.2em;
}

.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.topic-chip {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.topic-chip:hover { border-color: var(--gold); color: var(--gold-dark); }

.topic-chip.is-active {
  background: var(--black);
  border-color: var(--black);
  color: var(--ivory);
}

/* ---------------------------------------------------------- article list */

.article-list-section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }

.article-row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}

.article-row:last-child { border-bottom: 1px solid var(--line); }

.article-row[hidden] { display: none; }

.article-row-meta { display: grid; gap: 0.4rem; align-content: start; }

.article-topic {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

.article-row-meta time { font-size: 0.82rem; color: var(--muted); }

.article-row-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.article-row-copy h2 a { color: var(--ink); text-decoration: none; transition: color var(--transition); }
.article-row-copy h2 a:hover { color: var(--gold-dark); }

.article-row-copy p { margin: 0 0 0.9rem; color: var(--muted); line-height: 1.7; max-width: 62ch; }

.no-results { margin-top: 2rem; color: var(--muted); }

.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--gold-dark); font: inherit; text-decoration: underline;
}

/* ---------------------------------------------------------- article page */

.articlehead {
  position: relative;
  background: var(--black);
  color: var(--ivory);
  padding: calc(var(--header-height) + clamp(3.5rem, 7vw, 6rem)) 0 clamp(2.75rem, 5vw, 4rem);
  overflow: hidden;
}

.articlehead-inner { max-width: 820px; }

.articlehead h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}

.article-dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.76);
  margin: 0 0 1.5rem;
  max-width: 54ch;
}

.article-byline {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  margin: 0;
}

.article-body {
  max-width: 720px;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.article-body p {
  font-size: 1.09rem;
  line-height: 1.82;
  color: var(--ink);
  margin: 0 0 1.35rem;
}

.article-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.6rem 0 0.9rem;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.6rem;
  border-left: 3px solid var(--gold);
}

.article-body blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}

.article-foot {
  max-width: 720px;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.article-cta {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
  margin-bottom: 2rem;
}

.article-cta p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
.article-cta a { color: var(--gold-dark); }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.article-nav-item {
  display: grid;
  gap: 0.4rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.article-nav-item:hover { border-color: var(--gold); background: var(--ivory-soft); }

.article-nav-next { text-align: right; }

.article-nav-item span {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

.article-nav-item strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink);
}

/* ---------------------------------------------------------- latest / news */

.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}

.latest-card {
  background: var(--ivory-soft);
  padding: clamp(1.6rem, 2.5vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.latest-meta {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 0;
}

.latest-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0;
}

.latest-card h3 a { color: var(--ink); text-decoration: none; }
.latest-card h3 a:hover { color: var(--gold-dark); }
.latest-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

.center-link { margin-top: 2.5rem; }

.news-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}

.news-row:last-child { border-bottom: 1px solid var(--line); }
.news-row-meta { display: grid; gap: 0.4rem; align-content: start; }
.news-row-meta time { font-size: 0.82rem; color: var(--muted); }

.news-row-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

.news-row-copy h2 a { color: var(--ink); text-decoration: none; }
.news-row-copy h2 a:hover { color: var(--gold-dark); }
.news-row-copy p { margin: 0 0 0.9rem; color: var(--muted); line-height: 1.7; max-width: 62ch; }

/* ---------------------------------------------------------- elsewhere */

.elsewhere-section { background: var(--black); color: var(--ivory); }
.elsewhere-section .section-heading h2 { color: var(--ivory); }
.elsewhere-section .section-heading > p { color: rgba(245, 241, 232, 0.62); }

.elsewhere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 3rem;
}

.elsewhere-card {
  background: var(--black);
  border: 1px solid var(--line-light);
  padding: clamp(1.6rem, 2.5vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.elsewhere-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0;
  color: var(--ivory);
}

.elsewhere-card p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: rgba(245, 241, 232, 0.6); }

.elsewhere-card a {
  margin-top: auto;
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.elsewhere-card a:hover { color: var(--ivory); }

/* ---------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-card {
  border-top: 2px solid var(--gold);
  padding-top: 1.5rem;
}

.contact-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 1.2rem;
  color: var(--ink);
}

.contact-note { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin: 0 0 1.2rem; }

.contact-line {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.contact-line span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.contact-line a, .contact-line strong {
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}

.contact-line a:hover { color: var(--gold-dark); }

/* ---------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .venture-detail-head { grid-template-columns: minmax(0, 1fr); }
  .article-row, .news-row { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .article-row-meta, .news-row-meta { grid-auto-flow: column; justify-content: start; gap: 0.9rem; align-items: center; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .topic-chip, .searchbar input, .article-nav-item { transition: none; }
}

/* The homepage grid was authored for three venture cards; there are now four.
   Two-by-two keeps the block balanced instead of orphaning the fourth. */
.ventures-section .venture-grid { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 760px) {
  .ventures-section .venture-grid { grid-template-columns: minmax(0, 1fr); }
}
