article { display: grid; grid-template-columns: 1fr 1fr minmax(10px, calc(100% - 40px)) minmax(300px, 70%) minmax(10px, calc(100% - 40px)) 1fr 1fr; } article > * { grid-column: 4; } section > figure { grid-column: 1 / -1; margin: 2.5%; } article > .aside { grid-column: 5 / -1; padding: 0 2.5%; } section > blockquote { grid-column: 3 / span 2; margin: 0; color: #666; border-left: 0.2em solid black; padding-left: 2%; } html, body { margin: 0; padding: 0; font-size: 16px; line-height: 1.4; } article > * { min-width: 0; } section > h1 { font-family: 'Lucida Grande'; font-size: 2em; /* ~21px */ } section > p { --x-height-multiplier: 0.375; --baseline-multiplier: 0.17; font-family: Georgia, Cambria, "Times New Roman", Times, serif; letter-spacing: .01em; font-weight: 400; font-style: normal; font-size: 1.3125em; /* ~21px */ line-height: 1.58; letter-spacing: -.003em; color: rgba(0, 0, 0, .84); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; } nav > p { --x-height-multiplier: 0.375; --baseline-multiplier: 0.17; font-family: Georgia, Cambria, "Times New Roman", Times, serif; letter-spacing: .01em; font-weight: 400; font-style: normal; font-size: 0.9375em; /* ~15px */ line-height: 1.58; letter-spacing: -.003em; color: rgba(0, 0, 0, .84); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; } section > .aside { font-family: 'Lucida Grande'; margin: 3% 2.5%; color: #666; font-size: 0.8em; } img { max-width: 100%; height: auto; } .line-numbers a { text-decoration: none; color: #000; padding-right: 1em; } code { background: #eee; padding: 0.125em 0.3125em; /* 2px 5px */ } pre { background: #eee; padding: 0.625em 0.9375em; /* 10px 15px */ overflow: auto; } pre > code { padding: 0; } figure { margin: 0; } figure figcaption { color: #666; font-style: italic; font-size: 0.8em; } article > .sticky-content { top: 2.5%; left: 2.5%; position: fixed; max-width: 20%; /* Adjust as needed */ z-index: 100; } .sticky-content p { font-size: 0.625em; /* ~10px */ } .sticky-content a { display: block; } /* Media Queries */ @media screen and (max-width: 960px) { article { grid-template-columns: 5% 1fr 1fr 5%; } article > * { grid-column: 2 / -2; } article > .aside { grid-column: 2 / -2; } section > blockquote { grid-column: 1 / -1; } } @media screen and (max-width: 480px) { section > p { font-size: 1.125rem; /* ~18px */ } nav > p { font-size: 0.875rem; /* ~14px */ } } .dialog { display: none; position: absolute; background-color: white; border: 1px solid #ccc; padding: 10px; z-index: 1000; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } .close-button { display: inline-block; margin-top: 10px; padding: 5px 10px; background-color: #007BFF; color: white; border: none; cursor: pointer; } .text-area { cursor: pointer; color: #007BFF; }