/* Tara Research — shared stylesheet
   Modern Swiss minimalist: restrained, typographic, monochrome + one accent. */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --muted: #6b6b66;
  --rule: #e3e1da;
  --accent: #b4451f; /* burnt sienna — used very sparingly */
  --max: 1200px;
  --gutter: 32px;
  --measure: 64ch;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Inter", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Typography ------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  letter-spacing: -0.03em;
  font-weight: 450;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  font-weight: 500;
}

h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  font-weight: 500;
}

p { margin: 0; }

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 160ms ease, color 160ms ease;
}

a:hover { border-bottom-color: var(--ink); }

a.plain { border-bottom: none; }
a.plain:hover { color: var(--accent); }

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.muted { color: var(--muted); }

/* Layout ----------------------------------------------------------------- */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 96px 0; }
section + section { border-top: 1px solid var(--rule); }

@media (max-width: 720px) {
  section { padding: 64px 0; }
  :root { --gutter: 22px; }
}

/* Navigation ------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 16px;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  border-bottom: none;
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 1px;
  background: var(--ink);
}

@media (max-width: 640px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  padding: 140px 0 120px;
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 36px;
}

.hero .lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  letter-spacing: -0.005em;
}

@media (max-width: 720px) {
  .hero { padding: 80px 0 64px; }
}

/* Grids ------------------------------------------------------------------ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.two-col-tight {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 880px) {
  .two-col, .two-col-tight {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 200ms ease, transform 200ms ease;
}

.card:hover {
  border-color: var(--ink-2);
}

.card .eyebrow { margin-bottom: 4px; }

.card h3 { letter-spacing: -0.02em; }

.card p { color: var(--ink-2); }

/* Lists ------------------------------------------------------------------ */

.list-rows {
  display: flex;
  flex-direction: column;
}

.row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}

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

.row .meta {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.row .title {
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.row .title .sub {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0;
}

.row .link {
  font-size: 13px;
  color: var(--muted);
  border-bottom: none;
  white-space: nowrap;
}

.row .link:hover { color: var(--accent); }

@media (max-width: 720px) {
  .row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .row .link { justify-self: start; }
}

/* People ----------------------------------------------------------------- */

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.person {
  padding: 36px 36px 36px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.person:nth-child(2n) { border-right: none; padding-right: 0; padding-left: 36px; }
.person:nth-child(2n+1) { padding-left: 0; }

.person h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.person .role {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.person p { color: var(--ink-2); margin-bottom: 14px; }

.person .links {
  display: flex;
  gap: 18px;
  font-size: 13px;
}

.person .links a {
  border-bottom: none;
  color: var(--muted);
}

.person .links a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .people { grid-template-columns: 1fr; }
  .person, .person:nth-child(2n) {
    padding: 28px 0;
    border-right: none;
  }
}

/* Stream block (research streams) --------------------------------------- */

.stream {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  padding: 72px 0;
  border-top: 1px solid var(--rule);
}

.stream:last-of-type { border-bottom: 1px solid var(--rule); }

.stream .num {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.stream h2 {
  margin-bottom: 16px;
  max-width: 14ch;
}

.stream .body p {
  color: var(--ink-2);
  margin-bottom: 18px;
  max-width: var(--measure);
}

.stream .body p:last-child { margin-bottom: 0; }

@media (max-width: 880px) {
  .stream {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }
}

/* Pull quote / accent line ---------------------------------------------- */

.pull {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
  max-width: 28ch;
  font-weight: 450;
}

.pull em {
  font-style: normal;
  color: var(--accent);
}

/* Footer ----------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 64px;
  color: var(--muted);
  font-size: 13px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
}

footer a { color: var(--muted); border-bottom: none; }
footer a:hover { color: var(--ink); }

footer .meta {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Contact form ---------------------------------------------------------- */

.contact-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 10px;
  letter-spacing: -0.005em;
  outline: none;
  resize: vertical;
  transition: border-color 160ms ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-bottom-color: var(--ink);
}

.form-row textarea {
  min-height: 96px;
  line-height: 1.55;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 14px 22px;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.contact-form button:hover {
  background: var(--accent);
}

.contact-form button:active {
  transform: translateY(1px);
}

/* Page header (sub-pages) ----------------------------------------------- */

.page-header {
  padding: 96px 0 56px;
}

.page-header .eyebrow { margin-bottom: 20px; display: inline-block; }

.page-header h1 {
  font-size: clamp(36px, 4.8vw, 60px);
  margin-bottom: 24px;
  max-width: 22ch;
}

.page-header .lede {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .page-header { padding: 56px 0 32px; }
}
