@font-face {
  font-family: "Epilogue";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/epilogue.woff2") format("woff2");
}
@font-face {
  font-family: "League Gothic";
  font-display: swap;
  src: url("../fonts/league-gothic.woff2") format("woff2");
}

:root {
  --dark: #1b1b1b;
  --light: #f7f7f7;
  --bright: #e0e0e0;
  --text-light: #f0f0f0;
  --text-dark: #121212;
  --accent: #ff6764;
  --rule: #808080;
  --max-width: 1200px;
  --gutter: max(8.3vw, (100% - var(--max-width)) / 2);
  --measure: 720px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 18px/1.65 "Epilogue", sans-serif;
  background: var(--light);
  color: #000;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: "League Gothic", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
}
p { margin: 0 0 1em; }
a { color: inherit; }
.accent { color: var(--accent); }
.dark { background: var(--dark); color: var(--text-light); }
.bright { background: var(--bright); color: #000; }

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  padding: 14px var(--gutter);
  font-family: "League Gothic", sans-serif;
  font-size: 20px;
  text-transform: uppercase;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.accent:hover { color: var(--text-light); }
.site-nav ul {
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-head { padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(48px, 6vw, 96px); }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5em;
  margin: 0 0 2em;
  padding: 0;
  list-style: none;
  font-family: "League Gothic", sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--rule);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5em; }
.breadcrumb a { text-decoration: none; color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.meta {
  margin: 0 0 0.5em;
  font-family: "League Gothic", sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--accent);
}
.page-head h1 {
  max-width: 18em;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.9;
}
.standfirst {
  max-width: var(--measure);
  margin: 1em 0 0;
  font-size: 20px;
  text-align: justify;
  hyphens: auto;
}

.article-body { padding: clamp(48px, 6vw, 96px) var(--gutter); }
.article-body > * { max-width: var(--measure); }
.article-body p { text-align: justify; hyphens: auto; }
.article-body h2 {
  margin-top: 1.25em;
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1;
  color: var(--text-dark);
}
.article-body ul, .article-body ol { margin: 0 0 1em; padding-left: 1.25em; }
.article-body li { margin-bottom: 0.4em; }
code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.1em 0.3em;
  background: var(--bright);
}
pre {
  margin: 0 0 1.5em;
  padding: 1.25em 1.5em;
  overflow-x: auto;
  background: var(--dark);
  color: var(--text-light);
  border-left: 4px solid var(--accent);
  font-size: 15px;
  line-height: 1.5;
}
pre code { padding: 0; background: none; font-size: inherit; }

.author {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2em;
  align-items: center;
  padding: clamp(48px, 6vw, 96px) var(--gutter);
}
.author img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}
.author h2 { font-size: 40px; line-height: 1; }
.author p { max-width: var(--measure); text-align: justify; }
.author .links { margin: 0; font-family: "League Gothic", sans-serif; font-size: 26px; text-transform: uppercase; }
.author .links a { text-decoration: none; margin-right: 1.25em; }
.author .links a:hover { color: var(--accent); }

.archive { padding: clamp(48px, 6vw, 96px) var(--gutter); }
.archive ol { margin: 0; padding: 0; list-style: none; max-width: 900px; }
.archive li { padding: 1.5em 0; border-bottom: 1px solid var(--rule); }
.archive li:first-child { padding-top: 0; }
.archive time {
  font-family: "League Gothic", sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--accent);
}
.archive h2 { margin: 0.1em 0 0.3em; font-size: clamp(32px, 4vw, 40px); line-height: 1; color: var(--text-dark); }
.archive h2 a { text-decoration: none; }
.archive h2 a:hover { color: var(--accent); }
.archive p { margin: 0; text-align: justify; hyphens: auto; }

@media (max-width: 767px) {
  body { font-size: 17px; }
  .site-nav { font-size: 18px; flex-wrap: wrap; }
  .site-nav ul { gap: 1em; flex-wrap: wrap; }
  .author { grid-template-columns: 1fr; }
}
