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

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background-color: #fafaf8;
  color: #1a1a1a;
  line-height: 1.85;
  padding: 0;
  margin: 0;
}

/* =========================================
   LAYOUT CONTAINER
   ========================================= */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   HEADER / TOP BAR
   ========================================= */
.site-header {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
  margin-bottom: 56px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
}

.site-tagline {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.05em;
}

/* =========================================
   ARTICLE HEADER
   ========================================= */
.article-header {
  margin-bottom: 44px;
}

.article-category {
  display: inline-block;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 16px;
}

.article-title {
  font-family: 'Georgia', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.article-subtitle {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 28px;
  font-style: italic;
}

/* Author block */
.author-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 40px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ddd;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.author-info {
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a;
}

.author-meta {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}

.reading-time {
  margin-left: auto;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  color: #aaa;
  white-space: nowrap;
}

/* =========================================
   HERO IMAGE
   ========================================= */
.hero-image {
  margin-bottom: 48px;
  margin-left: -24px;
  margin-right: -24px;
}

@media (min-width: 828px) {
  .hero-image {
    margin-left: -80px;
    margin-right: -80px;
  }
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image figcaption,
.article-image figcaption {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  color: #999;
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.02em;
  padding: 0 24px;
}

/* =========================================
   ARTICLE BODY TYPOGRAPHY
   ========================================= */
.article-body p {
  margin-bottom: 1.65em;
  color: #222;
}

.article-body h2 {
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-top: 2.6em;
  margin-bottom: 0.7em;
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding-top: 0.4em;
  border-top: 2px solid #111;
}

.article-body h3 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 2em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Inline article images */
.article-image {
  margin: 44px 0;
}

@media (min-width: 828px) {
  .article-image {
    margin-left: -40px;
    margin-right: -40px;
  }
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Pull quote */
.pull-quote {
  border-left: 3px solid #c0392b;
  margin: 2.2em 0;
  padding: 6px 0 6px 24px;
  font-size: 1.18rem;
  font-style: italic;
  color: #444;
  line-height: 1.65;
}

/* Disclaimer / note box */
.note-box {
  background: #f4f4f1;
  border-left: 3px solid #ccc;
  padding: 16px 20px;
  margin: 2em 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
}

/* =========================================
   TABLES
   ========================================= */
.table-wrap {
  margin: 2.4em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.83rem;
}

thead tr {
  border-bottom: 2px solid #1a1a1a;
}

thead th {
  text-align: left;
  padding: 8px 12px 10px 12px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #1a1a1a;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid #e6e6e6;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody td {
  padding: 10px 12px;
  color: #333;
  vertical-align: top;
  line-height: 1.5;
}

tbody tr:hover {
  background: #f7f7f5;
}

/* =========================================
   LINKS LIST (resources)
   ========================================= */
.resources-list {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.resources-list li {
  padding: 11px 0;
  border-bottom: 1px solid #ebebeb;
  font-size: 0.88rem;
  color: #333;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.resources-list li::before {
  content: '→';
  color: #c0392b;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.resources-list li:last-child {
  border-bottom: none;
}

/* =========================================
   ARTICLE FOOTER
   ========================================= */
.article-footer {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid #e0e0e0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.78rem;
  color: #999;
  line-height: 1.65;
}

.article-footer strong {
  color: #555;
}

/* =========================================
   SITE FOOTER
   ========================================= */
.site-footer {
  margin-top: 80px;
  padding: 32px 0 40px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  color: #bbb;
  letter-spacing: 0.03em;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .article-title { font-size: 1.75rem; }
  .article-body h2 { font-size: 1.35rem; }
  .hero-image { margin-left: -24px; margin-right: -24px; }
  .article-image { margin-left: 0; margin-right: 0; }
  thead th { font-size: 0.68rem; padding: 7px 8px; }
  tbody td { padding: 9px 8px; font-size: 0.78rem; }
}
