/*
  Normalize based on Tailwind CSS
  https://tailwindcss.com/docs/preflight
*/

/* margins are removed */
*,
::after,
::before,
::backdrop,
::file-selector-button {
  margin: 0;
  padding: 0;
}

/* borders reset */
*,
::after,
::before,
::backdrop,
::file-selector-button {
  box-sizing: border-box;
  border: 0 solid;
}

/* headers are unstyled */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* list are unstyled */
ol,
ul,
menu {
  list-style: none;
}

/* images are block */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

/* images are constrained */
img,
video {
  max-width: 100%;
  height: auto;
}

/*
  App Styles
*/
:root {

  /* made up the name 'ocean-blu' since the syntax highlighting for 'blue' was driving me nuts */
  --ocean-blu-50: rgb(236, 241, 248);
  --ocean-blu-100: rgb(202, 215, 236);
  --ocean-blu-200: rgb(168, 190, 225);
  --ocean-blu-300: rgb(134, 164, 213);
  --ocean-blu-400: rgb(100, 139, 201);
  --ocean-blu-500: rgb(70, 116, 190);
  --ocean-blu-600: rgb(56, 95, 159);
  --ocean-blu-700: rgb(44, 75, 125);
  --ocean-blu-800: rgb(32, 54, 91);
  --ocean-blu-900: rgb(20, 34, 57);
  --ocean-blu-950: rgb(19, 32, 53);

  --outer-space-50: rgb(241, 242, 244);
  --outer-space-100: rgb(218, 221, 226);
  --outer-space-200: rgb(171, 180, 191);
  --outer-space-300: rgb(122, 136, 153);
  --outer-space-400: rgb(84, 95, 109);
  --outer-space-500: rgb(49, 55, 63);
  --outer-space-600: rgb(42, 48, 55);
  --outer-space-700: rgb(33, 38, 43);
  --outer-space-800: rgb(27, 30, 35);
  --outer-space-900: rgb(18, 20, 23);
  --outer-space-950: rgb(11, 13, 14);

  /* theme colors */
  --page-content: var(--ocean-blu-950);
  --page-header: var(--outer-space-400);
  --text: var(--ocean-blu-100);
  --text-lighter: var(--ocean-blu-50);
}

@font-face {
  font-family: karaoke;
  src: url("../fonts/LTKaraokeBody-Light.ttf");
  font-weight: 300;
}

@font-face {
  font-family: karaoke;
  src: url("../fonts/LTKaraokeBody-Regular.ttf");
  font-weight: 400;
}

@font-face {
  font-family: karaoke;
  src: url("../fonts/LTKaraokeBody-Medium.ttf");
  font-weight: 500;
}

@font-face {
  font-family: karaoke;
  src: url("../fonts/LTKaraokeBody-SemiBold.ttf");
  font-weight: 600;
}

@font-face {
  font-family: karaoke;
  src: url("../fonts/LTKaraokeBody-Bold.ttf");
  font-weight: 700;
}

body {
  background-color: var(--page-content);
  font-family: karaoke, Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0em;
  color: var(--text);
}

a {
  color: var(--ocean-blu-50);
}

a:visited {
  color: var(--ocean-blu-100);
}

blockquote {
  background-color: var(--ocean-blu-800);
  margin: 0.5rem 2rem 1rem 0.5rem;
  padding: 1rem;
  border-radius: 3px;
}

ul {
  margin: 0 0 1rem 1rem;
}

li {
  list-style: circle;
}

li:not(:last-child) {
  margin-bottom: 0.5rem;
}

.page {

}

.header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 0.5rem;
  background-color: var(--page-header);
  text-decoration: none;
}

.header--wave {
  --mask:
    radial-gradient(67.08px at 50% calc(100% - 90px),#000 99%,#0000 101%) calc(50% - 60px) 0/120px 100%,
    radial-gradient(67.08px at 50% calc(100% + 60px),#0000 99%,#000 101%) 50% calc(100% - 30px)/120px 100% repeat-x;
  -webkit-mask: var(--mask);
  mask: var(--mask);
}

.header__img {
  max-height: 100px;
  max-width: 100px;
}

.header__title {
  font-size: 2.75em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text-lighter);
}

.page__content {
  display: grid;
  grid-template-columns: 1fr min(55ch, 100%) 1fr;
  margin-top: 2rem;
  magrin-bottom: 2rem;
}

.page__content > * {
  grid-column: 2
}

.post {
  display: flex;
  flex-direction: column;
}

.post:not(:last-child) {
  margin-bottom: 2rem;
}

.post__title {
  font-size: 1.75em;
  font-weight: 700;
  letter-spacing: 0.045em;
  color: var(--text-lighter);
  text-decoration: none;
}

.post__date {
  margin: 1rem 0;
  font-size: 0.85em;
}

.post > p {
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.7em;
}

.full-bleed {
  width: 100%;
  grid-column: 1 / -1;
}

.footer {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.pager__link {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--outer-space-400);
  border-radius: 3px;
  text-decoration: none;
}

.pager__link:hover {
  border: 1px solid var(--outer-space-200);
}

.image, .video {
  margin-bottom: 1.5rem;
}

.image__caption, .video__caption {
  padding: 0.75rem 0.25rem;
  color: var(--outer-space-200);
  font-size: 0.95em;
  letter-spacing: 0.035em;
}
