/* =========================================================
   Phillip B. Pacier — Starter Website
   ========================================================= */

:root {
  --background: #f4f1eb;
  --surface: #ffffff;
  --text: #191919;
  --muted: #68645e;
  --line: #d9d3ca;
  --dark: #161616;
  --dark-muted: #cac4bb;
  --accent: #765b36;
  --max-width: 1180px;
  --narrow-width: 780px;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: var(--narrow-width);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--dark);
  color: white;
}

.skip-link:focus {
  top: 20px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(25, 25, 25, 0.08);
  background: rgba(244, 241, 235, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav a {
  font-size: 0.92rem;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
}

/* Hero */

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 72px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(44px, 7vw, 100px);
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.04;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 7.6rem);
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--dark);
  text-decoration: none;
}

.button-primary {
  background: var(--dark);
  color: white;
}

.button-secondary {
  background: transparent;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-art {
  min-height: 570px;
}

.hero-placeholder {
  min-height: 570px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.55), rgba(0,0,0,0.06)),
    repeating-linear-gradient(
      -35deg,
      transparent,
      transparent 28px,
      rgba(0,0,0,0.025) 28px,
      rgba(0,0,0,0.025) 29px
    );
}

.hero-placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.hero-placeholder small {
  margin-top: 4px;
  color: var(--muted);
}

/* Sections */

.section {
  padding: clamp(80px, 11vw, 150px) 0;
}

.section-intro {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 54px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -0.035em;
}

.large-copy {
  margin: 32px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.55;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card {
  min-height: 340px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
}

.card-number {
  margin: 0 0 65px;
  color: var(--muted);
  font-size: 0.8rem;
}

.feature-card h3 {
  margin: 0;
  max-width: 420px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.12;
}

.feature-card p:not(.card-number) {
  max-width: 520px;
  color: var(--muted);
}

.feature-card a,
.text-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  text-underline-offset: 5px;
}

/* Dark section */

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

.section-dark .section-kicker {
  color: var(--dark-muted);
}

.section-dark .section-copy p {
  color: var(--dark-muted);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.section-copy {
  font-size: 1.12rem;
}

.section-copy p {
  margin-top: 0;
  color: var(--muted);
}

/* Contact and footer */

.contact-section {
  border-top: 1px solid var(--line);
}

.contact-placeholder {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner p {
  margin: 0;
}

/* Mobile */

@media (max-width: 800px) {
  .header-inner {
    position: relative;
  }

  .nav-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--background);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-art,
  .hero-placeholder {
    min-height: 420px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

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