@font-face {
  font-family: 'Martina Plantijn';
  src: url('../assets2026/fonts/MartinaPlantijn-Regular__e02ea76d18e952604fbe5636471d4c7e48f8db1c01fa15ee0e0170347f966405.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Phonic';
  src: url('../assets2026/fonts/RHPhonic-Regular__66da8fcfda05a8b53afe5c8697bdb1b2fd883e748a29f65a628d7a98aad40982.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@keyframes tagline-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

:root {
  --bg: #0a0a0c;
  --bg-alt: #131316;
  --bg-elevated: #1c1c1e;
  --ink: #f0ede5;
  --ink-soft: #b8b5ad;
  --ink-muted: #8a8780;
  --rule: #2a2a2e;
  --rule-soft: #1f1f23;
  --highlight: #d4b46a;
  --highlight-glow: rgba(212, 180, 106, 0.15);
  --green: #7ba16d;
  --red: #c87878;
  --max-width: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 80% 50% at top left, rgba(212, 180, 106, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at bottom right, rgba(212, 180, 106, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Subtle film grain texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

body > * { position: relative; z-index: 2; }

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 32px 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.85);
}

.masthead-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-logo {
  height: 20px;
  width: auto;
  display: block;
}

.brand-mark {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: 4px;
}

.meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.title-block {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--highlight);
  margin-bottom: 24px;
  font-weight: 500;
}

h1 {
  font-family: 'Martina Plantijn', 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
  font-variation-settings: "opsz" 144;
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}

.title-block .last-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: inline-block;
}

.intro {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}

.intro p {
  margin-bottom: 20px;
}

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

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type { border-bottom: none; }

.section-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--highlight);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  font-weight: 500;
}

h2 {
  font-family: Phonic, Helvetica, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background-image: linear-gradient(110deg, #857049, #B39B66, #C8B377, #B39B66);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: tagline-gradient 6s ease infinite;
  margin-bottom: 28px;
}

h3 {
  font-family: Phonic, Helvetica, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.02em;
  background-image: linear-gradient(110deg, #857049, #B39B66, #C8B377, #B39B66);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: tagline-gradient 6s ease infinite;
  margin: 32px 0 14px;
}

p {
  margin-bottom: 16px;
  color: var(--ink-soft);
}

p strong, li strong {
  color: var(--ink);
  font-weight: 600;
}

ul, ol {
  margin: 16px 0 20px;
  padding-left: 0;
  list-style: none;
}

ul li, ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  line-height: 1.6;
}

ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 1px;
  background: var(--highlight);
  box-shadow: 0 0 8px var(--highlight-glow);
}

ol { counter-reset: ol-counter; }

ol li { counter-increment: ol-counter; }

ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--highlight);
  font-weight: 500;
}

.table-wrapper {
  margin: 28px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

thead { border-bottom: 1px solid var(--rule); }

th {
  text-align: left;
  padding: 14px 16px 14px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--ink);
}

th:last-child, td:last-child {
  text-align: right;
  padding-right: 0;
}

td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

td:first-child {
  color: var(--ink);
  font-weight: 500;
}

tr:last-child td { border-bottom: none; }

.params-table td:last-child {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
  font-weight: 500;
}

.example-table {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.example-table th { font-size: 10px; }

.example-table td { font-family: 'JetBrains Mono', monospace; }

.example-table td:first-child {
  color: var(--ink-muted);
  font-weight: 400;
}

.pnl-positive {
  color: var(--green);
  font-weight: 500;
}

.pnl-negative {
  color: var(--red);
  font-weight: 500;
}

.pnl-neutral { color: var(--ink-muted); }

.row-highlight td {
  background: rgba(212, 180, 106, 0.06);
  color: var(--ink);
}

.row-highlight td:first-child {
  color: var(--highlight);
}

.callout {
  background: var(--bg-alt);
  border-left: 2px solid var(--highlight);
  padding: 24px 28px;
  margin: 28px 0;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
  font-variation-settings: "opsz" 14;
  box-shadow: -4px 0 24px -8px var(--highlight-glow);
}

.callout strong {
  font-style: normal;
  font-weight: 600;
  color: var(--highlight);
  display: block;
  margin-bottom: 8px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.example-box {
  border: 1px solid var(--rule);
  padding: 24px 28px;
  margin: 24px 0;
  background: var(--bg-alt);
}

.example-box .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.example-box p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

footer {
  padding: 64px 0 80px;
  border-top: 1px solid var(--rule);
}

footer .container { text-align: center; }

footer h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

footer p {
  color: var(--ink-muted);
  font-size: 15px;
}

footer p a {
  color: inherit;
}

a {
  color: inherit;
}

footer .footer-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--highlight);
}

.mechanic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

.mechanic-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.mechanic-item:last-child { border-bottom: none; }

.mechanic-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--highlight);
  font-weight: 500;
  padding-top: 2px;
}

.mechanic-text {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}

.legal-notice {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--bg-alt);
  border-left: 2px solid var(--highlight);
  font-family: 'Inter Tight', -apple-system, sans-serif;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.legal-notice p {
  margin-bottom: 14px;
  color: inherit;
}

.legal-notice p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--highlight-glow);
  color: var(--ink);
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .title-block { padding: 56px 0 48px; }
  section { padding: 44px 0; }
  .container, .masthead-inner { padding: 0 20px; }
  h2 { font-size: 26px; }
  .example-table { font-size: 12px; }
  .example-table th, .example-table td { padding: 10px 8px 10px 0; }
  .mechanic-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media print {
  body { background: white; color: black; font-size: 11pt; }
  body::before { display: none; }
  .masthead { position: static; border-bottom: 1px solid #000; background: white; }
  section { page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; color: black; }
  p, li, td { color: #333; }
}
