:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --line: #e6e6e6;
  --accent: #a64216;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

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

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

.site-header {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header {
  min-height: 7rem;
  padding-block: 1.5rem;
}

.wordmark {
  font-family: "Ysabeau Office", system-ui, sans-serif;
  font-weight: 100;
  letter-spacing: 0.2em;
  line-height: 1;
  white-space: nowrap;
}

.brand {
  font-size: 2rem;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8125rem;
}

nav a {
  padding-block: 0.5rem;
  text-decoration: none;
}

nav a[aria-current="page"],
nav a:hover {
  text-decoration: underline;
}

.home-header {
  position: absolute;
  top: 0;
  right: 1.5rem;
  width: auto;
  min-height: 0;
  justify-content: flex-end;
}

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.logo-main {
  margin: 0 -0.2em 0 0;
  font-size: clamp(2.75rem, 15vw, 16rem);
}

.text-link {
  font-size: 0.875rem;
}

.content {
  flex: 1;
  width: min(100% - 3rem, 48rem);
  margin-inline: auto;
  padding-block: 4rem 6rem;
}

h1,
h2,
p {
  margin-top: 0;
}

.page-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.page-intro {
  max-width: 35rem;
  margin-bottom: 3rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-preview {
  border-block: 1px solid var(--line);
  padding-block: 2rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.article-preview h2 {
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.article-preview h2 a {
  text-decoration: none;
}

.article-preview h2 a:hover {
  text-decoration: underline;
}

.article-preview p:not(.post-meta) {
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.post-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.prose {
  max-width: 42rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  transform: translateY(-200%);
}

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

@media (max-width: 40rem) {
  .site-header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .brand {
    font-size: 1.75rem;
  }

  nav {
    gap: 1rem;
  }

  .content {
    padding-block: 2rem 4rem;
  }
}
