/* ==========================================================================
   VENTUREITALICA — BASE
   Reset, typography, prose, tables, forms.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--vi-header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--vi-font-text);
  font-size: var(--vi-size-body);
  line-height: var(--vi-lh-body);
  letter-spacing: var(--vi-track-body);
  color: var(--vi-ink);
  background: var(--vi-paper);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.vi-nav-open { overflow: hidden; }

img, svg, video, canvas, picture { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }

hr {
  border: 0;
  border-top: 1px solid var(--vi-rule);
  margin: var(--vi-s8) 0;
}

::selection { background: var(--vi-verdigris); color: #fff; }

/* --------------------------------------------------------------------------
   HEADINGS — the didone voice of the institution
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .vi-display-1, .vi-display-2, .vi-display-3 {
  font-family: var(--vi-font-heading);
  font-weight: 700;
  font-style: normal;
  line-height: var(--vi-lh-heading);
  letter-spacing: var(--vi-track-heading);
  color: var(--vi-ink);
  margin: 0 0 var(--vi-s4);
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}

/* Display sizes take the Caslon display cut, which is drawn for large
   settings and carries a single roman weight. */
.vi-display-1,
.vi-display-2,
.vi-display-3 {
  font-family: var(--vi-font-display);
  font-weight: 400;
  letter-spacing: var(--vi-track-display);
}
.vi-display-1 { font-size: var(--vi-size-display-1); line-height: var(--vi-lh-display); }
.vi-display-2 { font-size: var(--vi-size-display-2); line-height: var(--vi-lh-display); }
.vi-display-3 { font-size: var(--vi-size-display-3); line-height: 1.12; }

h1 { font-size: var(--vi-size-h1); }
h2 { font-size: var(--vi-size-h2); margin-top: var(--vi-s9); }
h3 { font-size: var(--vi-size-h3); margin-top: var(--vi-s7); }
h4 { font-size: var(--vi-size-h4); margin-top: var(--vi-s6); font-weight: 700; }
h5 { font-size: var(--vi-size-h5); margin-top: var(--vi-s5); font-weight: 700; font-family: var(--vi-font-text); letter-spacing: var(--vi-track-caps); }
h6 {
  font-family: var(--vi-font-text);
  font-size: var(--vi-size-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--vi-track-eyebrow);
  color: var(--vi-ink-500);
  margin-top: var(--vi-s5);
}

h1:first-child, h2:first-child, h3:first-child, h4:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   TEXT
   -------------------------------------------------------------------------- */
p { margin: 0 0 var(--vi-s5); }
p:last-child { margin-bottom: 0; }

.vi-lede {
  font-size: var(--vi-size-lede);
  line-height: var(--vi-lh-lede);
  color: var(--vi-ink-700);
  font-weight: 400;
  letter-spacing: -0.008em;
  max-width: var(--vi-measure-wide);
}

.vi-eyebrow {
  display: block;
  font-family: var(--vi-font-text);
  font-size: var(--vi-size-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--vi-track-eyebrow);
  color: var(--vi-verdigris);
  margin: 0 0 var(--vi-s4);
}
.vi-eyebrow--rule {
  padding-bottom: var(--vi-s3);
  border-bottom: 2px solid var(--vi-verdigris);
  display: inline-block;
  margin-bottom: var(--vi-s5);
}
.vi-eyebrow--gold  { color: var(--vi-gold-700); }
.vi-eyebrow--rust  { color: var(--vi-rust); }
.vi-eyebrow--muted { color: var(--vi-ink-500); }

.vi-kicker {
  font-family: var(--vi-font-text);
  font-size: var(--vi-size-micro);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--vi-ink-400);
  font-weight: 500;
}

small, .vi-small { font-size: var(--vi-size-body-sm); color: var(--vi-ink-500); }
.vi-caption { font-size: var(--vi-size-caption); line-height: 1.5; color: var(--vi-ink-500); }
.vi-mono { font-family: var(--vi-font-text); font-variant-numeric: tabular-nums lining-nums; font-size: .92em; letter-spacing: 0; }
.vi-num  { font-family: var(--vi-font-text); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; }

strong, b { font-weight: 700; color: var(--vi-ink); }
/* The identity carries no italics. Emphasis is set in weight, not slope. */
em, i, cite, address, dfn, var { font-style: normal; }
em, i { font-weight: 600; }

abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

/* --------------------------------------------------------------------------
   LINKS
   -------------------------------------------------------------------------- */
a {
  color: var(--vi-verdigris);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--vi-dur-1) var(--vi-ease), background-size var(--vi-dur-2) var(--vi-ease);
}
a:hover { color: var(--vi-verdigris-800); text-decoration: underline; }

.vi-prose a,
a.vi-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  text-decoration: none;
  padding-bottom: 1px;
}
.vi-prose a:hover,
a.vi-link:hover { background-size: 100% 2px; text-decoration: none; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--vi-verdigris);
  outline-offset: 3px;
  border-radius: var(--vi-radius-1);
}

.vi-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--vi-verdigris); color: #fff;
  padding: var(--vi-s3) var(--vi-s5);
  z-index: var(--vi-z-toast); font-weight: 600;
}
.vi-skip:focus { left: var(--vi-s4); top: var(--vi-s4); }

