/* ==========================================================
   Custom Fonts
   ========================================================== */

/* Edgar Light — body text */
@font-face {
  font-family: 'Edgar';
  src: url('fonts/Edgar-Light.woff2') format('woff2'),
       url('fonts/Edgar-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Edgar Regular */
@font-face {
  font-family: 'Edgar';
  src: url('fonts/Edgar-Regular.woff2') format('woff2'),
       url('fonts/Edgar-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Edgar Medium — logo */
@font-face {
  font-family: 'Edgar';
  src: url('fonts/Edgar-Medium.woff2') format('woff2'),
       url('fonts/Edgar-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Edgar Italic */
@font-face {
  font-family: 'Edgar';
  src: url('fonts/Edgar-Italic.woff2') format('woff2'),
       url('fonts/Edgar-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Die Grotesk — nav */
@font-face {
  font-family: 'Die Grotesk';
  src: url('fonts/die-grotesk-a-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Die Grotesk';
  src: url('fonts/die-grotesk-a-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================
   Reset & Base
   ========================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root #f4f4f4 so browser chrome (e.g. scrollbar area) is not black */
html {
  background: #fafafa;
  overflow-y: scroll;
  scrollbar-color: #bbb #f4f4f4;
  scrollbar-width: auto;
}

/* WebKit: scrollbar track and thumb */
html::-webkit-scrollbar {
  width: 16px; /* match common OS scrollbar width */
}
html::-webkit-scrollbar-track {
  background: #f4f4f4;
}
html::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 5px;
}

::selection {
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

/* Body is the only layout container; whole view scrolls natively */
body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  font-family: 'Edgar', Georgia, 'Times New Roman', serif;
  background: #fafafa;
  color: #000;
  display: flex;
  flex-direction: column;
}

/* Page surface for layout */
.page-surface {
  background: #fafafa;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
}

/* Index and PostTrainBench — light background */
.index-page .page-surface,
.benchmarks-page .page-surface {
  background: #fafafa;
}

.main {
  flex: 1;
}

/* ==========================================================
   Header
   ========================================================== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
}

.logo {
  font-family: 'Edgar', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 0.2em;
  color: #1a1a1a;
}

nav {
  display: flex;
  gap: 2.5rem;
}

nav a {
  font-family: 'Die Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #333;
  text-decoration: none;
}

nav a:hover {
  color: #000;
}

/* ==========================================================
   Divider
   ========================================================== */
.divider {
  width: 100%;
  /* height: 26px; */
  background: linear-gradient(to right, #F5F5F5, #F1F1F1);
  opacity: 0.66;
}

/* ==========================================================
   Content
   ========================================================== */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.content p {
  font-size: 32px;
  font-weight: 300;
  line-height: 135%;
  letter-spacing: -0.01em;
  color: #000;
  margin-bottom: 1.5em;
}

.content p:last-of-type {
  margin-bottom: 0;
}

.inline-link {
  color: #000;
  text-decoration: none;
  border-bottom: 1px dotted #999;
  padding-bottom: 1px;
}

.inline-link:hover {
  border-bottom-color: #000;
}

/* Footer: inline-link visible on dark background */
.site-footer .inline-link {
  color: #e5e5e5;
  border-bottom-color: #999;
}
.site-footer .inline-link:hover {
  border-bottom-color: #fff;
  color: #fff;
}

/* ==========================================================
   Footer
   ========================================================== */
footer {
  padding: 0 2.5rem 3rem;
}

/* Flexible black footer — full width, content at top, fill below */
.site-footer {
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding: 0;
}

.site-footer .footer-inner {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem calc(140px + env(safe-area-inset-bottom, 0px));
  margin-top: 2rem;
}

.site-footer .footer-fill {
  flex: 1;
  min-height: env(safe-area-inset-bottom, 0px);
  background: #000;
}

/* Light text on black footer */
.site-footer .footer-info p,
.site-footer .footer-links a,
.site-footer .footer-links .dot {
  color: #e5e5e5;
}

.site-footer .footer-info {
  padding-right: 72px;
}

.site-footer .footer-links a:hover {
  color: #fff;
}

.site-footer .footer-note a {
  color: #999;
}

.site-footer .footer-note a:hover {
  color: #bbb;
}

.footer-info p {
  font-family: 'Edgar', Georgia, serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.2;
  color: #1a1a1a;
  margin: 1px 0; /* use margin to space out colophon lines */
}

.footer-dash {
  margin: 0.4rem 0;
}

.footer-links {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a {
  font-family: 'Edgar', Georgia, serif;
  font-size: 20px;
  font-weight: 300;
  color: #1a1a1a;
  text-decoration: none;
}

.footer-links a:hover {
  color: #000;
}

.footer-links .dot {
  font-size: 20px;
  color: #1a1a1a;
}

/* ==========================================================
   Perspectives Page
   ========================================================== */

.perspectives-page {
  align-items: center;
}

/* Header — centered logo */
.perspectives-header {
  display: flex;
  justify-content: center;
  padding: 2rem 2.5rem;
  width: 100%;
}

.logo-centered {
  font-family: 'Edgar', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: #333;
  text-decoration: none;
}

/* Content — narrower, lighter, centered */
.perspectives-content {
  max-width: 720px;
  width: 100%;
  padding: 100px 2rem 2rem;
  margin: 0 auto; /* center the hero column within the viewport */
}

.perspectives-content p {
  font-family: 'Edgar', Georgia, serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: #1a1a1a;
  margin-bottom: 1.5em;
}

.perspectives-content p:last-child {
  margin-bottom: 0;
}

/* Index page — paragraph spacing */
.index-page .perspectives-content p {
  margin-bottom: 1lh;
}
.index-page .perspectives-content p:last-child {
  margin-bottom: 0;
}

/* Footer content (inside .footer-inner) — colophon typography */
.site-footer .footer-info p {
  font-size: 20px;
  line-height: 1.5; /* match article body */
  margin: 1px 0;
}

.site-footer .footer-info p:nth-child(2) {
  margin-top: 1lh; /* space above Thoughtful */
}

.footer-note {
  margin: 0; /* no extra spacing on the wrapper */
}

.footer-note a {
  display: inline-block;     /* allow vertical margin on the line itself */
  margin-top: 1.5em;         /* space above just the last line */
  font-size: 20px;
  color: #999;
  text-decoration: none;
}

.footer-note a:hover {
  color: #666;
}

.site-footer .footer-links a,
.site-footer .footer-links .dot {
  font-size: 20px;
  margin: 1px 0;   /* 1px above and below each link/dot via margin */
}


/* ==========================================================
   Benchmarks (index.html)
   ========================================================== */
a.logo-centered {
  text-decoration: none;
  color: #333;
}

.benchmarks-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.benchmarks-content h1 {
  font-family: 'Edgar', Georgia, serif;
  font-size: 56px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  margin-top: 144px;
  margin-bottom: 0;
}

.benchmarks-content .subtitle {
  font-family: 'Edgar', Georgia, serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: #1a1a1a;
  margin-top: 10px;
  margin-bottom: 0.5em;
}

.benchmarks-content .date {
  font-family: 'Die Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #999;
  margin-top: 1em;
  margin-bottom: 0;
}

.paper-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 26px;
  margin-bottom: 26px;
}

.paper-links .btn-pill {
  font-family: 'Die Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #1a1a1a;
  text-decoration: none;
  background: #ddd;
  border-radius: 999px;
  padding: 0.9rem 1.25rem 1rem;
}

.paper-links .btn-pill:hover {
  background: #fff;
  color: #1a1a1a;
}

.paper-links .link-plain {
  font-family: 'Die Grotesk', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  text-decoration: none;
}

.paper-links .link-plain:hover {
  color: #000;
}

.benchmarks-body {
  margin-top: 96px;
  margin-bottom: 48px;
}

.benchmarks-body .body-main {
  font-size: 20px;
  line-height: 1.5;
  margin-top: 1lh;
}

.benchmarks-body p {
  font-family: 'Edgar', Georgia, serif;
  font-weight: 300;
  color: #333;
  margin-bottom: 1lh;
}

.benchmarks-figure,
.benchmarks-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.benchmarks-figure {
  margin: 1lh 0;
  display: block;
}

.caption {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 64px 0;
}

/* Override .benchmarks-body p margin so caption gets full 64px */
.benchmarks-body p.caption {
  margin-bottom: 64px;
}

.benchmarks-body ul {
  list-style: disc;
  padding-left: 1.25em;
  margin-bottom: 1.5em;
}

.benchmarks-body li {
  font-family: 'Edgar', Georgia, serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: #333;
  margin-bottom: 0.75em;
}

.benchmarks-body h2 {
  font-family: 'Edgar', Georgia, serif;
  font-size: 32px;
  font-weight: 300;
  color: #1a1a1a;
  margin-top: 1.5lh;
  margin-bottom: 30px;
}

.go-home {
  display: inline-block;
  font-family: 'Edgar', Georgia, serif;
  font-size: 20px;
  font-weight: 300;
  color: #999;
  text-decoration: none;
  margin-top: 2rem;
}

.go-home:hover {
  color: #1a1a1a;
}

.benchmarks-page .site-footer .footer-info p,
.benchmarks-page .site-footer .footer-links a,
.benchmarks-page .site-footer .footer-links .dot {
  font-size: 20px;
}


/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }

  .index-page .perspectives-header {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .benchmarks-content {
    padding: 3rem 1.5rem 4rem;
  }

  .site-footer .footer-inner {
    margin-top: 24px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .benchmarks-page .perspectives-header {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .benchmarks-content h1 {
    font-size: 44px;
  }

  nav {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .content {
    padding: 3rem 1.5rem;
  }

  .content p {
    font-size: clamp(1.3rem, 5vw, 32px);
  }
}
