/* ================================================
   THE FRESHWATER GAZETTE — Main Styles
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&family=Inter:wght@400;500;600&display=swap');

/* ------------------------------------------------
   Custom properties
   ------------------------------------------------ */
:root {
  --font-display: 'ITC Cheltenham', 'Cheltenham BT', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui:      'Inter', system-ui, -apple-system, sans-serif;

  --black:        #000;
  --white:        #fff;
  --gray-50:      #f8f8f8;
  --gray-200:     #e0e0e0;
  --gray-500:     #888;

  --border:       1px solid #000;
  --container:    1200px;
  --gap:          32px;
}

/* ------------------------------------------------
   Reset & base
   ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------
   Site header
   ------------------------------------------------ */
.site-header {
  border-bottom: var(--border);
  flex-shrink: 0;
}

.header-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 24px 24px;
}

.header-banner__link {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.header-banner__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-banner__wordmark {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--black);
  line-height: 1;
}

.header-banner img {
  max-height: 80px;
  width: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  border-top: var(--border);
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--black);
  padding: 11px 36px;
  transition: background 0.12s, color 0.12s;
}

.site-nav a + a {
  border-left: var(--border);
}

.site-nav a:hover {
  background: var(--black);
  color: var(--white);
}

/* ------------------------------------------------
   Page container
   ------------------------------------------------ */
.page-container {
  flex: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------
   Site footer
   ------------------------------------------------ */
.site-footer {
  border-top: var(--border);
  padding: 20px 24px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gray-500);
  flex-shrink: 0;
}

/* ------------------------------------------------
   News homepage
   ------------------------------------------------ */
.news-section {
  padding: 48px 0 80px;
}

/* Featured article — 50% width, centered */
.news-featured {
  width: 50%;
  margin: 0 auto 48px;
}

.news-featured__link {
  display: block;
  text-decoration: none;
}

.news-featured__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-featured__img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-50);
}

.news-featured__headline {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.18;
  margin-top: 14px;
  color: var(--black);
}

.news-featured__link:hover .news-featured__headline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-featured__meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 8px;
}

.news-featured__excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  color: #555;
  margin-top: 8px;
  line-height: 1.55;
}

/* Secondary row — 3 columns */
.news-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 48px;
}

/* Further articles — 3 columns */
.news-further {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* Shared article card */
.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card__img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-50);
}

.article-card__headline {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 10px;
  color: var(--black);
}

.article-card:hover .article-card__headline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.article-card__meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
}

/* ------------------------------------------------
   Article page (post layout)
   ------------------------------------------------ */
.article-wrap {
  max-width: 720px;
  margin: 48px auto 80px;
  padding: 0 24px;
}

.article-headline {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 16px;
}

.article-byline {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--gray-500);
  padding-bottom: 20px;
  border-bottom: var(--border);
  margin-bottom: 28px;
}

.article-hero {
  width: 100%;
  margin-bottom: 32px;
}

.article-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.78;
}

.article-body p          { margin-bottom: 1.3em; }
.article-body h2         { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 1.6em 0 0.5em; }
.article-body h3         { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 1.4em 0 0.4em; }
.article-body ul,
.article-body ol         { padding-left: 1.5em; margin-bottom: 1.3em; }
.article-body li         { margin-bottom: 0.4em; }
.article-body blockquote { border-left: 3px solid var(--black); padding-left: 1em; margin: 1.5em 0; font-style: italic; color: #555; }
.article-body a          { color: var(--black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.article-body img        { max-width: 100%; margin: 1.5em 0; }

/* Comments */
.article-comments {
  margin-top: 56px;
  padding-top: 28px;
  border-top: var(--border);
}

/* Read More carousel */
.read-more {
  margin-top: 56px;
  padding-top: 20px;
  border-top: var(--border);
}

.read-more__label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.read-more__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}

.read-more__card {
  flex: 0 0 220px;
  text-decoration: none;
  color: inherit;
}

.read-more__card-img {
  width: 220px;
  height: 130px;
  object-fit: cover;
}

.read-more__card-placeholder {
  width: 220px;
  height: 130px;
  background: var(--gray-50);
}

.read-more__card-headline {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 8px;
}

.read-more__card:hover .read-more__card-headline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ------------------------------------------------
   Static pages (contact, subscribe)
   ------------------------------------------------ */
.static-page {
  max-width: 640px;
  margin: 64px auto 80px;
  padding: 0 24px;
}

.static-page h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: var(--border);
}

.static-page p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.72;
  margin-bottom: 1em;
  color: #333;
}

.static-page a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mailchimp-placeholder {
  margin-top: 40px;
  border: var(--border);
  padding: 40px;
  text-align: center;
}

.mailchimp-placeholder p {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.7;
}

/* ------------------------------------------------
   Archive (blog.html)
   ------------------------------------------------ */
.archive-list {
  margin-top: 32px;
}

.archive-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
}

.archive-item:first-child {
  border-top: 1px solid var(--gray-200);
}

.archive-item__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.archive-item:hover .archive-item__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.archive-item__date {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
}

/* ------------------------------------------------
   Utilities
   ------------------------------------------------ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--gray-500);
  text-decoration: none;
  padding: 8px 0;
  margin-top: 24px;
}
.back-link::before { content: '←'; }
.back-link:hover   { color: var(--black); }

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 960px) {
  .news-featured { width: 80%; }
}

@media (max-width: 768px) {
  .header-banner__wordmark { font-size: 36px; }
  .header-banner__icon     { width: 40px; height: 40px; }
  .news-featured           { width: 100%; }
  .news-secondary          { grid-template-columns: 1fr 1fr; }
  .news-further            { grid-template-columns: 1fr 1fr; }
  .article-headline        { font-size: 30px; }
}

@media (max-width: 520px) {
  .header-banner__wordmark { font-size: 26px; }
  .header-banner__icon     { width: 28px; height: 28px; }
  .header-banner__link     { gap: 12px; }
  .site-nav a              { padding: 10px 18px; font-size: 10px; letter-spacing: 1.5px; }
  .news-secondary          { grid-template-columns: 1fr; }
  .news-further            { grid-template-columns: 1fr; }
  .article-headline        { font-size: 26px; }
  .static-page h1          { font-size: 28px; }
}
