@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Geist:wght@400;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #071018;
  --surface: #0d1c28;
  --surface-raised: #132433;
  --ink: #f7f1e8;
  --muted: #d1cfc8;
  --dim: #7a7670;
  --amber: #f4bd45;
  --blue: #58a6ff;
  --line: rgba(255,255,255,.08);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  position: relative;
  max-width: 820px !important;
  min-height: 100vh;
  margin: 0 auto !important;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 5rem !important;
  background:
    radial-gradient(720px 340px at 0% -8%, rgba(88,166,255,.08), transparent 66%),
    radial-gradient(620px 300px at 100% 0%, rgba(244,189,69,.065), transparent 68%),
    var(--bg) !important;
  color: var(--muted) !important;
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 16px;
  line-height: 1.76 !important;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: 'VOICYBOOKS  /  LEGAL';
  display: block;
  margin: 0 0 1rem;
  color: rgba(122,118,112,.74);
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .17em;
}

.back-link {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  margin: 0 0 1.7rem !important;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: rgba(209,207,200,.68) !important;
  font-weight: 600;
  text-decoration: none !important;
}
.back-link:hover {
  border-color: rgba(244,189,69,.20);
  background: rgba(244,189,69,.045);
  color: #f4d477 !important;
}

h1, h2 {
  font-family: 'Fraunces', Georgia, serif !important;
  color: var(--ink) !important;
}
h1 {
  margin: 0 !important;
  font-size: clamp(2.8rem, 8vw, 4.7rem) !important;
  font-weight: 600 !important;
  line-height: .94 !important;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.meta {
  width: fit-content;
  margin: 1rem 0 2.8rem !important;
  padding: .42rem .65rem;
  border: 1px solid rgba(244,189,69,.12);
  border-radius: 999px;
  background: rgba(244,189,69,.045);
  color: rgba(209,207,200,.62) !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem !important;
  letter-spacing: .03em;
}
.meta strong { color: #ebc964; }

h2 {
  position: relative;
  margin: 2.65rem 0 .9rem !important;
  padding: 0 0 .72rem 1rem !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
  font-size: clamp(1.3rem, 3vw, 1.55rem) !important;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.025em;
}
h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: .22rem;
  bottom: .82rem;
  width: 3px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(244,189,69,.28);
}

p, li, td { color: rgba(209,207,200,.76); }
p { margin: .7rem 0; }
strong { color: rgba(247,241,232,.94); font-weight: 700; }

ul, ol {
  margin: .8rem 0 1rem;
  padding-left: 1.4rem !important;
}
li { margin: .38rem 0 !important; padding-left: .15rem; }
li::marker { color: rgba(244,189,69,.68); }

a:not(.back-link) {
  color: #86bdff !important;
  text-decoration-color: rgba(88,166,255,.32);
  text-underline-offset: .18em;
}
a:not(.back-link):hover { color: #b5d8ff !important; }
a:visited:not(.back-link) { color: #c1a9ff !important; }

code {
  border: 1px solid rgba(88,166,255,.10);
  border-radius: 7px !important;
  background: rgba(88,166,255,.055) !important;
  color: #a9cfff;
  padding: .12em .42em !important;
  font-family: 'JetBrains Mono', monospace;
}

table {
  width: 100%;
  margin: 1.15rem 0 1.4rem !important;
  border: 1px solid rgba(255,255,255,.07);
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(13,28,40,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
th, td {
  padding: .72rem .8rem !important;
  border-bottom: 1px solid rgba(255,255,255,.055) !important;
  vertical-align: top;
  text-align: left;
}
th {
  background: rgba(255,255,255,.025);
  color: rgba(247,241,232,.65) !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem !important;
  font-weight: 700;
  letter-spacing: .08em !important;
}
tr:last-child td { border-bottom: 0 !important; }

body > h1,
body > .meta,
body > h2,
body > p,
body > ul,
body > ol,
body > table {
  position: relative;
  z-index: 1;
}

body::after {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.01) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

:focus-visible {
  outline: 2px solid rgba(244,189,69,.76);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  body {
    padding: 1rem .9rem 3.5rem !important;
    font-size: 15px;
  }
  body::before { margin-top: .2rem; }
  h1 { font-size: clamp(2.55rem, 14vw, 3.5rem) !important; }
  h2 { margin-top: 2.2rem !important; }
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  th, td { min-width: 130px; }
}

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