/* New Dad Field Notes: shared styles.
   Dark navy and gold, matching the approved prototype. Serif display
   type for headlines, system sans for body. No webfonts, no tracking. */

:root {
  --bg: #0c1420;
  --bg-deep: #081020;
  --panel: #141f30;
  --panel-2: #182740;
  --line: #263650;
  --ink: #e9eef5;
  --muted: #a3b4c8;
  --faint: #7e93ab;
  --gold: #dfa93f;
  --gold-soft: #c9973a;
  --radius: 16px;
  --max: 1060px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, .serif {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a { color: var(--gold); }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Sticky top navigation */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 16, 32, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--gold); }
.navlinks { display: flex; gap: 8px; flex-wrap: wrap; }
.navlinks a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.navlinks a:hover { color: var(--ink); border-color: var(--line); }
.navlinks a.active {
  color: #0c1420;
  background: var(--gold);
  font-weight: 600;
}

/* Hero */
.hero { padding: 56px 0 8px; text-align: left; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 14px;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 0.35em; }
.hero .lede { font-size: 1.22rem; color: var(--ink); max-width: 44ch; }
.hero .sub { color: var(--muted); max-width: 58ch; }
.hero-img { margin: 28px 0 6px; border-radius: var(--radius); overflow: hidden; }
figcaption, .caption { color: var(--faint); font-size: 0.88rem; text-align: center; margin: 8px 0 0; }

/* Sections and cards */
section { padding: 30px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--faint);
  margin: 0 0 8px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: 1fr 1fr; }

/* Story */
.story { max-width: 720px; }
.story p { margin: 0 0 1.15em; color: #dbe4ee; }
.story p:first-of-type { font-size: 1.06rem; }
.pullquote {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 18px;
  margin: 30px 0;
}
.story figure { margin: 30px 0; }
.story figure img { border-radius: var(--radius); }
.byline { color: var(--faint); font-size: 0.92rem; }

/* Try This Tonight box */
.trybox {
  background: var(--panel-2);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 30px 0;
}
.trybox h3 { color: var(--gold); margin-bottom: 0.4em; }
.trybox ol { margin: 0; padding-left: 1.3em; }
.trybox li { margin-bottom: 0.7em; color: #dbe4ee; }
.trybox li:last-child { margin-bottom: 0; }
.trybox .close { color: var(--ink); font-weight: 600; margin-top: 12px; }

/* Format box (2 + 2 + 1) */
.format-num {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.format-item h3 { margin: 8px 0 4px; font-size: 1.15rem; }
.format-item p { color: var(--muted); margin: 0; }

/* Essentials */
.item-card h3 { font-size: 1.12rem; margin-bottom: 0.3em; }
.item-card p { color: var(--muted); margin: 0 0 0.6em; font-size: 0.97rem; }
.item-card .look { color: #dbe4ee; }
.btn {
  display: inline-block;
  background: var(--gold);
  color: #0c1420;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #eab54c; }
.disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: var(--muted);
  font-size: 0.94rem;
  background: var(--panel);
}

/* Signup form */
.signup { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.signup input[type="email"] {
  flex: 1 1 260px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--ink);
  font-size: 1rem;
}
.signup input[type="email"]::placeholder { color: var(--faint); }
.form-msg { margin-top: 12px; font-size: 0.95rem; }
.form-msg.ok { color: #8fd19a; }
.form-msg.err { color: #e79a8a; }
.fineprint { color: var(--faint); font-size: 0.86rem; margin-top: 10px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 0.94rem;
}
footer .navlinks { margin-bottom: 14px; }
footer a { color: var(--muted); }

.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--gold);
  width: 0;
  z-index: 60;
}

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 38px 0 4px; }
  .hero h1 { font-size: 2rem; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .topnav .wrap { flex-direction: column; align-items: stretch; gap: 8px; }
  .brand { text-align: center; }
  .navlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .navlinks a { text-align: center; border-color: var(--line); }
  .card { padding: 20px; }
  .trybox { padding: 20px; }
}
