:root {
  color-scheme: light;
  --paper: #f4efe6;
  --ink: #20201d;
  --muted: #706e66;
  --line: #d5cec2;
  --accent: #b64b2d;
  --card: rgba(255, 255, 255, 0.42);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  color: var(--ink);
  background-image: radial-gradient(rgba(80, 70, 52, 0.055) 0.7px, transparent 0.7px);
  background-size: 7px 7px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1rem;
}

nav {
  display: flex;
  gap: 26px;
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
}

nav a {
  padding: 4px 0;
  color: var(--muted);
}

nav a:hover,
nav a.active {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}

.hero {
  padding: 90px 0 84px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.note-meta,
.read-time,
.section-heading span {
  font-family: Arial, sans-serif;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.lede {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.note-list {
  padding: 62px 0 84px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: 1.25rem;
  font-weight: 400;
}

.featured-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--card);
}

.featured-note h3 {
  margin-bottom: 9px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
}

.featured-note h3 a:hover,
.text-link:hover {
  color: var(--accent);
}

.featured-note p:last-child,
.note-card p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.arrow {
  color: var(--accent);
  font-size: 2rem;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
}

.note-card {
  min-height: 280px;
  padding: 30px 26px;
  background: var(--paper);
}

.note-card h3 {
  margin: 18px 0 12px;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
}

.read-time {
  display: inline-block;
  margin-top: 30px;
}

.prose-page {
  max-width: 760px;
  min-height: 70vh;
  padding: 90px 0 110px;
}

.prose-page h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.prose-page h2 {
  margin: 46px 0 12px;
  font-size: 1.6rem;
  font-weight: 400;
}

.prose-page p {
  font-size: 1.08rem;
}

.prose-page .intro {
  color: var(--muted);
  font-size: 1.3rem;
}

.article-page .note-meta {
  margin-bottom: 18px;
}

blockquote {
  margin: 44px 0;
  padding: 8px 0 8px 26px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 1.35rem;
  font-style: italic;
}

.text-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}

.not-found {
  display: grid;
  min-height: 100vh;
  align-content: center;
}

.not-found h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  body {
    width: min(100% - 28px, 1120px);
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    padding: 68px 0 62px;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .note-card {
    min-height: auto;
  }

  .featured-note {
    padding: 24px;
  }

  footer {
    gap: 14px;
    flex-direction: column;
  }
}
