:root {
  --bv8-ink: #071014;
  --bv8-paper: #f7fbfa;
  --bv8-ice: #d9f4f7;
  --bv8-cyan: #2bbad0;
  --bv8-orange: #ee702e;
  --bv8-line: rgba(7, 16, 20, .18);
  --bv8-sans: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --bv8-reading: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --bv8-mono: "SFMono-Regular", Consolas, monospace;
}

.bonvallet-v8:not(.bonvallet-v8-home) {
  margin: 0;
  background: var(--bv8-paper);
  color: var(--bv8-ink);
  font-family: var(--bv8-sans);
}

.bv8-skip {
  position: fixed;
  z-index: 200;
  top: -6rem;
  left: 1rem;
  padding: .8rem 1rem;
  background: var(--bv8-ink);
  color: #fff;
}

.bv8-skip:focus { top: 1rem; }

.bv8-header {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: 5rem;
  padding: 0 clamp(1rem, 3vw, 3.5rem);
  display: grid;
  grid-template-columns: 18rem 1fr auto;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--bv8-line);
  background: rgba(247, 251, 250, .92);
  color: var(--bv8-ink);
  backdrop-filter: blur(18px) saturate(1.35);
}

.bv8-header a,
.bv8-footer a { color: inherit; text-decoration: none; }

.bv8-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: .75rem;
}

.bv8-brand img {
  width: 2.65rem;
  height: 2.65rem;
  object-fit: contain;
}

.bv8-brand strong {
  font: 750 .68rem/.95 var(--bv8-mono);
  letter-spacing: .045em;
  text-transform: uppercase;
}

.bv8-brand small { display: block; margin-top: .18rem; font: inherit; }

.bv8-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(.8rem, 2.3vw, 2.5rem);
  font: 750 .58rem var(--bv8-mono);
  letter-spacing: .065em;
  text-transform: uppercase;
}

.bv8-header nav a,
.bv8-invite { min-height: 2.75rem; display: inline-flex; align-items: center; }

.bv8-header nav a { border-bottom: 2px solid transparent; }
.bv8-header nav a:hover { border-color: var(--bv8-cyan); }

.bv8-invite {
  padding: .7rem 1rem;
  justify-content: space-between;
  gap: 1.3rem;
  background: var(--bv8-orange);
  font: 800 .57rem var(--bv8-mono);
  text-transform: uppercase;
}

.bv8-page {
  min-height: 70svh;
  margin: 0;
  background: var(--bv8-paper);
}

.bv8-page-content { margin: 0; }
.bv8-page-content > *:first-child { margin-top: 0; }

.bv8-document {
  min-height: 70svh;
  padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 7vw, 8rem);
  background: var(--bv8-paper);
  color: var(--bv8-ink);
}

.bv8-document > header {
  max-width: 78rem;
  margin: 0 auto clamp(4rem, 8vw, 8rem);
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--bv8-ink);
}

.bv8-document > header > span,
.bv8-document > header > a {
  color: #147686;
  font: 750 .62rem var(--bv8-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bv8-document > header h1 {
  max-width: 70rem;
  margin: 2rem 0;
  color: inherit;
  font: 620 clamp(3.5rem, 8vw, 9rem)/.82 var(--bv8-sans);
  letter-spacing: -.065em;
}

.bv8-prose {
  width: min(100%, 54rem);
  margin: 0 auto;
  font: 1.15rem/1.75 var(--bv8-reading);
}

.bv8-prose h2,
.bv8-prose h3 { color: inherit; font-family: var(--bv8-sans); line-height: .95; }
.bv8-prose h2 { margin-top: 4rem; font-size: clamp(2.3rem, 5vw, 4.8rem); }
.bv8-prose h3 { margin-top: 3rem; font-size: clamp(1.8rem, 3vw, 3rem); }
.bv8-prose a { color: #0d7180; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.bv8-prose img { max-width: 100%; height: auto; }
.bv8-prose figure { margin: 0 0 3rem; }

.bv8-post-nav {
  width: min(100%, 70rem);
  margin: 6rem auto 0;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 2px solid var(--bv8-ink);
  border-bottom: 2px solid var(--bv8-ink);
  font: 750 .62rem var(--bv8-mono);
  text-transform: uppercase;
}

.bv8-index { background: var(--bv8-ice); }

.bv8-posts {
  width: min(100%, 78rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid var(--bv8-ink);
}

.bv8-posts > a {
  min-height: 25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--bv8-ink);
  border-bottom: 1px solid var(--bv8-ink);
  color: inherit;
  text-decoration: none;
}

.bv8-posts > a:nth-child(even) { border-right: 0; }
.bv8-posts span { color: #147686; font: .58rem var(--bv8-mono); text-transform: uppercase; }
.bv8-posts h2 { margin: 4rem 0 1.5rem; color: inherit; font: 600 clamp(2rem, 3vw, 3.4rem)/.9 var(--bv8-sans); }
.bv8-posts p { font-family: var(--bv8-reading); }
.bv8-posts i { margin-top: auto; font: 750 .58rem var(--bv8-mono); font-style: normal; text-transform: uppercase; }

.bv8-footer {
  min-height: 18rem;
  padding: 4rem clamp(1rem, 4vw, 4.5rem) 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3rem;
  background: var(--bv8-ink);
  color: #fff;
}

.bv8-footer > div { display: flex; align-items: center; gap: 1rem; }
.bv8-footer img { width: 3.75rem; height: 3.75rem; object-fit: contain; }
.bv8-footer p { margin: 0; font: .62rem/1.5 var(--bv8-mono); text-transform: uppercase; }
.bv8-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.bv8-footer nav a { min-height: 2.75rem; padding: .7rem .9rem; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.25); font: .56rem var(--bv8-mono); text-transform: uppercase; }

.bv8-header a:focus-visible,
.bv8-footer a:focus-visible,
.bv8-document a:focus-visible { outline: 3px solid var(--bv8-orange); outline-offset: 4px; }

@media (max-width: 900px) {
  .bv8-header { min-height: 4.5rem; grid-template-columns: 1fr auto; gap: .6rem; padding: 0 .8rem; }
  .bv8-brand strong,
  .bv8-header nav { display: none; }
  .bv8-brand img { width: 2.5rem; height: 2.5rem; }
  .bv8-invite { padding-inline: .8rem; }
  .bv8-document { padding-inline: 1rem; }
  .bv8-document > header h1 { overflow-wrap: anywhere; }
  .bv8-posts { grid-template-columns: 1fr; }
  .bv8-posts > a { min-height: 22rem; border-right: 0; }
  .bv8-footer { grid-template-columns: 1fr; }
  .bv8-footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bonvallet-v8 * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
