:root {
	--primary: white;
	--secondary: rgba(255, 255, 255, 0.7);
	--tertiary: rgba(255, 255, 255, 0.5);
}

html {
  min-height: 100%;
  background: black;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: calc(4rem + env(safe-area-inset-bottom));
  box-sizing: border-box;

  font-family: 'Adwaita Sans', -apple-system, BlinkMacSystemFont, Inter, Roboto, sans-serif;
  font-size: 0.875rem;

  color: var(--tertiary);

  background: linear-gradient(
    219deg,
    #0F0F0F 0%,
    #0F0F0F 22%,
    black 96%,
    black 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: scroll;
}

nav {
  display: none;
  position: absolute;
  top: 48px;
  right: 48px;
}
nav ul {
	display: flex;
	gap: 16px;
	list-style: none;
}
nav a img {
    transition: 150ms ease-out;
}
nav a img:hover {
  opacity: 0.8;
}
nav a img:active {
  opacity: 0.5;
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: calc(650px + 1.5rem * 2);
  height: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

a {
  color: var(--tertiary);
  transition: 150ms ease-out;
}
a:hover {
    opacity: 0.8;
}
a:active {
    opacity: 0.5;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  ine-height: 110%;
  text-box: trim-both cap alphabetic;
  color: var(--secondary);
}
h1 span {
  color: var(--primary);
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 110%;
  text-box: trim-both cap alphabetic;
  color: var(--secondary);
}
h2 span {
  color: var(--primary);
}

h3 {
  font-size: 0.875rem;
  font-weight: normal;
  color: var(--tertiary);
}
h3 span {
  color: var(--primary);
}

ul {
  list-style: none;
  padding: 0;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #141414;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    #262626 0%,
    rgba(38, 38, 38, 0.4) 5%
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;

  pointer-events: none;
}
.card__header {
  display: flex;
  flex-direction: column;
}
.card__header > div:first-child {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.card__header time {
  text-align: end;
}
.card__title {
  text-decoration: none;
}
.card__title span {
  color: var(--primary);
}
.card img {
  width: 100%;
  border-radius: 0.375rem;
  object-fit: cover;
}

.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@media screen and (min-width: 900px) {
  nav {
    display: inline-block;
  }

  main {
    padding: 3rem 1.5rem;
  }
}
