/* Northgate Supply Co. — site styles */
:root {
  --paper: #f4f0ea;
  --paper-2: #ebe5db;
  --ink: #1c1a16;
  --muted: #5c574e;
  --line: #d8d0c4;
  --forest: #2b4638;
  --forest-deep: #1f3329;
  --cream: #fffdf8;
  --focus: #2b4638;
  --max: 68rem;
  --header-h: 4.25rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover { color: var(--forest-deep); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--forest);
  color: #fff;
  padding: 0.5rem 0.85rem;
  z-index: 100;
}

.skip-link:focus { top: 0.75rem; color: #fff; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-block: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover { color: var(--forest); }

.mark { color: var(--forest); flex-shrink: 0; }

.logo-text {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.2;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--forest);
}

main { flex: 1; }

.hero, .page-header {
  padding: 4.25rem 0 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--forest);
  font-weight: 600;
  margin: 0 0 0.85rem;
}

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  margin: 0 0 1rem;
  max-width: 18ch;
}

.page-header h1 { max-width: 24ch; }

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
}

.btn-primary:hover {
  background: var(--forest-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--cream);
  color: var(--ink);
}

.section { padding: 3rem 0; }

.section-alt { background: var(--paper-2); }

.section h2, .prose h2 {
  font-size: 1.55rem;
  margin: 0 0 0.85rem;
}

.section > .wrap > p,
.prose p {
  max-width: 42rem;
  color: var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.4rem 1.35rem 1.5rem;
}

.card h2, .card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
}

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

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.contact-band h2 { margin-bottom: 0.4rem; }
.contact-band p { margin: 0; color: var(--muted); }

.prose h2 { margin-top: 2rem; }
.prose p { margin: 0 0 1rem; }

.site-footer {
  background: var(--forest-deep);
  color: #e8e2d8;
  padding: 2.75rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-name {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Georgia, serif;
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 0.7rem;
}

.site-footer p { margin: 0 0 0.85rem; }
.site-footer a { color: #e8e2d8; }
.site-footer a:hover { color: #fff; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 12rem;
}

.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
  h1 { max-width: none; }
  .hero, .page-header { padding: 2.75rem 0 2rem; }
}

@media (max-width: 600px) {
  .wrap { width: min(var(--max), calc(100% - 1.75rem)); }
  .logo-text { font-size: 1.05rem; }
}
