codexpromo/dist/style.css

83 lines
5.1 KiB
CSS
Raw Permalink Normal View History

2026-11-19 15:54:49 -05:00
:root {
color-scheme: dark;
--background: #0e191a;
--panel: #182a27;
--text: #f4f6ec;
--muted: #bdccc5;
--line: #4b6760;
--lime: #d7fa90;
font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.65; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.shell { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.top, .foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem 2rem; padding-block: 1.15rem; }
.top { border-bottom: 1px solid var(--line); }
.foot { border-top: 1px solid var(--line); color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: .3rem 1.35rem; }
nav a { font-size: .9rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.brand { font-weight: 750; text-decoration: none; }
.brand span { color: var(--lime); margin-right: .25rem; }
.skip { position: fixed; z-index: 2; top: -5rem; padding: .5rem; background: var(--background); }
.skip:focus { top: .5rem; left: .5rem; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(3.4rem, 8vw, 7.5rem); }
.intro { padding-block: clamp(2.5rem, 8vw, 6rem) 2rem; }
h1, h2 { font: 400 clamp(2.25rem, 5vw, 4rem)/1.05 Georgia, serif; letter-spacing: -.04em; margin: 0 0 1.1rem; }
h1 { font-size: clamp(2.8rem, 6.4vw, 6.15rem); max-width: 16ch; }
h1 em { color: var(--lime); }
h3 { line-height: 1.25; margin: 0; font-size: 1.2rem; }
.eyebrow { color: var(--lime); text-transform: uppercase; letter-spacing: .12em; font-size: .875rem; font-weight: 750; }
.lead { color: var(--muted); font-size: clamp(1.1rem, 1.9vw, 1.33rem); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.button { display: inline-block; color: #162014; background: var(--lime); border: 1px solid var(--lime); padding: .65rem 1rem; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { background: #efffca; color: #162014; }
.button.secondary { color: var(--text); background: transparent; border-color: var(--line); }
.button.secondary:hover { border-color: var(--lime); color: var(--lime); }
.network { margin: 0; padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 20%, #395c4355, transparent 70%), repeating-linear-gradient(0deg, transparent 0 25px, #78988620 26px), repeating-linear-gradient(90deg, #152623 0 25px, #78988620 26px); }
.nodes { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.nodes div, .center { padding: .75rem .4rem; text-align: center; background: #21382e; border: 1px solid #799581; }
.nodes small, .nodes strong { display: block; }
.nodes small, figcaption, .source { color: var(--muted); font-size: .9rem; }
.bridge { height: 2.25rem; width: 50%; margin: auto; border: 1px solid #799581; border-top: 0; position: relative; }
.bridge::after { content: ""; position: absolute; left: 50%; top: 100%; height: 1rem; border-left: 1px solid #799581; }
.center { margin: 1rem auto 0; width: max-content; max-width: 100%; border-color: var(--lime); font-weight: 750; }
figcaption { margin-top: 1.4rem; }
.band { background: var(--panel); }
.band, .feature, .catalog { padding-block: clamp(2.4rem, 5vw, 4rem); }
.feature p:not(.eyebrow), .detail p, .trail { max-width: 72ch; }
.feature p:not(.eyebrow), .detail p, .trail { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .85rem; }
.three { grid-template-columns: repeat(3, 1fr); }
.card { display: block; padding: 1.15rem; border: 1px solid var(--line); background: #0e191a70; text-decoration: none; }
.card:hover { border-color: var(--lime); }
.card p { color: var(--muted); margin: .6rem 0 0; }
.family + .family { margin-top: 3rem; }
.detail { padding-bottom: 4rem; }
.detail section { margin-block: 1.65rem; }
.detail h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
.detail p { font-size: 1.07rem; }
.detail aside { background: var(--panel); border-left: 3px solid var(--lime); padding: 1.25rem; max-width: 76ch; margin-block: 1.6rem; }
.detail aside p { margin-bottom: 0; }
.detail .source { font-size: .875rem; }
code { overflow-wrap: anywhere; }
.trail { padding-left: 1.35rem; }
.trail li + li { margin-top: .55rem; }
@media (max-width: 760px) {
.shell { width: calc(100% - 2rem); }
.hero, .three { grid-template-columns: 1fr; }
}
@media print {
:root { color-scheme: light; --text: #111; --muted: #222; --lime: #153d26; --panel: #f0f4ef; }
body { background: white; }
.top nav, .foot nav, .button, .skip { display: none; }
.intro { padding-top: 1.5rem; }
h1 { font-size: 2.3rem; }
.detail aside { break-inside: avoid; }
}
.role-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); column-gap: 1rem; row-gap: .5rem; padding: 0; list-style: none; }
.role-index a { display: block; padding: .5rem .65rem; border: 1px solid var(--line); }