/* Junto: Hallmark "Coral" set to the Junto brand (navy #1B2A3A, orange #E8743B, cream #F7F3EC) */
:root {
  --color-paper: oklch(96.6% 0.009 80);      /* cream */
  --color-paper-2: oklch(94.2% 0.011 78);
  --color-paper-3: oklch(91% 0.013 76);
  --color-desk: oklch(93.6% 0.013 76);
  --color-cotton: oklch(98.9% 0.005 85);
  --color-ink: oklch(27.5% 0.035 245);        /* logo navy */
  --color-ink-2: oklch(35% 0.032 245);
  --color-print: oklch(27.5% 0.035 245);
  --color-muted: oklch(47% 0.022 245);
  --color-rule: oklch(88% 0.012 75);
  --color-rule-2: oklch(81% 0.014 75);
  --color-board: oklch(27.5% 0.035 245);
  --color-board-type: oklch(96.6% 0.009 80);
  --color-accent: oklch(69.5% 0.155 47);      /* logo orange */
  --color-accent-2: oklch(52% 0.15 42);       /* deep orange for links and focus */
  --color-accent-ink: oklch(27.5% 0.035 245);
  --color-accent-deep: oklch(52% 0.15 42);
  --color-focus: oklch(52% 0.15 42);
  --color-paid: oklch(58% 0.16 44);
  --tex-cotton: url("/assets/cotton.svg"); --tex-desk: url("/assets/felt.svg");
  --font-heading: "TeX Gyre Bonum", "URW Bookman", "Bookman Old Style", Georgia, serif;
}

.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-toast); background: var(--color-board); color: var(--color-board-type); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-input); }
.skip:focus { top: var(--space-md); }

h1, h2 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.012em; line-height: 1.06; color: var(--color-ink); }
h1 { font-size: clamp(2.5rem, 3.6vw + 1rem, 4.5rem); max-width: 14ch; }
h2 { font-size: var(--text-section); max-width: 22ch; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-title); letter-spacing: -0.015em; }
a { text-decoration-color: color-mix(in oklab, var(--color-accent-2) 60%, transparent); text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--color-accent-2); }
code, .fig { font-family: var(--font-outlier); font-size: 0.9em; }
:not(pre) > code { background: var(--color-paper-2); border: 1px solid var(--color-rule); border-radius: 4px; padding: 0.05em 0.3em; }
.small { font-size: var(--text-sm); color: var(--color-muted); }
.muted { color: var(--color-muted); }
.lead { color: var(--color-ink-2); }

/* stationery */
.stock { background-color: var(--color-cotton); background-image: linear-gradient(100deg, var(--color-cotton), transparent 45%), var(--tex-cotton); color: var(--color-print); border-radius: var(--radius-stock); box-shadow: var(--edge-stock), var(--cast-stock); }
.desk { background-color: var(--color-desk); background-image: radial-gradient(90% 120% at 0% 30%, var(--color-cotton), transparent 62%), var(--tex-desk); }
.board { background: var(--color-board); color: var(--color-board-type); }

/* controls: letterpress cards */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-stock); font-weight: 500; text-decoration: none; transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.btn--card { background-color: var(--color-cotton); background-image: var(--tex-cotton); color: var(--color-print); text-shadow: 0.5px 0.75px 0 var(--color-cotton); box-shadow: var(--edge-stock), var(--cast-stock); }
.btn--ink { background: var(--color-board); color: var(--color-board-type); text-shadow: 0 -0.75px 0 oklch(15% 0.03 245); box-shadow: var(--cast-stock); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--edge-stock), var(--cast-stock-lift); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.board .btn--ink { background: var(--color-cotton); color: var(--color-print); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }

/* header */
.site-header { background: var(--color-paper); border-bottom: 1px solid var(--color-rule); position: sticky; top: 0; z-index: var(--z-sticky-nav); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 68px; }
.brand img { width: 104px; }
.site-header ul { display: flex; align-items: center; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.site-header nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: var(--text-sm); }
.site-header nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--color-accent-2); }

/* hero */
.hero { padding-block: var(--space-3xl) var(--space-4xl); border-bottom: 1px solid var(--color-rule); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-2xl); align-items: center; }
.hero .lead { margin-top: var(--space-lg); max-width: 46ch; }
.hero .small { margin-top: var(--space-lg); max-width: 46ch; }

