/* ABOUTME: Styles the standalone Proximal Permit project page. */
/* ABOUTME: Reuses the application’s fonts and green palette across viewport sizes. */
@font-face {
  font-family: "DM Sans";
  src: url("dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("dm-serif-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color: #183f37;
  background: #f5f8f5;
  font-family: "DM Sans", sans-serif;
  font-size: 100%;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #a05c27; outline-offset: 5px; }
p + p { margin-top: 1rem; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(100% - 5rem, 84rem); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 6rem; border-bottom: 1px solid #cad8cf; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: #183f37; color: white; border-radius: 4px; font: 1.6rem "DM Serif Display", serif; }
nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 0.9rem; font-weight: 600; }
.hero { display: grid; grid-template-columns: 0.85fr 1.35fr; align-items: center; gap: 3.5rem; padding-block: 5rem; }
.eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #426657; margin-bottom: 1.1rem; }
h1, h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; }
h1 { font-size: clamp(3.2rem, 5.1vw, 5.3rem); margin-bottom: 1.5rem; }
h1 em { color: #326f5b; font-style: normal; }
h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
h3 { font-size: 1.12rem; line-height: 1.4; margin-bottom: 0.8rem; }
.lead { font-weight: 600; font-size: 1.15rem; line-height: 1.5; }
.intro > p:not(.eyebrow, .small-note) { max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.3rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.2rem; background: #183f37; color: #fff; border-radius: 4px; font-weight: 600; text-decoration: none; }
.button:hover { background: #275c4f; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9rem; font-weight: 600; }
.small-note { font-size: 0.85rem; color: #426657; margin-top: 0.8rem; }
.app-preview { min-width: 0; padding: 0.65rem; background: #e2ebe4; border: 1px solid #b9cbbf; border-radius: 9px; box-shadow: 0 18px 45px #183f3712; }
.preview-label { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.2rem 0.3rem 0.7rem; font-size: 0.8rem; }
.app-preview img { border: 1px solid #b9cbbf; border-radius: 2px; }
figcaption { color: #426657; font-size: 0.8rem; padding: 0.65rem 0.3rem 0.1rem; }
figcaption a { display: inline-block; }
.how-section { padding-block: 4rem; border-block: 1px solid #cad8cf; background: #fff; scroll-margin-top: 2rem; }
.section-heading { margin-bottom: 2.5rem; }
.section-heading .eyebrow { margin-bottom: 0.7rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.features article { border-top: 3px solid #719b83; padding-top: 1.25rem; }
.features p { color: #38594c; }
.project-notes { display: grid; grid-template-columns: 0.85fr 1.35fr; gap: 3.5rem; padding-block: 4rem; }
.stack { display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; list-style: none; padding: 0; margin: 1.3rem 0 1.5rem; font-size: 0.9rem; font-weight: 600; }
.data-note { font-size: 0.9rem; color: #426657; border-top: 1px solid #cad8cf; padding-top: 1.25rem; }
.site-footer { background: #183f37; color: #f5f8f5; padding-block: 1.4rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-content p { font-size: 0.9rem; }
.footer-content nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.7rem; }
.skip-link { position: absolute; top: -8rem; left: 1rem; padding: 0.8rem; background: #fff; z-index: 1; }
.skip-link:focus { top: 0.5rem; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3rem; }
  .intro { max-width: 42rem; }
  h1 br { display: none; }
  h1 { max-width: 9em; }
  .features { gap: 1.5rem; }
  .project-notes { grid-template-columns: 1fr 1.5fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header { min-height: 5rem; }
  .brand { font-size: 0.9rem; gap: 0.5rem; }
  .brand-mark { width: 1.8rem; height: 1.8rem; flex-shrink: 0; }
  nav a { font-size: 0.85rem; }
  h1 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .hero { padding-block: 2.5rem; }
  .preview-label { flex-wrap: wrap; }
  .features, .project-notes { grid-template-columns: 1fr; gap: 2rem; }
  .how-section, .project-notes { padding-block: 2.5rem; }
  .footer-content { align-items: flex-start; flex-direction: column; }
}
