html, body { margin: 0; box-sizing: border-box; background-color: var(--background); font-family: var(--font); font-size: var(--text); line-height: 1.4; } h1, h2 { font-family: var(--font); font-weight: bold; font-style: italic; } h1 { font-size: var(--title); } h2 { font-size: var(--text); } /* STICKER CONTAINER */ #sticker-container { position: fixed; left: 0; top: 0; bottom: 0; right: 0; pointer-events: none; z-index: 1000; } .sticker { position: absolute; user-select: none; border: 1px solid currentColor; border-radius: var(--radius); white-space: nowrap; background-color: white; font-size: 18px; padding: 0 6px; box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2); } *[data-sticker] { position: relative; } /* HEADER AND NAV */ .page--header { position: fixed; top: 60px; left: 50%; transform: translate(-50%, 0); width: calc(100% - 2 * var(--app-margin)); max-width: var(--content-width); padding: 0 var(--app-margin); display: flex; justify-content: center; } header { flex-grow: 1; flex-shrink: 1; display: flex; flex-direction: column; justify-content: center; border: 1px solid currentColor; border-radius: var(--radius); background-color: var(--background); box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25); min-height: 64px; padding: 0 12px; } .page--header .title { margin: 0; /* padding: 0 12px; */ } .page--header .subtitle { margin: 0; margin-bottom: 6px; /* padding: 0 12px; */ } .title + .subtitle { margin-top: -6px; } nav { margin-left: 12px; } .page--header nav a { display: inline-block; width: 64px; height: 64px; border-radius: 50%; border: 1px solid currentColor; background-color: var(--background); margin: 0; } .page--header nav a + a { margin-left: 6px; } /* FOOTER */ .page--footer { position: relative; width: calc(100% - 2 * var(--app-margin)); max-width: var(--content-width); padding: 0 var(--app-margin); left: 50%; transform: translate(-50%, 0); } footer { margin-top: 90px; margin-bottom: 30px; padding: 6px 12px; border: 1px solid currentColor; border-radius: var(--radius); font-weight: bold; font-style: italic; } /* MAIN CONTENTS */ .page--content { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: var(--app-margin); align-items: baseline; max-width: var(--content-width); padding: 0 var(--app-margin); margin: 0 auto; margin-top: 180px; } .page--content p { grid-column-end: span 2; margin: 0; text-indent: calc(var(--text) * 2); line-height: 1.4; } .page--content h2 { font-size: var(--title); margin: 0; margin-top: calc(var(--app-margin) * 3); margin-bottom: var(--app-margin); } .page--content > * + * { margin-top: var(--app-margin); } .page--content img { grid-column-end: span 2; width: 100%; margin: 60px 0; border-radius: var(--radius); border: 1px solid currentColor; } /* GRID functional classes sorry this is not good at all but.... */ .c2 { grid-column-end: span 2; } .s1 { grid-column-start: 1; } .s2 { grid-column-start: 2; } /* Medium screens */ @media (max-width: 991.98px) { /* HEADER MOBILE */ .page--header { top: 30px; } .page--header .title { font-size: 24px; } .page--header .subtitle { font-size: 21px; } .page--header nav a { width: 48px; height: 48px; } /* MAIN CONTENTS */ .page--content { margin-top: 120px; } } @media (max-width: 767.98px) { .page--content { display: block; } .page--content h2 { margin-top: 60px; } }