@use 'tokens' as *; @use 'mixins' as *; @use 'sass:meta'; @include font-face( 'LINE Seed JP Title', '../../.astro/generated/fonts/line-seed-jp-title.woff2', 400, normal ); @include fontsource('Instrument Serif', 'instrument-serif'); @include fontsource('Source Sans 3', 'source-sans-3'); @include fontsource('Source Sans 3', 'source-sans-3', 400, italic); @include fontsource('Source Sans 3', 'source-sans-3', 500, normal, 500 700); @include font-face('Departure Mono', '/fonts/DepartureMono-Regular.woff2', 400, normal); @include font-face('Ilta Mono', '/fonts/IltaMono-Light.woff2', 300, normal); :root { --transition-duration: #{$transition-duration}; --display-pixel: 1px; --pixel-em: #{$pixel-em}; --japanese-pixel-size: #{$japanese-pixel-size}; --pixel-font-size: calc(var(--pixel-em) * var(--display-pixel)); --font-heading: #{meta.inspect($heading-font)}; --font-reading: #{meta.inspect($reading-font)}; --font-pixel: #{meta.inspect($pixel-font)}; --font-mono: #{meta.inspect($mono-font)}; font-family: var(--font-reading); color: $ink; background: $background; font-synthesis: none; --ink: #{$ink}; --muted: #{$muted}; --line: #{$line}; --accent: #{$accent}; --black: #{$black}; --reading-width: #{$reading-width}; --reading-ink: #{$reading-ink}; --body-size: #{$body-size}; --body-leading: #{$body-leading}; --title-size: #{$title-size}; --graph-aspect: #{$graph-aspect}; } * { box-sizing: border-box; } html { scroll-behavior: smooth; scrollbar-color: #555555 $background; scrollbar-width: thin; } body { margin: 0; min-width: 320px; } button, input, select, textarea { font: inherit; } button, a { -webkit-tap-highlight-color: transparent; } button { color: inherit; border: 0; border-radius: 0; background: none; cursor: pointer; } a { color: inherit; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: auto; } :root a[aria-current='page'] { color: var(--accent); background: $active-tint; box-shadow: 0 0 0 space(1) $active-tint; text-decoration: none !important; } button:focus-visible, a:focus-visible, [role='link']:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; } svg { flex-shrink: 0; } #{$headings}, p { margin: 0; font-weight: 400; } ::selection { color: $background; background: var(--accent); } #{$headings} { font-family: var(--font-heading); font-weight: 400; color: $heading-ink; } /* Japanese bitmap text needs its native 16px cell, not a compressed 12px one. */ [lang|='ja'] { --pixel-font-size: var(--japanese-pixel-size); line-break: strict; word-break: normal; } .visually-hidden { position: absolute; @include size(1px); padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .skip-link { position: fixed; z-index: $layer-skip; top: 12px; left: 12px; padding: space(3) space(4); background: $background; color: var(--accent); translate: 0 -200%; font: var(--pixel-font-size)/24px var(--font-pixel); &:focus { translate: 0 0; } } #main-content { outline: none; }