/* Foco — minimal-editorial | monochrome-light */
:root {
  --foco-bg: #f7f7f7;
  --foco-surface: #ffffff;
  --foco-text: #111111;
  --foco-text-muted: #5c5c5c;
  --foco-text-light: #8a8a8a;
  --foco-border: #dcdcdc;
  --foco-border-strong: #b8b8b8;
  --foco-link: #111111;
  --foco-link-hover: #444444;
  --foco-radius: 0;
  --foco-container: 720px;
  --foco-space-xs: 6px;
  --foco-space-sm: 12px;
  --foco-space-md: 18px;
  --foco-space-lg: 28px;
  --foco-space-xl: 40px;
  --foco-font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --foco-font-size-xs: 0.75rem;
  --foco-font-size-sm: 0.8125rem;
  --foco-font-size-base: 0.9375rem;
  --foco-font-size-lg: 1.125rem;
  --foco-font-size-xl: 1.375rem;
  --foco-font-size-2xl: 1.75rem;
  --foco-font-size-3xl: 2rem;
  --foco-line-tight: 1.2;
  --foco-line-normal: 1.55;
  --foco-line-relaxed: 1.7;
  --foco-transition: 0.15s ease;
  --foco-thumb-size: 88px;
}

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

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

body {
  margin: 0;
  font-family: var(--foco-font-sans);
  font-size: var(--foco-font-size-base);
  line-height: var(--foco-line-normal);
  color: var(--foco-text);
  background: var(--foco-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--foco-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--foco-transition);
}

a:hover { color: var(--foco-link-hover); }

h1, h2, h3, h4 {
  margin: 0 0 var(--foco-space-sm);
  line-height: var(--foco-line-tight);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--foco-font-size-3xl); }
h2 { font-size: var(--foco-font-size-2xl); }
h3 { font-size: var(--foco-font-size-xl); }
h4 { font-size: var(--foco-font-size-lg); }

p { margin: 0 0 var(--foco-space-sm); }

ul, ol {
  margin: 0 0 var(--foco-space-sm);
  padding-left: 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--foco-container);
  margin: 0 auto;
  padding: 0 var(--foco-space-md);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--foco-border);
  background: var(--foco-surface);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--foco-space-sm) 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--foco-space-xs);
  font-size: var(--foco-font-size-lg);
  font-weight: 600;
  text-decoration: none;
  color: var(--foco-text);
  letter-spacing: -0.03em;
}

.logo:hover { color: var(--foco-text-muted); }

.logo-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--foco-border);
  padding: var(--foco-space-xs) var(--foco-space-sm);
  font-size: var(--foco-font-size-base);
  cursor: pointer;
  color: var(--foco-text);
  border-radius: var(--foco-radius);
}

.main-nav {
  border-top: 1px solid var(--foco-border);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--foco-space-lg);
}

.nav-list a {
  display: block;
  padding: var(--foco-space-sm) 0;
  text-decoration: none;
  font-size: var(--foco-font-size-sm);
  color: var(--foco-text-muted);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--foco-text);
  text-decoration: underline;
}

/* Hero — text-only lead */
.hero-text {
  padding: var(--foco-space-xl) 0 var(--foco-space-lg);
  border-bottom: 1px solid var(--foco-border);
}

.hero-category {
  font-size: var(--foco-font-size-xs);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--foco-text-light);
  margin-bottom: var(--foco-space-xs);
}

.hero-category a {
  text-decoration: none;
  color: var(--foco-text-light);
}

.hero-category a:hover { color: var(--foco-text-muted); }

.hero-title {
  font-size: var(--foco-font-size-3xl);
  margin-bottom: var(--foco-space-sm);
  line-height: var(--foco-line-tight);
}

.hero-title a {
  text-decoration: none;
  color: var(--foco-text);
}

.hero-title a:hover { color: var(--foco-text-muted); }

.hero-lead {
  font-size: var(--foco-font-size-lg);
  line-height: var(--foco-line-relaxed);
  color: var(--foco-text-muted);
  margin-bottom: var(--foco-space-sm);
}

.meta {
  font-size: var(--foco-font-size-sm);
  color: var(--foco-text-light);
  margin: 0;
}

.meta strong { font-weight: 500; color: var(--foco-text-muted); }

