:root {
  --bg: #f4efe6;
  --panel: rgba(255, 252, 247, 0.9);
  --text: #1f1c18;
  --muted: #655c53;
  --border: rgba(31, 28, 24, 0.12);
  --accent: #a04b14;
  --accent-strong: #7f3306;
  --shadow: 0 18px 50px rgba(88, 58, 23, 0.12);
  --radius: 22px;
  --content-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  line-height: 1.6;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(208, 143, 83, 0.24), transparent 34%),
    radial-gradient(circle at top right, rgba(98, 135, 112, 0.2), transparent 28%),
    linear-gradient(180deg, #f8f2e9 0%, var(--bg) 100%);
}

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

.shell {
  width: min(calc(100% - 2rem), 1100px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(248, 242, 233, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-header .shell,
.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #d7a15d);
  color: #fff7ee;
  font-style: italic;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

main.shell {
  padding: 3rem 0 5rem;
}

.hero,
.article-card,
.article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: 2.4rem;
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.hero p {
  max-width: 52rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.article-list {
  display: grid;
  gap: 1.25rem;
}

.article-card {
  padding: 1.6rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(88, 58, 23, 0.16);
}

.article-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.article-card p,
.article-meta,
.article-lead {
  color: var(--muted);
}

.article-card a {
  text-decoration: none;
}

.article {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 2.4rem;
}

.article h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.article h2,
.article h3 {
  line-height: 1.2;
  margin-top: 2rem;
}

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

.article pre,
.article code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.article pre {
  overflow-x: auto;
  padding: 1rem;
  background: #241f1a;
  color: #fff4df;
  border-radius: 16px;
}

.article code {
  background: rgba(31, 28, 24, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.article blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 4px solid rgba(160, 75, 20, 0.45);
  color: var(--muted);
}

.article img {
  max-width: 100%;
  border-radius: 16px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-header .shell,
  .site-footer .shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .article-card,
  .article {
    padding: 1.4rem;
    border-radius: 18px;
  }

  main.shell {
    padding-top: 1.5rem;
  }
}
