/* Schoolhouse Simple — Editorial Design System */
/* Inspired by: geometric line-art, mid-century editorial, bold typography */

/* Google Fonts — DM Sans (clean geometric sans) + DM Serif Display (editorial headers) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Serif+Display&display=swap');

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

/* Variables */
:root {
  --ink: #1A1A1A;
  --charcoal: #2D2D2D;
  --warm-gray: #6B6560;
  --terracotta: #C8553D;
  --rust: #A3432F;
  --cream: #F5F0EB;
  --warm-white: #FAF7F3;
  --rule: #1A1A1A;
  --rule-light: #D4CFC9;
  --max-width: 1000px;
  --article-width: 680px;
}

/* Base */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.75;
}

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--ink);
  line-height: 1.2;
}

h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  color: var(--warm-gray);
  line-height: 1.4;
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }

p {
  margin-bottom: 1.1rem;
}

ul, ol {
  margin: 0 0 1.25rem 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Horizontal rules — editorial style */
hr {
  border: none;
  border-top: 2px solid var(--rule);
  margin: 3rem 0;
}

hr.thin {
  border-top-width: 1px;
  border-color: var(--rule-light);
}

/* Section label — uppercase with rules */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--warm-gray);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* Nav — minimal editorial */
.nav {
  padding: 0 2rem;
  border-bottom: 2px solid var(--rule);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-mark {
  flex-shrink: 0;
}

.nav-brand:hover {
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-links a:hover {
  color: var(--terracotta);
}

/* Hero — editorial, cream background */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-bottom: 2px solid var(--rule);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--warm-gray);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero .cta {
  display: inline-block;
  background: var(--ink);
  color: var(--warm-white);
  padding: 0.85rem 2.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: background 0.2s;
}

.hero .cta:hover {
  background: var(--terracotta);
  color: var(--warm-white);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Article cards — editorial grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.article-card {
  border-top: 2px solid var(--rule);
  padding-top: 1.5rem;
  transition: opacity 0.2s;
}

.article-card:hover {
  opacity: 0.75;
}

.article-card-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.7rem;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.article-card p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  margin-bottom: 1rem;
}

.article-card .read-more {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.article-card:hover .read-more {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

/* Article page */
.article-container {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.article-container h1 {
  font-size: 2.6rem;
  margin-bottom: 0.75rem;
}

.article-meta {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--warm-gray);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-light);
}

.article-container strong {
  color: var(--ink);
}

.disclosure {
  border: 1px solid var(--rule-light);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  color: var(--warm-gray);
}

.affiliate-link {
  color: var(--terracotta);
  font-weight: 700;
  border-bottom: 1px solid var(--terracotta);
}

.affiliate-link:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

.tip-box {
  border-top: 2px solid var(--terracotta);
  padding: 1.25rem 0;
  margin: 2rem 0;
}

.tip-box strong {
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

/* About page */
.about-container {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.about-container h1 {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--rule);
}

.values-list {
  list-style: none;
  margin-left: 0;
}

.values-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule-light);
}

.values-list li:first-child {
  border-top: 1px solid var(--rule-light);
}

.values-list li strong {
  color: var(--ink);
}

/* Footer — minimal editorial */
.footer {
  border-top: 2px solid var(--rule);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
}

.footer a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.footer a:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.footer-disclosure {
  max-width: 560px;
  margin: 0 auto 1rem;
  font-size: 0.75rem;
  color: var(--warm-gray);
}

.footer-links {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Mobile */
@media (max-width: 640px) {
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero .tagline { font-size: 1rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .nav { padding: 0 1.5rem; }
  .nav-inner { flex-wrap: wrap; height: auto; padding: 0.75rem 0; gap: 0.25rem; }
  .nav-brand { font-size: 0.7rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.7rem; }
  .article-grid { grid-template-columns: 1fr; }
  .container { padding: 2rem 1.5rem; }
  .article-container { padding: 2rem 1.5rem 3rem; }
  .about-container { padding: 2rem 1.5rem 3rem; }
  .article-container h1 { font-size: 2rem; }
}
