@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Raleway:wght@100;200;300&display=swap');

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

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 19px;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── TOP NAV ── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 56px;
}

.site-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav-right a { text-decoration: none; }
.nav-right a:hover { opacity: 0.55; }

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
}

/* ── TWO-COLUMN LAYOUT ── */
.page-layout {
  display: flex;
}

/* ── LEFT SIDEBAR ── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 120px 40px 80px 56px;
  position: sticky;
  top: 0;
  height: calc(100vh - 87px);
  overflow-y: auto;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: block;
}

.filter-pills {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.filter-btn {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  text-align: left;
  transition: all 0.15s;
  width: fit-content;
}

/* ── MAIN CONTENT (homepage) ── */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 80px 56px 140px 56px;
}

.text-constrained {
  max-width: 68%;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 20px;
  border-bottom: 2px solid;
}

.sort-select {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
}

/* ── FEATURED ── */
.featured-wrapper {
  padding: 48px 0;
  border-bottom: 2px solid;
}

.featured-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: inline-block;
  padding: 4px 10px;
  border: 1.5px solid;
  margin-bottom: 20px;
}

/* ── ARTICLE LIST ── */
.article-list { list-style: none; }

.article-item {
  padding: 40px 0;
  border-bottom: 2px solid;
}

.article-date {
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
  font-weight: 500;
}

.article-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
  text-decoration: none;
  display: block;
  letter-spacing: -0.02em;
}

.article-title:hover { opacity: 0.6; }

.article-snippet {
  font-size: 19px;
  line-height: 1.75;
  margin-bottom: 16px;
  font-weight: 400;
}

.read-more {
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.read-more:hover { opacity: 0.6; }

/* ── FOOTER ── */
.footer-outer {
  border-top: 2px solid;
  width: 100%;
}

.footer-inner {
  padding: 56px;
  font-size: 14px;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 56px;
}

.footer-section h4 {
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-brand-name {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 2px;
}

.footer-brand-sub {
  font-size: 15px;
  font-weight: 400;
  display: block;
  margin-top: -3px;
}

.footer-section a {
  display: block;
  text-decoration: none;
  line-height: 2.4;
  font-size: 14px;
}

.footer-section a:hover { opacity: 0.6; }

.subscribe-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: flex-end;
}

.subscribe-input {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  border: none;
  border-bottom: 1px solid;
  background: none;
  padding: 6px 0;
  flex: 1;
  outline: none;
  min-width: 0;
}

.subscribe-btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 700;
  padding: 6px 0;
  white-space: nowrap;
}

/* ── ARTICLE / ABOUT PAGES ── */
.article-page-main {
  flex: 1;
  min-width: 0;
  padding: 80px 56px 140px 56px;
}

.article-page-inner {
  max-width: 680px;
}

.article-page-inner h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-body p {
  margin-bottom: 26px;
  font-size: 19px;
  line-height: 1.8;
}

.article-body p:last-child { margin-bottom: 0; }

.back-link {
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 52px;
  font-weight: 500;
}

.back-link:hover { opacity: 0.6; }

/* ── SHARE BAR ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 2px solid;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.share-btn {
  background: none;
  border: 1.5px solid;
  border-radius: 999px;
  padding: 6px 16px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}

.share-btn:hover { opacity: 0.6; }

.copy-confirm {
  font-size: 12px;
  display: none;
}

.article-item.hidden { display: none; }

@media (max-width: 768px) {
  .page-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; padding: 32px 24px 20px; }
  .filter-pills { flex-direction: row; flex-wrap: wrap; }
  .main-content, .article-page-main { padding: 40px 24px 100px; }
  .text-constrained, .article-page-inner { max-width: 100%; }
  .top-nav { padding: 24px; }
  .article-title { font-size: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
  .share-bar { flex-wrap: wrap; }
}
