@import "./components/highlight.css"; @import "./components/harmonized-palette.css"; @import "./components/fonts.css"; *, ::before, ::after { box-sizing: border-box; border: none; } html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; tab-size: 4; word-break: break-word; } body { font-family: var(--sans-serif); color: light-dark(black, white); background-color: light-dark(white, black); max-width: 80ch; margin: auto; padding: 0 1rem; } header, footer { ul { display: flex; justify-content: space-evenly; list-style: none; align-items: center; padding: 0; a { display: flex; align-items: center; gap: 0.2em; } } } header { font-size: x-large; font-weight: bold; white-space: nowrap; li:nth-child(1) { --accent: var(--azure); } li:nth-child(2) { --accent: var(--lavender); } li:nth-child(3) { --accent: var(--fuchsia); } li:nth-child(4) { --accent: var(--red); } a:hover, a.active { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; } @media (max-width: 70ch) { ul { display: grid; grid-template-columns: 1fr 1fr; } li { display: flex; &:first-child { grid-column: 1; grid-row: 1 / span 3; } &:not(:first-child) { grid-column: 2; justify-content: flex-end; } } } } main { margin: auto; max-width: 70ch; } footer { font-size: small; a:hover { text-decoration: none; } } svg { fill: light-dark(black, white); height: 1em; width: 1em; } hr, th { border-bottom: 1px solid var(--gray); } a { color: light-dark(black, white); text-decoration: none; } abbr { text-decoration-color: var(--azure); } time, .dates { font-size: small; color: var(--gray); @media (prefers-contrast: more) { color: light-dark(black, white); } } .lead { font-weight: normal; } article { h1, h2, h3, h4, h5, h6 { font-family: var(--sans-serif); } .dates { display: flex; justify-content: space-between; } .title { text-align: center; } .lead { text-align: center; } .content { font-family: var(--serif); font-variant-numeric: oldstyle-nums; line-height: 1.5; text-wrap: pretty; text-align: justify; text-justify: inter-word; a { text-decoration: underline; text-decoration-color: var(--azure); &:hover { color: var(--azure); } } img, figure { width: 100%; height: auto; margin: 0; } figcaption { font-family: var(--sans-serif); text-align: center; } >p:first-of-type::first-letter { initial-letter: 2; -webkit-initial-letter: 2; } table { border-collapse: collapse; width: 90%; margin: auto; } } } .list { ul { list-style: none; padding: 0; li { .lead { font-size: medium; } h2, h3 { margin: 0; } padding: 1em; /* line-height: 1.5; */ border-left: solid transparent 3px; &:hover { border-color: var(--accent); } &:nth-child(8n+1) { --accent: var(--azure); } &:nth-child(8n+2) { --accent: var(--turquoise); } &:nth-child(8n+3) { --accent: var(--lime); } &:nth-child(8n+4) { --accent: var(--yellow); } &:nth-child(8n+5) { --accent: var(--bronze); } &:nth-child(8n+6) { --accent: var(--red); } &:nth-child(8n+7) { --accent: var(--fuchsia); } &:nth-child(8n+8) { --accent: var(--lavender); } } } } code { font-family: var(--mono); } p>code { color: light-dark(#4c4f69, #cad3f5); background-color: light-dark(#eff1f5, #24273a); padding: 0.2em; border-radius: 0.3em; } .highlight { .chroma { border-radius: 0.3em; overflow: auto; .cl { padding: 1em; } } } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .sr-only-focusable:focus { position: static; width: auto; height: auto; padding: 0.5em; margin: 0; overflow: visible; clip: auto; white-space: normal; }