/* shepard.ventures — single stylesheet for all pages.
   Design constraints (NOTES.md §9): one typeface, generous whitespace,
   65–75ch measure, single column, mobile-legible. */

:root {
  --text: #1a1a1a;
  --text-muted: #595959;
  --bg: #ffffff;
  --rule: #e2e2e2;
  --link: #0b57a4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e6e6;
    --text-muted: #a3a3a3;
    --bg: #121212;
    --rule: #333333;
    --link: #7ab3e0;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main,
header.site,
footer.site {
  max-width: 42rem; /* ~70ch at this size */
  margin-left: auto;
  margin-right: auto;
}

header.site {
  padding-top: 3.5rem;
}

main {
  padding-bottom: 2rem;
}

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 1.5rem 0 3rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

h1,
h2,
h3,
nav.primary a {
  font-family: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 2.5rem 0 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 2rem 0 0.25rem;
}

p {
  margin: 0.5rem 0 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Landing page: vertically centered, text centered, generous air */
body.home {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  text-align: center;
}

/* Landing background scene — decorative, inherits text color at low opacity
   so it adapts to light/dark without separate assets */
.bg-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  color: var(--text);
  opacity: 0.08;
}

body.home header.site,
body.home main,
body.home footer.site {
  max-width: 52rem;
}

body.home header.site {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 4rem;
}

body.home main {
  flex: 1;
  padding-bottom: 0;
}

body.home h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

body.home .tagline {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  text-wrap: balance;
}

body.home .meta {
  margin-top: 1.75rem;
}

body.home footer.site {
  border-top: none;
  margin-top: 0;
}

/* Primary nav on the landing page */
nav.primary {
  margin-top: 3rem;
  font-size: 1.0625rem;
}

nav.primary a {
  display: inline-block;
  padding: 0.55em 1.4em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

nav.primary a:hover {
  text-decoration: none;
  border-color: var(--link);
  background: color-mix(in srgb, var(--link) 6%, transparent);
}

/* Muted single-line metadata: status lines, contact line */
.meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Project cards on the index: one line + status + link, no boxes */
.project {
  margin: 0 0 2rem;
}

.project p {
  margin: 0.25rem 0;
}

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

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* Visible pre-publish placeholder — remove class when content is confirmed */
.todo {
  background: rgba(255, 200, 0, 0.18);
  outline: 2px solid rgba(255, 170, 0, 0.5);
  padding: 0 0.2em;
}
