/* Self-hosted SIL OFL fallback for platforms without Avenir Next. */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/instrument-sans-bold.ttf') format('truetype'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/instrument-sans-medium.ttf') format('truetype'); }
:root {
  color-scheme: light;
  /* Julio Design System: bg-canvas, light. */
  --bg-canvas: #fafafa;
  /* Julio Design System: surface-card, light. */
  --surface-card: #ffffff;
  /* Julio Design System: surface-muted, light. */
  --surface-muted: #f5f5f5;
  /* Julio Design System: border-default, light. */
  --border-default: #ebebeb;
  /* Julio Design System: border-field, light. */
  --border-field: #d4d4d4;
  /* Julio Design System: text-body, light. */
  --text-body: #171717;
  /* Julio Design System: text-secondary, light. */
  --text-secondary: #666666;
  /* Julio Design System: accent-primary, light. */
  --accent-primary: #171717;
  /* Julio Design System: accent-focus, light. */
  --accent-focus: #005fcc;
  /* Julio Design System: text-on-accent, light. */
  --text-on-accent: #ffffff;
  /* 4px. Gap inside a label + dot pair. */
  --space-1: 4px;
  /* 8px. Tight stack gap. */
  --space-2: 8px;
  /* 12px. Card-to-card gap. */
  --space-3: 12px;
  /* 16px. Card padding, default block gap. */
  --space-4: 16px;
  /* 20px. Mobile page padding. */
  --space-5: 20px;
  /* 24px. Section gap. */
  --space-6: 24px;
  /* 32px. Large section gap. */
  --space-8: 32px;
  /* 48px. Desktop page padding, page-level separation. */
  --space-12: 48px;
  /* 48px. Large button, and the minimum on mobile. */
  --control-height-lg: 48px;
  /* 44px. Minimum touch target on mobile; a 40px control gets 4px of hit slop. */
  --tap-target-min: 44px;
  /* 1120px. Maximum width of a page's content column, centred. */
  --content-max: 1120px;
  /* 4px. Small inline actions, sheet bottom corners. */
  --radius-action: 4px;
  /* 12px. Buttons, fields, snackbars. */
  --radius-control: 12px;
  /* 6px. Chips, badges, segments. */
  --radius-chip: 6px;
  /* 999px. Pills and dots. */
  --radius-pill: 999px;
  /* 20px. Cards and panels. */
  --radius-card: 20px;
  /* Hover, press, focus ring. Reduce Motion collapses it to 0 (bundle.css). */
  --motion-fast: 150ms;
  /* Colour changes and opening a panel. */
  --motion-base: 200ms;
  /* The system's only easing curve. */
  --ease-out: cubic-bezier(0,0,0.2,1);
  /* 12px step of the type scale. */
  --text-12: 12px;
  /* 13px step of the type scale. */
  --text-13: 13px;
  /* 14px step of the type scale. */
  --text-14: 14px;
  /* 15px step of the type scale. */
  --text-15: 15px;
  /* 16px step of the type scale. */
  --text-16: 16px;
  /* 18px step of the type scale. */
  --text-18: 18px;
  /* Display step above the scale: a hero name or a cover title. Fluid between 40 and 56px. */
  --text-page-title: 28px;
  --leading-page-title: 1.15;
  --text-display: clamp(40px, 5vw, 56px);
  /* Controls and emphasis. */
  --weight-medium: 500;
  /* Labels. */
  --weight-semibold: 600;
  /* Headings. */
  --weight-bold: 700;
  /* Headings. */
  --leading-tight: 1.1;
  /* Dense UI text. */
  --leading-snug: 1.4;
  /* Body copy. */
  --leading-relaxed: 1.5;
  /* Canonical type families and display tracking. */
  --font-heading: "Avenir Next","Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --font-body: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Inter,Arial,sans-serif;
  --tracking-display: -0.01em;
  /* Julio Design System: accent-success, light (5.0:1 on white). */
  --accent-success: #1a7f45;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-6); }
body { margin: 0; color: var(--text-body); background: var(--bg-canvas); font: var(--text-14)/var(--leading-relaxed) var(--font-body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-primary); color: var(--text-on-accent); }
a { color: inherit; text-underline-offset: var(--space-1); }
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: var(--space-1); border-radius: var(--radius-action); }
/* Sections and main take script focus (tabindex="-1") so keyboard and screen readers follow the scroll; they are not controls, so no ring. Chrome otherwise shows one after Back. */
[tabindex="-1"]:focus { outline: none; }
.skip-link { position: absolute; top: var(--space-4); left: var(--space-4); padding: var(--space-3); background: var(--accent-primary); color: var(--text-on-accent); transform: translateY(-200%); z-index: 2; }
.skip-link:focus { transform: none; }
.page { width: min(calc(100% - var(--space-12) * 2), var(--content-max)); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-6); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-target-min); font: var(--weight-bold) var(--text-18)/var(--leading-tight) var(--font-heading); text-decoration: none; }
.brand-mark { width: var(--space-6); height: var(--space-6); flex-shrink: 0; }
nav { display: flex; align-items: center; gap: var(--space-8); }
nav a { display: inline-flex; align-items: center; min-height: var(--tap-target-min); text-decoration: none; color: var(--text-secondary); transition: color var(--motion-fast) var(--ease-out); }
nav a:hover, nav a[aria-current="page"] { color: var(--text-body); }
nav a[aria-current="page"] { font-weight: var(--weight-semibold); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--weight-bold); margin: 0; text-wrap: balance; }
h1 { font-size: var(--text-display); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-18); line-height: var(--leading-snug); }
h3 { font-size: var(--text-18); line-height: var(--leading-snug); }
.hero { padding-block: var(--space-12); }
.hero h1 { max-width: calc(var(--content-max) * 3 / 4); }
.hero-lede { max-width: calc(var(--content-max) / 2); margin: var(--space-6) 0 0; color: var(--text-secondary); font-size: var(--text-18); }
.hero-actions { display: flex; gap: var(--space-2); margin-top: var(--space-8); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: var(--control-height-lg); padding: var(--space-3) var(--space-4); border-radius: var(--radius-control); text-decoration: none; font-weight: var(--weight-medium); background: var(--accent-primary); color: var(--text-on-accent); transition: background var(--motion-fast) var(--ease-out); }
.button:hover { background: var(--text-secondary); }
.button-secondary { background: var(--surface-muted); color: var(--text-body); }
.button-secondary:hover { background: var(--border-field); }
.product-section { margin-block: var(--space-6) var(--space-12); }
.product-section > h2 { margin-bottom: var(--space-6); }
/* One wide card per product: text on the left, the screenshot on the right. */
.product-grid { display: grid; gap: var(--space-6); }
.product-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8) var(--space-12); align-items: center; padding: var(--space-8); border: 1px solid var(--border-default); border-radius: var(--radius-card); background: var(--surface-card); }
.product-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.product-body > * { margin: 0; }
.product-card h3 { font-size: var(--text-page-title); line-height: var(--leading-page-title); letter-spacing: var(--tracking-display); }
.product-body > p:not(.product-price) { color: var(--text-secondary); font-size: var(--text-15); }
.product-price { font-weight: var(--weight-medium); }
.product-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.product-body > .product-actions { margin-top: var(--space-2); }
.product-card > .product-shot { margin: 0; }
/* Policies under a product: buttons that open each policy inside the card (policies.js). Without script they are links. */
.product-policies { grid-column: 1 / -1; padding-top: var(--space-2); border-top: 1px solid var(--border-default); }
.policy-tabs { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); margin: 0; padding: 0; list-style: none; }
.policy-tabs :is(a, button) { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-target-min); padding: 0; border: 0; background: none; color: var(--text-secondary); font: inherit; cursor: pointer; transition: color var(--motion-fast) var(--ease-out); }
.policy-tabs :is(a, button):hover, .policy-tabs [aria-expanded="true"] { color: var(--text-body); }
.policy-tabs button::after { content: ""; width: var(--space-1); height: var(--space-1); padding: 1px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-25%) rotate(45deg); transition: transform var(--motion-base) var(--ease-out); }
.policy-tabs [aria-expanded="true"]::after { transform: translateY(25%) rotate(225deg); }
.policy-drawer.is-resizing { overflow: hidden; }
.policy-panel { max-width: calc(var(--content-max) * 2 / 3); padding-block: var(--space-4) var(--space-2); color: var(--text-secondary); }
/* Closed panels stay in the page (hidden="until-found") so find in page reaches them; they take no space. */
.policy-panel[hidden] { padding: 0; }
.policy-panel :is(p, ul, dl) { margin: 0 0 var(--space-3); }
.policy-panel ul { padding-left: var(--space-5); }
.policy-panel li + li { margin-top: var(--space-1); }
.policy-panel h4 { margin: 0 0 var(--space-3); color: var(--text-body); font: var(--weight-bold) var(--text-18)/var(--leading-snug) var(--font-heading); }
.policy-panel h5 { margin: var(--space-6) 0 var(--space-2); color: var(--text-body); font-size: var(--text-15); font-weight: var(--weight-semibold); line-height: var(--leading-snug); }
.policy-panel > :last-child { margin-bottom: 0; }
.price-list { max-width: calc(var(--content-max) / 3); }
.price-list div { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); border-bottom: 1px solid var(--border-default); }
.price-list dd { margin: 0; color: var(--text-body); font-variant-numeric: tabular-nums; }
.policy-panel .data-list { padding: 0; list-style: none; }
.data-list li { padding-block: var(--space-3); border-bottom: 1px solid var(--border-default); }
.data-list li + li { margin-top: 0; }
.data-list p { margin: 0 0 var(--space-1); color: var(--text-body); }
.data-list dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--space-3); margin: 0; font-size: var(--text-13); }
.data-list div { display: contents; }
.data-list dt { font-weight: var(--weight-semibold); }
.data-list dd { margin: 0; }
.policy-panel .policy-source { margin-top: var(--space-6); font-size: var(--text-13); }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: var(--text-13); }
.status { display: inline-flex; align-items: center; gap: var(--space-2); }
.status::before { content: ""; width: var(--space-2); height: var(--space-2); border-radius: var(--radius-pill); background: var(--accent-success); }
.chip { padding: 0 var(--space-2); border: 1px solid var(--border-field); border-radius: var(--radius-chip); }
.product-shot { border: 1px solid var(--border-default); border-radius: var(--radius-control); overflow: hidden; background: var(--bg-canvas); }
.product-shot img { display: block; width: 100%; height: auto; }
.project-meta { margin-bottom: var(--space-4); color: var(--text-secondary); }
footer { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); align-items: start; gap: var(--space-8) var(--space-6); padding-block: var(--space-12) var(--space-6); border-top: 1px solid var(--border-default); font-size: var(--text-13); }
footer .wordmark { font-size: var(--text-16); }
footer p { margin: 0; }
.footer-brand p { margin-top: var(--space-2); color: var(--text-secondary); }
.footer-col { display: block; }
.footer-col h2 { margin-bottom: var(--space-2); font-family: var(--font-body); font-size: var(--text-13); font-weight: var(--weight-semibold); line-height: var(--leading-relaxed); }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col a { display: inline-flex; align-items: center; min-height: var(--tap-target-min); color: var(--text-secondary); text-decoration: none; }
.footer-col a:hover { color: var(--text-body); text-decoration: underline; }
.footer-base { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--border-default); color: var(--text-secondary); font-size: var(--text-12); }
.footer-base a { display: inline-flex; align-items: center; min-height: var(--tap-target-min); }
.about-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: var(--space-12); padding-block: var(--space-12); }
.about-intro .bio { font-size: var(--text-15); margin: 0; }
/* The negative top margin centres the first row of 44px links on the product name beside it. */
.policy-list { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); margin: calc((var(--text-18) * var(--leading-snug) - var(--tap-target-min)) / 2) 0 0; padding: 0; list-style: none; }
.policy-list a { display: inline-flex; align-items: center; min-height: var(--tap-target-min); color: var(--text-secondary); }
.policy-list a:hover { color: var(--text-body); }
.section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-12); padding-block: var(--space-12); border-top: 1px solid var(--border-field); }
.bio { color: var(--text-secondary); }
.bio p { margin: 0 0 var(--space-6); }
.bio p:last-child { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; min-height: var(--tap-target-min); color: var(--text-secondary); }
.project-intro { padding-block: var(--space-12); }
.project-status { display: block; margin-bottom: var(--space-4); color: var(--text-secondary); }
.project-intro .bio { max-width: calc(var(--content-max) * 2 / 3); margin-top: var(--space-6); }
.project-features { margin: 0; }
.project-features dt { color: var(--text-body); font-size: var(--text-16); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }
.project-features dd { margin: 0 0 var(--space-6); }
.project-features dd:last-child { margin-bottom: 0; }
.not-found .bio { margin: var(--space-6) 0 var(--space-2); font-size: var(--text-15); }
/* Julio Design System: secondary columns fold below 860px. */
@media (max-width: 860px) {
  .page { width: calc(100% - var(--space-5) * 2); }
  footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .hero h1 { max-width: none; }
  .about-intro, .section { grid-template-columns: 1fr; gap: var(--space-6); }
  .project-intro .bio { max-width: none; }
  .product-card { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding: var(--space-6); }
}
@media (max-width: 480px) {
  header { gap: var(--space-4); }
  nav { gap: var(--space-5); }
  .wordmark { font-size: var(--text-16); }
  .hero { padding-block: var(--space-8); }
  .hero-lede { font-size: var(--text-16); }
  .product-card { padding: var(--space-5); }
  .policy-tabs { gap: 0 var(--space-4); }
  .product-body > p:not(.product-price) { font-size: var(--text-14); }
  footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
