/* heartdok.dev: design tokens, light and dark, then layout and components. No external requests. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/geist-400-600.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/geist-mono-600.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("/fonts/bricolage-grotesque-800.woff2") format("woff2"); }

:root {
  --bg: #FBFBFD; --bg-2: #F2F2F6; --card: #FFFFFF;
  --fg: #0B0B14; --fg-2: #474756; --fg-3: #686878; --line: #E0E0E8; --line-2: #EBEBF0;
  --ink: #0B0B14; --paper: #FFFFFF;
  --sky: #1F8FFF; --sun: #FFC800; --coral: #FF4A36; --mint: #00BF8A;
  --sky-t: #0A5FCC; --sun-t: #7A5900; --coral-t: #C8270F; --mint-t: #006E4A;
  --sky-s: #E7F1FF; --sun-s: #FFF6CC; --coral-s: #FFECE8; --mint-s: #E3F8F0; --ink-s: #EEEEF3;
  --mark: rgba(255, 200, 0, .45);
  --trunk: #0B0B14;
  --sheetsh: 0 1px 2px rgba(11, 11, 20, .05), 0 10px 30px -14px rgba(11, 11, 20, .22);
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --ui: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --glide: cubic-bezier(.2, .8, .2, 1);
  --wc: #0B0B14; --wt: #0B0B14; --wsoft: var(--ink-s);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08080D; --bg-2: #101017; --card: #0E0E15;
    --fg: #F4F4F8; --fg-2: #B3B3C1; --fg-3: #8E8E9E; --line: #23232D; --line-2: #1B1B24;
    --sky-t: #86C0FF; --sun-t: #FFD951; --coral-t: #FF8A7C; --mint-t: #4BDDAE;
    --sky-s: #10305C; --sun-s: #3A3107; --coral-s: #4D1A12; --mint-s: #0C3A2A; --ink-s: #23232D;
    --mark: rgba(255, 200, 0, .28);
    --trunk: #F4F4F8;
    --sheetsh: 0 0 0 1px rgba(255, 255, 255, .03), 0 14px 34px -14px rgba(0, 0, 0, .7);
    --wc: #F4F4F8; --wt: #F4F4F8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08080D; --bg-2: #101017; --card: #0E0E15;
  --fg: #F4F4F8; --fg-2: #B3B3C1; --fg-3: #8E8E9E; --line: #23232D; --line-2: #1B1B24;
  --sky-t: #86C0FF; --sun-t: #FFD951; --coral-t: #FF8A7C; --mint-t: #4BDDAE;
  --sky-s: #10305C; --sun-s: #3A3107; --coral-s: #4D1A12; --mint-s: #0C3A2A; --ink-s: #23232D;
  --mark: rgba(255, 200, 0, .28);
  --trunk: #F4F4F8;
  --sheetsh: 0 0 0 1px rgba(255, 255, 255, .03), 0 14px 34px -14px rgba(0, 0, 0, .7);
  --wc: #F4F4F8; --wt: #F4F4F8;
  color-scheme: dark;
}
[data-world="practice"] { --wc: var(--sun); --wt: var(--sun-t); --wsoft: var(--sun-s); }
[data-world="teaching"] { --wc: var(--coral); --wt: var(--coral-t); --wsoft: var(--coral-s); }
[data-world="schedules"] { --wc: var(--sky); --wt: var(--sky-t); --wsoft: var(--sky-s); }
[data-world="guides"] { --wc: var(--mint); --wt: var(--mint-t); --wsoft: var(--mint-s); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--ui); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--sky-t); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; color: var(--fg); }
h1 { font-size: clamp(40px, 6.4vw, 72px); letter-spacing: -0.045em; line-height: .98; }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.035em; line-height: 1.08; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }
code { font-family: var(--mono); font-size: .86em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 10; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* one outer wrapper carries the side gutter */
.site {
  min-height: 100vh; display: flex; flex-direction: column;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.bar, main, .foot { width: 100%; max-width: 1080px; margin-inline: auto; }
main { flex: 1; padding-bottom: 72px; }

/* header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.04em; line-height: 1; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .tld { color: var(--fg-3); }
.brand .dot { color: var(--coral); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--fg-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 7px 11px; border-radius: 10px; }
.nav a:hover { color: var(--fg); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--bg-2); }

/* the logo mark */
.logo .trunk { stroke: var(--trunk); }
.logo .br1 { stroke: var(--sky); } .logo .br2 { stroke: var(--sun); } .logo .br3 { stroke: var(--coral); }
.logo .br { transform-box: view-box; }
.logo .br1 { transform-origin: 39.73px 30.83px; } .logo .br2 { transform-origin: 50.2px 26.09px; } .logo .br3 { transform-origin: 61.41px 28.65px; }
.sprout .trunk { stroke-dasharray: 1 1; animation: draw .6s var(--glide) both; }
.sprout .br { animation: sprout .62s var(--spring) both; }
.sprout .br1 { animation-delay: .4s; } .sprout .br2 { animation-delay: .52s; } .sprout .br3 { animation-delay: .64s; }
@keyframes draw { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@keyframes sprout { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* small text helpers */
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--wt); margin: 0 0 14px; }
.lede { font-size: clamp(18px, 1.9vw, 20px); line-height: 1.55; color: var(--fg-2); max-width: 40ch; margin: 22px 0 0; text-wrap: pretty; }
.meta { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--fg-3); letter-spacing: .02em; }

