:root {
  --background-color: oklch(98.5% 0 0);
  --heading-color: oklch(14.1% 0.005 285.823);
  --p-color: oklch(55.2% 0.016 285.938);
  --a-color: oklch(54.6% 0.245 262.881);
  --a-hover-color: oklch(62.3% 0.214 259.815);
  --a-visited-color: oklch(42.4% 0.199 265.638);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: oklch(21% 0.006 285.885);
    --heading-color: oklch(92% 0.004 286.32);
    --a-color: oklch(70.7% 0.165 254.624);
    --a-visited-color: oklch(80.9% 0.105 251.813);
  }
}

* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
  font-family: "Montreal";
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}

@font-face {
  font-family: "Montreal";
  src: url("/assets/PPNeueMontreal-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Instrument";
  src: url("/assets/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}

body {
  background-color: var(--background-color);
  color: var(--heading-color);
  font-size: 1rem;
  line-height: 1.3;
}

.page-wrap {
  max-width: 32rem;
  margin-inline: auto;
  padding-inline: min(1rem, 4%);
  padding-top: 2rem;
}

section {
  padding-block: 1rem;
}

h1,
h2 {
  letter-spacing: -0.03em;
  font-family: "Instrument", serif;
  line-height: 1.1;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--p-color);
  letter-spacing: -0.015em;
}

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

a h3,
a:not(:has(h3)),
.disabled h3 {
  font-size: 1rem;
  text-decoration: underline;
  display: inline-block;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.1em;
}

.disabled h3 {
  color: var(--p-color);
}

.disabled {
    cursor: help;
}

a:visited {
  color: var(--a-visited-color);
}

a:hover {
  color: var(--a-hover-color);
}

ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

li a {
  margin-bottom: 0.25rem;
}
