/* tasteskill start.mjs brand. The colour comes from one picture, a blue-hour landscape painted by the kit's own
   painterly-landscape effect: white paper, cool light greys, near-black ink and buttons, and the picture's sky blue
   for state and hovers. The paper weave stays; type host. Keep the :root block as printed
   (the action is the ink). */
@font-face { font-family: "Host Grotesk"; src: url(/fonts/host-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
:root {
  --p-bg: #ffffff; --p-surface: #f5f6f8; --p-ink: #0a0c10; --p-muted: #666a73;
  --p-accent: #3b5d99; --p-accent-ink: #ffffff; --p-action: #0a0c10; --p-action-ink: #ffffff;
  --p-inv-bg: #0a0c10; --p-inv-surface: #15181e; --p-inv-ink: #ffffff; --p-inv-muted: #969aa3;
  --p-inv-accent: #8fb0e6; --p-inv-accent-ink: #0a0c10; --p-inv-action: #ffffff; --p-inv-action-ink: #0a0c10;
  --font-display: "Host Grotesk", system-ui, sans-serif;
  --font-text: "Host Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
}
/* the ground behind UI in cards: a cool light grey */
html:root:root { --ground-bg: #e9ebef; --ground-surface: #f5f6f8; --ground-ink: #0a0c10; --ground-muted: #595d66; --ground-accent: #3b5d99; }
/* the big pictures (the hero's frame, a lit frame, a process step) stand on the landscape: live in the home hero
   (the effect, held still), and elsewhere a still of the same painting (/landscape.webp, also the hero's fallback).
   The sky and horizon by default; the hero art and the process steps show its lower half, the hills. Only the
   ground is painted, so the windows on it keep the page's light palette. A diagram keeps the grey. */
:is(.hero__window, .hero__art, .frame--lit:not(:has(.dg)), [data-moment="pinned-chapters"] .mo-pc__visual.mo-pc__visual--lit, .chapter__frame):not(#_) {
  background: url(/landscape.webp) 50% 30% / cover;
}
:is(.hero__art, [data-moment="pinned-chapters"] .mo-pc__visual.mo-pc__visual--lit):not(#_) { background-position: 50% 78%; }
/* the paper: a twill weave laid over every surface of the page (the ground, the nav, cards, question cards,
   the grey panels behind UI), as on replay; the tile is black with the weave in its alpha, so it sits on any colour */
:root { --paper: url(/paper.webp); }
body.bg-paper { background-image: var(--paper); background-size: 256px; background-blend-mode: normal; }
:is(.nav, .card, .qa > details, .panel:not([data-fx], .panel--device), .frame:has(.dg)):not(#_) { background-image: var(--paper); background-size: 256px; }
/* a state that means "good" carries the sky blue: deployed, connected, online, passed */
.ui .ui-win__st.is-done::before, .ui .ui-app__on::before, .ui .ui-chat__online::before { background: var(--u-accent); opacity: 1; }
.ui .ui-pipe.is-passed .ui-pipe__chip { background: var(--u-tint-2); color: var(--u-accent-text); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--u-accent) 40%, transparent); }
/* the sky blue in small doses: the main button answers the pointer in it, an open question's cross sits on it */
@media (hover: hover) { .btn--primary:hover { background: var(--accent); color: var(--accent-ink); } }
/* cards and question cards take a dashed hairline */
.card, .qa > details { border-style: dashed; border-color: var(--line-strong); }

/* Page CSS: one --p-h per card group and what sits inside a visual. */
.menu-card .panel { --p-h: 200px; }
#services .panel { --p-h: 336px; }
@media (max-width: 1279px) { #services .panel { --p-h: 220px; } }
/* below 1024 the group keeps four cards (layout-v4.md, the tablet: a card out) */
@media (max-width: 1023px) { #services .card:nth-child(3) { display: none; } }
@media (max-width: 639px) { #services .panel { --p-h: 160px; } }
@media (min-width: 640px) and (max-width: 1023px) { #work .frame--split { --ratio: 56.25%; } }

/* app-frame (sections-library.md, the whole recipe) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* the hero collage's result card: 300 wide, 32 in from the frame's lower left (layout-v4.md, collage) */
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
/* the hero's pieces take the fragment palette a .stage gives (cards.css): the page's ink on a surface one step off the card */
.hero__art > .ui { --fx-bg: var(--frag, oklch(from var(--card) clamp(calc(l + 0.05), calc((l - 0.5) * 1000), 1) calc(c * 0.5) h)); --fx-surface: var(--card); --fx-ink: var(--ink); --fx-muted: var(--muted); --fx-accent: var(--accent); --fx-accent-ink: var(--accent-ink); }
.hero-note { display: grid; gap: 8px; padding: 14px 16px; font: 400 13px/1.4 var(--font-text); }
.hero-note__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.hero-note__row b { font-weight: 500; }
/* a phone keeps one client quote, so the section stays within its two screens (layout-v4.md, cut the phone copy) */
@media (max-width: 639px) { #work .proof:nth-child(n+2), #work .rows p { display: none; } #work .frame--split { --ratio: 150%; } }
/* a chapter's frame: it fills its screen from 1280; below that the section grows, so the frame takes its own ratio */
.chapter__frame { margin-top: var(--s-7); }
@media (max-width: 1279px) { .group > .chapter__frame.fill { flex: 0 0 auto; height: clamp(440px, 56vw, 520px); } }
/* the letters of the statement start scattered: keep them inside their section */
#engagement { overflow-x: clip; }
/* a chapter's group is a grid item: without this the window's own width widens the page under 1280 */
.g2 > .wrap > .group { min-width: 0; }
/* the three client quotes share the band's second screen from its top to its foot */
#work .proofs { row-gap: var(--s-7); align-content: space-between; }
/* the app window takes the same fragment palette */
.app.ui { --fx-bg: var(--frag, oklch(from var(--card) clamp(calc(l + 0.05), calc((l - 0.5) * 1000), 1) calc(c * 0.5) h)); --fx-surface: var(--card); --fx-ink: var(--ink); --fx-muted: var(--muted); --fx-accent: var(--accent); --fx-accent-ink: var(--accent-ink); }

/* the plan comparison on a phone: each feature, then its three plans side by side under their names */
.cmp__plan { display: none; }
@media (max-width: 639px) {
  .cmp > [role="row"]:first-child { display: none; }
  .cmp > [role="row"] { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-2); }
  .cmp > [role="row"] > [role="rowheader"] { grid-column: 1 / -1; font-weight: 500; }
  .cmp > [role="row"] > [role="cell"] { grid-column: auto; font-size: var(--t-small); }
  .cmp__plan { display: block; color: var(--muted); }
}

/* a short desktop screen (a laptop under 860px of height): a section keeps at least its screens and grows with
   its content instead of overlapping, as the kit already does from 640 to 1279 wide */
@media (min-width: 1280px) and (max-height: 859px) {
  main > :is(section, .section):not(.hero, .section--hero, [data-moment="pinned-chapters"]), footer.closing { height: auto; min-height: calc(var(--h, 1) * 100svh); display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero, [data-moment="pinned-chapters"]) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}
/* the name set wide in the close: whole at every width (Host Grotesk's tall ascenders are clipped by the kit's
   .86 line box, and 19vw runs past a phone's column with an 11-letter name) */
.close__word { overflow: visible; }
@media (max-width: 639px) { .close__word { font-size: 16vw; } }

/* the owner's layout taste (an editorial grid board): flat panels behind UI, and small labels in the mono face */
:root:has(meta[name="site-kind"]:is([content="tech"], [content="software"], [content="gaming"])) .panel:not([data-fx], .panel--device) { background-image: none; }
.hero__facts dt, .t-label, .footer__col h3 { font-family: var(--font-mono); font-size: 13px; }
/* the hero's window: the app frame on the lit frame, its own margin off */
.hero__window .app.ui { margin-top: 0; overflow: hidden; }
/* the narrowest phones: the name alone, so the menu button stays on the screen */
@media (max-width: 359px) { .nav__logo svg { display: none; } }

/* questions: cards that open on a click, the plus turning into a cross (the owner's call) */
.qa { display: grid; gap: var(--s-3); align-content: start; }
.qa > details, .qa > details:first-child { display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); transition: border-color var(--m-in, 150ms) var(--ease); }
.qa > details:hover, .qa > details[open] { border-color: var(--line-strong); }
.qa summary { list-style: none; font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); cursor: pointer; font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform var(--m-panel, 200ms) var(--ease);
}
.qa details[open] > summary::after { transform: rotate(45deg); background-color: var(--accent); border-color: transparent; color: var(--accent-ink); }
.qa__a > p { margin: 0; padding: 0 var(--s-5) var(--s-5); max-width: 60ch; }
/* the answer slides open and shut: the details' content box is a one-row grid going from 0fr to 1fr (the same
   technique the kit's pinned chapters use), with the answer fading in behind it. Browsers without
   ::details-content open it at once. */
.qa details::details-content { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 320ms var(--m-ease-enter, cubic-bezier(.22, 1, .36, 1)), opacity 240ms ease, content-visibility 320ms allow-discrete; }
.qa details[open]::details-content { grid-template-rows: 1fr; opacity: 1; }
.qa__a { min-height: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .qa summary::after, .qa > details, .qa details::details-content { transition: none; } }

/* the contact page's first screen holds the form: the card keeps its own height, and where the screen is too
   short or narrow for it the hero grows instead of cutting the form */
.hero--form .hero-form { align-self: start; }
@media (max-width: 1279px), (max-height: 859px) { main > .hero.hero--form { height: auto; min-height: 100svh; } }
@media (max-width: 1023px) { .hero--form .hero-form { margin-top: var(--s-6); align-self: stretch; } }
