/* Design tokens */
:root {
  --colour-background: #fff;
  --colour-text-primary: #111;
  --colour-accent: #9a1115; /* Mephiston Red – https://handwiki.org/wiki/List_of_Citadel_paints */
  --colour-border: #dddddd;
}

/* Base */
html {
  scroll-behavior: smooth;
  font-size: 1.3em;
  font-family: "Alegreya", serif;
  line-height: 1.5em;
  color: var(--colour-text-primary);
  background-color: var(--colour-background);
  font-weight: 450;
  border-top: 0.25rem solid var(--colour-accent);
}

a {
  color: var(--colour-accent);
}

p {
  margin: 0.75em 0;
}

b,
strong {
  font-weight: 800;
}

*::selection {
  background-color: var(--colour-accent);
  color: var(--colour-background);
}

/* Components */

/* Page layout */
.page {
  display: grid;
  grid-template-columns: 1fr 3fr 2fr;
  max-width: none;
  margin: 0;
}

.page-content {
  grid-column: 2;
  max-width: 65ch;
}

.main {
  margin-top: 50px;
}

/* Header */
.header-title {
  font-size: 0.8em;
  margin: 0;
}

@supports (display: grid) {
  .header {
    display: grid;
    grid-template-columns: 30px min-content 30px;
    margin-top: 50px;
    margin-bottom: 25px;
    margin-left: -30px;
  }
  .header::before {
    color: var(--colour-accent);
    grid-column: 1;
    content: "<";
    font-size: 0.8em;
    font-weight: bold;
    text-align: right;
    margin-right: 0.3em;
  }
  .header::after {
    color: var(--colour-accent);
    content: "/>";
    font-size: 0.8em;
    font-weight: 800;
    margin-top: 1px;
    margin-left: 0.3em;
  }
}

/* Intro */
.intro-lead {
  font-weight: 800;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.25;
  text-wrap: balance;
  margin: 1.5em 0;
}

.intro-list {
  margin: 1em 0 0 -0.75em;
  padding: 0;
}

.intro-item {
  margin: 0 0 0.75em;
  padding-left: 0.75em;
  list-style: lower-roman;
  counter-reset: 2;
}

.intro-item::marker {
  font-size: 0.8em;
  font-family: "Alegreya SC", serif;
  letter-spacing: 0.02em;
}

/* Contact */
.contact {
  font-style: normal;
  font-size: 0.8em;
}
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.contact-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.contact-link {
  padding: 0;
  vertical-align: middle;
  line-height: 2;
  display: inline-block;
}

/* Links */
.link {
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor, transparent 75%);
  text-underline-offset: 2px;
  font-family: "Alegreya SC", serif;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  padding: 0;
}

.link:hover {
  color: var(--colour-background);
  background-color: var(--colour-accent);
  text-decoration: none;
}

/* Footer */
.footer {
  margin-top: 0rem;
}
.footer p {
  margin-bottom: 0.75em;
  line-height: 1.5em;
}
.footer p:first-child {
  padding-top: 1rem;
  border-top: 1px solid var(--colour-border);
}
.footer > * {
  font-size: small;
  margin: 0;
}

/* Utilities */
.u-sc {
  font-family: "Alegreya SC", serif;
  text-transform: lowercase;
  letter-spacing: 0.033em;
  font-weight: 450;
}

.u-spaced {
  margin-top: 2.5rem;
}

/* Responsive */
@media screen and (max-width: 800px) {
  .page {
    display: block;
  }
  .page-content {
    margin: 0 1rem;
    max-width: 100%;
  }
  .contact {
    font-size: small;
  }
}
