/* Memo & Espresso: layout modeled on an institutional insights page, in espresso tones.
   White page, photo-style banner, tracked small-caps tabs, 3-column card grid. */
:root {
  --bg: #f9f5f2;         /* cream (from the Espresso swatch) */
  --surface: #f0e6dd;    /* latte */
  --text: #2a1409;       /* deep espresso, for body text */
  --muted: #7d5b48;      /* mocha */
  --line: #e7d9cd;
  --accent: #57240d;     /* Espresso swatch */
  --banner: #57240d;     /* Espresso swatch */
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.logo { font-family: var(--serif); font-size: 24px; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }
.header-right { justify-self: end; }
.header-right a { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.header-right a:hover { color: var(--text); }

/* Banner */
.banner { position: relative; color: #fff; text-align: center; background:
  radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.08), transparent 55%),
  linear-gradient(160deg, #6a2e12 0%, var(--banner) 60%, #3d1909 100%); }
.banner.photo { background:
  linear-gradient(180deg, rgba(87,36,13,.35) 0%, rgba(42,20,9,.25) 45%, rgba(87,36,13,.75) 100%),
  url("/images/insights-banner.jpg") center 60% / cover no-repeat; }
.banner.about-photo { min-height: clamp(220px, 34vw, 440px); background:
  linear-gradient(180deg, rgba(87,36,13,.10) 0%, rgba(87,36,13,.35) 100%),
  url("/images/about-banner.jpg") center 8% / cover no-repeat; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.banner .container { padding-top: 96px; padding-bottom: 96px; }
.banner h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 88px); line-height: 1.05; margin: 0 0 12px; }
.banner p { margin: 0 auto 28px; max-width: 34em; color: rgba(255,255,255,.82); font-size: 18px; }
.btn { display: inline-block; background: var(--bg); color: var(--banner); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 14px 28px; border: 0; cursor: pointer; }
.btn:hover { background: var(--surface); }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 40px; border-bottom: 3px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-top: 40px; }
.tabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -3px; padding: 16px 4px; font: 600 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

/* Card grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; padding-top: 48px; }
.card a { text-decoration: none; display: block; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); background: var(--surface); }
.card .label { margin: 20px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card time { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card h2 { font-family: var(--sans); font-weight: 400; font-size: 21px; line-height: 1.35; margin: 14px 0 14px; }
.card .read { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.card a:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.empty { color: var(--muted); text-align: center; padding: 48px 0; grid-column: 1 / -1; }

/* Article */
.article-head { background: var(--banner); color: #fff; }
.article-head .container { max-width: 860px; padding-top: 72px; padding-bottom: 64px; }
.article-head .label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f0d2b8; margin: 0 0 16px; }
.article-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.15; margin: 0 0 18px; }
.article-head .byline { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.prose { max-width: 760px; margin: 0 auto; padding-top: 48px; }
.prose img { margin: 0 0 40px; border: 1px solid var(--line); }
.prose p, .prose li { font-size: 19px; line-height: 1.75; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.25; margin: 1.6em 0 .6em; }
.prose ol, .prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.back { max-width: 760px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
.back a { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }

/* About */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 64px; padding-top: 72px; max-width: 1000px; }
.about img { width: 280px; aspect-ratio: 1; object-fit: cover; }
.about h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 20px; }
.about p { font-size: 19px; line-height: 1.75; margin: 0 0 1.1em; max-width: 36em; }
.about .contact { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.about .contact a { text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 3px; margin-right: 24px; }

/* Footer */
.site-footer { margin-top: 112px; background: var(--banner); }
.site-footer a:hover { color: #fff !important; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: #ead6c6; }
.site-footer a { text-decoration: none; margin-left: 24px; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .site-header .container { grid-template-columns: 1fr auto; height: auto; padding-top: 14px; padding-bottom: 14px; row-gap: 8px; }
  .logo { grid-column: 1; grid-row: 1; font-size: 21px; }
  .header-right { grid-column: 2; grid-row: 1; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; }
  .grid { grid-template-columns: 1fr; gap: 44px; }
  .tabs { justify-content: flex-start; gap: 28px; }
  .banner .container { padding-top: 64px; padding-bottom: 64px; }
  .about { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .about img { width: 180px; }
  .site-footer a { margin: 0 24px 0 0; }
}

/* Home: full-screen video hero */
.hero-video { position: relative; min-height: calc(100svh - 72px); display: flex; align-items: center; overflow: hidden; background: var(--banner) url("/images/home-poster.jpg") center / cover no-repeat; color: #fff; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(42,20,9,.20) 0%, rgba(42,20,9,.10) 40%, rgba(87,36,13,.65) 100%); }
.hero-content blockquote footer { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.hero-content cite { font-style: normal; }
.hero-content { position: relative; text-align: center; padding-top: 80px; padding-bottom: 80px; }
.hero-content blockquote { margin: 0 auto 36px; max-width: 860px; }
.hero-content blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.35; margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,.45); text-wrap: balance; }
.home .site-footer { margin-top: 0; }
@media (max-width: 640px) { .hero-video { min-height: 78svh; } }
