/* gobabyapp.com — editorial parenting notes.
   Deliberately unlike the other Geopapa-adjacent sites: warm paper ground,
   system serif headings, single column. No webfont, no third-party request. */

:root {
  --paper:   #fbf8f3;
  --card:    #ffffff;
  --ink:     #241f1a;
  --ink-mid: #5c5249;
  --ink-soft:#867a6e;
  --rule:    #e6ddd0;
  --accent:  #a8562b;
  --accent-soft: #fdf1e8;
  --leaf:    #3f6b4f;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #17140f;
    --card:    #201c16;
    --ink:     #f2ece3;
    --ink-mid: #c2b7a8;
    --ink-soft:#9b8f80;
    --rule:    #332d24;
    --accent:  #e29764;
    --accent-soft: #2a201a;
    --leaf:    #8dc39f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, .wordmark {
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--ink);
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration: none; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip {
  position: absolute; left: -9999px;
  background: var(--card); color: var(--ink);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 10;
}
.skip:focus { left: 0; top: 0; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: var(--measure); }

/* ---------- header ---------- */

.masthead { border-bottom: 1px solid var(--rule); background: var(--card); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 16px; flex-wrap: wrap;
}
.wordmark {
  font-size: 21px; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 2px;
}
.wordmark b { font-weight: 600; }
.wordmark i { font-style: normal; color: var(--accent); }
.wordmark small {
  display: block; font-family: inherit; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 2px;
}
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--ink-mid); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

/* ---------- blocks ---------- */

main { padding-block: 40px 8px; }

.lede {
  font-size: clamp(19px, 2.4vw, 22px);
  line-height: 1.5; color: var(--ink-mid); margin: 0 0 28px;
}

.eyebrow {
  margin: 0 0 10px; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--leaf); font-weight: 600;
}

h1 { font-size: clamp(30px, 5.2vw, 43px); margin: 0 0 16px; }
h2 { font-size: clamp(22px, 3.2vw, 27px); margin: 44px 0 12px; }
h3 { font-size: 19px; margin: 30px 0 8px; }

p { margin: 0 0 18px; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }

.meta {
  font-size: 13px; color: var(--ink-soft);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding-block: 10px; margin-bottom: 30px;
  display: flex; gap: 14px; flex-wrap: wrap;
}

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 16px 18px; margin: 26px 0; border-radius: 0 8px 8px 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { display: block; margin-bottom: 4px; }

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  padding-left: 30px; position: relative; margin-bottom: 12px;
}
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 8px; height: 14px; border: 2px solid var(--leaf);
  border-top: 0; border-left: 0; transform: rotate(40deg);
}

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 26px 0 8px; padding: 0; list-style: none; }
.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 12px; padding: 20px 20px 18px; margin: 0;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0 0 12px; color: var(--ink-mid); font-size: 15px; }
.card a { font-weight: 600; text-decoration: none; }
.card a:hover { text-decoration: underline; }

figure { margin: 26px 0; }
figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* ---------- app mention ---------- */

.app-box {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 14px; padding: 20px; margin: 30px 0;
}
.app-box img { width: 56px; height: 56px; border-radius: 12px; }
.app-box h3 { margin: 0 0 6px; font-size: 18px; }
.app-box p { margin: 0 0 12px; font-size: 15px; color: var(--ink-mid); }
.app-box .fine { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }

.button {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 600;
}
.button:hover { background: var(--ink); }

details {
  border-bottom: 1px solid var(--rule); padding: 14px 0;
}
details summary {
  cursor: pointer; font-weight: 600;
  font-family: ui-serif, Georgia, serif; font-size: 18px;
}
details p { margin: 12px 0 2px; color: var(--ink-mid); }

/* ---------- footer ---------- */

.footer {
  margin-top: 56px; border-top: 1px solid var(--rule);
  background: var(--card); padding-block: 28px 34px;
  font-size: 14px; color: var(--ink-soft);
}
.footer-grid { display: flex; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.footer a { color: var(--ink-mid); }
.footer p { margin: 0 0 8px; max-width: 34rem; }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 34rem) {
  .app-box { grid-template-columns: 1fr; }
  .masthead-inner { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