.table-scene { position: relative; min-height: 520px; }
.card { position: absolute; padding: var(--space-md) var(--space-lg); font-size: var(--text-sm); line-height: 1.5; width: min(360px, 78%); }
.card p + p, .card p + table, .card table + p { margin-top: var(--space-xs); }
.card .who { display: flex; align-items: center; gap: var(--space-xs); font-weight: 600; }
.card .who .fig, .card .who .muted { font-weight: 400; font-size: var(--text-xs); color: var(--color-muted); }
.seat { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 600; background: var(--color-paper-3); color: var(--color-ink); }
.seat--ai { background: var(--color-board); color: var(--color-board-type); }
.tag { color: var(--color-accent-2); font-weight: 600; }
.card--ask { top: 0; left: 0; rotate: -2deg; z-index: 1; }
.card--reply { top: 120px; right: 0; rotate: 1.2deg; z-index: 2; }
.card--approve { top: 350px; left: 4%; rotate: -0.8deg; z-index: 3; padding-bottom: 68px; }
.mini { border-collapse: collapse; width: 100%; font-size: var(--text-xs); }
.mini th, .mini td { text-align: left; padding: 3px 8px 3px 0; border-bottom: 1px solid var(--color-rule); }
.mini th { font-weight: 500; color: var(--color-muted); }
.fake-actions { display: flex; gap: var(--space-xs); }
.fake-btn { display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: var(--text-xs); font-weight: 500; box-shadow: var(--edge-stock); background: var(--color-cotton); }
.fake-btn--ink { background: var(--color-board); color: var(--color-board-type); box-shadow: none; }
.pressed { position: absolute; right: var(--space-lg); bottom: 14px; margin: 0; font: 600 var(--text-xl)/1 var(--font-body); color: var(--color-paid); rotate: -7deg; padding: 2px 8px; border: 2px solid currentColor; border-radius: 6px; text-shadow: 0.6px 0.8px 0 oklch(100% 0 0 / 0.6), -0.4px -0.5px 0 oklch(32% 0.05 40 / 0.25); opacity: 0.92; }
.pressed--small { position: static; font-size: var(--text-sm); rotate: -4deg; justify-self: end; align-self: center; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) and (min-width: 64.01rem) {
  .card { animation: deal 700ms var(--ease-out) both; }
  .card--ask { animation-delay: 150ms; }
  .card--reply { animation-delay: 650ms; }
  .card--approve { animation-delay: 1150ms; }
  .card--approve .pressed { animation: press 380ms var(--ease-out) 1900ms both; }
  @keyframes deal { from { opacity: 0; translate: -40px 24px; } }
  @keyframes press { from { opacity: 0; transform: scale(1.35); } }
}

/* why */
.why { padding-block: var(--section-gap-s); }
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-2xl); align-items: start; }
.prose > * + * { margin-top: var(--space-md); }
.screen { margin: var(--space-3xl) 0 0; padding: 10px; }
.screen img { border-radius: 4px; width: 100%; }

/* Franklin */
.franklin { padding-block: var(--space-3xl); background: var(--color-paper-2); border-block: 1px solid var(--color-rule); }
.franklin__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xl); align-items: center; max-width: 980px; }
.franklin__mark { width: 96px; height: 96px; }
.franklin .lead { margin-top: var(--space-md); max-width: 60ch; }

/* no DMs */
.table-talk { padding-block: var(--section-gap-s); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-2xl); align-items: end; }
.two-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); margin-top: var(--space-2xl); }
.place { padding: var(--space-xl); }
.place p { margin-top: var(--space-sm); color: var(--color-ink-2); }
.place--tucked { rotate: 0.8deg; translate: 0 18px; }
.aside { margin-top: var(--space-3xl); font: 700 var(--text-2xl)/1.2 var(--font-heading); max-width: 30ch; }

/* features */
.features { padding-block: var(--section-gap-s); border-top: 1px solid var(--color-rule); }
.feature-list { list-style: none; padding: 0; margin: var(--space-2xl) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-xl); }
.feature-list li { padding-block: var(--space-lg); border-top: 1px solid var(--color-rule-2); }
.feature-list p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.4fr) minmax(0, 1fr); gap: var(--space-xl); margin-top: var(--space-3xl); align-items: center; }
.shot { margin: 0; padding: 8px 8px 0; }
.shot img { border-radius: 4px; width: 100%; }
.shot figcaption { padding: var(--space-sm) var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }

