app.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. :root {
  2. --bg: #0a0a0a;
  3. --surface: #141414;
  4. --text: #f5f5f5;
  5. --muted: #a0a0a0;
  6. --accent: #4fc3f7;
  7. --accent-hover: #81d4fa;
  8. --border: #2a2a2a;
  9. --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  10. --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  11. --rail: 22rem;
  12. --ease: 180ms ease;
  13. --radius: 8px;
  14. }
  15. *,
  16. *::before,
  17. *::after {
  18. box-sizing: border-box;
  19. }
  20. html {
  21. color-scheme: dark;
  22. background: var(--bg);
  23. }
  24. html,
  25. body {
  26. margin: 0;
  27. padding: 0;
  28. height: 100%;
  29. min-height: 100%;
  30. }
  31. body {
  32. font-family: var(--font);
  33. font-size: 1rem;
  34. font-weight: 400;
  35. line-height: 1.65;
  36. color: var(--text);
  37. background: var(--bg);
  38. -webkit-font-smoothing: antialiased;
  39. -moz-osx-font-smoothing: grayscale;
  40. }
  41. ::selection {
  42. background: color-mix(in srgb, var(--accent) 35%, transparent);
  43. color: var(--text);
  44. }
  45. h1,
  46. h2,
  47. p,
  48. dl,
  49. dt,
  50. dd {
  51. margin: 0;
  52. }
  53. a {
  54. color: var(--accent);
  55. text-decoration: none;
  56. transition: color var(--ease);
  57. }
  58. a:hover {
  59. color: var(--accent-hover);
  60. text-decoration: underline;
  61. text-underline-offset: 0.18em;
  62. }
  63. :focus-visible {
  64. outline: 2px solid var(--accent);
  65. outline-offset: 3px;
  66. }
  67. .skip {
  68. position: absolute;
  69. left: 0.75rem;
  70. top: 0.75rem;
  71. z-index: 20;
  72. padding: 0.5rem 0.75rem;
  73. background: var(--surface);
  74. border: 1px solid var(--border);
  75. border-radius: var(--radius);
  76. color: var(--text);
  77. transform: translateY(-160%);
  78. }
  79. .skip:focus {
  80. transform: none;
  81. text-decoration: none;
  82. }
  83. .shell {
  84. display: grid;
  85. grid-template-columns: var(--rail) minmax(0, 1fr);
  86. grid-template-rows: minmax(0, 1fr);
  87. height: 100svh;
  88. min-height: 100svh;
  89. }
  90. .rail {
  91. position: sticky;
  92. top: 0;
  93. display: flex;
  94. flex-direction: column;
  95. justify-content: space-between;
  96. height: 100svh;
  97. padding: 2rem 2rem 1.75rem;
  98. border-right: 1px solid var(--border);
  99. }
  100. .rail-top {
  101. display: flex;
  102. flex-direction: column;
  103. align-items: flex-start;
  104. gap: 1.75rem;
  105. }
  106. .identity {
  107. display: flex;
  108. flex-direction: column;
  109. gap: 0.45rem;
  110. }
  111. .identity h1,
  112. .identity .site-name {
  113. font-size: 1.25rem;
  114. font-weight: 600;
  115. letter-spacing: 0.03em;
  116. line-height: 1.2;
  117. }
  118. .wordmark {
  119. color: var(--text);
  120. text-decoration: none;
  121. }
  122. .wordmark:hover {
  123. color: var(--accent);
  124. text-decoration: none;
  125. }
  126. .role {
  127. font-size: 0.9375rem;
  128. line-height: 1.45;
  129. color: var(--muted);
  130. }
  131. .status {
  132. display: inline-flex;
  133. align-items: center;
  134. gap: 0.5rem;
  135. font-family: var(--mono);
  136. font-size: 0.75rem;
  137. letter-spacing: 0.06em;
  138. color: var(--muted);
  139. }
  140. .status-dot {
  141. width: 0.4rem;
  142. height: 0.4rem;
  143. background: var(--accent);
  144. }
  145. .place {
  146. font-size: 0.875rem;
  147. color: var(--muted);
  148. }
  149. .menu {
  150. list-style: none;
  151. margin: 0;
  152. padding: 0;
  153. display: flex;
  154. flex-direction: column;
  155. gap: 0.15rem;
  156. }
  157. .menu a {
  158. color: var(--accent);
  159. font-size: 1.125rem;
  160. font-weight: 500;
  161. line-height: 1.45;
  162. text-decoration: none;
  163. text-underline-offset: 0.18em;
  164. }
  165. .menu a:hover {
  166. color: var(--accent-hover);
  167. text-decoration: underline;
  168. }
  169. .menu a[aria-current='page'] {
  170. text-decoration: underline;
  171. }
  172. .rail-bottom {
  173. display: flex;
  174. flex-direction: column;
  175. gap: 0.35rem;
  176. }
  177. .rail-bottom a {
  178. color: var(--muted);
  179. font-size: 0.875rem;
  180. }
  181. .rail-bottom a:hover {
  182. color: var(--accent);
  183. }
  184. .btn {
  185. display: inline-flex;
  186. align-items: center;
  187. padding: 0.5rem 0.75rem;
  188. border-radius: var(--radius);
  189. border: 1px solid transparent;
  190. background: var(--accent);
  191. color: var(--bg);
  192. font: inherit;
  193. font-size: 0.9375rem;
  194. font-weight: 500;
  195. letter-spacing: 0.01em;
  196. text-decoration: none;
  197. transition:
  198. background var(--ease),
  199. color var(--ease);
  200. }
  201. .btn:hover {
  202. background: var(--accent-hover);
  203. color: var(--bg);
  204. text-decoration: none;
  205. }
  206. .card {
  207. background: var(--surface);
  208. border: 1px solid var(--border);
  209. border-radius: 10px;
  210. padding: 1.25rem 1.4rem;
  211. transition: border-color var(--ease);
  212. }
  213. @media (hover: hover) {
  214. .card:hover {
  215. border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  216. }
  217. }
  218. .page {
  219. min-height: 0;
  220. overflow: auto;
  221. padding: 2rem clamp(1.5rem, 4vw, 4rem) 4rem;
  222. }
  223. .page-flush {
  224. position: relative;
  225. height: 100%;
  226. min-height: 0;
  227. padding: 0;
  228. overflow: hidden;
  229. }
  230. .page-flush .site-main {
  231. position: relative;
  232. height: 100%;
  233. min-height: 0;
  234. }
  235. @media (max-width: 860px) {
  236. .shell {
  237. grid-template-columns: 1fr;
  238. grid-template-rows: auto minmax(0, 1fr);
  239. }
  240. .rail {
  241. position: static;
  242. height: auto;
  243. border-right: 0;
  244. border-bottom: 1px solid var(--border);
  245. padding: 1.25rem 1.25rem 1.35rem;
  246. gap: 1.25rem;
  247. }
  248. .rail-top {
  249. gap: 1rem;
  250. }
  251. .rail-bottom {
  252. display: none;
  253. }
  254. .page:not(.page-flush) {
  255. padding: 1.75rem 1.25rem 3rem;
  256. }
  257. }
  258. @media (prefers-reduced-motion: reduce) {
  259. *,
  260. *::before,
  261. *::after {
  262. transition-duration: 0.01ms !important;
  263. }
  264. }