/* Dartmouth Ridge Homes — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --spruce: #2f3e32;
  --spruce-deep: #232f26;
  --stone: #efebe2;
  --paper: #faf8f3;
  --ink: #21261d;
  --granite: #6e6c63;
  --rust: #a6432d;
  --rust-deep: #8a3624;
  --line: #d8d2c4;
  --line-light: rgba(255,255,255,0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.4em 0;
  color: var(--spruce-deep);
}

h1 { font-size: 2.3rem; font-weight: 600; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p { max-width: 62ch; }

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Masthead */
.masthead {
  background: var(--spruce);
  color: var(--paper);
  padding: 2.2rem 1.5rem 0 1.5rem;
}

.masthead-inner {
  max-width: 920px;
  margin: 0 auto;
}

.masthead-name {
  font-family: 'Fraunces', serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: 0.2px;
}

.masthead-tagline {
  font-size: 0.98rem;
  color: #cfd8cc;
  margin: 0.3rem 0 1.6rem 0;
}

.mountain-motif {
  display: block;
  width: 100%;
  height: auto;
  color: var(--line-light);
}

nav.site-nav {
  border-top: 1px solid var(--line-light);
}

nav.site-nav ul {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}

nav.site-nav a {
  display: inline-block;
  color: #e7e3d6;
  text-decoration: none;
  font-size: 0.97rem;
  padding: 0.9rem 0;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--rust);
}

/* Page content */
main {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.8rem 1.5rem 4rem 1.5rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--spruce-deep);
  max-width: 58ch;
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.4rem 0;
}

/* Cards used sparingly for distinct content types */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2rem;
}

.quick-links a {
  background: var(--paper);
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
}

.quick-links a:hover { background: #fff; color: var(--rust-deep); }
.quick-links span {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--granite);
  margin-top: 0.3rem;
}

/* Document directory listing */
.doc-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.doc-list li {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.doc-list .doc-name { font-weight: 500; }
.doc-list .doc-meta { color: var(--granite); font-size: 0.9rem; white-space: nowrap; }

/* News / announcements */
.post {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.post:first-of-type { padding-top: 0; }
.post-date {
  color: var(--rust);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Board / committee list */
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin-top: 1.8rem;
}
.roster-item { border-left: 2px solid var(--rust); padding-left: 1rem; }
.roster-role { color: var(--granite); font-size: 0.92rem; margin: 0.15rem 0 0.4rem 0; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--spruce);
  color: #fff;
  padding: 0.75rem 1.4rem;
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--spruce-deep); color: #fff; }

/* Forms */
label { display: block; font-size: 0.92rem; margin: 1rem 0 0.3rem 0; }
input, textarea {
  width: 100%;
  max-width: 480px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--rust); outline-offset: 1px; }

/* Calendar embed frame */
.calendar-frame {
  border: 1px solid var(--line);
  margin-top: 1.5rem;
}
.calendar-frame iframe { display: block; width: 100%; border: none; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: left;
}
footer .footer-inner {
  max-width: 920px;
  margin: 0 auto;
  color: var(--granite);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  .masthead { padding-top: 1.6rem; }
}
