@import url("./glitch.css");

@view-transition {
  navigation: auto;
}

:root {
  --r-black: #231f20;
  --r-grey: #1d2121;
  --r-azure: #f0ffff;
  --r-orange: #f18f01;
  --r-white: #fefcf5;
  --r-antiquewhite: #faebd7;
  --r-ocean: #bdc7f0;

  --r-bg: var(--r-white);
  --r-fg: var(--r-black);
  --r-border: var(--r-grey);
  --r-primary: var(--r-orange);
  --r-secondary: var(--r-antiquewhite);
  --r-accent: var(--r-antiquewhite);

  color-scheme: only light;
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizespeed;
}

@supports (color: color(display-p3 1 1 1)) {
  :root {
    --r-black: color(display-p3 0.13 0.12 0.13);
    --r-grey: color(display-p3 0.12 0.13 0.13);
    --r-azure: color(display-p3 0.95 1 1);
    --r-orange: color(display-p3 0.89 0.58 0.21);
    --r-white: color(display-p3 0.99 0.99 0.96);
    --r-antiquewhite: color(display-p3 0.97 0.92 0.85);
    --r-ocean: color(display-p3 0.75 0.78 0.93);
  }
}

* {
  text-underline-offset: 2px;
}

:where(h1) {
  margin-block: 0.67em;
  font-size: 1.75em;
  font-weight: 700;
}

body {
  margin-bottom: 0;
  color: var(--r-fg);
  background-color: var(--r-bg);
}

main,
footer {
  max-width: 60ch;
}

main {
  padding: 1.5rem 8px;
  margin: 76px auto 2rem auto;
}

footer {
  margin: 0 auto;
}

a {
  color: var(--r-primary);
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

p {
  text-indent: 1.5em;
}

ul {
  list-style-type: "\2014";

  li {
    padding-left: 12px;
  }
}

ul.horizontal {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 1em;

  li {
    padding: 0;
  }
}

.centre {
  text-align: center;
  text-indent: 0;
}

.text-sm {
  font-size: 16px;
}

.text-xs {
  font-size: 14px;
}

.sheets {
  width: 100%;
  height: 30px;
  margin-top: 30px;
  background: repeating-linear-gradient(
    to top,
    transparent,
    transparent 4px,
    var(--r-fg) 4px,
    var(--r-fg) 5px
  );
}

@media (max-width: 860px) {
  p {
    text-align: justify;
  }
}
