diff --git a/theme/css/base.css b/theme/css/base.css index 9d33f691..73594421 100644 --- a/theme/css/base.css +++ b/theme/css/base.css @@ -1,32 +1,43 @@ /* Reset & base layout */ -@font-face{ +@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 400; - src: url("../fonts/Metropolis-Regular.woff2") format("woff2"), - url("../fonts/Metropolis-Regular.woff") format("woff"); + src: + url("../fonts/Metropolis-Regular.woff2") format("woff2"), + url("../fonts/Metropolis-Regular.woff") format("woff"); font-display: swap; } -@font-face{ +@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 600; - src: url("../fonts/Metropolis-SemiBold.woff2") format("woff2"), - url("../fonts/Metropolis-SemiBold.woff") format("woff"); + src: + url("../fonts/Metropolis-SemiBold.woff2") format("woff2"), + url("../fonts/Metropolis-SemiBold.woff") format("woff"); font-display: swap; } -@font-face{ +@font-face { font-family: "Metropolis"; font-style: normal; font-weight: 800; - src: url("../fonts/Metropolis-ExtraBold.woff2") format("woff2"), - url("../fonts/Metropolis-ExtraBold.woff") format("woff"); + src: + url("../fonts/Metropolis-ExtraBold.woff2") format("woff2"), + url("../fonts/Metropolis-ExtraBold.woff") format("woff"); font-display: swap; } -* { box-sizing: border-box; -webkit-appearance: none; } -html, body { min-height: 100%; } -html { scroll-padding-top: 4.5rem; } +* { + box-sizing: border-box; + -webkit-appearance: none; +} +html, +body { + min-height: 100%; +} +html { + scroll-padding-top: 4.5rem; +} /* Prevent tiny horizontal overflow from full-bleed sections that use viewport units; 100vw includes the scrollbar in some browsers. */ @@ -35,16 +46,23 @@ body { overflow-x: clip; } -@supports not (overflow: clip){ +@supports not (overflow: clip) { html, body { overflow-x: hidden; } } -body{ +body { background: var(--bg); color: var(--fg); - font-family: "Metropolis", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; + font-family: + "Metropolis", + ui-sans-serif, + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + sans-serif; font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; @@ -53,9 +71,12 @@ body{ } /* One fixed background layer to avoid “banding” on long pages */ -body::before{ - content:""; - position: fixed; inset: 0; z-index: -1; pointer-events: none; +body::before { + content: ""; + position: fixed; + inset: 0; + z-index: -1; + pointer-events: none; background: radial-gradient(1200px 600px at 10% -10%, var(--glow-1), transparent 60%), radial-gradient(900px 500px at 110% 10%, var(--glow-2), transparent 60%); @@ -64,28 +85,70 @@ body::before{ } /* Typography */ -a{ color: var(--brand); text-decoration: none; } -a:hover{ color: var(--brand-2); } -h1,h2,h3,h4,h5,h6{ +a { + color: var(--brand); + text-decoration: none; +} +a:hover { + color: var(--brand-2); +} +h1, +h2, +h3, +h4, +h5, +h6 { color: var(--heading); font-weight: 800; - letter-spacing: -.025em; + letter-spacing: -0.025em; line-height: 1.15; - margin: 1.6rem 0 .75rem; -} -h1{ font-size: clamp(2.15rem, 5vw, 4.2rem); } -h2{ font-size: clamp(1.55rem, 3vw, 2.35rem); } -h3{ font-size: clamp(1.22rem, 2vw, 1.55rem); } -h4{ font-size: 1.15rem; } -h5{ font-size: 1.05rem; } -h6{ font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; } -p{ margin: 0 0 1rem; padding: 0; } -strong{ font-weight: 800; color: color-mix(in oklab, var(--fg) 88%, var(--heading)); } + margin: 1.6rem 0 0.75rem; +} +h1 { + font-size: clamp(2.15rem, 5vw, 4.2rem); +} +h2 { + font-size: clamp(1.55rem, 3vw, 2.35rem); +} +h3 { + font-size: clamp(1.22rem, 2vw, 1.55rem); +} +h4 { + font-size: 1.15rem; +} +h5 { + font-size: 1.05rem; +} +h6 { + font-size: 1rem; + text-transform: uppercase; + letter-spacing: 0.06em; +} +p { + margin: 0 0 1rem; + padding: 0; +} +strong { + font-weight: 800; + color: color-mix(in oklab, var(--fg) 88%, var(--heading)); +} /* Media */ -img, svg{ max-width: 100%; height: auto; vertical-align: middle; } -.logo{ height: 34px; } +img, +svg { + max-width: 100%; + height: auto; + vertical-align: middle; +} +.logo { + height: 34px; +} /* Containers */ -.container-xxl{ max-width: 1200px; } -.content-inner{ padding-top: 2rem; padding-bottom: 4rem; } +.container-xxl { + max-width: 1200px; +} +.content-inner { + padding-top: 2rem; + padding-bottom: 4rem; +} diff --git a/theme/css/footer.css b/theme/css/footer.css index 81e9c137..1f13a852 100644 --- a/theme/css/footer.css +++ b/theme/css/footer.css @@ -1,86 +1,115 @@ -footer.footer{ +footer.footer { margin-top: 3rem; border-top: 1px solid var(--nav-border); - background: rgba(255,255,255,.02); + background: rgba(255, 255, 255, 0.02); } -.footer_inner{ - display: flex; gap: 1rem; align-items: center; justify-content: space-between; +.footer_inner { + display: flex; + gap: 1rem; + align-items: center; + justify-content: space-between; padding: 1.25rem 0; } -.footer_inner .icon{ width: 22px; height: 22px; fill: var(--fg); opacity: .85; } -.footer_inner .icon:hover{ opacity: 1; } -.badge-updated{ - background: rgba(255,255,255,.08); +.footer_inner .icon { + width: 22px; + height: 22px; + fill: var(--fg); + opacity: 0.85; +} +.footer_inner .icon:hover { + opacity: 1; +} +.badge-updated { + background: rgba(255, 255, 255, 0.08); color: var(--muted); - border-radius: .5rem; - padding: .35rem .6rem; + border-radius: 0.5rem; + padding: 0.35rem 0.6rem; } /* ========== Color mode toggle (footer) ========== */ -.color_mode{ - display:flex; - align-items:center; - min-height:28px; +.color_mode { + display: flex; + align-items: center; + min-height: 28px; } /* The switch “track” */ -.color_choice{ - width:48px; - height:24px; - appearance:none; - -webkit-appearance:none; - background:rgba(255,255,255,.12); - border:1px solid rgba(255,255,255,.18); - border-radius:999px; - position:relative; - cursor:pointer; - outline:none; - display:inline-block; +.color_choice { + width: 48px; + height: 24px; + appearance: none; + -webkit-appearance: none; + background: #e2e8f0; + border: 1px solid #64748b; + border-radius: 999px; + position: relative; + cursor: pointer; + outline: none; + display: inline-block; +} + +html[data-mode="dim"] .color_choice { + background: #263243; + border-color: #94a3b8; +} + +@media (prefers-color-scheme: dark) { + html:not([data-mode="lit"]) .color_choice { + background: #263243; + border-color: #94a3b8; + } +} + +.color_choice:focus-visible { + outline: 2px solid var(--brand-strong); + outline-offset: 3px; } /* The “knob” */ -.color_choice::after{ - content:""; - position:absolute; - top:2px; - left:2px; - width:20px; - height:20px; - border-radius:50%; - background:#fff; - box-shadow:0 2px 8px rgba(0,0,0,.25); - transform:translateX(0); - transition:transform .22s ease, background .22s ease; +.color_choice::after { + content: ""; + position: absolute; + top: 2px; + left: 2px; + width: 20px; + height: 20px; + border-radius: 50%; + background: #fff; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); + transform: translateX(0); + transition: + transform 0.22s ease, + background 0.22s ease; } /* Dark mode: move knob right */ -html[data-mode="dim"] .color_choice::after{ - transform:translateX(24px); +html[data-mode="dim"] .color_choice::after { + transform: translateX(24px); } /* Optional: show a subtle sun/moon via emojis (no images needed) */ -.color_choice:before{ - content:"☀️"; - position:absolute; - left:8px; - top:50%; - transform:translateY(-50%); - font-size:11px; - opacity:.8; -} -html[data-mode="dim"] .color_choice:before{ - content:"🌙"; - left:auto; - right:6px; +.color_choice:before { + content: "☀️"; + position: absolute; + left: 8px; + top: 50%; + transform: translateY(-50%); + font-size: 11px; + opacity: 0.8; +} +html[data-mode="dim"] .color_choice:before { + content: "🌙"; + left: auto; + right: 6px; } /* Site-wide acknowledgement without suggesting an ownership relationship. */ -.footer_support{ +.footer_support { padding-top: 0; } -.footer_support a{ +.footer_support a { color: inherit; text-decoration: underline; - text-underline-offset: .2em; + text-underline-offset: 0.2em; }