:root {
  --bg: #f0ebe3;
  --bg-accent: #e2ebe4;
  --surface: #fffef9;
  --text: #1c1917;
  --text-muted: #57534e;
  --accent: #166534;
  --accent-hover: #14532d;
  --accent-soft: #dcfce7;
  --border: #e7e5e4;
  --shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
  --radius: 12px;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max-width: 720px;
  --article-width: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(165deg, var(--bg) 0%, var(--bg-accent) 45%, var(--bg) 100%);
  color: var(--text);
  margin: 0;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--accent-hover);
}

.site-nav {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent);
  text-decoration: none;
}

.site-nav a.is-active {
  font-weight: 600;
}

/* Main layout */
main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.surface {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin-top: 0;
  color: var(--accent);
}

h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  color: var(--text);
}

.lead,
.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 12px;
}

/* Hero */
.hero {
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.25rem;
}

.hero .tagline {
  max-width: 32em;
}

/* App cards */
.app-grid {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

@media (min-width: 520px) {
  .app-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.app-card {
  display: block;
  padding: 20px;
  background: var(--accent-soft);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}

.app-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  display: block;
}

.app-card h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--accent);
}

.app-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.app-card ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Latest / article list */
.article-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.article-list li {
  border-bottom: 1px solid var(--border);
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.article-list-text a {
  display: block;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  text-decoration: none;
}

.article-list-text a:hover {
  color: var(--accent);
  text-decoration: none;
}

.article-list .date {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.article-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  overflow: hidden;
  line-height: 0;
}

.article-icon svg {
  display: block;
  width: 30px !important;
  height: 30px !important;
  max-width: 30px;
  max-height: 30px;
}

.link-arrow {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
}

/* Article reading */
main.article-main {
  max-width: var(--article-width);
}

.article-header article > h1 {
  margin-top: 0;
  margin-bottom: 0;
}

.article-header {
  margin-bottom: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

article h1 {
  margin-bottom: 0;
}

article h2 {
  margin-top: 2.25rem;
  font-size: 1.4rem;
}

article h2 strong {
  font-weight: inherit;
}

article p {
  margin: 1.15em 0;
}

article ul,
article ol {
  margin: 1.15em 0;
  padding-left: 1.5em;
}

article li {
  margin-bottom: 0.35em;
}

article a {
  font-weight: 500;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.article-nav a {
  font-weight: 500;
}

/* Privacy / simple pages */
.prose ul {
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

/* Footer */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

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

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