@import url("https://fonts.googleapis.com/css2?family=Martel:wght@400;700&family=Raleway:ital,wght@0,900;1,700&display=swap"); :root { --unit: 10; --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-all { border: 1px solid var(--border); } .border-bottom { border-bottom: 1px solid var(--border); } /* || 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: -0.5px; text-transform: uppercase; } h1, h2, h3, h4, h5, h6 { margin: 0; } h1 a, h2 a, h3 a, h4 a, h5 a { text-decoration: none; } 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-card { background-color: var(--background); @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 { .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 */ /* ============================== */ /* Base Layout */ body { height: 100vh; background-color: var(--background); } .site-grid { display: grid; width: 1000px; min-height: 90vh; margin: 0 auto; grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-rows: 1fr; gap: 1px; background-color: var(--border); @extend .border-all; } .skip-nav { position: absolute; margin: 20px; background-color: var(--background); transform: translateY(-150%); transition: transform 0.2s; z-index: 99; @extend .layout-frame.large; @extend .border-all; &:active, &:focus-within { transform: translateY(0%); } } notice { grid-column: 1 / 5; background-color: var(--background); @extend .layout-frame.large; } /* --- Mobile Notice Disclaimer --- */ notice { display: none; } @media screen and (max-width: 1000px) { notice { display: block; width: 100vw; } } main { grid-column: 2 / 5; & > nav, & > div, & > section, & > aside { background-color: var(--background); } } .site-content { display: grid; position: relative; grid-template-rows: auto auto auto; grid-template-columns: 1fr; gap: 1px; background-color: var(--border); } /* ================================ */ /* Main Nav */ /* ============================== */ #main-nav { display: grid; position: relative; grid-template-rows: auto auto auto; grid-template-columns: 1fr; gap: 1px; background-color: var(--border); section:last-child { border-bottom: 1px solid var(--border); } footer { position: absolute; bottom: 0; border-top: 1px solid var(--border); width: 100%; } } .nav-top { height: 60px; @extend .layout-frame.large; } .nav-search { @extend .layout-frame.large; form { position: relative; padding: 0; border: 1px solid var(--border); // 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"] { display: none; position: absolute; top: 0; right: 0; width: 40px; height: 40px; } } } .nav-list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px 10px; @extend .layout-frame.large; li { list-style: none; border: 1px solid var(--border); min-height: 80px; @extend .layout-frame; } a { text-decoration: none; @extend .interactable; } } /* ================================ */ /* Page Layouts */ /* ============================== */ /* --- Home --- */ .home-feature-list { /* Create 3 column grid */ display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; gap: 1px 1px; background-color: var(--border); /* Post Tiles */ /* TODO: De-specify this */ .layout-tile { background-color: var(--background); min-height: 270px; .thumbnail { background-color: #eee; width: 100%; height: 0; overflow: hidden; } &:nth-child(1) { .thumbnail { padding-bottom: 100%; } } &:nth-child(2) { grid-column-start: 2; grid-column-end: 4; .thumbnail { padding-bottom: 50%; } } &:nth-child(3) { grid-column-start: 1; grid-column-end: 3; } } } .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 { display: flex; flex: 2; 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 { display: flex; list-style: none; background-color: #fff; 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; } } } /* --- Blog & Post --- */ #blog, #post { // TODO: Span grid column 2-3 grid-column-start: 2; grid-column-end: 4; max-width: 910px; } #post { header { border-bottom: 1px solid var(--border); @extend .layout-frame.large; .inner { max-width: 540px; margin: 0 auto; } h1, h2 { margin-bottom: 10px; } } .post-content { border-bottom: 1px solid var(--border); @extend .layout-frame.large; .inner { max-width: 540px; margin: 0 auto; } } } .post-rich-text { p { margin-bottom: 10px; } h1, h2, h3, h4 { margin: 10px 0; } } /* |x End Layout */ /* --------------- 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 { position: fixed; top: 0; left: 0; z-index: -1; width: 100%; height: 100%; }