:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #191b1f;
  --muted: #595e66;
  --faint: #777c84;
  --line: #d8d5ce;
  --accent: #95620c;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 65%, transparent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.index-shell {
  width: min(54rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

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

.index-header h1,
.article-content h1,
.article-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
}

.index-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.index-header p,
.article-row p,
.import-note p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.article-list {
  margin-top: 2.5rem;
}

.article-row {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.article-row h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.25;
}

.article-row p {
  margin: 0.65rem 0 1.1rem;
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-actions code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--faint);
  font-size: 1rem;
}

.article-actions button {
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 0.35rem;
  padding: 0.7rem 0.9rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.article-actions button:hover,
.article-actions button:focus-visible {
  background: var(--ink);
  color: var(--surface);
}

.import-note {
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.4rem;
  background: var(--surface);
}

.import-note h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.import-note p {
  margin: 0;
  font-size: 1rem;
}

.article-shell {
  width: min(48rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 6rem;
}

.article-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.article-content .subtitle {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.55;
}

.article-content h2 {
  margin: 3.2rem 0 1rem;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.article-content p,
.article-content li {
  color: #353941;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.78;
}

.article-content p {
  margin: 0 0 1.45rem;
}

.article-content ul {
  margin: 1.3rem 0 1.8rem;
  padding-left: 1.35rem;
}

.article-content li {
  margin: 0 0 0.75rem;
  padding-left: 0.3rem;
}

.article-content figure {
  width: min(70rem, calc(100vw - 2rem));
  margin: 3rem 0 3rem 50%;
  transform: translateX(-50%);
}

.article-content img {
  display: block;
  width: 100%;
  height: auto;
}

.article-content figcaption {
  margin-top: 0.7rem;
  color: var(--faint);
  font-size: 1rem;
  line-height: 1.55;
}

@media (max-width: 42rem) {
  .index-shell,
  .article-shell {
    padding-top: 2.5rem;
  }

  .article-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .article-actions button {
    width: 100%;
  }

  .article-content p,
  .article-content li {
    font-size: 1.08rem;
  }
}
