/*
Theme Name: Fossa Editorial
Description: Чистая редакционная тема для SEO-блога Fossa.
Version: 1.0.0
Text Domain: fossa-editorial
*/

:root {
  --paper: #f5f1e8;
  --ink: #1b1a18;
  --muted: #6d6962;
  --line: #d7d0c4;
  --wine: #922f38;
  --sage: #b8c66e;
  --white: #fffdf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.96);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand strong { font-size: 22px; letter-spacing: 0.22em; }
.brand span { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.header-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.header-links a { min-height: 44px; display: inline-flex; align-items: center; }
.header-links .primary {
  padding: 0 18px;
  background: var(--ink);
  color: var(--white);
}
.hero { padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 8vw, 108px); }
.eyebrow {
  margin: 0 0 22px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: end; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.02; }
h1 { max-width: 12ch; font-size: clamp(3.3rem, 7vw, 6.8rem); letter-spacing: -0.045em; }
.hero-copy { max-width: 37rem; }
.hero-copy p { margin: 0; color: var(--muted); font-size: 19px; }
.hero-copy .status { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.topics { padding: 70px 0 90px; border-top: 1px solid var(--line); background: var(--white); }
.section-head { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 44px; align-items: end; }
.section-head h2 { max-width: 15ch; font-size: clamp(2.4rem, 4.6vw, 4.8rem); letter-spacing: -0.035em; }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-block: 1px solid var(--ink); }
.topic { min-height: 250px; padding: 26px; }
.topic + .topic { border-left: 1px solid var(--ink); }
.topic span { color: var(--wine); font-size: 12px; font-weight: 700; }
.topic h3 { margin-top: 54px; font-size: 27px; }
.topic p { margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.articles { padding: 90px 0 110px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.article-card { padding: 28px; border: 1px solid var(--line); background: var(--white); }
.article-card h2 { margin-top: 20px; font-size: 30px; }
.article-card p { color: var(--muted); font-size: 15px; }
.article-meta { color: var(--wine); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.empty-note { margin-top: 48px; padding: 34px; border: 1px solid var(--line); background: var(--white); }
.empty-note p { max-width: 50rem; margin: 0; color: var(--muted); }
.site-footer { padding: 54px 0 70px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; color: var(--muted); font-size: 14px; }
.footer-grid strong { color: var(--ink); }
.footer-grid p { margin: 7px 0 0; }

@media (max-width: 820px) {
  .hero-grid, .section-head { grid-template-columns: 1fr; gap: 34px; }
  .topic-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .topic:nth-child(3) { border-left: 0; }
  .topic:nth-child(n + 3) { border-top: 1px solid var(--ink); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .header-inner { min-height: 66px; }
  .brand span, .header-links a:not(.primary) { display: none; }
  .header-links .primary { padding-inline: 14px; font-size: 12px; }
  .hero { padding-top: 68px; }
  h1 { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .hero-copy p { font-size: 17px; }
  .topics, .articles { padding-block: 70px; }
  .topic-grid, .article-grid, .footer-grid { grid-template-columns: 1fr; }
  .topic + .topic { border-top: 1px solid var(--ink); border-left: 0; }
}
