@font-face { font-family: 'Literata'; src: url('/assets/literata.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; src: url('/assets/literata-italic.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: 'Literata'; src: url('/assets/archivo-rupee.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+20B9; }
@font-face { font-family: 'Kalam'; src: url('/assets/kalam.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('/assets/archivo-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; src: url('/assets/archivo-rupee.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+20B9; }

:root {
  color-scheme: light;
  --paper: #fcfcfa;
  --surface: #ffffff;
  --ink: #18283a;
  --ink-hover: #24384d;
  --text: #2c3a48;
  --graphite: #5e6b78;
  --rule: #e2e6e9;
  --green: #2f8a5f;
  --band-bg: #18283a;
  --band-fg: #fcfcfa;
  --s1: #1f7a57; --s2: #74b371; --s3: #d3c983; --s4: #c98c4f; --s5: #9b4e3a;
  --wrap: 1280px;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, 'Segoe UI', sans-serif;
  --hand: 'Kalam', 'Segoe Print', 'Comic Sans MS', cursive;
  --pen: #2747a8;
  --grid: rgba(24, 40, 58, 0.055);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0f1a24;
    --surface: #152230;
    --ink: #e8edf1;
    --ink-hover: #ffffff;
    --text: #c3cdd6;
    --graphite: #9aa8b5;
    --rule: #24323f;
    --green: #5cc08f;
    --band-bg: #18283a;
    --band-fg: #fcfcfa;
    --pen: #9db2ff;
    --grid: rgba(232, 237, 241, 0.05);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 18px/1.68 var(--serif); }
p, li { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--sans); color: var(--ink); margin: 0; font-stretch: 75%; font-weight: 720; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.head-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 23px; font-weight: 720; font-stretch: 80%; letter-spacing: -0.005em; }
.brand:hover { color: var(--ink); }
.mark { width: 26px; height: 26px; }
.m-peak { fill: #d69d61; } .m-r1 { fill: #a8dca0; } .m-r2 { fill: #62c08c; } .m-r3 { fill: #2e9e70; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; color: var(--graphite); font-weight: 520; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.head-cta { margin-left: auto; }
.head-cta .soon { font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 1.5px solid var(--ink); border-radius: 10px; color: var(--ink); background: transparent; font: inherit; font-weight: 620; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--ink-hover); color: var(--paper); }
.btn.small { padding: 8px 14px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.soon { color: var(--graphite); font-size: 15px; }

/* Home */
.hero { display: grid; grid-template-columns: 1fr 380px; gap: 72px; padding-top: 72px; padding-bottom: 88px; align-items: start; }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); line-height: 0.96; font-stretch: 68%; font-weight: 740; max-width: 12ch; }
.lede { font-size: 20px; line-height: 1.55; color: var(--text); max-width: 34em; margin-top: 24px; }
.descent { margin: 48px 0 0; max-width: 480px; }
.track { position: relative; height: 14px; border-radius: 7px; background: linear-gradient(to right, var(--s1) 0 20%, var(--s2) 20% 40%, var(--s3) 40% 70%, var(--s4) 70% 85%, var(--s5) 85% 100%); }
.marker { position: absolute; top: -8px; left: 41%; width: 6px; height: 30px; margin-left: -3px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 3px var(--paper); animation: descend 2.4s cubic-bezier(.45, 0, .2, 1) .5s both; }
@keyframes descend { from { left: 82%; } to { left: 41%; } }
.descent figcaption { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--graphite); }
.descent-note { margin-top: 14px; font-size: 15px; color: var(--graphite); }
.shot { margin: 0; }
.shot img { border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--graphite); }
.hero-shot img { max-height: 760px; }

.band { border-top: 1px solid var(--rule); padding: 88px 0; }
.band h2 { font-size: clamp(32px, 3.6vw, 44px); max-width: 22ch; margin-bottom: 18px; }
.intro { font-size: 18px; max-width: 40em; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 44px; }
.four h3, .two h3 { font-size: 21px; font-stretch: 85%; font-weight: 680; margin-bottom: 10px; }
.four p { font-size: 16px; color: var(--text); }
.split { display: grid; grid-template-columns: 1fr 380px; gap: 72px; align-items: center; }
.aside { margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--green); color: var(--graphite); font-size: 16px; max-width: 34em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 36px; }
.does, .doesnt, .plan ul { list-style: none; margin: 0; padding: 0; }
.does li, .doesnt li, .plan li { position: relative; padding-left: 28px; margin: 12px 0; }
.does li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; border-radius: 3px; background: var(--green); }
.doesnt li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 3px; border-radius: 2px; background: var(--s5); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; max-width: 920px; }
.plan { border: 1px solid var(--rule); border-radius: 16px; padding: 30px; background: var(--surface); display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--ink); }
.plan h3 { font-size: 24px; }
.price { margin: 10px 0 18px; font-size: 42px; font-weight: 740; font-stretch: 75%; color: var(--ink); line-height: 1; }
.price span { font-size: 17px; font-weight: 450; font-stretch: 100%; color: var(--graphite); }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 3px; border-radius: 2px; background: var(--green); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan ul { margin-bottom: 28px; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--graphite); }
.split-text { display: grid; grid-template-columns: 320px 1fr; gap: 56px; }
.plain { padding-left: 20px; margin: 0 0 1.2em; max-width: 44em; }
.plain li { margin: 10px 0; }
.closing { background: var(--band-bg); color: var(--band-fg); border-top: 0; padding: 72px 0; }
.closing h2 { color: var(--band-fg); margin: 0; max-width: 18ch; }
.closing-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing .actions { margin: 0; }
.closing .btn.primary { background: var(--band-fg); color: var(--band-bg); border-color: var(--band-fg); }
.closing .soon { color: #c3cdd6; }

/* Inner pages */
.page { padding-top: 64px; padding-bottom: 104px; }
.page.narrow { max-width: 760px; }
.page-head { margin-bottom: 40px; max-width: 56em; }
.page-head h1 { font-size: clamp(40px, 5vw, 60px); font-stretch: 70%; font-weight: 740; line-height: 1; }
.page-head .actions { margin-top: 24px; }
.updated { margin-top: 12px; color: var(--graphite); font-size: 15px; }
/* Wide pages: the heading takes a left column, the content the rest of the width */
.doc-section { border-top: 1px solid var(--rule); padding: 44px 0 20px; display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 64px; align-items: start; }
.doc-section > h2 { grid-column: 1; grid-row: 1 / span 40; font-size: 28px; margin: 0; position: sticky; top: 96px; }
.doc-section > :not(h2) { grid-column: 2; }
.doc-section > p, .doc-section > .plain, .doc-section > .steps { max-width: 72ch; }
.doc-section .faq { max-width: none; }
.page h2 { margin-top: 8px; }
.narrow h2 { font-size: 26px; margin: 32px 0 12px; }

table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink); font-weight: 650; }
.bands { max-width: 460px; margin: 8px 0 16px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 10px; vertical-align: -1px; }
.s1 { background: var(--s1); } .s2 { background: var(--s2); } .s3 { background: var(--s3); } .s4 { background: var(--s4); } .s5 { background: var(--s5); }
.table-scroll { overflow-x: auto; margin-bottom: 32px; }
.compare { min-width: 640px; }
.compare td:first-child { color: var(--ink); font-weight: 520; width: 36%; }
.compare th:last-child, .compare td:last-child { background: color-mix(in srgb, var(--green) 7%, transparent); }
.shot.wide img { width: 100%; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 16px; max-width: 44em; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin: 18px 0; min-height: 30px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); display: grid; place-items: center; font-size: 15px; font-weight: 650; }

