@font-face {
  font-family: "Berkeley Mono";
  src: url("/assets/fonts/BerkeleyMono-Regular.woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Berkeley Mono";
  src: url("/assets/fonts/BerkeleyMono-Italic.woff2");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Berkeley Mono";
  src: url("/assets/fonts/BerkeleyMono-Bold.woff2");
  font-weight: 700;
}

@font-face {
  font-family: "Berkeley Mono";
  src: url("/assets/fonts/BerkeleyMono-BoldItalic.woff2");
  font-weight: 700;
  font-style: italic;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --shiro: #e4dfdf;
  --kuro: #201d1d;
  --border-width: 1px;
  background-color: var(--shiro);
  color: var(--kuro);
  font-family: "Berkeley Mono", monospace;
  font-weight: 400;
  line-height: 1.38;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  height: 100%;
  font-size: 21px;
}

::selection {
  background-color: var(--kuro);
  color: var(--shiro);
}

@media (max-width: 845px) {
  :root {
    font-size: 14px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color: var(--shiro);
    background-color: var(--kuro);
  }

  ::selection {
    background-color: var(--shiro);
    color: var(--kuro);
  }
}

body {
  margin: 0 auto;
  width: 100%;
  max-width: 65ch;
  padding: 2rem 2ch 4rem;
}

h1,
h2,
p {
  font-size: 100%;
  margin: 0;
}

h1,
h2 {
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1;
}

h2 em {
  font-style: normal;
  font-weight: normal;
}

strong {
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  font-weight: 700;
  text-decoration: underline;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

hr {
  color: currentColor;
  border: none;
  border-bottom: var(--border-width) solid;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

main h2 {
  margin-top: 2rem;
}

p {
  margin-top: 1rem;
}

ul,
ol {
  margin-top: 1rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

header > section {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

main ul.work {
  padding-left: 6ch;
  position: relative;
}

main ul.work li[data-year] {
  position: relative;
  margin-top: 1rem;
  padding-top: 0.5rem;
}

main ul.work li[data-year]::after {
  content: attr(data-year);
  position: absolute;
  left: -6ch;
  width: 6ch;
  opacity: 0.5;
}

main ul.work li[data-year]::before {
  content: "";
  position: absolute;
  left: -6ch;
  border-top: var(--border-width) solid currentColor;
  margin-top: -0.5rem;
  padding-top: 0.5rem;
  width: 100%;
  opacity: 0.5;
}
