/* import poppins font from google fonts */ @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap"); /* soft pastel color palette */ :root { --background-color: #fafafa; --primary-text: #4a4a4a; --secondary-text: #6a6a6a; --accent-color: #fcb9b2; /* soft coral */ --highlight-color: #a1c6e7; /* pastel blue */ --soft-purple: #c8b8e6; --soft-yellow: #f5e1a4; --code-bg: #eae7f3; --code-text: #2a2a2a; --pre-bg: #f2f2f2; --pre-text: #4a4a4a; } body { font-family: "Poppins", sans-serif; background: linear-gradient( to bottom right, var(--background-color), #f2f2f2 ); color: var(--primary-text); margin: 0; padding: 0 5%; line-height: 1.6; display: flex; flex-direction: column; align-items: center; min-height: 100vh; box-sizing: border-box; } /* header and main section styling */ header, main, footer { width: 100%; max-width: 1000px; padding: 2em; margin: 1em 0; border-radius: 8px; background-color: rgba(255, 255, 255, 0.85); box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); } header { text-align: center; } h1, h2, h3 { color: var(--highlight-color); font-weight: 800; } p, ul, ol { color: var(--secondary-text); } a { color: var(--accent-color); text-decoration: none; font-weight: 600; } a:hover { text-decoration: underline; } /* list and layout adjustments */ ul, ol { list-style: circle; padding-left: 1em; margin: 1em 0; } blockquote { color: var(--secondary-text); padding: 1em; border-left: 4px solid var(--soft-purple); background-color: #fef4f7; font-style: italic; margin: 1em 0; } /* code and pre styles */ code { display: inline-block; padding: 0.3em 0.5em; font-family: monospace; background-color: var(--code-bg); color: var(--code-text); border-radius: 4px; } pre { background-color: var(--pre-bg); color: var(--pre-text); padding: 1.5em; border-radius: 6px; overflow-x: auto; font-size: 0.95em; } /* responsive typography */ h1 { font-size: 2em; } h2 { font-size: 1.75em; } h3 { font-size: 1.5em; } /* responsive design */ @media (min-width: 600px) { body { padding: 0 10%; } header, main, footer { padding: 3em; } h1 { font-size: 2.5em; } h2 { font-size: 2em; } h3 { font-size: 1.75em; } } @media (min-width: 900px) { body { padding: 0 15%; } h1 { font-size: 3em; } h2 { font-size: 2.5em; } h3 { font-size: 2em; } }