/* ============================================================
   Development Hub — shared styles
   Byte-Sized Booksmith palette
   teal / blue / navy / blush / charcoal / magenta
   Light, modern, editorial author-site feel
   ============================================================ */
:root {
  --teal: #0fbf9f;
  --teal-dark: #0a8f77;
  --blue: #024873;
  --navy: #022859;
  --blush: #d6c9c9;
  --blush-soft: #ece5e5;
  --charcoal: #333333;
  --ink: #1f1f1f;
  --magenta: #f2059f;
  --paper: #ffffff;
  --cream: #faf8f7;
  --muted: #6f6a6a;
  --rule: #e4dddd;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }

.page { max-width: 1040px; margin: 0 auto; padding: 0 32px 96px; }

/* ---------- top nav ---------- */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand .logo { width: 24px; height: 24px; flex: none; display: block; }
.brand .mark { color: var(--teal); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  color: var(--charcoal);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav a:hover { color: var(--teal-dark); text-decoration: none; }
.nav a.active { color: var(--navy); border-bottom: 2px solid var(--teal); padding-bottom: 2px; }

/* ---------- banner hero (home) ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
header.banner {
  margin: 28px 0 44px;
}
header.banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--rule);
  box-shadow: 0 6px 20px rgba(2, 40, 89, 0.10);
}

/* ---------- hero ---------- */
header.hero {
  text-align: center;
  border-bottom: 2px solid var(--teal);
  padding: 60px 0 38px;
  margin-bottom: 44px;
}
header.hero .eyebrow {
  color: var(--magenta);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
header.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  margin: 14px 0 6px;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.08;
}
header.hero .tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 19px;
  margin: 10px auto 0;
  max-width: 660px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  color: var(--navy);
  margin: 52px 0 8px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}
h3 { font-family: Georgia, "Times New Roman", serif; font-size: 21px; color: var(--charcoal); margin: 28px 0 6px; }
p.lede { font-size: 18px; color: var(--charcoal); }
p { margin: 12px 0; }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, "Menlo", Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: var(--blush-soft);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--blue);
}
pre {
  background: var(--navy);
  color: #eaf3f1;
  padding: 16px 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.55;
}
pre code { background: none; color: inherit; padding: 0; }

/* ---------- cards grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(2, 40, 89, 0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover { box-shadow: 0 6px 18px rgba(2, 40, 89, 0.08); transform: translateY(-2px); }
.card h3 { margin-top: 0; color: var(--navy); }
.card p { color: var(--muted); font-size: 15px; margin: 6px 0 0; }

/* ---------- project status board ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.project {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(2, 40, 89, 0.04);
}
.project .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.project h3 { margin: 0; font-size: 20px; color: var(--navy); }
.project p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }

/* status pills */
.status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status.done     { background: #e3f7f2; color: var(--teal-dark); border-color: #bfeee3; }
.status.shipped  { background: #e3f7f2; color: var(--teal-dark); border-color: #bfeee3; }
.status.testing  { background: #fde4f3; color: #b8047a; border-color: #f7c4e3; }
.status.building { background: #e4eef6; color: var(--blue); border-color: #c9ddec; }
.status.next     { background: var(--blush-soft); color: var(--charcoal); border-color: var(--blush); }

/* ---------- journal feed ---------- */
.feed { margin: 24px 0; }
.entry {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 18px;
  border-left: 4px solid var(--teal);
  box-shadow: 0 1px 3px rgba(2, 40, 89, 0.04);
}
.entry .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.entry .date { font-weight: 600; letter-spacing: 0.03em; }
.entry h3 { margin: 2px 0 8px; color: var(--navy); }
.entry .body { color: var(--charcoal); line-height: 1.65; }
.entry .body p { margin: 0 0 1.4em; }
.entry .body p:last-child { margin-bottom: 0; }
.entry .shot { margin-top: 14px; }
.entry .shot img {
  max-width: 100%;
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: block;
}
.entry .more { margin-top: 12px; font-size: 14px; }

/* tags / chips */
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  color: var(--charcoal);
  background: var(--blush-soft);
}
.chip.type-milestone { background: #e3f7f2; color: var(--teal-dark); border-color: #bfeee3; }
.chip.type-journal   { background: #e4eef6; color: var(--blue); border-color: #c9ddec; }
.chip.type-screenshot{ background: #fde4f3; color: #b8047a; border-color: #f7c4e3; }
.chip.type-resource  { background: var(--blush-soft); color: var(--charcoal); border-color: var(--blush); }

/* project filter buttons */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.filters button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filters button:hover { border-color: var(--teal); color: var(--teal-dark); }
.filters button.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.empty { color: var(--muted); font-style: italic; padding: 24px 0; }

/* ---------- about page: floated portrait + pull quote ---------- */
.portrait {
  float: right;
  width: 260px;
  max-width: 42%;
  margin: 6px 0 18px 28px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  box-shadow: 0 6px 18px rgba(2, 40, 89, 0.10);
  display: block;
}
.pullquote {
  clear: right;
  border-left: 4px solid var(--teal);
  background: var(--blush-soft);
  margin: 32px 0;
  padding: 18px 24px;
  border-radius: 0 8px 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--navy);
}
@media (max-width: 600px) {
  .portrait { float: none; width: 100%; max-width: 100%; margin: 0 0 20px; }
  .pullquote { font-size: 19px; }
}

/* ---------- footer ---------- */
footer.foot {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  header.hero h1 { font-size: 38px; }
  .page { padding: 0 18px 64px; }
  .topbar .inner { padding: 12px 18px; }
}
