@font-face {
  font-family: "Geist";
  src: url("./assets/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./assets/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Geist", system-ui, sans-serif;
  background: #000;
  color: #deddd8;
  --gold: #c6ac77;
  --muted: #96958e;
  --line: #282720;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #f1dfb5;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

::selection {
  background: #c6ac77;
  color: #000;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 43rem;
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: #f2f0e9;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.wordmark span {
  color: var(--gold);
}

nav,
.entry-number,
.site-footer {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  line-height: 1.6;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  letter-spacing: 0.08em;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  text-decoration: none;
}

.entry-header {
  padding-block: clamp(3.5rem, 10vw, 6rem) 2rem;
}

.entry-number {
  margin: 0 0 1.25rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  color: #f2f0e9;
  font-size: clamp(2.125rem, 7vw, 3.375rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.entry-body {
  font-size: clamp(1rem, 2.3vw, 1.125rem);
  line-height: 1.85;
  overflow-wrap: break-word;
}

.entry-body p {
  margin: 0 0 1.5em;
}

.entry-body .section-start {
  margin-top: 3.5em;
}

figure {
  margin: 3rem 0 0;
}

figure img {
  display: block;
  width: 100%;
  max-width: 622px;
  height: auto;
  margin-inline: auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 4rem;
  padding-block: 1.5rem 3rem;
  border-top: 1px solid var(--line);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--gold);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
  background: #000;
  z-index: 1;
}

.skip-link:focus {
  transform: translateY(0);
}