/* buttons: text on color is always ink */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 15.5px; text-decoration: none; color: var(--ink); background: var(--sun); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .12); transition: transform .18s var(--spring); }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: var(--card); color: var(--fg); border: 1px solid var(--line); box-shadow: none; }

/* home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; padding-block: 44px 24px; }
.hero h1 { max-width: 12ch; }
.plate { width: 100%; max-width: 480px; justify-self: end; color: var(--fg); }
.plate > svg { display: block; width: 100%; height: auto; overflow: visible; }
.plate text { font-family: var(--ui); font-size: 4.1px; font-weight: 600; }
.plate .lead { stroke: var(--fg-3); stroke-width: .3; fill: none; }
.plate .l-sky { fill: var(--sky-t); } .plate .l-sun { fill: var(--sun-t); } .plate .l-coral { fill: var(--coral-t); } .plate .l-ink { fill: var(--fg); }

/* sections */
.section { padding-top: 76px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head p { margin: 0; color: var(--fg-3); font-size: 15px; max-width: 52ch; }

/* tool cards */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sheetsh); }
.tool .chip { width: 44px; height: 44px; border-radius: 13px; background: var(--wc); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(0, 0, 0, .14); }
.tool .chip svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tool .kicker { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wt); }
.tool p { margin: 0; color: var(--fg-2); font-size: 15.5px; line-height: 1.55; }
.tool ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tool li { position: relative; padding-left: 18px; font-size: 15px; color: var(--fg-2); line-height: 1.5; }
.tool li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--wc); }

/* guide lists */
.guides { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.guide { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.guide .num { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--wt); }
.guide h2, .guide h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 6px; }
.guide :is(h2, h3) a { color: var(--fg); text-decoration: none; }
.guide :is(h2, h3) a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.guide p { margin: 0 0 8px; color: var(--fg-2); font-size: 15.5px; }
.guide .meta { display: block; }

/* access split */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel { border-radius: 18px; padding: 22px; background: var(--wsoft); }
.panel h3 { margin-bottom: 8px; }
.panel p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
.panel p + p { margin-top: 10px; }

/* inner pages */
.crumbs { margin: 8px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--fg-3); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--fg-3); text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }
.page-head { padding-block: 34px 8px; max-width: 760px; }
.page-head h1 { font-size: clamp(36px, 5.2vw, 56px); }
.page-head .lede { max-width: 56ch; }
.page-head .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.page-head .meta span + span::before { content: "\00B7"; margin-right: 14px; }
.page-head + .section { padding-top: 24px; }

.prose { max-width: 700px; margin-top: 34px; }
.prose h2 { margin: 48px 0 14px; font-size: clamp(24px, 3vw, 30px); }
.prose h3 { margin: 30px 0 8px; }
.prose p, .prose li { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--fg-3); }
.prose ol > li::marker { font-family: var(--mono); font-size: .86em; font-weight: 600; }
.prose dl { margin: 0 0 1.2em; }
.prose dt { font-weight: 600; margin-top: .8em; }
.prose dd { margin: .2em 0 0; color: var(--fg-2); }
.prose .note { color: var(--fg-2); font-size: 15.5px; }
.prose sup { line-height: 0; }
.prose > h2:first-child { margin-top: 8px; }
.prose sup a { text-decoration: none; font-family: var(--mono); font-size: .72em; font-weight: 600; padding: 0 1px; }

.keypoints { background: var(--wsoft); border-radius: 18px; padding: 20px 22px 8px; margin: 0 0 30px; }
.keypoints h2 { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--wt); line-height: 1.4; }
.keypoints ul { margin: 0 0 12px; }

.example { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 18px 20px 6px; margin: 0 0 1.4em; }
.example .tag { display: block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px; }
.example ol { list-style: upper-alpha; }

.refs { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 8px; }
.refs h2 { margin-top: 24px; }
.refs ol { font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.refs li { color: var(--fg-2); margin-bottom: .7em; overflow-wrap: anywhere; }
.refs li:target { background: var(--mark); border-radius: 6px; }

.related { margin-top: 48px; }
.related h2 { font-size: 22px; margin-bottom: 14px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a { font-weight: 600; }

.callout { margin-top: 40px; border-left: 3px solid var(--wc); padding: 4px 0 4px 16px; color: var(--fg-2); font-size: 15.5px; max-width: 700px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: start; font-size: 14.5px; color: var(--fg-3); }
.foot p { margin: 6px 0 0; max-width: 44ch; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.foot nav a { color: var(--fg-2); text-decoration: none; }
.foot nav a:hover { color: var(--fg); text-decoration: underline; }
.foot .small { grid-column: 1 / -1; font-size: 13px; margin: 0; max-width: none; }

/* not found */
.nf { padding-block: 64px 24px; max-width: 640px; }
.nf .code { margin: 0 0 20px; font-family: var(--display); font-weight: 800; font-size: clamp(72px, 14vw, 132px); letter-spacing: -0.05em; line-height: .85; color: var(--fg); }
.nf .code span { color: var(--coral); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .plate { justify-self: center; max-width: 360px; }
  .tools { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .split { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .section { padding-top: 60px; }
  .brand { font-size: 19px; }
  .brand svg { width: 26px; height: 26px; }
  .nav a { padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .bar .nav, .skip, .foot nav, .actions { display: none; }
  body { background: #fff; color: #000; }
}
