/* AI 285 Weekly Reflections — shared stylesheet */
:root {
  --navy: #14213d;
  --navy-deep: #0d162b;
  --accent: #3b82f6;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --rule: #e3e7ec;
  --page: #fafbfc;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Header band */
.site-header {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 3.25rem 1.5rem 2.75rem;
}
.site-header .inner {
  max-width: 720px;
  margin: 0 auto;
}
.site-header .kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fb3d9;
  margin: 0 0 0.6rem;
}
.site-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}
.site-header .byline {
  margin: 0.5rem 0 0;
  color: #c9d4ea;
  font-size: 1.05rem;
}
.site-header nav {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}
.site-header nav a {
  color: #dbe4f5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.site-header nav a:hover { border-bottom-color: #dbe4f5; }
.site-header nav .sep { color: #5f7099; margin: 0 0.6rem; }

/* Page body */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.intro { margin: 0 0 2.5rem; color: var(--muted); }

/* Entry list on home */
.entries { list-style: none; margin: 0; padding: 0; }
.entries li {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-bottom: 0.9rem;
  transition: border-color 0.15s, transform 0.15s;
}
.entries li:hover { border-color: var(--accent); transform: translateY(-1px); }
.entries a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  color: inherit;
  text-decoration: none;
}
.entries .week { font-weight: 600; }
.entries .date { color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.entries li.upcoming { border-style: dashed; background: transparent; }
.entries li.upcoming:hover { border-color: var(--rule); transform: none; }
.entries li.upcoming a { cursor: default; color: var(--muted); }

/* Individual post */
.post header { margin-bottom: 2rem; }
.post .date {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}
.post h1 {
  font-size: 2rem;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.post h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.9rem;
  border-radius: 2px;
}
.post h3 {
  font-size: 1.05rem;
  margin: 2rem 0 0.5rem;
  color: var(--navy);
}
.post p { margin: 0 0 1.15rem; }

.tools {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: #eef3fb;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}
.tools strong { color: var(--navy); }

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
.post-nav a { color: var(--accent); text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .site-header h1, .post h1 { font-size: 1.6rem; }
  .entries a { flex-direction: column; gap: 0.2rem; }
}