/* Sections */
.section-title {
  font-size: var(--foco-font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--foco-text-light);
  margin-bottom: var(--foco-space-md);
  font-weight: 500;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--foco-space-md);
  border-bottom: 1px solid var(--foco-border);
  padding-bottom: var(--foco-space-xs);
}

.section-header h2 {
  font-size: var(--foco-font-size-lg);
  margin: 0;
}

.section-header a {
  font-size: var(--foco-font-size-sm);
}

.intro-block {
  padding: var(--foco-space-lg) 0;
  border-bottom: 1px solid var(--foco-border);
}

.intro-block p {
  color: var(--foco-text-muted);
  line-height: var(--foco-line-relaxed);
}

/* Article stream */
.article-stream {
  padding: var(--foco-space-lg) 0;
}

.stream-item {
  display: grid;
  grid-template-columns: var(--foco-thumb-size) 1fr;
  gap: var(--foco-space-md);
  padding: var(--foco-space-md) 0;
  border-bottom: 1px solid var(--foco-border);
}

.stream-item:first-child { padding-top: 0; }

.stream-thumb {
  width: var(--foco-thumb-size);
  height: var(--foco-thumb-size);
  object-fit: cover;
  border: 1px solid var(--foco-border);
  border-radius: var(--foco-radius);
}

.stream-body h3 {
  font-size: var(--foco-font-size-base);
  margin-bottom: var(--foco-space-xs);
  font-weight: 600;
}

.stream-body h3 a {
  text-decoration: none;
  color: var(--foco-text);
}

.stream-body h3 a:hover { text-decoration: underline; }

.stream-cat {
  font-size: var(--foco-font-size-xs);
  color: var(--foco-text-light);
  margin-bottom: var(--foco-space-xs);
}

.stream-cat a {
  text-decoration: none;
  color: var(--foco-text-light);
}

.stream-cat a:hover { color: var(--foco-text-muted); }

.stream-excerpt {
  font-size: var(--foco-font-size-sm);
  color: var(--foco-text-muted);
  line-height: var(--foco-line-relaxed);
  margin-bottom: var(--foco-space-xs);
}

/* Flat cards — list on articles page */
.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card-item {
  padding: var(--foco-space-md) 0;
  border-bottom: 1px solid var(--foco-border);
  display: grid;
  grid-template-columns: var(--foco-thumb-size) 1fr;
  gap: var(--foco-space-md);
}

.card-item h2 {
  font-size: var(--foco-font-size-base);
  margin-bottom: var(--foco-space-xs);
}

.card-item h2 a {
  text-decoration: none;
  color: var(--foco-text);
}

.card-item h2 a:hover { text-decoration: underline; }

/* Article page */
.article-header {
  padding: var(--foco-space-xl) 0 var(--foco-space-md);
  border-bottom: 1px solid var(--foco-border);
}

.article-header h1 {
  margin-bottom: var(--foco-space-sm);
}

.article-lead {
  font-size: var(--foco-font-size-lg);
  color: var(--foco-text-muted);
  line-height: var(--foco-line-relaxed);
  margin: var(--foco-space-md) 0 0;
}

.article-featured {
  margin: var(--foco-space-lg) 0;
}

.article-featured img {
  width: 100%;
  border: 1px solid var(--foco-border);
  border-radius: var(--foco-radius);
}

.article-body {
  padding: var(--foco-space-md) 0 var(--foco-space-xl);
}

.article-body h2 {
  font-size: var(--foco-font-size-xl);
  margin-top: var(--foco-space-lg);
}

.article-body blockquote {
  margin: var(--foco-space-md) 0;
  padding-left: var(--foco-space-md);
  border-left: 2px solid var(--foco-border-strong);
  color: var(--foco-text-muted);
  font-style: italic;
}

.updated-note {
  font-size: var(--foco-font-size-sm);
  color: var(--foco-text-light);
  margin-top: var(--foco-space-lg);
  padding-top: var(--foco-space-md);
  border-top: 1px solid var(--foco-border);
}

.author-box {
  padding: var(--foco-space-md) 0;
  border-top: 1px solid var(--foco-border);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--foco-space-md);
  margin-bottom: var(--foco-space-xl);
}

.author-box .avatar {
  width: 56px;
  height: 56px;
  border: 1px solid var(--foco-border);
  border-radius: var(--foco-radius);
}