.faq { max-width: 52em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; position: relative; font-weight: 620; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 22px; font-weight: 400; color: var(--graphite); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 12px; max-width: 72ch; }

.legal-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: 100px; font-size: 15px; }
.toc p { font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 6px 0; }
.toc a { color: var(--graphite); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { max-width: 74ch; }
.prose section { padding-bottom: 12px; }
.prose h2 { font-size: 24px; margin: 8px 0 12px; }
.contact-line { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--graphite); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: start; }
.letter { font-size: 19px; line-height: 1.7; max-width: 64ch; }
.run { border: 1px solid var(--rule); border-radius: 16px; padding: 28px 30px; background: var(--surface); position: sticky; top: 96px; }
.run h2 { font-size: 24px; margin: 0 0 8px; }
.run .plain { padding-left: 18px; margin: 0; font-size: 16px; }
.letter h2 { font-size: 26px; margin: 40px 0 14px; }
.sign { font-size: 24px; font-weight: 700; font-stretch: 80%; color: var(--ink); }
.muted { color: var(--graphite); }

.key { display: flex; gap: 12px; align-items: stretch; margin: 12px 0 10px; flex-wrap: wrap; }
.key code { flex: 1 1 280px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); font: 600 19px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 0.04em; word-break: break-all; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 56px 0 32px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 14px; color: var(--graphite); max-width: 30em; }
.site-foot h2 { font-size: 15px; font-stretch: 100%; font-weight: 650; margin-bottom: 12px; }
.site-foot nav a { display: block; margin: 7px 0; color: var(--text); text-decoration: none; }
.site-foot nav a:hover { color: var(--green); text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--graphite); font-size: 13px; }

