:root {
  color-scheme: dark;
  --shell-max: 980px;
  --shell-gutter: 1.25rem;
  --rail-width: 142px;
  --rail-gap: clamp(2.25rem, 5vw, 4rem);
  --rail-top: clamp(2.25rem, 5vw, 3.75rem);
  --bg: #000;
  --panel: #000;
  --text: #ece7dc;
  --muted: #aaa295;
  --faint: #746d63;
  --line: #1d1a17;
  --hover: #ded6c8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.75;
}

body::selection {
  background: #e8dcc6;
  color: #050505;
}

a {
  color: var(--text);
  text-decoration-color: rgba(236, 231, 220, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--hover);
  text-decoration-color: var(--hover);
}

.site-shell {
  width: min(100% - 2.5rem, var(--shell-max));
  margin: 0 auto;
  padding: var(--rail-top) 0 5rem;
}

.site-shell > main {
  max-width: 700px;
  margin-left: calc(var(--rail-width) + var(--rail-gap));
}

.site-footer {
  max-width: 700px;
  margin: clamp(4rem, 10vw, 7rem) 0 0 calc(var(--rail-width) + var(--rail-gap));
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--faint);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  top: var(--rail-top);
  bottom: 4rem;
  left: max(var(--shell-gutter), calc((100vw - var(--shell-max)) / 2));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  width: var(--rail-width);
  padding: 0 1.25rem 0 0;
  border-right: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(108px, 100%);
  height: auto;
  opacity: 0.82;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-left: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.intro {
  padding-top: clamp(0.5rem, 2vw, 1.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 1.35rem;
  color: var(--faint);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
  line-height: 1.12;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

h2 {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subtitle {
  max-width: 29rem;
  margin: 1.45rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  line-height: 1.72;
}

.archive-list {
  padding-top: clamp(2.4rem, 6vw, 4rem);
}

.archive-entry {
  margin-top: 1.8rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
}

.archive-entry a {
  display: block;
  text-decoration: none;
}

.entry-title {
  display: block;
  color: var(--text);
  font-size: clamp(1.16rem, 2.5vw, 1.42rem);
  line-height: 1.45;
}

.entry-note {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.archive-entry a:hover .entry-title,
.archive-entry a:focus-visible .entry-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.article-header {
  padding-top: clamp(1.25rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  max-width: 14ch;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.essay {
  padding-top: clamp(3rem, 8vw, 5rem);
  font-size: clamp(1.04rem, 2vw, 1.14rem);
}

.essay p {
  margin: 0 0 1.45rem;
}

.essay p:first-child::first-letter {
  color: var(--hover);
  float: left;
  padding: 0.12rem 0.34rem 0 0;
  font-size: 3.4rem;
  line-height: 0.86;
}

@media (max-width: 760px) {
  .site-shell {
    display: block;
    width: min(100% - 1.35rem, 720px);
    padding-top: 1.25rem;
  }

  .site-shell > main {
    max-width: none;
    margin-left: 0;
  }

  .site-footer {
    max-width: none;
    margin-left: 0;
  }

  .site-header {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-height: 0;
    width: auto;
    padding-bottom: 3.75rem;
    padding-right: 0;
    border-right: 0;
  }

  .brand img {
    width: 68px;
  }

  .site-nav {
    align-items: flex-end;
    gap: 0.85rem;
    margin-left: 0;
    padding-top: 0.28rem;
    font-size: 0.72rem;
  }

  .intro {
    padding-top: 1rem;
    padding-bottom: 3.5rem;
  }
}