.author-name {
  font-weight: 600;
  margin-bottom: var(--foco-space-xs);
}

.author-role {
  font-size: var(--foco-font-size-sm);
  color: var(--foco-text-light);
  margin-bottom: var(--foco-space-xs);
}

.author-box p:last-child {
  font-size: var(--foco-font-size-sm);
  color: var(--foco-text-muted);
  margin: 0;
}

.related-block {
  padding: var(--foco-space-md) 0 var(--foco-space-xl);
  border-top: 1px solid var(--foco-border);
}

.related-block h2 {
  font-size: var(--foco-font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--foco-text-light);
  font-weight: 500;
  margin-bottom: var(--foco-space-md);
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  padding: var(--foco-space-sm) 0;
  border-bottom: 1px solid var(--foco-border);
}

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

.related-list a {
  text-decoration: none;
  font-weight: 500;
}

.related-list a:hover { text-decoration: underline; }

/* Static pages */
.page-header {
  padding: var(--foco-space-xl) 0 var(--foco-space-md);
  border-bottom: 1px solid var(--foco-border);
}

.page-header h1 { margin-bottom: var(--foco-space-sm); }

.page-header .lead {
  color: var(--foco-text-muted);
  font-size: var(--foco-font-size-lg);
  line-height: var(--foco-line-relaxed);
}

.page-content {
  padding: var(--foco-space-lg) 0 var(--foco-space-xl);
}

.page-content h2 {
  font-size: var(--foco-font-size-lg);
  margin-top: var(--foco-space-lg);
}

.page-content p,
.page-content li {
  color: var(--foco-text-muted);
  line-height: var(--foco-line-relaxed);
}

/* Contact form */
.contact-form {
  margin-top: var(--foco-space-md);
}

.form-group {
  margin-bottom: var(--foco-space-md);
}

.form-group label {
  display: block;
  font-size: var(--foco-font-size-sm);
  margin-bottom: var(--foco-space-xs);
  color: var(--foco-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--foco-space-sm);
  border: 1px solid var(--foco-border);
  border-radius: var(--foco-radius);
  font-family: inherit;
  font-size: var(--foco-font-size-base);
  background: var(--foco-surface);
  color: var(--foco-text);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-submit {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: var(--foco-font-size-base);
  color: var(--foco-link);
  text-decoration: underline;
  cursor: pointer;
}

.form-submit:hover { color: var(--foco-link-hover); }

.form-feedback {
  margin-top: var(--foco-space-md);
  font-size: var(--foco-font-size-sm);
  color: var(--foco-text-muted);
}

/* Footer — minimal single */
.site-footer {
  border-top: 1px solid var(--foco-border);
  background: var(--foco-surface);
  padding: var(--foco-space-lg) 0;
  margin-top: var(--foco-space-xl);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--foco-space-md);
  font-size: var(--foco-font-size-sm);
  color: var(--foco-text-light);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--foco-space-md);
}

.footer-links a {
  text-decoration: none;
  color: var(--foco-text-muted);
  font-size: var(--foco-font-size-sm);
}

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

/* Cookie — inline footer */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--foco-surface);
  border-top: 1px solid var(--foco-border);
  padding: var(--foco-space-sm) 0;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  z-index: 100;
}

.cookie-notice.is-visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--foco-container);
  margin: 0 auto;
  padding: 0 var(--foco-space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--foco-space-sm);
}

.cookie-text {
  font-size: var(--foco-font-size-sm);
  color: var(--foco-text-muted);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-text a { font-size: inherit; }

.cookie-actions {
  display: flex;
  gap: var(--foco-space-md);
}

.cookie-actions button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: var(--foco-font-size-sm);
  color: var(--foco-link);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-actions button:hover { color: var(--foco-link-hover); }

/* Responsive */
@media (max-width: 600px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    border-top: none;
  }

  .main-nav.is-open {
    display: block;
    border-top: 1px solid var(--foco-border);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    padding: var(--foco-space-sm) 0;
    border-bottom: 1px solid var(--foco-border);
  }

  .stream-item,
  .card-item {
    grid-template-columns: 64px 1fr;
    gap: var(--foco-space-sm);
  }

  .stream-thumb {
    width: 64px;
    height: 64px;
  }

  h1, .hero-title { font-size: var(--foco-font-size-2xl); }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
