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

:root {
  --color-text: #171717;
  --color-text-secondary: #666666;
  --color-bg: #f2f2f2;
  --color-border: rgba(200, 200, 200, 0.25);
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: var(--color-text);
}

/* ── Header ── */
.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 242, 242, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 200, 200, 0.2);
}

.page-header-inner {
  max-width: none;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-header-inner--split {
  justify-content: space-between;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
}

.header-logo {
  height: 35px;
  width: auto;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-login {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 200ms ease;
}

.header-login:hover {
  color: var(--color-text);
}

.header-signup {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #171717;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 150ms ease;
}

.header-signup:hover {
  background: #111111;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  cursor: pointer;
  transition: color 200ms ease;
}

.back-link:hover {
  color: var(--color-text);
}

.back-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Content ── */
.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 30px 24px 80px;
  flex: 1;
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Article Index ── */
.content h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  transition: opacity 200ms ease;
}

.article-card:first-of-type {
  padding-top: 0;
}

.article-card:last-of-type {
  border-bottom: none;
}

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

.article-card-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.article-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.article-card-meta .bullet {
  display: inline-block;
  padding: 0 5px;
  font-size: 0.6rem;
}

/* ── Article Detail ── */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.article-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-meta-text {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.article-meta .bullet {
  display: inline-block;
  padding: 0 3px;
  font-size: 0.6rem;
  color: var(--color-text-secondary);
}

.content h2 {
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 24px;
}

.content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.content p {
  font-size: 0.92rem;
  color: var(--color-text);
  margin-bottom: 12px;
}

.content ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.content li {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.content li strong {
  font-weight: 600;
}

.content a {
  color: var(--color-text);
  font-weight: 500;
  /*text-decoration: underline;*/
  text-decoration-color: rgba(200, 200, 200, 0.5);
  text-underline-offset: 2px;
  transition: text-decoration-color 200ms ease;
}

.content a:hover {
  text-decoration-color: var(--color-text);
}

.content a.article-cta {
  color: #fff;
  text-decoration: none;
}

.content a.article-cta:hover {
  color: #fff;
  text-decoration: none;
}

/* ── Article Disclaimer ── */
.article-disclaimer {
  font-size: 0.8rem!important;
  color: var(--color-text-secondary);
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  line-height: 1.6;
}

/* ── CTA + Share ── */
.article-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: #171717;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  transition: background 150ms ease;
}

.article-cta:hover {
  background: #111111;
  color: #fff;
  text-decoration: none;
}

.social-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text);
  text-decoration: none;
  transition: background 150ms ease;
}

.share-btn:hover {
  background: rgba(200, 200, 200, 0.15);
}

.share-btn .share-icon {
  width: 16px;
  height: 16px;
}

/* ── Toast ── */
.share-toast {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #171717;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 10000;
  white-space: nowrap;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--color-border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 450;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-copy {
  font-size: 12.5px;
  color: var(--color-text);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-header-inner {
    padding: 14px 16px;
  }

  .content {
    padding: 24px 16px 60px;
  }

  .article-card h2 {
    font-size: 1.05rem;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .content { animation: none; opacity: 1; }
}