/* --------------------------------------------------------------------------
   LISTS
   -------------------------------------------------------------------------- */
ul, ol { margin: 0 0 var(--vi-s5); padding-left: 1.35em; }
li { margin-bottom: var(--vi-s2); }
li > ul, li > ol { margin-top: var(--vi-s2); margin-bottom: var(--vi-s2); }

.vi-prose ul li::marker { color: var(--vi-verdigris); }
.vi-prose ol li::marker { color: var(--vi-verdigris); font-family: var(--vi-font-text); font-size: .9em; }

.vi-list-plain { list-style: none; padding: 0; margin: 0; }

.vi-list-rule {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--vi-rule);
}
.vi-list-rule > li {
  margin: 0;
  padding: var(--vi-s4) 0;
  border-bottom: 1px solid var(--vi-rule-light);
}

.vi-list-check { list-style: none; padding: 0; margin: 0 0 var(--vi-s5); }
.vi-list-check > li {
  position: relative; padding-left: 1.9em; margin-bottom: var(--vi-s3);
}
.vi-list-check > li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 1.05em; height: .52em;
  border-left: 2px solid var(--vi-verdigris);
  border-bottom: 2px solid var(--vi-verdigris);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   QUOTES
   -------------------------------------------------------------------------- */
blockquote {
  margin: var(--vi-s8) 0;
  padding: 0 0 0 var(--vi-s6);
  border-left: 3px solid var(--vi-crimson);
  font-family: var(--vi-font-heading);
  font-size: var(--vi-size-h3);
  line-height: 1.4;
  font-weight: 400;
  font-style: normal;
  color: var(--vi-ink);
}
blockquote cite {
  display: block;
  margin-top: var(--vi-s4);
  font-family: var(--vi-font-text);
  font-size: var(--vi-size-body-sm);
  font-style: normal;
  font-weight: 600;
  letter-spacing: var(--vi-track-caps);
  text-transform: uppercase;
  color: var(--vi-ink-500);
}

.vi-pullquote {
  margin: var(--vi-s9) 0;
  padding: var(--vi-s7) 0;
  border-top: 2px solid var(--vi-verdigris);
  border-bottom: 1px solid var(--vi-rule);
  font-family: var(--vi-font-heading);
  font-size: var(--vi-size-h2);
  line-height: 1.22;
  letter-spacing: -0.016em;
  color: var(--vi-verdigris-800);
  border-left: 0;
  font-style: normal;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   CODE
   -------------------------------------------------------------------------- */
code, kbd, samp {
  font-family: var(--vi-font-text);
  font-size: .875em;
  background: var(--vi-linen);
  padding: .15em .42em;
  border-radius: var(--vi-radius-2);
  border: 1px solid var(--vi-rule-light);
}
pre {
  font-family: var(--vi-font-text);
  font-size: var(--vi-size-body-sm);
  line-height: 1.6;
  background: var(--vi-verdigris-900);
  color: #E8E6DF;
  padding: var(--vi-s5) var(--vi-s6);
  border-radius: var(--vi-radius-2);
  overflow-x: auto;
  margin: var(--vi-s6) 0;
}
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

/* --------------------------------------------------------------------------
   TABLES — the research corpus is full of them
   -------------------------------------------------------------------------- */
.vi-table-wrap {
  overflow-x: auto;
  margin: var(--vi-s7) 0;
  border-top: 2px solid var(--vi-ink);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--vi-size-body-sm);
  font-variant-numeric: tabular-nums lining-nums;
}
thead th {
  text-align: left;
  font-family: var(--vi-font-text);
  font-size: var(--vi-size-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--vi-track-caps);
  color: var(--vi-ink-700);
  padding: var(--vi-s4) var(--vi-s4) var(--vi-s3);
  border-bottom: 1px solid var(--vi-rule);
  white-space: nowrap;
  vertical-align: bottom;
}
tbody td, tbody th {
  padding: var(--vi-s4);
  border-bottom: 1px solid var(--vi-rule-light);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}
