/* H Capital — site stylesheet. Ported from the approved design (globals.css),
   with the framework imports removed and native form controls styled. */

:root {
  --background: #101112;
  --foreground: #e9e8e4;
  --primary: #c3ad7c;
  --muted-foreground: #a4a5a3;
  --border: #303131;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #c3ad7c;
  outline-offset: 5px;
}
::selection { background: #776541; color: white; }

.wrap { width: min(1280px, calc(100% - 112px)); margin: auto; }

.header {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.brand { font-family: Georgia, serif; font-size: 27px; letter-spacing: .14em; line-height: 1.2; }
.brand span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: .16em;
  color: #9d9e9a;
  margin-top: 9px;
}
nav.main-nav { display: flex; gap: 40px; font-size: 14px; }
nav.main-nav a[aria-current="page"] { color: var(--primary); }
nav a:hover, .text-link:hover { color: var(--primary); }

.eyebrow { font-size: 12px; letter-spacing: .17em; font-weight: 500; color: var(--primary); }

.hero { padding-top: 77px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 25px 0 58px;
}
h1, h2, h3, p { margin: 0; }
h1 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 4.05vw, 62px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.045em;
}
em { font-weight: 400; font-style: italic; color: #b8b7b0; }
h1 em { white-space: nowrap; }
.lede { max-width: 570px; color: #a7a8a5; font-size: 17px; line-height: 1.8; margin: 26px 0 32px; }
.button {
  display: inline-flex;
  gap: 48px;
  align-items: center;
  background: #c3ad7c;
  color: #101112;
  padding: 13px 20px;
  font-size: 14px;
  border: 0;
  cursor: pointer;
}
.button:hover { background: #d8c494; }
.hero-figure { position: relative; }
.chart { display: block; width: 100%; height: auto; }
.hero-figure .chart { transform: scale(1.05); }
.figure-caption {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: .14em;
  color: #82857f;
  margin-top: 10px;
}
.hero-foot {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 11px;
  letter-spacing: .13em;
  color: #898d89;
}

.section { padding: 76px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; gap: 24px; }
h2 { font: 400 38px/1.25 Georgia, serif; letter-spacing: -.025em; }
.eyebrow + h2 { margin-top: 12px; }
.text-link { font-size: 14px; color: #bdbcb6; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cover {
  border: 1px solid #37362f;
  background: #191a18;
  overflow: hidden;
  padding: 24px 22px 16px;
  transition: border-color .2s, transform .2s;
}
.cover-1 { background: #181c1f; border-color: #30383b; }
.cover-2 { background: #201e19; border-color: #39352b; }
.cover-top, .cover-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: .16em;
  color: #b6b2a6;
}
.cover-top > span:first-child { font-family: Georgia, serif; font-size: 14px; }
.cover .chart { margin: 10px 0 20px; }
.cover-bottom { border-top: 1px solid #ffffff15; padding-top: 13px; }
.cover-bottom > span:last-child { font-size: 20px; }
.research-card:hover .cover { border-color: #bba77b; transform: translateY(-3px); }
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 21px 0 13px;
  font-size: 12px;
  color: #868b87;
}
.status { color: #c1ad80; display: inline-flex; gap: 7px; align-items: center; }
.status:before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.published { color: #abc1ab; }
.research-card h3 { font: 400 24px/1.3 Georgia, serif; letter-spacing: -.01em; }
.research-card p { font-size: 14px; color: #929691; line-height: 1.7; margin-top: 12px; }
.proposal { display: block; font-size: 10px; color: #9d9277; letter-spacing: .09em; margin-top: 16px; }

.philosophy { background: #171818; border-top: 1px solid #292b29; border-bottom: 1px solid #292b29; padding: 76px 0; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.split h2 { font-size: 44px; }
.split p { color: #a6aaa4; max-width: 620px; margin-top: 24px; }
.section-head p { color: #959992; font-size: 14px; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); gap: 32px; padding-top: 30px; }
.process h3 { font-family: Georgia, serif; font-size: 23px; font-weight: 400; margin: 18px 0 10px; }
.process p, .journey p { font-size: 14px; color: #969b93; }

.journey { border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.journey > div > p { margin-top: 15px; }
.timeline { border-left: 1px solid #444236; padding-left: 33px; }
.timeline > div { position: relative; padding-bottom: 32px; }
.timeline > div:before {
  content: '';
  position: absolute;
  left: -38px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bba77b;
}
.timeline span { font-size: 11px; color: #bba77b; letter-spacing: .14em; }
.timeline h3 { font-weight: 400; font-size: 19px; margin: 7px 0; }

.closing { border-top: 1px solid var(--border); padding: 46px 0 65px; display: flex; justify-content: space-between; align-items: center; }
.closing a { color: var(--primary); font-size: 14px; }

footer { border-top: 1px solid var(--border); padding: 40px 0 25px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer p { font-size: 12px; color: #90958e; margin-top: 10px; }
footer .footer-links { display: flex; gap: 30px; font-size: 14px; }
.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #252725;
  margin-top: 14px;
  padding-top: 20px;
  font-size: 11px;
  color: #7f867d;
}

.skip { position: fixed; top: -100px; left: 0; background: #c3ad7c; color: black; padding: 10px; z-index: 50; }
.skip:focus { top: 0; }

.page-intro { padding: 60px 0 32px; }
.page-intro h1 { margin: 16px 0 20px; }
.page-intro p { max-width: 630px; color: #a1a69e; }

.library-controls {
  border-bottom: 1px solid var(--border);
  padding-bottom: 25px;
  margin-bottom: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.library-controls[hidden] { display: none; }
.library-controls input {
  background: #171918;
  border: 1px solid #393c37;
  padding: 10px 14px;
  color: #eee;
  min-width: 220px;
  flex: 1;
}
.library-controls select {
  background: #171918;
  border: 1px solid #393c37;
  padding: 10px 38px 10px 14px;
  color: #eee;
  min-width: 176px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a4a5a3' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; margin-top: 12px; }
.filters button {
  border: 1px solid #343731;
  color: #aeb2a8;
  padding: 7px 12px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.filters button.active { background: #c3ad7c; border-color: #c3ad7c; color: #101112; }
.result-count { font-size: 12px; color: #999e94; margin-bottom: 25px; }
.library-grid { padding-bottom: 85px; }
.empty { border: 1px solid var(--border); padding: 48px; text-align: center; }
.empty p { margin: 12px 0 24px; color: #a1a69e; }
[hidden] { display: none !important; }

.paper-header { padding: 50px 0 40px; border-bottom: 1px solid var(--border); }
.paper-header h1 { max-width: 900px; margin: 22px 0; font-size: 54px; }
.paper-header .lede { max-width: 800px; }
.paper-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: #a0a59a; }
.paper-body { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 60px; padding: 50px 0 85px; }
.paper-body aside {
  position: sticky;
  top: 30px;
  align-self: start;
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: #949b8e;
}
.paper-body article section {
  scroll-margin-top: 25px;
  padding-bottom: 34px;
  margin-bottom: 30px;
  border-bottom: 1px solid #292d26;
}
.paper-body h2 { font-size: 29px; margin-bottom: 16px; }
.paper-body p { color: #aeb3a6; overflow-wrap: break-word; }
.notice {
  padding: 16px 20px;
  border-left: 2px solid #bba77b;
  background: #1f211c;
  color: #c8c3b4;
  font-size: 14px;
  margin: 24px 0;
}
.paper-body iframe { width: 100%; min-height: 500px; border: 1px solid var(--border); }
.paper-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

@media (min-width: 1500px) {
  .hero { padding-top: 95px; }
  .hero-grid { padding-bottom: 80px; }
}
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  h1 em { white-space: normal; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; }
  .cards { gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover { padding: 16px; }
  .research-card h3 { font-size: 22px; }
  .paper-body { grid-template-columns: 170px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 94px; }
  .brand { font-size: 22px; }
  .brand span { font-size: 8px; max-width: 170px; line-height: 1.5; }
  nav.main-nav { gap: 18px; font-size: 13px; }
  .hero { padding-top: 43px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; padding-bottom: 25px; }
  .hero-figure { max-width: 470px; width: 100%; margin: auto; }
  .hero h1 { font-size: 43px; }
  .hero-foot { gap: 18px; font-size: 9px; }
  .hero-foot span:last-child { text-align: right; }
  .section { padding: 50px 0; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 31px; }
  .section-head .text-link { white-space: nowrap; font-size: 12px; }
  .cards { grid-template-columns: 1fr; gap: 36px; }
  .cover .chart { max-height: 230px; }
  .split, .journey { grid-template-columns: 1fr; gap: 28px; }
  .split h2 { font-size: 36px; }
  .philosophy { padding: 45px 0; }
  .process { grid-template-columns: 1fr 1fr; gap: 30px; }
  .section-head p { display: none; }
  .closing { align-items: start; gap: 22px; flex-direction: column; }
  .footer-bottom { gap: 14px; flex-direction: column; }
  .paper-header h1 { font-size: 40px; }
  .paper-body { grid-template-columns: 1fr; gap: 30px; }
  .paper-body aside { position: static; display: flex; flex-wrap: wrap; gap: 10px 18px; }
  .library-controls input { width: 100%; }
  .library-controls select { width: 100%; }
  h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.paper-eyebrow { margin-top: 32px; }