@media (max-width: 980px) {
  .hero, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero-shot, .split .shot { max-width: 380px; }
  .four { grid-template-columns: 1fr 1fr; }
  .split-text { grid-template-columns: 1fr; gap: 16px; }
  .legal-grid, .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .doc-section { grid-template-columns: 1fr; }
  .doc-section > h2 { grid-row: auto; position: static; margin-bottom: 16px; }
  .doc-section > :not(h2) { grid-column: 1; }
  .run { position: static; }
  .toc { position: static; border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; }
  .foot-in { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .head-in { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 6px 16px; }
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 22px; padding-bottom: 4px; }
  .head-cta .soon { display: none; }
  .hero { padding-top: 40px; padding-bottom: 64px; }
  .band { padding: 64px 0; }
  .four, .two, .plans { grid-template-columns: 1fr; gap: 28px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .letter { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .marker { animation: none; }
}

/* The interface stays in the sans; reading text is the serif */
.site-head, .btn, .soon, .nav, table, .faq summary, .site-foot, .price, .toc, .updated, .note, .steps li::before, .descent figcaption, .shot figcaption, .plan ul, .does, .doesnt, .skip { font-family: var(--sans); }
table, .price { font-variant-numeric: tabular-nums; }
.plan ul, .does, .doesnt { font-size: 17px; }

/* Handwritten notes, in ballpoint blue */
.scribble { font-family: var(--hand); color: var(--pen); font-size: 21px; line-height: 1.25; }
.shot figcaption.scribble { font-family: var(--hand); color: var(--pen); font-size: 19px; margin-top: 10px; transform: rotate(-1.5deg); transform-origin: left; }
.descent-note.scribble { display: flex; align-items: flex-start; gap: 6px; margin-top: 14px; padding-left: calc(41% - 30px); font-size: 22px; color: var(--pen); transform: rotate(-1deg); }
.scribble-arrow { flex: none; width: 46px; height: 32px; margin-top: -14px; fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sign.scribble { font-size: 32px; margin-top: 8px; transform: rotate(-2deg); transform-origin: left; display: inline-block; font-weight: 400; }
.foot-note.scribble { font-size: 19px; margin-top: 10px; }

/* Chart paper behind the hero, fading out */
.hero-band { position: relative; isolation: isolate; }
.hero-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }

/* One screenshot taped into the notebook */
.taped { position: relative; transform: rotate(1.4deg); }
.taped::before, .taped::after { content: ""; position: absolute; top: -12px; width: 92px; height: 26px; background: rgba(236, 226, 196, 0.78); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); z-index: 1; }
.taped::before { left: 22px; transform: rotate(-6deg); }
.taped::after { right: 22px; transform: rotate(5deg); }

/* The long read: justified and hyphenated on wide screens only */
.essay h2 { font-size: 27px; margin: 44px 0 14px; }
.essay h2:first-child { margin-top: 0; }
.essay p { max-width: 66ch; }
/* Left-aligned on purpose: justified text without hyphenation leaves gaps between words. */
.essay-short p { font-size: 19px; max-width: 62ch; }
.lede { font-family: var(--serif); }

@media (prefers-reduced-motion: reduce) { .taped { transform: none; } }
