:root {
  color-scheme: light;
  --bg: #f7f2ea;
  --panel: #fffaf2;
  --text: #1f1b16;
  --muted: #6f6254;
  --line: #eadfce;
  --accent: #9a5b22;
  --accent-dark: #6f3d12;
  --shadow: 0 20px 50px rgba(69, 43, 18, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at top left, #fff3dd 0, transparent 34rem), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

a { color: inherit; text-decoration-color: rgba(154, 91, 34, 0.35); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a { text-decoration: none; }

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  max-width: 820px;
  padding: 4rem 0 3rem;
}

.hero h1,
.page-title h1,
.post h1 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero p,
.page-title p,
.description {
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.8rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
}

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card,
.note {
  background: rgba(255, 250, 242, 0.84);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.card h3 {
  margin: 0.2rem 0 0.65rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

.card p { color: var(--muted); }

.page-title {
  max-width: 760px;
  padding: 2.5rem 0;
}

.post {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  padding: clamp(1.3rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.post h2 {
  margin-top: 2.2rem;
  font-size: 1.55rem;
  line-height: 1.3;
}

.post h3 { margin-top: 1.7rem; }

.post code {
  background: #f0e3d0;
  border-radius: 0.35rem;
  padding: 0.08rem 0.28rem;
}

.post li { margin: 0.35rem 0; }

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  main { padding-top: 0.5rem; }
}
