/* ===========================
  BODY
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Georgia', serif;
  background-color: #fff;
  color: #111111;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ===========================
  HEADER DIV
=========================== */
#header {
  text-align: center;
  padding: 20px 40px 0 40px;
  margin: 0 0 0 0;
  border-bottom: 3px solid #111;
  width: 100%;
}

.tagline {
  font-family: "Cherry Cream Soda";
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
}

.site-title {
  font-family: "Rubik Puddles";
  color: #046304;
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 6px;
  line-height: 1.1;
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
  padding: 8px 0;
  margin-bottom: 6px;
}

.date {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 12px;
}

/* ===========================
  MENUS
=========================== */
#menu {
  background-color: #024502;
  padding: 10px 40px;
  margin: 0 0 24px 0;
  width: 100%;
  border-bottom: 3px solid #024502;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#menu a:link {
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid transparent;
}

#menu a:visited {
  color: #aaaaaa;
  text-decoration: none;
}

#menu a:hover {
  color: #ffffff;
  background-color: #036603;
  text-decoration: none;
  border-color: #ffffff;
}

#menu a:active {
  color: #111;
  background-color: #cccccc;
  text-decoration: none;
}

/* ===========================
  MAIN
=========================== */
#main {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 0 40px;
}

/* ===========================
  FEATURED STORY
=========================== */
#featured-story {
  border: 2px solid #111;
  border-radius: 25px;
  padding: 24px;
  margin-bottom: 40px;
  width: 100%;
}

#featured-story h2 {
  font-family: "Cherry Cream Soda";
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

#featured-story p {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #202020;
}

/* main story img */
#story-image {
  display: block;
  float: right;
  width: 300px;
  height: 300px;
  background-color: #ddd;
  border: 2px solid #bbb;
  margin: 0 0 16px 24px;
  background-image: url(story.png);
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

a.continue-reading:link,
a.continue-reading:visited {
  font-family: "Cherry Cream Soda";
  letter-spacing: 2px;
  color: blue;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  display: inline-block;
  margin-top: 8px;
}

a.continue-reading:hover {
  font-family: "Cherry Cream Soda";
  color: red;
  text-decoration: underline;
}

a.continue-reading:active {
  font-family: "Cherry Cream Soda";
  color: darkred;
  text-decoration: underline;
}

/* ===========================
  ARTICLES
=========================== */
#article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}

/* ===========================
  CARDS
=========================== */
.card1, .card2, .card3 {
  border-top: 2px solid #046304;
  border-left: 1px solid #046304;
  border-right: 1px solid #046304;
  padding: 16px;
  height: 200px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* article images */
.card1 { background-image: url(rest.png); }
.card2 { background-image: url(construction.png); }
.card3 { background-image: url(homie.png); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-body h3 {
  font-family: "Cherry Cream Soda";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 1px;
}

.card-body h3 a:link    { color: #111; text-decoration: none; }
.card-body h3 a:visited { color: #555; text-decoration: none; }
.card-body h3 a:hover   { color: #444; text-decoration: underline; }
.card-body h3 a:active  { color: #000; }

.card-body p {
  font-size: 0.9rem;
  color: #444;
}

/* ===========================
  CATEGORIES
=========================== */
.label {
  display: inline-block;
  font-family: 'Arial', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: #046304;
  color: #fff;
  padding: 3px 8px;
}

/* ===========================
  BYLINE
=========================== */
.byline {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

/* ===========================
  FOOTER
=========================== */
#footer {
  border-top: 3px solid #000000;
  padding: 20px 40px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: #555;
  width: 100%;
}

#footer a:link    { color: #555; text-decoration: none; }
#footer a:visited { color: #888; text-decoration: none; }
#footer a:hover   { color: #111; text-decoration: underline; }
#footer a:active  { color: #000; }

/* ===========================
  MEDIA
=========================== */
@media (max-width: 768px) {
  .site-title { font-size: 2.2rem; }
  #story-image { float: none; width: 100%; margin: 0 0 16px 0; }
  #article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  #article-grid { grid-template-columns: 1fr; }
  #footer { flex-direction: column; text-align: center; gap: 8px; }
  #menu { height: auto; flex-wrap: wrap; }
}
