@import url("https://fonts.googleapis.com/css2?family=Martel:wght@400;700&family=Raleway:ital,wght@0,900;1,700&display=swap"); :root { --primary: #000; --secondary: white; --background: white; --border: #333; --highlight: #00ffff; --body-copy: "Martel", Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif; --headlines: "Raleway", Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif; } *, *:before, *:after { box-sizing: border-box; } html, body { padding: 0; margin: 0; } body { font-size: 14px; line-height: 20px; } /* || Helpers */ .border { border-width: 0; border-color: var(--border); border-style: solid; &.all { border-width: 1px; } &.bottom { border-bottom-width: 1px; } &.top { border-top-width: 1px; } &.right { border-right-width: 1px; } &.left { border-left-width: 1px; } } /* || Typography */ /* Set font stacks */ html, body { &:not(h1, h2, h3, h4, h5) { font-family: var(--body-copy); } } h1, h2, h3, h4, h5 { font-family: var(--headlines); } h1, h2:not(.text-subhead), h3 { letter-spacing: -2%; text-transform: uppercase; text-decoration: none; } h1, h2, h3, h4, h5, h6 { margin: 0; } h1 { font-size: 54px; line-height: 50px; } h2 { &:not(.text-subhead) { font-size: 40px; line-height: 40px; } &.text-subhead { font-size: 15px; line-height: 20px; font-weight: 700; font-family: var(--body-copy); } } h3 { font-size: 28px; line-height: 30px; } h4 { font-size: 16px; line-height: 20px; } h5 { font-size: 14px; line-height: 20px; } h6 { font-size: 1em; line-height: 1em; font-weight: 900; } p { margin: 0; padding: 0; } .text-small-caps { text-transform: uppercase; } .text-large { font-size: 19px; line-height: 30px; } .text-caption { font-size: 12px; line-height: 20px; } .text-block-quote, blockquote { @extend .text-large; } a[href], a[href]:visited { color: var(--primary); } ul, li { padding: 0; margin: 0; } .text-link { text-decoration: underline; text-underline-offset: 2px; } code { display: block; padding: 8px 16px; background: rgba(0, 0, 0, 0.05); font-family: Fira Code, monospace; font-style: normal; font-weight: 300; font-size: 13; line-height: 20px; } /* Typography Helpers */ .text-uppercase { text-transform: uppercase; } .text-capitalize { text-transform: capitalize; } .text-lowercase { text-transform: lowercase; } /* |x End Typography */ /* || Layout */ /* Layout Helpers */ .layout-frame { padding: 10px 10px; &.large { padding: 20px 20px; } } .layout-tile { header { @extend .layout-frame.large; } } .flex-row { display: flex; justify-content: space-between; align-items: flex-start; } .flex-space-between { display: flex; justify-content: space-between; } .layout-space { margin-bottom: 10px; } .layout-space-large { margin-bottom: 20px; } .layout-text-columns { &.two { columns: auto 2; } &.three { columns: auto 2; } } // TODO: Move this to general helpers .interactable { &:hover { background-color: rgba(0, 0, 0, 0.05); } &:pressed { background-color: rgba(0, 0, 0, 0.15); } } /* Layout Lists */ .layout-list { padding: 0px; margin: 0px; .list-item, .list-header { list-style: none; } .lits-flex-row { @extend .flex-row; & > .primary { flex-basis: 66.66%; } & > .secondary { flex-basis: 33.33%; text-align: right; } } a { @extend .text-link; } p { margin: 0; } /* Special Lists */ &.spaced-list { .list-header, .list-item:not(:last-child) { @extend .layout-space-large; } } } /* Layout Sections */ body { height: 100vh; background-color: var(--background); & > .site-grid { position: relative; display: grid; grid-template-rows: auto 1fr auto; } } main { width: 1440px; min-height: 90vh; margin: 0 auto; display: grid; grid-template-columns: 290px 13fr 10fr; grid-template-rows: 1fr; gap: 0px; & > nav, & > div, & > section, & > aside { background-color: var(--background); } & > aside { border-right: 1px solid var(--border); } .site-content { border: 1px solid var(--border); border-left-width: 0; &:not(:last-child) { border-right: 1px solid var(--border); } &:first-child { border-right: 1px solid var(--border); } } } /* Nav */ nav { position: relative; border: 1px solid var(--border); header { @extend .border; @extend .border.bottom; } footer { @extend .layout-frame.large; } section { @extend .layout-frame.large; } section:not(:last-child) { border-bottom: 1px solid var(--border); } footer { border-top: 1px solid var(--border); position: absolute; bottom: 0; width: 100%; } } .nav-top { height: 50px; @extend .layout-frame.large; } .nav-search { @extend .layout-frame.large; form { padding: 0; border: 1px solid var(--border); position: relative; // TODO: Figure out why this doesn't work. &:focus { .input[type="submit"] { display: block; } } label { display: none; } input { border: 0; background-color: transparent; } input[type="text"] { width: 100%; height: 40px; padding: 10px; border-radius: 0; } input[type="submit"] { position: absolute; right: 0; top: 0; width: 40px; height: 40px; display: none; } } } .nav-list { @extend .layout-frame.large; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px 10px; li { list-style: none; @extend .layout-frame; border: 1px solid var(--border); min-height: 80px; } a { text-decoration: none; @extend .interactable; } } /* Page Layouts */ /* --- Home --- */ .sidebar-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 1px; background-color: var(--border); .visual-feature-list { display: flex; grid-column-start: 1; grid-column-end: 3; border-bottom: 1px solid var(--border); overflow: hidden; li:first-child { margin-right: 1px; } li { flex-grow: 0; flex-shrink: 0; flex-basis: 50%; header { flex: 2; display: flex; flex-direction: column; justify-content: space-between; a { text-decoration: none; } } } } .writing-feature-list { grid-column-start: 1; grid-column-end: 3; li:not(:last-child) { border-bottom: 1px solid var(--border); } } li { list-style: none; background-color: #fff; display: flex; flex-direction: column; &:nth-child(n + 3) { grid-column-start: 1; grid-column-end: 3; } &:nth-child(2n) { .post-image { order: 2; } } &:nth-child(1), &:nth-child(2) { .post-image { display: block; } } } .post-image { display: none; width: 100%; height: auto; background-color: #efefef; overflow: hidden; flex-grow: 0; flex-shrink: 0; img { display: block; width: 100%; height: auto; } } } #home { .site-content { header, article, section, footer { @extend .layout-frame.large; } header, section:not(:last-child) { border-bottom: 1px solid var(--border); } } } /* --- Blog & Post --- */ #blog, #post { // TODO: Span grid column 2-3 grid-column-start: 2; grid-column-end: 4; max-width: 910px; } #post { header { @extend .layout-frame.large; border-bottom: 1px solid var(--border); .inner { max-width: 540px; margin: 0 auto; } h1, h2 { margin-bottom: 10px; } } .post-content { @extend .layout-frame.large; border-bottom: 1px solid var(--border); .inner { max-width: 540px; margin: 0 auto; } } } .post-rich-text { p { margin-bottom: 10px; } h1, h2, h3, h4 { margin: 10px 0; } } /* --- Mobile Disclaimer --- */ /* |x End Layout */ .mobile-disclaimer { @extend .layout-frame.large; background-color: #fff; border: 1px solid var(--border); @extend .layout-space-large; display: none; } @media screen and (max-width: 1000px) { .mobile-disclaimer { display: block; } } /* --------------- clean everything below here ----------- */ img { max-width: 100%; height: auto; } main :first-child, main > article :first-child { margin-top: 0; } pre { font-size: 14px; direction: ltr; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; -moz-tab-size: 2; tab-size: 2; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; padding: 1em; margin: 0.5em 0; } /* Site BG */ .site-bg { top: 0; left: 0; position: fixed; z-index: -1; width: 100%; height: 100%; }