tbody th { font-weight: 600; }
tbody tr:hover { background: var(--vi-linen); }
td.vi-num-cell, th.vi-num-cell { text-align: right; font-family: var(--vi-font-text); white-space: nowrap; }
caption {
  caption-side: bottom;
  text-align: left;
  padding-top: var(--vi-s4);
  font-size: var(--vi-size-caption);
  color: var(--vi-ink-500);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
input, select, textarea, button { font: inherit; color: inherit; }

label, .vi-label {
  display: block;
  font-size: var(--vi-size-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--vi-track-caps);
  color: var(--vi-ink-700);
  margin-bottom: var(--vi-s2);
}

input[type="text"], input[type="email"], input[type="search"],
input[type="number"], input[type="tel"], input[type="url"],
input[type="password"], input[type="date"], select, textarea {
  width: 100%;
  padding: .72rem .9rem;
  background: var(--vi-paper);
  border: 1px solid var(--vi-rule);
  border-radius: var(--vi-radius-2);
  font-size: var(--vi-size-body);
  transition: border-color var(--vi-dur-1) var(--vi-ease), box-shadow var(--vi-dur-1) var(--vi-ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--vi-verdigris);
  box-shadow: 0 0 0 3px var(--vi-verdigris-050);
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--vi-ink-300); }
textarea { min-height: 8rem; resize: vertical; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235B646F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

.vi-field { margin-bottom: var(--vi-s5); }
.vi-help { font-size: var(--vi-size-caption); color: var(--vi-ink-500); margin-top: var(--vi-s2); }

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.vi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .82rem 1.6rem;
  font-family: var(--vi-font-text);
  font-size: var(--vi-size-body-sm);
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--vi-radius-1);
  cursor: pointer;
  transition: background var(--vi-dur-1) var(--vi-ease),
              color var(--vi-dur-1) var(--vi-ease),
              border-color var(--vi-dur-1) var(--vi-ease),
              transform var(--vi-dur-1) var(--vi-ease);
  background: var(--vi-verdigris);
  color: #fff;
}
.vi-btn:hover { background: var(--vi-verdigris-800); color: #fff; text-decoration: none; transform: translateY(-1px); }
.vi-btn:active { transform: translateY(0); }

.vi-btn--outline { background: transparent; color: var(--vi-verdigris); border-color: var(--vi-verdigris); }
.vi-btn--outline:hover { background: var(--vi-verdigris); color: #fff; }

.vi-btn--ghost { background: transparent; color: var(--vi-ink); border-color: var(--vi-rule); }
.vi-btn--ghost:hover { background: var(--vi-linen); color: var(--vi-ink); border-color: var(--vi-ink-300); }

.vi-btn--gold { background: var(--vi-gold); color: var(--vi-ink); }
.vi-btn--gold:hover { background: var(--vi-gold-700); color: #fff; }

.vi-btn--light { background: #fff; color: var(--vi-verdigris-800); }
.vi-btn--light:hover { background: var(--vi-linen); color: var(--vi-verdigris-900); }

.vi-btn--lg { padding: 1.02rem 2.1rem; font-size: var(--vi-size-body); }
.vi-btn--sm { padding: .55rem 1.1rem; font-size: var(--vi-size-caption); }
.vi-btn--block { display: flex; width: 100%; }

.vi-btn[aria-disabled="true"], .vi-btn:disabled { opacity: .45; pointer-events: none; }

/* Text link with arrow — the Harvard "read more" idiom */
.vi-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 650;
  font-size: var(--vi-size-body-sm);
  letter-spacing: .01em;
  color: var(--vi-verdigris);
  text-decoration: none;
}
.vi-arrow-link::after {
  content: "";
  width: .82em; height: .82em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateX(-.1em);
  transition: transform var(--vi-dur-2) var(--vi-ease);
}
.vi-arrow-link:hover { text-decoration: none; color: var(--vi-verdigris-800); }
.vi-arrow-link:hover::after { transform: rotate(45deg) translateX(.15em); }

/* --------------------------------------------------------------------------
   PROSE — the research reading context
   -------------------------------------------------------------------------- */
.vi-prose { max-width: var(--vi-measure); font-size: 1.125rem; line-height: 1.72; }
.vi-prose > * + * { margin-top: var(--vi-s5); }
.vi-prose h2 { margin-top: var(--vi-s9); padding-top: var(--vi-s5); border-top: 1px solid var(--vi-rule); }
.vi-prose h3 { margin-top: var(--vi-s7); }
.vi-prose h4 { margin-top: var(--vi-s6); }
.vi-prose img { margin: var(--vi-s7) 0; }
.vi-prose > table, .vi-prose > .vi-table-wrap { max-width: none; }
.vi-prose--wide { max-width: var(--vi-measure-wide); }

/* Drop cap — used at the opening of research volumes */
.vi-dropcap::first-letter {
  float: left;
  font-family: var(--vi-font-display);
  font-size: 4.1em;
  line-height: .84;
  font-weight: 400;
  margin: .05em .1em 0 0;
  color: var(--vi-verdigris);
}

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.vi-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;
}
.vi-hide { display: none !important; }
.vi-text-center { text-align: center; }
.vi-text-right  { text-align: right; }
.vi-nowrap { white-space: nowrap; }
.vi-balance { text-wrap: balance; }
.vi-pretty { text-wrap: pretty; }
.vi-mt-0 { margin-top: 0 !important; }
.vi-mb-0 { margin-bottom: 0 !important; }
.vi-mb-4 { margin-bottom: var(--vi-s4) !important; }
.vi-mb-5 { margin-bottom: var(--vi-s5) !important; }
.vi-mb-6 { margin-bottom: var(--vi-s6) !important; }
.vi-mb-8 { margin-bottom: var(--vi-s8) !important; }
.vi-muted { color: var(--vi-ink-500); }
.vi-accent { color: var(--vi-verdigris); }
.vi-gold-text { color: var(--vi-gold-700); }
.vi-rust-text { color: var(--vi-rust); }
.vi-measure { max-width: var(--vi-measure); }
.vi-measure-narrow { max-width: var(--vi-measure-narrow); }
