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

body {
  background: #f5f0e8;
  color: #1a1a1a;
  font-family: 'Libre Baskerville', serif;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  background: #faf7f2;
  border-left: 1px solid #c8bfa8;
  border-right: 1px solid #c8bfa8;
  min-height: 100vh;
}

.top-bar {
  background: #1a1a1a;
  color: #e8e0d0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 24px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-bar-links { display: flex; gap: 20px; }

.top-bar-links a {
  color: #b0a898;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.top-bar-links a:hover { color: #e8e0d0; }

.masthead {
  padding: 20px 24px 0;
  border-bottom: 3px double #1a1a1a;
}

.masthead-inner {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #c8bfa8;
  margin-bottom: 10px;
}

.edition-line {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.blog-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 8vw, 90px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.tagline {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 15px;
  color: #555;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.nav {
  display: flex;
  justify-content: center;
  border-top: 1px solid #c8bfa8;
  padding-top: 8px;
}

.nav a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  padding: 6px 16px;
  border-right: 1px solid #c8bfa8;
  cursor: pointer;
  transition: background 0.15s;
}

.nav a:first-child { border-left: 1px solid #c8bfa8; }
.nav a:hover, .nav a.active { background: #1a1a1a; color: #faf7f2; }

.ticker {
  background: #1a1a1a;
  color: #e8e0d0;
  padding: 7px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: #c0392b;
  color: white;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 14px;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.ticker-scroll { overflow: hidden; flex: 1; white-space: nowrap; }

.ticker-inner {
  display: inline-block;
  animation: ticker 60s linear infinite;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding-left: 32px;
}

.ticker-inner span { margin-right: 60px; color: #b0a898; }
.ticker-inner span strong { color: #e8e0d0; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.content { padding: 0 24px 40px; }

.featured-banner {
  border-bottom: 1px solid #c8bfa8;
  padding: 24px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.featured-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.featured-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #c8bfa8;
}

.featured-main h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.featured-meta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.featured-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  font-style: italic;
}

.featured-image-box {
  background: #e8e0d0;
  border: 1px solid #c8bfa8;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.featured-image-box span {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ornament {
  text-align: center;
  color: #c8bfa8;
  font-size: 14px;
  letter-spacing: 8px;
  padding: 4px 0;
  font-family: serif;
}

.section-head {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c0392b;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 6px;
  margin: 24px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-head span:last-child {
  font-size: 10px;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.article-card {
  border: 1px solid #e8e0d0;
  padding: 16px;
  background: #faf7f2;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  border-color: #1a1a1a;
}

.article-card-sport {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #1a1a1a;
  color: #faf7f2;
  padding: 2px 7px;
  display: inline-block;
  margin-bottom: 8px;
}

.article-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.article-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
}

.article-card-meta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.no-articles {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  color: #aaa;
  text-align: center;
  padding: 40px;
  border: 1px dashed #c8bfa8;
  grid-column: 1 / -1;
}

.footer {
  background: #1a1a1a;
  color: #b0a898;
  padding: 16px 24px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer strong { color: #e8e0d0; }

.admin-btn {
  background: transparent;
  border: 1px solid #555;
  color: #b0a898;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn:hover {
  border-color: #e8e0d0;
  color: #e8e0d0;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #faf7f2;
  border: 1px solid #c8bfa8;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
}

.modal-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.modal-close:hover { color: #1a1a1a; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c8bfa8;
  background: #fff;
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #1a1a1a;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.rich-editor {
  width: 100%;
  min-height: 220px;
  padding: 12px;
  border: 1px solid #c8bfa8;
  background: #fff;
  font-family: 'Libre Baskerville', serif;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.8;
}

.rich-editor:focus {
  border-color: #1a1a1a;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #888;
}

.rich-editor p {
  margin-bottom: 14px;
}

.rich-editor img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
  border: 1px solid #c8bfa8;
}

.editor-help {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  color: #888;
  margin-top: 6px;
}

.btn-primary {
  background: #1a1a1a;
  color: #faf7f2;
  border: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 8px;
}

.btn-primary:hover { background: #c0392b; }
.btn-primary:disabled { background: #888; cursor: not-allowed; }

.admin-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 2px solid #1a1a1a;
}

.admin-tab {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer;
  border: 1px solid #c8bfa8;
  border-bottom: none;
  background: #e8e0d0;
  color: #666;
  margin-right: 4px;
  transition: all 0.15s;
}

.admin-tab.active {
  background: #1a1a1a;
  color: #faf7f2;
}

.admin-article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e8e0d0;
  gap: 12px;
}

.admin-article-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
}

.admin-article-meta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.btn-danger {
  background: #c0392b;
  color: white;
  border: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.btn-danger:hover { background: #922b21; }

.msg-success {
  background: #f0f7ee;
  border: 1px solid #a8c8a0;
  color: #2e6b27;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: none;
}

.msg-success.show { display: block; }

.msg-error {
  background: #fdf0ee;
  border: 1px solid #e8a898;
  color: #8b2a1e;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: none;
}

.msg-error.show { display: block; }

.reader-body {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  line-height: 1.85;
  color: #333;
}

.reader-body p {
  margin-bottom: 18px;
}

.reader-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 22px auto;
  border: 1px solid #c8bfa8;
}

@media (max-width: 800px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-banner { grid-template-columns: 1fr; }
  .featured-image-box { display: none; }
}

@media (max-width: 560px) {
  .articles-grid { grid-template-columns: 1fr; }
  .blog-name { font-size: 42px; }
  .nav a { padding: 6px 9px; font-size: 10px; }
  .top-bar { flex-direction: column; gap: 6px; text-align: center; }
  .footer { flex-direction: column; gap: 10px; text-align: center; }
  .modal { padding: 20px; }
}


.featured-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
}