/* Cambridge NY Community Site - Modern Redesign */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body, form, fieldset {
  margin: 0;
  padding: 0;
}

body {
  color: #333;
  background: #f5f3f0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: #5a8a42;
  text-decoration: none;
}

a:hover, a:active, a:focus {
  color: #3d6b2a;
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #2c2c2c;
  line-height: 1.3;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; }

p, pre, blockquote, ul, ol, h1, h2, h3, h4, h5, h6 {
  margin: 1em 0;
  padding: 0;
}

ul li {
  padding-left: 4px;
  line-height: 1.7;
  margin-bottom: 0.3em;
}

ol li {
  margin-left: 20px;
  line-height: 1.7;
}

img {
  border: none;
  max-width: 100%;
  height: auto;
}

hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

iframe {
  max-width: 100%;
}

/* Layout */
#wrapper {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
#header-wrap {
  background: linear-gradient(rgba(30, 40, 20, 0.55), rgba(30, 40, 20, 0.7)), url(../images/countryside.jpg) center/cover no-repeat;
  color: #fff;
  line-height: normal;
  padding: 0;
}

#header {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 30px;
}

h1.site-name {
  margin: 0;
  padding: 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1.site-name a {
  color: #fff;
  text-decoration: none;
}

h1.site-name a:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.site-tagline {
  margin: 6px 0 0;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Container */
#container-wrap {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  flex: 1;
}

#container {
  padding: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

/* Main content */
#content-wrap {
  flex: 1;
  min-width: 0;
  min-height: 300px;
}

#content {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 32px 36px;
}

h2.page-title {
  padding: 0 0 12px;
  margin: 0 0 20px;
  font-size: 1.6rem;
  font-weight: 600;
  border-bottom: 2px solid #f0eeeb;
  color: #2c2c2c;
}

h1.site-title {
  padding: 0 0 12px;
  margin: 0 0 8px;
  border-bottom: 2px solid #f0eeeb;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c2c2c;
}

.article-content {
  color: #444;
}

.article-content ul li {
  padding-left: 4px;
  line-height: 1.7;
}

.article-content strong {
  color: #333;
}

/* Footer */
#footer-wrap {
  border-top: none;
  padding: 24px 0;
  margin-top: 20px;
  background: #e8e6e2;
}

#footer {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  color: #777;
  font-size: 0.875rem;
  text-align: center;
}

#footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  #header {
    padding: 28px 20px;
  }

  h1.site-name {
    font-size: 1.6rem;
  }

  #container {
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
  }

#content-wrap {
    width: 100%;
  }

  #content {
    padding: 24px 20px;
    border-radius: 6px;
  }
}

/* Clearfix */
.clearfix::after {
  clear: both;
  display: block;
  content: "";
  height: 0;
  visibility: hidden;
}
