/* Shared design for the homepage and the three service pages. Load after page styles. */
body.site-theme {
  --paper: #f8f5ef;
  --ink: #25342d;
  --muted: #505b53;
  --line: rgba(37, 52, 45, .17);
  --red: #914538;
  --radius: 12px;
  background: var(--paper);
}
body.site-theme::before { display: none; }
header { background: transparent; border-bottom: 1px solid var(--line); }
.nav { padding: 20px 0; }
.brand strong { font-family: Inter, system-ui, sans-serif; text-transform: none; letter-spacing: -.5px; font-size: 22px; line-height: 1.5; }
nav a { border: 0; background: none; text-transform: none; font-family: inherit; letter-spacing: 0; font-size: 13px; }
nav a:hover { text-decoration: underline; }
.card { border: 1px solid var(--line); background: #fffdf9; box-shadow: none; }
.hero { padding-top: 40px; }
.hero-grid { grid-template-columns: 1fr; gap: 28px; }
.hero-main { padding: 0; border: 0; background: none; overflow: visible; }
.hero-main::before { display: none; }
.headline { padding: 0; margin: 0; border: 0; }
.hero-top { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero-intro { margin: 0 0 18px; font-size: 20px; font-weight: 600; color: var(--red); }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 4.5vw, 56px); font-weight: 400; line-height: 1.08; letter-spacing: -1.5px; text-transform: none; text-shadow: none; color: var(--ink); }
.hero-lede { margin-top: 24px; font-size: 17px; line-height: 1.7; }
.hero-personal { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.hero-text .cta-row { margin-top: 26px; gap: 10px; }
.btn { border: 1px solid var(--ink); border-radius: 8px; box-shadow: none; font-family: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; padding: 13px 16px; background: transparent; }
.btn.primary { color: white; background: #315747; border-color: #315747; }
.btn:hover { box-shadow: none; transform: none; background: #e8e7de; filter: none; }
.btn.primary:hover { background: #244436; }
.hero-portrait { margin: 0; min-width: 0; }
.hero-photo-wrap { width: 100%; height: auto; aspect-ratio: 4 / 4.5; border: 0; border-radius: 12px; box-shadow: none; }
.hero-photo { border-radius: 0; object-position: center top; }
.hero-portrait figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.foundation-note { margin: 28px 0 0; padding: 18px 0; border-width: 1px 0; border-radius: 0; background: none; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.foundation-note strong { margin: 0; font-family: inherit; text-transform: none; letter-spacing: 0; }
.foundation-details { gap: 6px 18px; }
.foundation-details span { padding: 0; border: 0; background: none; }
.hero-side { padding: 0; border: 0; background: none; }
.quick { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quick .item { padding: 0; border: 0; background: none; }
.quick .item strong { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 15px; }
.quick .item span { line-height: 1.65; }
section { padding: 32px 0; }
.section-title { border-bottom-width: 1px; padding-bottom: 14px; margin-bottom: 20px; }
h2, h3 { font-family: inherit; text-transform: none; letter-spacing: -.3px; }
h2 { font-size: 23px; }
h3 { font-size: 17px; }
.block { padding: 22px; }
.block > p { line-height: 1.7; }
.tag { border: 0; border-radius: 4px; font-family: inherit; text-transform: none; letter-spacing: 0; background: #efeee7; }
.review-panel { border: 1px solid var(--line); box-shadow: none; }
.proof-evidence { border-width: 1px; background: #edf0e9; }
.callout { border-width: 1px; background: #edf0e9; }
footer { border-top-width: 1px; }
@media (max-width: 920px) {
  .hero-top { gap: 28px; }
  .hero-text .cta-row { margin-bottom: 0; }
  .hero-lede { font-size: 16px; }
  .section-title { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .nav { padding: 16px 0; }
  .hero { padding-top: 24px; }
  .hero-top { grid-template-columns: 1fr; gap: 24px; }
  .hero-portrait { grid-row: 1; }
  .hero-photo-wrap { aspect-ratio: 4 / 3; }
  .hero-intro { margin-bottom: 12px; font-size: 18px; }
  h1 { font-size: 40px; }
  .hero-lede { margin-top: 18px; }
  .quick { grid-template-columns: 1fr; gap: 22px; }
  .hero-grid { gap: 22px; }
  .foundation-note { margin-top: 24px; }
  section { padding: 24px 0; }
}

/* One masthead and navigation across all four destinations. */
body.site-theme { --max: 1080px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand span { color: var(--muted); font-size: 12px; }
nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; padding: 0; margin: 0; list-style: none; }
nav li { margin: 0; }
nav a { display: inline-block; padding: 11px 9px; line-height: 1.4; color: var(--ink); border-radius: 6px; font-weight: 500; }
nav a[aria-current="page"] { background: #e8e7de; font-weight: 700; }
a:focus-visible, summary:focus-visible { outline: 3px solid #315747; outline-offset: 3px; }
.footer-navigation { padding-top: 20px; }
.footer-navigation nav ul { justify-content: flex-start; }
.hero-top > * { min-width: 0; }
.hero-text > p:not(.hero-intro) { color: var(--muted); line-height: 1.7; }
.hero-intro { font-family: inherit; text-transform: none; letter-spacing: 0; }
.page-ai blockquote { margin: 0 0 24px; padding: 0 0 0 20px; border-left: 3px solid #315747; color: var(--muted); }
.page-ai blockquote cite { font-size: 13px; }

/* The archive keeps its examples and process within the shared visual style. */
.page-archives h1 { max-width: none; }
.page-archives .hero-copy { padding: 0; overflow: visible; }
.page-archives .hero-copy::before { display: none; }
.page-archives .hero-photo { height: 100%; }
.page-archives .fit-card { padding: 24px; background: #edf0e9; border-color: var(--line); }
.page-archives .check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.page-archives .check-list li { border-top-width: 1px; font-size: 14px; }
.page-archives .kicker, .page-archives .eyebrow, .page-archives .case-label,
.page-archives .from-to strong, .page-archives .faq-list summary { font-family: inherit; text-transform: none; letter-spacing: 0; }
.page-archives .promise, .page-archives .selected-work, .page-archives .why-section { border-width: 1px 0; background: #edf0e9; }
.page-archives .outcome-card::before { height: 3px; }
.page-archives .outcome-number { color: #315747; font: 600 28px/1 Georgia, serif; }
.page-archives .from-to > div { border-width: 1px; border-radius: 8px; background: var(--paper); }
.page-archives .archive-figure, .page-archives .experience-image-main { transform: none; }
.page-archives .archive-figure img, .page-archives .experience-image img { border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.page-archives .case-study, .page-archives .process-step, .page-archives .case-note,
.page-archives .faq-list details { box-shadow: none; }
.page-archives .case-note blockquote { font: 500 22px/1.5 Georgia, serif; }
.page-archives .contact-card { background: #edf0e9; border-color: var(--line); }
.page-archives .contact-card .cta-row { min-width: 0; }
.page-archives .back-link { font-family: inherit; text-transform: none; }

/* Berkeley remains a short landing page for printed flyers. */
.page-berkeley main { padding: 0 0 32px; }
.page-berkeley .panel { padding: 40px 0 32px; }
.page-berkeley .subhead { font-size: 17px; margin-top: 28px; }
.page-berkeley ul[aria-label="Common issues"] { padding-left: 0; font-size: 16px; line-height: 1.8; }
.page-berkeley .star { color: #315747; }
.page-berkeley .cred { margin-top: 24px; }
.page-berkeley footer { padding-top: 24px; }
.page-berkeley .footer-navigation { padding-left: 0; padding-right: 0; }

@media (max-width: 1040px) {
  .nav { align-items: flex-start; flex-direction: column; gap: 10px; }
  nav ul { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .page-archives .check-list { grid-template-columns: 1fr; }
  .page-berkeley .panel { padding-top: 24px; }
  .page-archives .hero-copy { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
