/* ==========================================================================
   AXIOM BRIEF — Custom Theme CSS
   Variant: Motion Forward (004)
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #FAFAFA;
  --color-ink: #000000;
  --color-accent: #DC2626;
  --color-muted: #666666;
  --color-surface: #FFFFFF;

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --max-width: 720px;
  --leading: 1.6;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Animation */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: var(--leading);
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-accent);
  width: 0%;
  z-index: 1000;
  transition: width 100ms linear;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: relative;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface);
  border-bottom: 1px solid #E5E5E5;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--color-accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.header-date {
  font-size: 12px;
  color: var(--color-muted);
}

.lang-toggle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lang-toggle a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

.lang-toggle a:hover,
.lang-toggle a.active {
  color: var(--color-ink);
}

.lang-toggle a.active {
  font-weight: 600;
}

.about-link {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

.about-link:hover {
  color: var(--color-ink);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
  background: var(--color-surface);
  animation: fadeUp 400ms var(--ease-out) forwards;
  animation-delay: 80ms;
  opacity: 0;
}

.hero-tag {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-headline a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

.hero-headline a:hover {
  color: var(--color-accent);
}

.hero-summary {
  font-size: 17px;
  color: var(--color-muted);
  line-height: 1.55;
  max-width: 600px;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
  padding: var(--spacing-xl) 0;
  animation: fadeUp 400ms var(--ease-out) forwards;
  opacity: 0;
}

.section:nth-child(2) { animation-delay: 160ms; }
.section:nth-child(3) { animation-delay: 240ms; }
.section:nth-child(4) { animation-delay: 320ms; }

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 2px;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: var(--color-accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: var(--spacing-lg);
}

.section-tag::after {
  display: none;
}

/* ==========================================================================
   ARTICLES
   ========================================================================== */

.article {
  background: var(--color-surface);
  padding: var(--spacing-lg) var(--spacing-xl);
  margin-bottom: 2px;
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
  cursor: pointer;
  position: relative;
}

.article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.article:active {
  transform: scale(0.98);
  transition-duration: 100ms;
}

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

.article-meta {
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.article-headline {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.article-headline a {
  color: inherit;
  text-decoration: none;
}

.article-headline a:hover {
  color: var(--color-accent);
}

.article-body {
  font-size: 15px;
  color: #444;
  line-height: 1.55;
  margin-bottom: 16px;
}

/* Axiom Comment */
.axiom-comment {
  font-size: 18px;
  font-style: italic;
  color: var(--color-accent);
  padding-left: 16px;
  border-left: 2px solid var(--color-accent);
  margin-top: 16px;
}

.axiom-comment strong {
  font-style: normal;
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: var(--spacing-xl) 0;
  background: var(--color-surface);
  border-top: 1px solid #E5E5E5;
  margin-top: var(--spacing-xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  text-align: center;
}

.footer-text {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 600px) {
  .hero-headline {
    font-size: 26px;
  }

  .article-headline {
    font-size: 18px;
  }

  .article {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .header-inner,
  .main-content,
  .footer-inner {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .header-right {
    gap: var(--spacing-md);
  }

  .header-date {
    display: none;
  }
}
/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.about-page {
  padding: var(--spacing-2xl) 0;
}

.about-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-xl);
  color: var(--color-ink);
}

.about-content {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.about-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: var(--spacing-xl) 0 var(--spacing-md);
  color: var(--color-ink);
}

.about-content p {
  margin-bottom: var(--spacing-lg);
}

/* ==========================================================================
   META BLANKS — hide meta when empty
   ========================================================================== */

.article-meta:empty,
.article-meta:not([class]) {
  display: none;
}

/* ==========================================================================
   SINGLE ARTICLE PAGE
   ========================================================================== */

.single-article {
  padding: var(--spacing-2xl) 0;
}

.single-article .hero-tag {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  margin-bottom: 20px;
}

.single-article .article-headline {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.single-article .article-meta {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: var(--spacing-xl);
}

.single-article .article-body {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: var(--spacing-xl);
}

.single-article .article-body p {
  margin-bottom: var(--spacing-lg);
}

.back-link {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid #E5E5E5;
}

.back-link a {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

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