:root {
  --bg: #f5f3ec;
  --paper: #fffdf8;
  --ink: #2c3128;
  --muted: #6d7365;
  --line: #ded9c9;
  --accent: #63764b;
  --accent-dark: #4d5d3a;
  --soft: #eef0e6;
  --warm: #b2704f;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(52, 60, 40, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; }

.wrap {
  width: min(1040px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; color: white; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding: 13px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 18px;
}

.brand-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

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

.season-bar {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.season-bar .wrap { padding: 7px 0; }

/* Main */
main { padding: 38px 0 64px; }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 18px; }
h2 { font-size: 26px; margin: 36px 0 14px; }
h3 { font-size: 20px; margin: 26px 0 10px; }
p { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.lead {
  font-size: 18px;
  color: #495044;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}
.btn:hover { background: var(--accent-dark); color: #fff; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.hero img {
  width: 100%;
  border-radius: 8px;
  background: var(--soft);
}

/* Sections and cards */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 16px;
}
.section-head h2 { margin: 0; }
.section-head > a { font-size: 14px; }

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

.card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); color: inherit; }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card-icon img { width: 27px; height: 27px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Post list */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.post-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: inherit;
  text-decoration: none;
}
.post-item:hover { border-color: var(--accent); color: inherit; }
.post-date { color: var(--muted); font-size: 13px; line-height: 1.35; }
.post-date strong {
  display: block;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 3px;
}
.post-body h3 { margin: 0 0 5px; font-size: 20px; }
.post-body p { margin: 0; color: var(--muted); font-size: 15px; }

/* About strip */
.about-strip {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  align-items: center;
  background: var(--soft);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 36px;
}
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  margin: 0 auto;
}

/* Pages and notes */
.page-header { margin-bottom: 28px; }
.page-header .eyebrow { margin-bottom: 8px; }
.page-header p { color: var(--muted); max-width: 720px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }

.note-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.note-card h2 { margin: 0 0 10px; font-size: 22px; }
.note-card ul { padding-left: 22px; margin: 0; }
.note-card li { margin-bottom: 7px; }

/* Article */
.article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.article-header h1 { margin-bottom: 10px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}
.article img {
  display: block;
  border-radius: 8px;
  background: var(--soft);
  margin-bottom: 24px;
}
.article p, .article li { font-size: 16.5px; }
.article ul, .article ol { padding-left: 22px; }

.callout {
  border-left: 4px solid var(--accent);
  background: var(--soft);
  padding: 15px 18px;
  border-radius: 0 8px 8px 0;
  margin: 26px 0;
}
.callout strong { color: var(--accent-dark); }

.related {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.related h2 { margin: 0 0 12px; font-size: 22px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin-bottom: 8px; }

.back { margin-top: 28px; }

/* Footer */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-dark); }

/* Responsive */
@media (max-width: 760px) {
  .site-header { position: static; }
  .hero { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .hero img { max-width: 220px; }
  .about-strip { grid-template-columns: 1fr; gap: 16px; }
  .post-item { grid-template-columns: 74px 1fr; gap: 14px; }
  .article { padding: 22px; }
  .site-nav { gap: 2px 14px; }
}

@media (max-width: 480px) {
  .wrap { width: 94%; }
  h1 { font-size: 30px; }
  .hero, .article { padding: 18px; }
  .post-item { grid-template-columns: 1fr; gap: 8px; }
  .post-date strong { display: inline; margin-right: 6px; font-size: 18px; }
  .section-head { align-items: flex-start; flex-direction: column; }
}

/* Print */
@media print {
  .site-header, .season-bar, .site-footer, .btn, .back, .skip-link { display: none; }
  body { background: #fff; }
  main { padding: 0; }
  .hero, .card, .note-card, .article { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; text-decoration: none; }
}
