:root {
  --bg: #faf6ef;
  --bg-accent: #fef599;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #f07d3a;
  --accent-dark: #d96828;
  --accent-soft: rgba(240, 125, 58, 0.12);
  --border: #e8e2d6;
  --shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
  --radius: 14px;
  --max: 42rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--bg-accent) 0, var(--bg-accent) 88px, var(--bg) 88px);
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header__inner {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
}

.site-brand:hover {
  color: var(--accent-dark);
}

.site-brand__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.site-brand__tagline {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.1rem;
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent-dark);
}

h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

p,
li {
  color: var(--text);
}

ul {
  padding-left: 1.25rem;
}

code {
  font-size: 0.9em;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
}

a {
  color: var(--accent);
  font-weight: 500;
}

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

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.site-footer__inner {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--muted);
  font-weight: 500;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 540px) {
  .article {
    padding: 1.5rem 1.25rem;
  }

  h1 {
    font-size: 1.55rem;
  }
}
