/* =====================================
   CSS Reset
   ===================================== */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  word-break: normal;
  -moz-tab-size: 4;
  tab-size: 4;
}

*,
:after,
:before {
  background-repeat: no-repeat;
  box-sizing: inherit;
}

:after,
:before {
  text-decoration: inherit;
  vertical-align: inherit;
}

* {
  padding: 0;
  margin: 0;
}

hr {
  overflow: visible;
  height: 0;
}

details,
main {
  display: block;
}

summary {
  display: list-item;
}

small {
  font-size: 80%;
}

[hidden] {
  display: none;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

a {
  background-color: transparent;
}

a:active,
a:hover {
  outline-width: 0;
}

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
}

pre {
  font-size: 1em;
}

b,
strong {
  font-weight: bolder;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

input {
  border-radius: 0;
}

[disabled] {
  cursor: default;
}

[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}

textarea {
  overflow: auto;
  resize: vertical;
}

button,
input,
optgroup,
select,
textarea {
  font: inherit;
}

optgroup {
  font-weight: 700;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

[role='button'],
[type='button'],
[type='reset'],
[type='submit'],
button {
  cursor: pointer;
  color: inherit;
}

[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner,
button::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner,
button:-moz-focusring {
  outline: 1px dotted ButtonText;
}

[type='reset'],
[type='submit'],
button,
html [type='button'] {
  -webkit-appearance: button;
}

button,
input,
select,
textarea {
  background-color: transparent;
  border-style: none;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
}

select::-ms-expand {
  display: none;
}

select::-ms-value {
  color: currentColor;
}

legend {
  border: 0;
  color: inherit;
  display: table;
  white-space: normal;
  max-width: 100%;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  color: inherit;
  font: inherit;
}

img {
  border-style: none;
}

progress {
  vertical-align: baseline;
}

@media screen {
  [hidden~='screen'] {
    display: inherit;
  }
  [hidden~='screen']:not(:active):not(:focus):not(:target) {
    position: absolute !important;
    clip: rect(0 0 0 0) !important;
  }
}

[aria-busy='true'] {
  cursor: progress;
}

[aria-controls] {
  cursor: pointer;
}

[aria-disabled] {
  cursor: default;
}

/* =====================================
   Theme & Base Styles
   ===================================== */
html {
  --color: white;
}

body {
  color: white;
  background-color: black;
}

@media (prefers-color-scheme: dark) {
  html {
    --color: white;
  }
  body {
    color: white;
    background-color: black;
  }
}

@media (prefers-color-scheme: light) {
  html {
    --color: black;
  }
  body {
    color: black;
    background-color: white;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'SF Pro', 'SF Pro Display', 'SF Pro Text', 'SF Pro Icons',
    'Helvetica Neue', Helvetica, Arial, sans-serif;
  -moz-font-feature-settings: 'kern' 1;
  -ms-font-feature-settings: 'kern' 1;
  -o-font-feature-settings: 'kern' 1;
  -webkit-font-feature-settings: 'kern' 1;
  font-feature-settings: 'kern' 1;
  font-kerning: normal;
  letter-spacing: 0.015em;
  font-size: 14px;
  line-height: 1.57;
}

/* =====================================
   Utility Classes
   ===================================== */
p,
.mb1 {
  margin-bottom: 0.8rem;
}

section {
  margin-bottom: 5rem;
}

@media (max-width: 700px) {
  section {
    margin-bottom: 2rem;
  }
}

img,
video {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.x {
  display: flex;
}

.xw {
  flex-wrap: wrap;
}

.xjb {
  justify-content: space-between;
}

a {
  color: inherit;
  text-decoration: none;
}

.project a {
  text-decoration: underline;
}

.logo {
  width: 15%;
  justify-self: flex-start;
}

svg {
  width: 2.56rem;
  vertical-align: middle;
}

::selection {
  background-color: #eaeaea;
  color: black;
}

/* =====================================
   Layout
   ===================================== */
main {
  padding: 1.5rem;
  min-height: 100vh;
}

#main-content {
  width: 100%;
  max-width: 35rem;
}

.top,
.bottom {
  width: 100%;
}

.bottom {
  align-self: flex-end;
}

/* =====================================
   Notion Page Styles
   ===================================== */
.notion-gray {
  color: #808080;
}

.notion-header {
  display: none;
}

main.notion-page {
  padding: 0;
}

.notion-page-scroller {
  padding: 80px;
}

@media (max-width: 700px) {
  .notion-page-scroller {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.notion-page {
  max-width: 520px;
}

.notion-page h1 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

.notion-page ul,
.notion-page ol {
  padding-left: 1rem;
}

.notion-page ol {
  margin-left: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.notion-page .notion-text {
  margin-bottom: 10px;
}

.notion-page p {
  paragraph-spacing: 10px;
}

/* =====================================
   Project Styles
   ===================================== */
.project {
  padding: 0.5rem 0;
  position: relative;
}

.project::after {
  border-bottom: 1px solid;
  opacity: 0.6;
  bottom: 0;
  content: ' ';
  position: absolute;
  left: 0;
  width: 100%;
}

.project header {
  transition: 0.3s ease-out opacity;
  cursor: pointer;
}

.project header:hover {
  opacity: 0.6;
}

.project .inpost-content {
  padding: 1rem 0;
}

.project .media {
  margin-bottom: 1rem;
}

/* Light/Dark mode media switching */
.media {
  display: none;
  margin-bottom: 1rem;
}

@media (prefers-color-scheme: dark) {
  .media.black {
    display: block;
  }
}

@media (prefers-color-scheme: light) {
  .media.white {
    display: block;
  }
}
