*, ::after, ::before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background: 0 0;
  text-decoration: none;
  outline: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "onum", "kern", "liga", "clig", "calt";
  -webkit-text-size-adjust: none;
  transition-duration: 100ms;
  transition-timing-function: linear;
  transition-property: none;
  transition-delay: 0;
}

@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-display: swap;
  font-style: oblique 0deg 10deg;
  src: url(assets/Inter.woff2) format("woff2");
}

:root {
  --c-bg: hsl(0, 0%, 100%);
  --c-bg-alt: hsl(0, 0%, 94%);
  --c-text: hsl(0, 0%, 5%);
  --c-text-alt: hsl(0, 0%, 50%);
  --f-family: Inter, sans-serif;
  --f-size: 14px;
  --f-height: 24px;
  --f-weight: 430;
  --l-column: 1fr;
  --l-gap: 4ch;
  --l-width: 100%;
  --border: #e0e0e0;
  font-size: var(--f-height);
  font-family: var(--f-family);
  font-weight: var(--f-weight);
  background: var(--c-bg);
  color: var(--c-text);
  scroll-behavior: smooth;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: hsl(0, 0%, 5%);
    --c-bg-alt: hsl(0, 0%, 18%);
    --c-text: hsl(0, 0%, 100%);
    --c-text-alt: hsl(0, 0%, 60%);
  }
}

@media (min-width: 900px) {
  :root {
    --f-size: 16px;
    --f-height: 24px;
    --f-weight: 410;
  }
}

@media (min-width: 1150px) {
  :root {
    --l-gap: 11ch;
    --l-column: 29ch;
    --l-width: 110ch;
  }
}

body, html {
  scroll-behavior: smooth;
}

html {
  height: 100%;
}

body {
  font-size: var(--f-size);
  line-height: var(--f-height);
  background: var(--c-bg);
  color: var(--c-text);
  padding: 0 2ch 0 4ch;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
}

@media (min-width: 1150px) {
  body {
    padding: 0 3ch;
  }
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 2ch;
  width: 1px;
  z-index: 0;
  background: var(--c-bg-alt);
  transform: translateX(-1px);
}

@media (min-width: 1150px) {
  body::after {
    left: calc(50% - 18ch);
  }
}

@media (min-width: 1550px) {
  body::after {
    left: 50%;
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  z-index: 0;
  background: var(--c-bg-alt);
}

::selection {
  background: var(--c-text);
  color: var(--c-bg);
  opacity: 1;
}

.container {
  margin: 0 auto;
  max-width: var(--l-width);
  position: relative;
  z-index: 10;
}

@media (min-width: 1550px) {
  .container {
    transform: translateX(18ch);
  }
}

.header {
  margin: 8ch 0;
  font-size: 2.75em;
}

@media (min-width: 1500px) {
  .header {
    margin: 6ch 0;
  }
}
.titles {
  grid-area: titles;
}

.site-title {
  grid-area: title;
  text-transform: uppercase;
}

.site-subtitle, figcaption {
  font-size: 0.25em;
  color: var(--c-text-alt);
}

.site-subtitle {
  grid-area: subtitle;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .site-subtitle {
    padding-top: 0.75em;
    padding-left: 0.25em;
    font-size: 0.32em;
  }
}

.content {
  z-index: 10;
  position: relative;
}

.title {
  margin-bottom: 3ch;
  display: grid;
  grid-gap: 8ch var(--l-gap);
  grid-template-columns:1fr 1fr;
  grid-template-areas:
      "titles titles"
      "menu menu";
}

.tagline {
  text-transform: uppercase;
  font-size: 1.28em;
  grid-area: titles;
}

.tagline-top {
  font-size: 1.235em;
}

.text {
  grid-area: menu;
}

@media (min-width: 1150px) {
  .title {
    grid-template-columns:repeat(3, var(--l-column));
    grid-template-areas:"titles menu menu";
  }

  .text {
    max-width: 66ch;
  }

}

.text blockquote:not(:last-child), .text h2:not(:last-child), .text h3:not(:last-child), .text h4:not(:last-child), .text h5:not(:last-child), .text h6:not(:last-child), .text hr:not(:last-child), .text ol:not(:last-child), .text p:not(:last-child), .text table:not(:last-child), .text ul:not(:last-child) {
  margin-bottom: 3ch;
}

.text h2, .text h3, .text h4, .text h5, .text h6 {
  text-transform: uppercase;
  text-wrap: balance;
}

.text :is(figure,ul,ol,hr,h2,h3,h4,h5,h6) + p, .text p:first-child {
  text-indent: 0;
}

.text ol {
  padding-left: 3ch;
}

.text ol li:not(:last-child) {
  margin-bottom: .25rem;
}

.text a:hover {
  color: var(--c-text-alt);
  transition-property: color;
}

.text blockquote {
  padding-left: 3ch;
  position: relative;
  font-style: italic;
}

.text blockquote::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "→ ";
}

.portfolio {
  margin-top: 1rem;
}

.portfolio a {
  color: var(--c-text);
  padding: 0.5rem 0.65rem;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-bg-alt);
  border-radius: 0.25rem;
  transition-property: color;
  transition-property: color, background;
}

.portfolio a:hover {
  background: var(--c-bg);
}


footer {
  background: var(--c-bg);
  padding: .75rem 1rem;
  color: var(--c-text-alt);
  position: absolute;
  bottom: 0;
  width: 100%;
}

.footer-inner {
  outline: 1px solid var(--border);
  padding: .75rem 1rem;
  border-radius: .5rem;
  display: flex;
  justify-content: space-between;
  margin-top: 2em;
}

.footer-inner a:hover {
  color: var(--c-text);
  cursor: pointer;
}