/* how */
.how { padding-block: var(--section-gap-s); background: var(--color-paper-2); border-top: 1px solid var(--color-rule); }
.how__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); margin-top: var(--space-2xl); }

/* quick start on the board */
.start { padding-block: var(--section-gap-s); }
.start h2, .start .lead { color: var(--color-board-type); }
.start .lead { opacity: 0.85; }
.steps { list-style: none; padding: 0; margin: var(--space-2xl) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); counter-reset: step; }
.step { min-width: 0; padding: var(--space-xl); box-shadow: var(--edge-stock), 6px 5px 14px -6px oklch(7% 0.01 245 / 0.6); counter-increment: step; display: flex; flex-direction: column; gap: var(--space-md); }
.step h3::before { content: counter(step) ". "; color: var(--color-accent-2); }
.step p { color: var(--color-ink-2); font-size: var(--text-sm); }
.code { min-width: 0; max-width: 100%; position: relative; background: var(--color-board); color: var(--color-board-type); border-radius: 6px; }
.code pre { margin: 0; padding: var(--space-md); padding-top: 44px; white-space: pre; overflow-x: auto; font: 400 var(--text-xs)/1.6 var(--font-outlier); }
.copy { position: absolute; top: 6px; right: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--color-cotton); color: var(--color-print); font: 500 var(--text-xs)/1 var(--font-body); cursor: pointer; box-shadow: var(--edge-stock); }
.copy:hover { background: var(--color-paper-2); }
.board-note { margin-top: var(--space-xl); font-size: var(--text-sm); opacity: 0.85; max-width: 70ch; }
.board-note a { color: inherit; text-decoration-color: var(--color-accent); }
.board :not(pre) > code { background: oklch(35% 0.035 245); border-color: oklch(40% 0.035 245); color: var(--color-board-type); }
.step :not(pre) > code { background: var(--color-paper-2); border-color: var(--color-rule); color: var(--color-print); }

/* roadmap */
.roadmap { padding-block: var(--section-gap-s); }
.roadmap__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-2xl); align-items: start; }
.roadmap .lead { margin-top: var(--space-md); }
.versions { list-style: none; padding: 0; margin: 0; }
.versions li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: var(--space-md); padding-block: var(--space-md); border-top: 1px solid var(--color-rule-2); align-items: baseline; }
.versions li:last-child { border-bottom: 1px solid var(--color-rule-2); }
.versions .v { font-weight: 600; }
.versions li:not(.done) p { color: var(--color-ink-2); }

/* open source */
.open { padding-block: var(--section-gap-s); background: var(--color-paper-2); border-top: 1px solid var(--color-rule); }
.open__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.open .lead { margin-top: var(--space-md); }
.open__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); }

/* footer */
.site-footer { padding-block: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-2xl); align-items: center; }
.site-footer img { width: 96px; }
.site-footer .small { margin-left: auto; }

@media (max-width: 64rem) {
  .hero__grid, .why__grid, .section-head, .roadmap__grid, .open__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: var(--space-3xl); }
  .table-scene { max-width: 560px; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how__grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .shot--phone { grid-column: 1 / -1; order: 3; justify-self: center; width: min(240px, 70%); }
}
@media (max-width: 40rem) {
  .hide-s { display: none; }
  .site-header ul { gap: var(--space-md); }
  .brand img { width: 88px; }
  .hero { padding-top: var(--space-2xl); }
  .table-scene { min-height: 0; display: grid; gap: var(--space-md); }
  .card { position: relative; inset: auto; width: 100%; rotate: 0deg; }
  .card--approve { padding-bottom: 64px; }
  .two-places, .feature-list, .shots { grid-template-columns: minmax(0, 1fr); }
  .shot--phone { grid-column: auto; }
  .place--tucked { rotate: 0deg; translate: none; }
  .franklin__grid { grid-template-columns: 1fr; }
  .franklin__mark { width: 64px; height: 64px; }
  .versions li { grid-template-columns: 3rem minmax(0, 1fr); }
  .pressed--small { grid-column: 2; justify-self: start; }
  .site-footer .small { margin-left: 0; }
}

