/* Page basics shared by the home page and the case studies: reset, type, top bar, buttons, chips, section heads. */
*, *::before, *::after { box-sizing: border-box; } /* sizes include padding */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; } /* no phone font boosting; anchor links glide */
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; } /* warm dark page */
img, video { display: block; max-width: 100%; } /* media never overflow */
a { color: inherit; } /* links take the text colour */
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; } /* spacing is set per component */
ul, ol { padding: 0; list-style: none; } /* lists are styled per component */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; } /* clear keyboard focus */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 99px; background: var(--paper); color: var(--ink); font-weight: 600; } /* hidden until focused */
.skip-link:focus { top: 12px; } /* shows for keyboard users */
.page-width { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; } /* centred content column */
.site-bar { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); } /* top bar over the hero */
.site-bar-name { font: 500 14px var(--mono); letter-spacing: 0.02em; text-decoration: none; color: var(--paper-soft); } /* small name, the hero has the big one */
.site-bar nav { display: flex; gap: 28px; font: 500 15px var(--body); } /* section links */
.site-bar nav a { text-decoration: none; color: var(--paper-soft); transition: color 0.2s; } /* quiet links */
.site-bar nav a:hover { color: var(--paper); } /* brighten on hover */
.button-row { display: flex; flex-wrap: wrap; gap: 10px; } /* buttons side by side, wrap on small screens */
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 99px; border: 1.5px solid currentColor; font: 600 15px var(--body); text-decoration: none; white-space: nowrap; transition: transform 0.2s, background-color 0.2s, color 0.2s; } /* pill button, 48px touch target */
.button:hover { transform: translateY(-2px); } /* small lift on hover */
.button-solid { background: var(--paper); border-color: var(--paper); color: var(--ink); } /* the main action on the ink */
.button-quiet { border-color: var(--ink-line); color: var(--paper); } /* secondary action on the ink */
.button-quiet:hover { border-color: var(--paper-soft); } /* outline shows on hover */
.world-button { border-color: currentColor; color: var(--world-on-color); } /* outline button inside a colour world */
.world-button-solid { background: var(--world-on-color); border-color: var(--world-on-color); color: var(--world-background); } /* filled button inside a colour world */
.text-link { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; } /* inline arrow link */
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 99px; background: rgb(0 0 0 / 0.28); color: #fff; font: 500 12px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; } /* one small status per project */
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--chip-dot, var(--live)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip-dot, var(--live)) 30%, transparent); } /* the coloured status dot */
.world-gourmetai .status-chip, .world-ka2s .status-chip { background: rgb(0 0 0 / 0.55); } /* darker on gold and red, so white text passes 4.5:1 */
.status-chip[data-status="recording"] { --chip-dot: var(--recording); } /* a film that plays on the page */
.status-chip[data-status="code"] { --chip-dot: var(--code); } /* source on GitHub */
.stack-chips { display: flex; flex-wrap: wrap; gap: 6px; } /* stack tags */
.stack-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 5px; border-radius: 99px; background: var(--chip-fill, rgb(243 239 230 / 0.08)); font: 500 13px var(--mono); } /* one tag: logo badge, then the name */
.tech-logo { flex: none; width: 18px; height: 18px; border-radius: 5px; } /* the technology's badge; its own off-white tile reads on every panel colour */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--ink-line); } /* label on the left, short line on the right */
.section-head h2 { font: 700 clamp(34px, 4.6vw, 64px)/0.95 var(--display); letter-spacing: -0.03em; } /* section title */
.section-head p { max-width: 380px; color: var(--paper-soft); font-size: 16px; } /* one supporting line */
.section-label { display: block; margin-bottom: 14px; color: var(--paper-faint); font: 500 13px var(--mono); letter-spacing: 0.05em; } /* small mono label above a title */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* read by screen readers only */
.link-out::after { content: "↗"; margin-left: 6px; font-weight: 400; } /* leaves this site (arrow drawn by CSS, so it is not page text) */
.link-in::after { content: "→"; margin-left: 6px; font-weight: 400; transition: margin 0.2s; } /* opens a page on this site */
.link-in:hover::after { margin-left: 10px; } /* arrow nudges on hover */
.link-up::after { content: "↑"; margin-left: 6px; } /* back to the top */
