/* Deer Park Meadows East — A Homeowner Resource
   Static styles. No external resources. System font stack (no web font is
   loaded, so nothing phones home and there is nothing to self-host). */

:root {
  --accent: #335c67;        /* restrained neutral slate-teal */
  --accent-dark: #284a53;
  --ink: #1f2a2d;           /* body text */
  --ink-muted: #51616a;     /* secondary text (AA on white) */
  --bg: #f6f8f8;
  --card: #ffffff;
  --line: #d3dcdd;
  --maxw: 46rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;     /* large, readable body */
  line-height: 1.6;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.site-name {
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.01em;
}
.contact-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
}
.contact-link:hover { background: var(--accent); color: #fff; }

/* Sections */
.section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}
.section--intro {
  background: var(--card);
  padding-top: 3.25rem;
}
.section--contact { background: var(--card); }

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
}
h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: var(--accent-dark);
}
h3 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: var(--accent-dark);
}
.subhead {
  font-size: 1.2rem;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}
p { margin: 0 0 1rem; }
strong { font-weight: 700; }
.muted { color: var(--ink-muted); }

/* [DATE] placeholder marker */
.placeholder {
  background: #fff3cd;
  color: #5b4a00;
  padding: 0 0.25rem;
  border-radius: 3px;
  font-weight: 600;
}

/* Year-at-a-glance graphic + legend */
.glance {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-top: 1.25rem;
}
.pie-figure { margin: 0; }
.pie {
  width: 220px;
  height: 220px;
  display: block;
}
.glance-text { flex: 1 1 16rem; }
.breakdown {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.breakdown li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
}
.swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.15);
  flex: 0 0 auto;
  transform: translateY(0.05rem);
}

/* Forms */
.forms {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0 1rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1 1 18rem;
}
.field { margin: 0 0 1rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.req { color: #9a2a2a; }
.opt { color: var(--ink-muted); font-weight: 400; }
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.6rem 0.7rem;
  border: 1px solid #9aa7aa;
  border-radius: 5px;
  background: #fff;
}
textarea { resize: vertical; }
button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
}
button:hover { background: var(--accent-dark); }

.privacy {
  color: var(--ink-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Honeypot — visually and from-AT hidden, still in the DOM for bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--accent-dark);
  color: #e7eeef;
  padding: 1.75rem 0;
}
.site-footer p { margin: 0; font-size: 1rem; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b8860b;
  outline-offset: 2px;
}
/* Fallback for browsers without :focus-visible */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid #b8860b;
  outline-offset: 2px;
}

@media (min-width: 40rem) {
  h1 { font-size: 2.4rem; }
  .section { padding: 3.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
