/* =========================================================
   MarkPatnaude.com
   Personal website
   ========================================================= */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #18202a;
  --muted: #5f6873;
  --accent: #315f78;
  --accent-dark: #24495d;
  --border: #dfe3e6;
  --dark: #17212b;

  --max-width: 1180px;
  --section-space: 96px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(90%, var(--max-width));
  margin: 0 auto;
}

/* Navigation */

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--accent);
}

/* Hero */

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 110px 0;
  background:
    linear-gradient(
      90deg,
      rgba(247, 247, 245, 1) 0%,
      rgba(247, 247, 245, 0.96) 55%,
      rgba(247, 247, 245, 0.8) 100%
    );
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 26px;
}

.hero-role {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-copy {
  max-width: 720px;
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 38px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid var(--accent);
  transition: 0.2s ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: transparent;
  color: var(--accent);
}

.button-secondary:hover {
  background: var(--surface);
}

/* General sections */

.section {
  padding: var(--section-space) 0;
}

.section-white {
  background: var(--surface);
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.1rem;
}

.section-dark .section-heading p {
  color: #c9d0d6;
}

/* Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.card p {
  color: var(--muted);
}

/* Books */

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.book {
  border-top: 3px solid var(--accent);
  padding-top: 26px;
}

.book h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.book p {
  color: var(--muted);
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 70px;
  align-items: start;
}

.about-copy p {
  margin-bottom: 20px;
  font-size: 1.08rem;
}

.credentials {
  border-left: 3px solid var(--accent);
  padding-left: 26px;
}

.credentials p {
  margin-bottom: 14px;
}

/* Contact */

.contact {
  text-align: center;
}

.contact .section-heading {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */

.site-footer {
  background: #101820;
  color: #aeb7bf;
  padding: 32px 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

/* Responsive */

@media (max-width: 850px) {
  :root {
    --section-space: 72px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 90px 0;
  }

  .grid,
  .books-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }
}
