/* Kerfline's site: the same page, cards, ink and orange as the app. */
@font-face { font-family: "Inter"; src: url("/assets/inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  --page: #F4F5F7; --card: #FFFFFF; --raised: #EEF0F3; --hairline: #E6E8EC; --line: #D9DDE3;
  --ink: #0F1419; --t2: #535C69; --t3: #8A93A0;
  --brand: #C8430E; --kerf: #E2551B; --kerf-soft: #FCEBE3;
  --mark: #FFFFFF; --mark-arrow: #0F1419;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0C0E11; --card: #15181D; --raised: #1D2127; --hairline: #23272E; --line: #2E333B;
    --ink: #F1F3F5; --t2: #A4ACB8; --t3: #707A88;
    --brand: #FF7A3D; --kerf: #FF7A3D; --kerf-soft: #3A2116;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11";
}
a { color: var(--brand); text-decoration: none; font-weight: 550; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--kerf); outline-offset: 3px; border-radius: 4px; }

.hero {
  background: #E2551B; color: #fff; border-radius: 0 0 32px 32px; position: relative; overflow: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
@media (prefers-color-scheme: dark) { .hero { background-color: #D14E17; } }
.hero .trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .trace path { fill: none; stroke: rgba(255,255,255,.32); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.1s cubic-bezier(.05,.7,.1,1) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.hero .wrap { padding-top: 22px; padding-bottom: 40px; position: relative; }
.brandrow { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; font-size: 19px; letter-spacing: -.02em; }
.brandrow:hover { text-decoration: none; }
.brandrow svg { width: 26px; height: 26px; }
.hero h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.12; letter-spacing: -.025em; font-weight: 650; margin: 38px 0 10px; }
.hero p { margin: 0; font-size: 17px; opacity: .92; max-width: 560px; }
.pill { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.18); font-size: 13.5px; font-weight: 600; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; }

main.wrap { padding-top: 28px; padding-bottom: 48px; }
.summary { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 6px 20px; margin-bottom: 28px; }
.summary .row { display: flex; gap: 14px; padding: 14px 0; align-items: flex-start; }
.summary .row + .row { border-top: 1px solid var(--hairline); }
.summary .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--kerf-soft); display: grid; place-items: center; margin-top: 1px; }
.summary .tick svg { width: 14px; height: 14px; stroke: var(--brand); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.summary strong { display: block; font-weight: 600; font-size: 15.5px; }
.summary span { color: var(--t2); font-size: 14.5px; }

nav.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
nav.toc a { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--raised); color: var(--t2); font-weight: 550; }
nav.toc a:hover { text-decoration: none; color: var(--ink); }

section { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 22px 22px 8px; margin-bottom: 16px; scroll-margin-top: 16px; }
section h2 { font-size: 19px; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 10px; font-weight: 650; }
section h3 { font-size: 15.5px; margin: 18px 0 6px; font-weight: 600; }
section p, section li { color: var(--t2); font-size: 15.5px; }
section p { margin: 0 0 14px; }
section ul { margin: 0 0 14px; padding-left: 20px; }
section li { margin: 4px 0; }
section strong { color: var(--ink); font-weight: 600; }
.note { border: 1.5px dashed var(--kerf); background: transparent; }
.note h2 { color: var(--brand); }
table { width: 100%; border-collapse: collapse; margin: 4px 0 16px; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--hairline); vertical-align: top; color: var(--t2); }
th { color: var(--ink); font-weight: 600; font-size: 13px; border-top: 0; }

footer { color: var(--t3); font-size: 13.5px; padding: 8px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; border-top: 1px solid var(--hairline); padding-top: 20px; }
footer a { color: var(--t2); font-weight: 500; }
.updated { color: var(--t3); font-size: 13.5px; margin: 0 0 18px; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards a.card { display: block; background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 20px; color: var(--ink);
  transition: transform .18s cubic-bezier(.2,0,0,1), border-color .18s; }
.cards a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--line); }
.cards a.card:active { transform: scale(.98); }
.cards .card b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.cards .card span { display: block; color: var(--t2); font-size: 14.5px; margin-top: 4px; }
.cards .card em { display: inline-block; margin-top: 12px; color: var(--brand); font-style: normal; font-weight: 600; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .hero .trace path { animation: none; stroke-dashoffset: 0; }
  .cards a.card { transition: none; }
}
@media print {
  .hero { background: none !important; color: #000; border-radius: 0; }
  .hero .trace, nav.toc { display: none; }
  section, .summary { border-color: #ccc; break-inside: avoid; }
}
