@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F7F3EE;
  --tan: #E8DFD0;
  --brown-light: #C4A882;
  --brown-mid: #8B6E52;
  --ink: #2C1F14;
  --ink-muted: #6B5647;
  --ink-faint: #A0887A;
  --charcoal: #2E3035;
  --charcoal-avatar: #4A5060;
  --charcoal-muted: #9AA0A8;
  --charcoal-faint: #6B7280;
  --charcoal-nav: #BFC5CC;
  --charcoal-nav-hover: #F0F2F4;
  --charcoal-divider: rgba(255,255,255,0.10);
  --charcoal-nav-active: rgba(255,255,255,0.08);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
}

.page {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  background: var(--charcoal);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--charcoal-avatar);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 22px;
  color: var(--charcoal-nav-hover);
  text-decoration: none;
}

.sidebar-name {
  font-family: 'Lora', serif;
  font-size: 17px;
  color: var(--charcoal-nav-hover);
  font-weight: 400;
  margin-bottom: 4px;
  text-decoration: none;
  display: block;
}

.sidebar-tagline {
  font-size: 12px;
  color: var(--charcoal-muted);
  line-height: 1.5;
}

.sidebar-divider {
  height: 0.5px;
  background: var(--charcoal-divider);
}

.sidebar-section-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-faint);
  margin-bottom: 10px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav li a {
  display: block;
  padding: 7px 10px;
  font-size: 13.5px;
  color: var(--charcoal-nav);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: var(--charcoal-nav-active);
  color: var(--charcoal-nav-hover);
}

.sidebar-nav li a .nav-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--charcoal-faint);
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.sidebar-links a {
  font-size: 12px;
  color: var(--charcoal-faint);
  text-decoration: none;
}

.sidebar-links a:hover {
  color: var(--charcoal-muted);
}

/* ── MAIN ── */
.main { overflow-y: auto; }

/* ── HERO ── */
.hero {
  padding: 4rem 3.5rem 3rem;
  border-bottom: 0.5px solid var(--tan);
  background: var(--cream);
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Lora', serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.hero-title em {
  color: var(--brown-mid);
  font-style: italic;
}

.hero-bio {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-tag {
  font-size: 12px;
  color: var(--brown-mid);
  background: var(--tan);
  padding: 5px 12px;
  border-radius: 20px;
  border: 0.5px solid var(--brown-light);
}

/* ── CONTENT ── */
.content {
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--tan);
}

.section-title {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
}

.section-count {
  font-size: 12px;
  color: var(--ink-faint);
}

.section-see-all {
  margin-left: auto;
  font-size: 12px;
  color: var(--brown-mid);
  text-decoration: none;
  cursor: pointer;
}

.section-see-all:hover { text-decoration: underline; }

/* ── PROJECTS GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  background: #fff;
  border: 0.5px solid var(--tan);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.project-card:hover {
  border-color: var(--brown-light);
  transform: translateY(-2px);
}

.project-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.project-img.p1 { background: #EDE8DF; }
.project-img.p2 { background: #E0D9CE; }
.project-img.p3 { background: #D8D0C4; }
.project-img.p4 { background: #CFCABB; }

.project-body { padding: 14px 16px; }

.project-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.project-desc {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.project-tag {
  font-size: 11px;
  color: var(--brown-mid);
  background: var(--tan);
  padding: 3px 8px;
  border-radius: 20px;
}

/* ── KIDS GRID ── */
.kids-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kid-card {
  background: #fff;
  border: 0.5px solid var(--tan);
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.kid-card:hover {
  border-color: var(--brown-light);
  transform: translateY(-2px);
}

.kid-icon { font-size: 22px; }

.kid-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

/* ── WRITING ── */
.writing-list { display: flex; flex-direction: column; }

.writing-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--tan);
  text-decoration: none;
  color: inherit;
}

.writing-item:first-child { padding-top: 0; }
.writing-item:last-child { border-bottom: none; padding-bottom: 0; }

.writing-item:hover .writing-title { color: var(--brown-mid); }

.writing-thumb {
  width: 80px;
  height: 56px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.writing-thumb.w1 { background: #EDE8DF; }
.writing-thumb.w2 { background: #E0D9CE; }
.writing-thumb.w3 { background: #D8D0C4; }

.writing-date { font-size: 11px; color: var(--ink-faint); margin-bottom: 4px; }

.writing-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
  transition: color 0.15s;
}

.writing-excerpt {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: start;
}

.about-photo {
  width: 160px;
  height: 200px;
  background: var(--tan);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  overflow: hidden;
}

.about-text p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1rem;
}

.about-fact { display: flex; gap: 10px; font-size: 13px; }
.about-fact-label { color: var(--ink-faint); min-width: 80px; }
.about-fact-val { color: var(--ink-muted); }

/* ── INNER PAGE ── */
.inner-main {
  padding: 3.5rem 3.5rem;
  max-width: 780px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--brown-mid);
  text-decoration: none;
  margin-bottom: 2rem;
}

.back-link:hover { text-decoration: underline; }

.inner-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.inner-title {
  font-family: 'Lora', serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.inner-title em { color: var(--brown-mid); font-style: italic; }

.inner-body {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.85;
  max-width: 620px;
}

.inner-body p { margin-bottom: 1.2rem; }

.inner-divider {
  height: 0.5px;
  background: var(--tan);
  margin: 2.5rem 0;
}

.entry-list { display: flex; flex-direction: column; gap: 0; }

.entry {
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--tan);
}

.entry:first-child { padding-top: 0; }
.entry:last-child { border-bottom: none; }

.entry-date {
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 5px;
}

.entry-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: 'Lora', serif;
}

.entry-excerpt {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.entry-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--brown-mid);
  background: var(--tan);
  padding: 3px 9px;
  border-radius: 20px;
}

.placeholder-note {
  background: var(--tan);
  border-radius: 10px;
  padding: 1.5rem;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-top: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .page { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .hero { padding: 2.5rem 1.5rem 2rem; }
  .content { padding: 2rem 1.5rem; }
  .inner-main { padding: 2rem 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .kids-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
