@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --cream-50: #fdfbf7;
  --cream-100: #fbf7f1;
  --cream-200: #f3ebe0;
  --terracotta-400: #d48466;
  --terracotta-500: #c4725a;
  --terracotta-600: #a85d45;
  --terracotta-700: #8b4a38;
  --text: #3d2e28;
  --text-muted: #6b5c4e;
  --text-light: #8a7968;
  --border: #e8dcc8;
  --max-content: 44rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream-50);
}

a {
  color: var(--terracotta-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { color: var(--terracotta-600); }

img { max-width: 100%; height: auto; display: block; }

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-aside {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream-100);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.brand {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0;
}

.brand:hover { color: inherit; }

.brand-avatar {
  width: 3.5rem;
  height: 2.35rem;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.brand-text { min-width: 0; }

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.brand-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
  line-height: 1.35;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav {
  flex: 1;
  justify-content: flex-end;
}

.site-nav a {
  display: block;
  padding: 0.4rem 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
  border-radius: 0.375rem;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--cream-200);
  color: var(--terracotta-700);
}

.aside-footer {
  display: none;
}

.site-main {
  padding: 2rem 1.25rem 3rem;
  max-width: calc(var(--max-content) + 2.5rem);
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .site-main { padding: 2.5rem 2rem 4rem; }
}

.page-header { margin-bottom: 2rem; }

.page-eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta-600);
  margin: 0 0 0.5rem;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.page-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 36rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.prose p { margin: 0 0 1rem; }

.prose ul, .prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose li { margin-bottom: 0.35rem; }

.meta-line {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

.entry-card {
  display: block;
  padding: 1.15rem 1.25rem;
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.entry-card:hover {
  box-shadow: 0 4px 20px rgba(61, 46, 40, 0.08);
  border-color: var(--terracotta-400);
  color: inherit;
}

.entry-card time {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.entry-card h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.entry-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.timeline {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  border-left: 2px solid var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.4375rem;
  top: 0.35rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--terracotta-500);
  border: 2px solid var(--cream-50);
}

.timeline time {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.timeline h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin: 0 0 0.35rem;
}

.timeline p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-block {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--cream-200);
  border-radius: 0.625rem;
  border: 1px dashed var(--terracotta-400);
}

.contact-block p { margin: 0; }

.todo-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--terracotta-700);
  background: var(--cream-200);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0.35rem;
}

.page-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-light);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 28rem;
  margin: 0 auto;
}

.error-code {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--terracotta-400);
  line-height: 1;
  margin: 0 0 0.5rem;
}

.error-page h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

.error-page p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.btn-home {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: var(--terracotta-600);
  color: #fff;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
}

.btn-home:hover {
  background: var(--terracotta-700);
  color: #fff;
}

.hero-intro {
  padding: 1.5rem 0 0.5rem;
}

.hero-intro .page-title { font-size: clamp(2.25rem, 5vw, 3.25rem); }

.recent-strip {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.recent-strip h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}
