/* Dollar Llama - Global Styles */
:root {
  --green: #2D5016;
  --green-light: #3a6b1e;
  --charcoal: #333333;
  --cream: #FAF8F3;
  --cream-dark: #F0EDE5;
  --gray: #666666;
  --gray-light: #999999;
  --border: #E0DDD5;
  --white: #FFFFFF;
  --highlight: #FFF3CD;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-heading: Arial, Helvetica, sans-serif;
  --max-width: 740px;
  --max-width-wide: 960px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--cream);
}

/* ---- HEADER / NAV ---- */
.site-header {
  background: var(--charcoal);
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.logo img {
  width: 40px;
  height: auto;
}

.logo:hover { color: #c5d6a8; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: #CCCCCC;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

/* ---- HERO ---- */
.hero {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 60px 24px 64px;
}

.hero-coin {
  width: 200px;
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero .tagline {
  font-family: var(--font-body);
  font-size: 20px;
  font-style: italic;
  color: #BBBBBB;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero .cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 36px;
  border: 2px solid var(--green-light);
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s;
}

.hero .cta:hover {
  background: var(--green);
  border-color: var(--green);
}

/* ---- MAIN CONTENT ---- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ---- TYPOGRAPHY ---- */
h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--green);
  margin: 48px 0 20px;
  line-height: 1.25;
}

h1:first-child { margin-top: 0; }

h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 40px 0 16px;
  line-height: 1.3;
}

p { margin-bottom: 20px; }

strong { font-weight: 700; }
em { font-style: italic; }

a { color: var(--green); }
a:hover { color: var(--green-light); }

/* ---- ARTICLE META ---- */
.post-meta {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

/* ---- BLOG LISTING ---- */
.blog-list { list-style: none; }

.blog-list li {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.blog-list li:first-child { padding-top: 0; }
.blog-list li:last-child { border-bottom: none; }

.blog-list .post-category {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.blog-list h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.blog-list h2 a {
  color: var(--charcoal);
  text-decoration: none;
}

.blog-list h2 a:hover { color: var(--green); }

.blog-list .excerpt {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 12px;
}

.blog-list .read-more {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--green);
}

.blog-list .read-more:hover { text-decoration: underline; }

/* ---- FEATURED POST (blog listing) ---- */
.featured-post {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 40px;
}

.featured-post .post-category {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.featured-post h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.featured-post h2 a {
  color: var(--charcoal);
  text-decoration: none;
}

.featured-post h2 a:hover { color: var(--green); }

.featured-post .excerpt {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 16px;
}

.featured-post .read-more {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--green);
}

/* ---- TABLES (for blog post 3) ---- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 15px;
  font-family: var(--font-heading);
}

.comparison-table caption {
  background: var(--charcoal);
  color: var(--white);
  font-weight: 700;
  padding: 10px 16px;
  font-size: 16px;
  text-align: center;
}

.comparison-table th {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table th.center { text-align: center; }

.comparison-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.comparison-table td.center { text-align: center; }

.comparison-table tr:nth-child(even) td { background: #F5F5F0; }

.comparison-table tr.total td {
  background: #E8E8E0;
  font-weight: 700;
}

.comparison-table tr.highlight td {
  background: var(--highlight);
  font-weight: 700;
}

/* ---- HOME FEATURES ---- */
.home-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 48px 0;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 0;
}

/* ---- RECENT POSTS (home) ---- */
.section-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--charcoal);
  color: #999;
  padding: 40px 24px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 14px;
}

.site-footer a {
  color: #CCC;
  text-decoration: none;
}

.site-footer a:hover { color: var(--white); }

.disclaimer {
  font-size: 12px;
  color: #777;
  margin-bottom: 12px;
  font-style: italic;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  list-style: none;
}

/* ---- BLOG POST ARTICLE ---- */
.post-header {
  margin-bottom: 32px;
}

.post-header h1 {
  margin: 0 0 8px;
}

.post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---- BACK LINK ---- */
.back-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--green);
  text-decoration: none;
  margin-bottom: 24px;
}

.back-link:hover { text-decoration: underline; }

/* ---- SHARE ROW ---- */
.share-row {
  margin-bottom: 24px;
}

.share-row .share-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-light);
  margin-bottom: 10px;
}

.share-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.share-links a,
.share-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--gray);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  font-size: 0;
}

.share-links a:hover,
.share-links button:hover {
  color: var(--charcoal);
  border-color: var(--charcoal);
  background: var(--cream-dark);
}

.share-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.share-links .copy-confirm {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  display: none;
}

/* ---- SUBSCRIBE SECTION ---- */
.subscribe-section {
  background: var(--charcoal);
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
}

.subscribe-section .subscribe-inner {
  max-width: 520px;
  margin: 0 auto;
}

.subscribe-section h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--white);
  margin: 0 0 10px;
}

.subscribe-section p {
  font-size: 16px;
  color: #BBBBBB;
  margin-bottom: 24px;
}

.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 2px solid #555;
  border-right: none;
  background: #444;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-form input[type="email"]::placeholder {
  color: #999;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--green-light);
}

.subscribe-form button {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 28px;
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.subscribe-form button:hover {
  background: var(--green-light);
  border-color: var(--green-light);
}

/* ---- CONTACT / ASK A QUESTION ---- */
.contact-section {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 36px 32px;
  margin: 48px 0 0;
}

.contact-section h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--charcoal);
  margin: 0 0 8px;
}

.contact-section p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 20px;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  background: var(--green);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--green-light);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .hero-coin { width: 150px; }
  .hero h1 { font-size: 36px; }
  .hero .tagline { font-size: 17px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .home-features { grid-template-columns: 1fr; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 12px; }
  .comparison-table { font-size: 13px; }
  .comparison-table td, .comparison-table th { padding: 6px 8px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input[type="email"] { border-right: 2px solid #555; }
  .subscribe-form button { width: 100%; }
}
