@charset "UTF-8"; /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ /* Document ========================================================================== */ /** * 1. Correct the line height in all browsers. * 2. Prevent adjustments of font size after orientation changes in iOS. */ html { line-height: 1.15; /* 1 */ -webkit-text-size-adjust: 100%; /* 2 */ } /* Sections ========================================================================== */ /** * Remove the margin in all browsers. */ body { margin: 0; } /** * Render the `main` element consistently in IE. */ main { display: block; } /** * Correct the font size and margin on `h1` elements within `section` and * `article` contexts in Chrome, Firefox, and Safari. */ h1 { font-size: 2em; margin: 0.67em 0; } /* Grouping content ========================================================================== */ /** * 1. Add the correct box sizing in Firefox. * 2. Show the overflow in Edge and IE. */ hr { box-sizing: content-box; /* 1 */ height: 0; /* 1 */ overflow: visible; /* 2 */ } /** * 1. Correct the inheritance and scaling of font size in all browsers. * 2. Correct the odd `em` font sizing in all browsers. */ pre { font-family: monospace, monospace; /* 1 */ font-size: 1em; /* 2 */ } /* Text-level semantics ========================================================================== */ /** * Remove the gray background on active links in IE 10. */ a { background-color: transparent; } /** * 1. Remove the bottom border in Chrome 57- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. */ abbr[title] { border-bottom: none; /* 1 */ text-decoration: underline; /* 2 */ -webkit-text-decoration: underline dotted; text-decoration: underline dotted; /* 2 */ } /** * Add the correct font weight in Chrome, Edge, and Safari. */ b, strong { font-weight: bolder; } /** * 1. Correct the inheritance and scaling of font size in all browsers. * 2. Correct the odd `em` font sizing in all browsers. */ code, kbd, samp { font-family: monospace, monospace; /* 1 */ font-size: 1em; /* 2 */ } /** * Add the correct font size in all browsers. */ small { font-size: 80%; } /** * Prevent `sub` and `sup` elements from affecting the line height in * all browsers. */ sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } /* Embedded content ========================================================================== */ /** * Remove the border on images inside links in IE 10. */ img { border-style: none; } /* Forms ========================================================================== */ /** * 1. Change the font styles in all browsers. * 2. Remove the margin in Firefox and Safari. */ button, input, optgroup, select, textarea { font-family: inherit; /* 1 */ font-size: 100%; /* 1 */ line-height: 1.15; /* 1 */ margin: 0; /* 2 */ } /** * Show the overflow in IE. * 1. Show the overflow in Edge. */ button, input { /* 1 */ overflow: visible; } /** * Remove the inheritance of text transform in Edge, Firefox, and IE. * 1. Remove the inheritance of text transform in Firefox. */ button, select { /* 1 */ text-transform: none; } /** * Correct the inability to style clickable types in iOS and Safari. */ button, [type=button], [type=reset], [type=submit] { -webkit-appearance: button; } /** * Remove the inner border and padding in Firefox. */ button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner { border-style: none; padding: 0; } /** * Restore the focus styles unset by the previous rule. */ button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring { outline: 1px dotted ButtonText; } /** * Correct the padding in Firefox. */ fieldset { padding: 0.35em 0.75em 0.625em; } /** * 1. Correct the text wrapping in Edge and IE. * 2. Correct the color inheritance from `fieldset` elements in IE. * 3. Remove the padding so developers are not caught out when they zero out * `fieldset` elements in all browsers. */ legend { box-sizing: border-box; /* 1 */ color: inherit; /* 2 */ display: table; /* 1 */ max-width: 100%; /* 1 */ padding: 0; /* 3 */ white-space: normal; /* 1 */ } /** * Add the correct vertical alignment in Chrome, Firefox, and Opera. */ progress { vertical-align: baseline; } /** * Remove the default vertical scrollbar in IE 10+. */ textarea { overflow: auto; } /** * 1. Add the correct box sizing in IE 10. * 2. Remove the padding in IE 10. */ [type=checkbox], [type=radio] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ } /** * Correct the cursor style of increment and decrement buttons in Chrome. */ [type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button { height: auto; } /** * 1. Correct the odd appearance in Chrome and Safari. * 2. Correct the outline style in Safari. */ [type=search] { -webkit-appearance: textfield; /* 1 */ outline-offset: -2px; /* 2 */ } /** * Remove the inner padding in Chrome and Safari on macOS. */ [type=search]::-webkit-search-decoration { -webkit-appearance: none; } /** * 1. Correct the inability to style clickable types in iOS and Safari. * 2. Change font properties to `inherit` in Safari. */ ::-webkit-file-upload-button { -webkit-appearance: button; /* 1 */ font: inherit; /* 2 */ } /* Interactive ========================================================================== */ /* * Add the correct display in Edge, IE 10+, and Firefox. */ details { display: block; } /* * Add the correct display in all browsers. */ summary { display: list-item; } /* Misc ========================================================================== */ /** * Add the correct display in IE 10+. */ template { display: none; } /** * Add the correct display in IE 10. */ [hidden] { display: none; } :root { --bg-primary: #fcfcfc; --bg-secondary: #ffffff; --bg-tertiary: #f8fafc; --text-primary: #1a1a1a; --text-secondary: #4b5563; --text-muted: #6b7280; --border-color: rgba(0, 0, 0, 0.06); --shadow-color: rgba(0, 0, 0, 0.04); --code-bg: #f8fafc; --code-color: #334155; --inline-code-bg: #fee2e2; --inline-code-color: #dc2626; --link-color: #2563eb; --link-hover: #0b297c; --gradient-start: rgb(252, 252, 252); --gradient-end: rgb(246, 246, 246); } @media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --bg-primary: #0a0a0a; --bg-secondary: #1a1a1a; --bg-tertiary: #262626; --text-primary: #f3f4f6; --text-secondary: #d1d5db; --text-muted: #9ca3af; --border-color: rgba(255, 255, 255, 0.1); --shadow-color: rgba(0, 0, 0, 0.3); --code-bg: #f8fafc; --code-color: #334155; --inline-code-bg: #3f1f1f; --inline-code-color: #fca5a5; --link-color: #60a5fa; --link-hover: #93c5fd; --gradient-start: rgb(10, 10, 10); --gradient-end: rgb(18, 18, 18); } } :root[data-theme=dark] { --bg-primary: #0a0a0a; --bg-secondary: #1a1a1a; --bg-tertiary: #262626; --text-primary: #f3f4f6; --text-secondary: #d1d5db; --text-muted: #9ca3af; --border-color: rgba(255, 255, 255, 0.1); --shadow-color: rgba(0, 0, 0, 0.3); --code-bg: #f8fafc; --code-color: #334155; --inline-code-bg: #3f1f1f; --inline-code-color: #fca5a5; --link-color: #60a5fa; --link-hover: #93c5fd; --gradient-start: rgb(10, 10, 10); --gradient-end: rgb(18, 18, 18); } @view-transition { navigation: auto; } main::view-transition-old(root) { animation: fadeToNewPage 0.3s ease-out both; } @keyframes fadeToNewPage { 0% { opacity: 1; } 100% { opacity: 0; } } html { background: var(--bg-primary); background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%); color: var(--text-primary); text-rendering: optimizeLegibility; line-height: 1.5; } body { padding: 50px; transition: background-color 0.3s ease, color 0.3s ease; } @media (max-width: 767px) { body { grid-template-columns: repeat(6, 1fr); padding: 20px; } } .without-sidebar { max-width: 980px; margin: 0 auto; } .with-sidebar { display: grid; gap: 20px; grid-template-columns: repeat(24, 1fr); max-width: 1440px; margin: 0 auto; } .with-sidebar main, .without-sidebar main { margin: 0 0 50px; overflow: hidden; gap: 20px; grid-column: span 18/span 18; } @media (max-width: 767px) { .with-sidebar main, .without-sidebar main { grid-column: 1/-1; } } @media (max-width: 319px) { .with-sidebar main, .without-sidebar main { grid-column: 1/-1; } } @media (max-width: 767px) { .with-sidebar, .without-sidebar { gap: 0; margin-bottom: 0; } } h1, h2, h3, h4, h5, h6 { font-family: var(--header-font), system-ui, sans-serif; text-transform: none; letter-spacing: -0.02em; line-height: 1.2; } h1 { font-size: clamp(1.875rem, 2.5vw, 2.25rem); } a { color: var(--link-color); text-decoration: none; transition: all 0.2s ease; } a:hover { color: var(--link-hover); text-decoration: none; opacity: 0.9; } article, .article { background: var(--bg-secondary); margin: 0 0 4rem; box-shadow: 0 2px 8px var(--shadow-color); border: 1px solid var(--border-color); overflow: hidden; } article img, .article img { display: block; margin: auto; max-width: 100%; } article img + em, .article img + em { /* captions */ text-align: center; display: block; font-size: 0.9rem; } article h1:first-child, .article h1:first-child { margin-top: 0; } .postgrid { grid-auto-flow: row; display: grid-lanes; grid-template-columns: repeat(auto-fill, minmax(312px, 1fr)); gap: 20px; } @media (max-width: 767px) { .postgrid { grid-template-columns: repeat(1, 1fr); margin-bottom: 0; } } .postgrid a p { color: var(--text-secondary); } .postgrid span.date { color: var(--text-secondary); display: block; } .postgrid .masonry-layout-is-coming { display: inline; } @media (min-width: 769px) { .postgrid > :first-child { grid-column-start: 1; grid-column-end: 3; } } pre { font-size: 0.875rem; background: var(--code-bg); border: 1px solid var(--border-color); padding: 5px; overflow-y: auto; } pre code { color: var(--code-color); background-color: transparent; } code { color: var(--inline-code-color); background: var(--inline-code-bg); font-size: inherit; padding: 2px; } .card { background: var(--bg-secondary); border: 1px solid var(--border-color); padding: 2rem; border-radius: 12px; } .card:hover { box-shadow: 0 4px 12px var(--shadow-color); } ::-moz-selection { background: var(--link-color); color: var(--bg-secondary); } ::selection { background: var(--link-color); color: var(--bg-secondary); } table { border-color: var(--border-color); } table th, table td { border-color: var(--border-color); } table thead { background: var(--bg-tertiary); } header.main { border-bottom: 2px solid #dddddd; grid-column: span 24/span 24; } @media (max-width: 767px) { header.main { grid-column: 1/-1; } } @media (max-width: 319px) { header.main { grid-column: 1/-1; } } header.main { margin-bottom: 25px; } header.main a { text-decoration: none; color: var(--text-primary); } header.main a:hover { color: var(--text-secondary); } header.main nav { display: flex; justify-content: space-between; } @media (max-width: 767px) { header.main nav { flex-direction: column; } header.main nav ul:last-of-type { justify-content: flex-end; } } header.main nav ul { list-style: none; margin: 0; padding: 0; display: flex; } header.main nav ul li { padding: 0 20px; border-left: 1px dotted #dddddd; min-height: 2rem; } header.main nav ul li:first-child { border-left: none; padding-left: 0; } header.main nav a { line-height: 1; display: flex; align-items: center; flex: 1; height: 100%; width: 100%; } header.main .title { display: flex; align-items: center; justify-content: space-between; } header.main .title a { font-family: var(--header-font), sans-serif; } header.main .title h1 { font-size: 1.2rem; margin: 0.5rem 0; } header.main .themeToggle { margin-left: 10px; cursor: pointer; padding: 0.5rem; border-radius: 8px; background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-primary); } header.main .themeToggle:hover { background: var(--bg-secondary); } aside.sidebar { position: relative; grid-column: span 6/span 6; } @media (max-width: 767px) { aside.sidebar { grid-column: span 24/span 24; } } @media (max-width: 767px) and (max-width: 767px) { aside.sidebar { grid-column: 1/-1; } } @media (max-width: 767px) and (max-width: 319px) { aside.sidebar { grid-column: 1/-1; } } aside.sidebar h3 { margin-bottom: 1rem; margin-top: 0; } aside.sidebar ul { margin: 0; padding-left: 10px; } aside.sidebar ul li { display: flex; align-items: center; margin-bottom: 1rem; } aside.sidebar a { line-height: 1rem; } aside.sidebar a svg { vertical-align: middle; } article { color: var(--text-primary); } article .margin-comment-placeholder { -webkit-text-decoration: dotted; text-decoration: dotted; } @media (max-width: 767px) { article aside { padding: 10px; background-color: var(--bg-tertiary); } } article blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--primary-color); background-color: var(--quote-bg, #f9f9f9); color: var(--quote-text-color, #333); font-style: italic; font-size: 1rem; line-height: 1.5; position: relative; } article blockquote::before { content: "“"; color: var(--primary-color); font-size: 2rem; position: absolute; left: 10px; top: -10px; } article blockquote::after { content: "”"; color: var(--primary-color); font-size: 2rem; position: absolute; right: 10px; bottom: -10px; } .margin-comment { color: var(--text-secondary); position: absolute; } @media (max-width: 767px) { .margin-comment { display: none; } } footer { border-top: 1px solid var(--border-color); color: var(--text-secondary); text-align: center; } /*# sourceMappingURL=index.css.map */