@media print { .site-header { position: static; } }
.code--wrap pre { white-space: pre-wrap; }
.always-on { margin-top: var(--space-xl); padding: var(--space-xl); max-width: 900px; box-shadow: var(--edge-stock), 6px 5px 14px -6px oklch(7% 0.01 245 / 0.6); }
.always-on p { margin-top: var(--space-sm); color: var(--color-ink-2); }

/* the hero approval stamp in green */
:root { --color-approved: oklch(52% 0.13 150); }
.pressed--approved { color: var(--color-approved); }

/* hover: cards and pictures lift off the desk toward the light */
.stock, .shot img, .screen img { transition: transform var(--dur-long) var(--ease-out), box-shadow var(--dur-long) var(--ease-out), rotate var(--dur-long) var(--ease-out); }
.place:hover, .step:hover, .always-on:hover { transform: translate(-2px, -6px); box-shadow: var(--edge-stock), var(--cast-stock-lift); }
.place--tucked:hover { rotate: 0deg; }
.shot { overflow: hidden; }
.shot:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: var(--edge-stock), var(--cast-stock-lift); }
.shot--phone:hover { transform: translateY(-8px) rotate(0.8deg); }
.shot:hover img { transform: scale(1.03); }
.screen { overflow: hidden; }
.screen:hover { transform: translateY(-6px); box-shadow: var(--edge-stock), var(--cast-stock-lift); }
.screen:hover img { transform: scale(1.015); }
.card { transition: transform var(--dur-long) var(--ease-out), box-shadow var(--dur-long) var(--ease-out), rotate var(--dur-long) var(--ease-out); }
.card:hover { rotate: 0deg; transform: translateY(-8px) scale(1.03); box-shadow: var(--edge-stock), var(--cast-stock-lift); z-index: 5; }
.feature-list li { transition: transform var(--dur-short) var(--ease-out); }
.feature-list li:hover { transform: translateX(6px); }
.feature-list li:hover h3 { color: var(--color-accent-2); }

/* cursor: the Junto table. Plain image cursor first; site.js swaps in the animated one. */
@media (pointer: fine) {
  html { cursor: url("/assets/cursor.png") 16 16, auto; }
  a, button { cursor: url("/assets/cursor.png") 16 16, pointer; }
}
.cursor { display: none; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor .cursor { display: block; position: fixed; inset: 0 auto auto 0; z-index: var(--z-tooltip); pointer-events: none; }
.cursor__glow, .cursor__mark { position: fixed; left: 0; top: 0; will-change: transform; opacity: 0; transition: opacity var(--dur-short); }
.cursor.is-on .cursor__glow, .cursor.is-on .cursor__mark { opacity: 1; }
.cursor__glow { width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: radial-gradient(circle, oklch(72% 0.16 50 / 0.55), oklch(72% 0.16 50 / 0.18) 45%, transparent 70%); filter: blur(6px); transition: opacity var(--dur-short), width var(--dur-long) var(--ease-out), height var(--dur-long) var(--ease-out), margin var(--dur-long) var(--ease-out); }
.cursor__mark { width: 30px; height: 30px; margin: -15px 0 0 -15px; overflow: visible; filter: drop-shadow(0 0 6px oklch(72% 0.16 50 / 0.7)); }
.cursor__seats { fill: #1B2A3A; stroke: #F7F3EC; stroke-width: 2; transform-origin: 32px 32px; animation: seats 9s linear infinite; }
.cursor__core { fill: #E8743B; stroke: #F7F3EC; stroke-width: 2; transform-origin: 32px 32px; animation: breathe 2.4s var(--ease-in-out) infinite; transition: r var(--dur-short); }
.cursor.is-link .cursor__glow { width: 132px; height: 132px; margin: -66px 0 0 -66px; }
.cursor.is-link .cursor__seats { animation-duration: 3s; }
.cursor.is-down .cursor__core { animation: none; transform: scale(0.7); }
@keyframes seats { to { rotate: 360deg; } }
@keyframes breathe { 50% { transform: scale(0.82); } }

.made-by { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); }
.site-footer .pendoo { display: inline-block; line-height: 0; transition: transform var(--dur-short) var(--ease-out); }
.site-footer .pendoo img { width: 108px; height: auto; }
.site-footer .pendoo:hover { transform: translateY(-2px); }
