/* Cascade Tribune — fictional demo newspaper. Not a real publication. */

:root {
  --ink: #1a1a1a;
  --paper: #fdfcf9;
  --paper-dim: #f2efe8;
  --rule: #d8d3c6;
  --accent: #a3241f;
  --muted: #6b6659;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Masthead */
.masthead {
  border-bottom: 3px solid var(--ink);
  padding: 18px 0 10px;
  background: var(--paper);
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.masthead-title {
  text-align: center;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 6px 0 4px;
}

.masthead-tagline {
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 14px;
}

nav.primary {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  flex-wrap: wrap;
}

nav.primary a.active { color: var(--accent); }

.nav-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12px;
}

.nav-actions a {
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.nav-actions a.primary-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Layout */
main { padding: 30px 0 60px; }

.section-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.featured-main .card-title { font-size: 30px; }
.featured-side { display: flex; flex-direction: column; gap: 20px; }

.card {
  margin-bottom: 6px;
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--paper-dim);
}

.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-category {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 20px;
  line-height: 1.25;
  margin: 6px 0 6px;
}

.card-excerpt {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.card-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 800px) {
  .featured-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .article-grid { grid-template-columns: 1fr; }
  .masthead-title { font-size: 34px; }
  nav.primary { gap: 14px; font-size: 12px; }
}

.load-more-wrap { text-align: center; margin-top: 30px; }

button, .btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
}

button.primary, .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

button:hover, .btn:hover { opacity: 0.85; }

/* Article page */
.article-header { max-width: 760px; margin: 0 auto 20px; }
.article-header .card-category { display: block; margin-bottom: 8px; }
.article-header h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; }
.article-header .dek { font-size: 18px; color: var(--muted); font-style: italic; margin-bottom: 14px; }

.article-body {
  max-width: 700px;
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.7;
}

.article-body .lede-image {
  aspect-ratio: 16/9;
  margin: 20px 0;
  border-radius: 2px;
  overflow: hidden;
}

.article-body .lede-image img { width: 100%; height: 100%; object-fit: cover; }
.article-body p { margin: 0 0 20px; }

.comments {
  max-width: 700px;
  margin: 40px auto 0;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.comment-form textarea {
  width: 100%;
  min-height: 90px;
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  resize: vertical;
}

.comment-form input {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  margin-bottom: 10px;
}

.comment-form { margin-bottom: 26px; }

.comment {
  font-family: var(--sans);
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}

.comment strong { display: block; margin-bottom: 4px; }
.comment span.meta { color: var(--muted); font-size: 12px; }

/* Forms: login / subscribe */
.form-page {
  max-width: 420px;
  margin: 20px auto 60px;
  border: 1px solid var(--rule);
  padding: 30px;
  border-radius: 3px;
}

.form-page h1 {
  font-size: 26px;
  margin: 0 0 6px;
}

.form-page p.sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.form-page label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.form-page input[type=text],
.form-page input[type=email],
.form-page input[type=password] {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  margin-bottom: 16px;
}

.form-page button { width: 100%; padding: 12px; }

.wizard-progress {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.wizard-progress .active { color: var(--accent); }

.form-page label.plan-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.plan-option input { width: auto; margin: 0; }
.plan-option em { color: var(--muted); font-style: italic; }

.wizard-buttons {
  display: flex;
  gap: 10px;
}

.wizard-buttons button {
  width: auto;
  white-space: nowrap;
}

.wizard-buttons button.wizard-back {
  flex: 0 0 auto;
}

.wizard-buttons button.primary {
  flex: 1;
}

.form-message {
  font-family: var(--sans);
  font-size: 13px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 2px;
  display: none;
}

.form-message.show { display: block; }
.form-message.error { background: #fbeaea; color: var(--accent); border: 1px solid #e6b8b5; }
.form-message.success { background: #eaf5ec; color: #2b6b3a; border: 1px solid #b9dcc1; }

/* honeypot: visually hidden but present in DOM/markup for crawler traps */
.hp-field, .hp-link {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
footer {
  border-top: 3px solid var(--ink);
  padding: 30px 0;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

footer .disclaimer {
  max-width: 600px;
  margin: 10px auto 0;
  font-size: 11px;
}

.search-box {
  max-width: 500px;
  margin: 0 auto 30px;
  display: flex;
  gap: 8px;
}

.search-box input {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  font-family: var(--sans);
  padding: 40px 0;
}
