@import url("https://fonts.googleapis.com/css2?family=Lora:wght@500&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inconsolata&display=swap"); :root { --bg-main: #FBF8F1; /* Softer, warmer paper color */ --text-main: #4A3F35; /* Deep espresso brown (easier on eyes than pure black) */ --toc-bg: #EAE3D2; /* A muted, darker beige for the sidebar */ --toc-text: #4A3F35; /* Dark brown text for the sidebar */ --quote-accent: #D4A373; /* A warm terracotta/clay accent */ --link-color: #8C6239; /* Muted copper for links */ } @media (prefers-color-scheme: dark) { :root { --bg-main: #1e1e2e; /* A rich, dark slate */ --text-main: #cdd6f4; /* Soft, readable off-white */ --toc-bg: #11111b; /* An even darker shade for the sidebar */ --quote-accent: #f5c2e7; /* A soft pastel pink/purple accent */ } } body { margin: 40px auto; width: 700px; line-height: 1.6; font-size: 16px; background: var(--bg-main); color: var(--text-main); padding: 0 10px; font-size: 18px; line-height: 28px; font-family: "Lora"; font-weight: 500; -webkit-font-smoothing: antialiased; @media (max-width: 1250px) { margin: 20px auto; font-size: 20px; } } input { padding: 10px 16px; margin: 2px 0; box-sizing: border-box; border: 2px solid #dabebe; border-radius: 6px; background: var(--bg-main); color: var(--text-main); font-size: 16px; -webkit-transition: 0.5s; transition: 0.5s; outline: none; &:focus { border: 2px solid var(--text-main); } } .button { background-color: var(--bg-main); border: none; color: black; padding: 6px 14px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; transition-duration: 0.4s; cursor: pointer; border: 2px solid var(--text-main); border-radius: 6px; &:hover { background-color: var(--text-main); color: white; } } /* ----------------------------------------------- */ /* Various classes for messages of different kinds */ /* ----------------------------------------------- */ .isa_info, .isa_success, .isa_warning, .isa_error { width: 90%; margin: 10px 0px; padding: 12px; } .isa_info { color: #00529b; background-color: #bde5f8; } .isa_success { color: #4f8a10; background-color: #dff2bf; } .isa_warning { color: #9f6000; background-color: #feefb3; } .isa_error { color: #d8000c; background-color: #ffd2d2; } h1, h2, h3 { line-height: 1.2; font-family: "Lora"; } h1 { @media (max-width: 1250px) { font-size: 20px; } } h2 { @media (max-width: 1250px) { font-size: 18px; } } img { border-radius: 10px; text-align: center; margin-left: auto; margin-right: auto; width: 50%; display: block; } .org-svg { width: 100%; max-width: none; } mjx-container[jax="CHTML"] { text-align: left !important; } /* --------------------------------------------- */ /* Bold hover animations on links and clickables */ /* --------------------------------------------- */ a { cursor: pointer; color: #217ab7; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; /* Pushes the underline down slightly */ transition: all 0.2s ease-in-out; /* Make the link change color and the underline grow on hover */ &:hover { color: #11507c; text-decoration-thickness: 4px; } } ::selection { color: white; background: #ff4081; } #table-of-contents { height: 100%; width: 250px; position: fixed; z-index: 1; top: 0; left: 0; font-size: 0px; overflow-x: hidden; padding-top: 20px; border-right: 1px; background: var(--toc-bg); ul { list-style-type: none; padding-left: 0; a { padding: 6px 8px 6px 16px; display: block; font-size: 15px; &, &:hover, &:visited, &:visited:hover { color: white; background-color: var(--toc-bg); border-color: var(--toc-bg); text-decoration: none; } } } @media (max-width: 1250px) { display: none; } } .content { margin-left: 160px; padding: 0px 10px; @media (max-width: 1250px) { margin-left: 0; } } .src, .example { color: #cdd6f4; background-color: #1e1e2e; box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px; } #postamble { text-align: center; } pre { font-family: "Inconsolata", monospace; &.src-stem::before { content: "Stem"; } } .theorem, .proof { display: block; margin-left: 10px; font-style: normal; &::before { float: left; font-weight: bold; } } .theorem { margin-bottom:20px; &::before { content:"Theorem.\00a0\00a0"; } } .proof { margin-bottom:30px; &::before { content:'Proof.\00a0\00a0'; } &::after { content: "\25FC"; float: right; } } .links-page > ul { columns: 2; -webkit-columns: 2; -moz-columns: 2; } blockquote { width: 80%; /* Slightly wider so it doesn't feel cramped */ margin: 40px auto; font-style: italic; color: var(--text-main); padding: 1.5em 30px 1.5em 60px; /* Adjusted padding */ border-left: 4px solid var(--quote-accent); /* Thinner, more elegant border */ border-radius: 0 8px 8px 0; /* Round the right corners slightly */ line-height: 1.6; position: relative; background: color-mix(in srgb, var(--quote-accent) 15%, transparent); /* Automatically makes a faint background based on your accent color! */ &::before { font-family: "Lora", serif; /* Match your main font instead of Arial */ content: "\201C"; color: var(--quote-accent); font-size: 5em; position: absolute; left: 10px; top: -20px; opacity: 0.5; /* Fade the quote mark so it isn't overpowering */ } &::after { content: ''; } }