/* footbik.blog — вёрстка блога. Правится руками, без сборки. */

/* Базовая типографика */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 16px/1.6 Arial,sans-serif;
  color: var(--text);
  background: var(--paper);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(38px,5.5vw,72px);
  line-height: 1.07;
  letter-spacing: -3px;
  margin-bottom: 25px;
}
h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
}
h3 {
  line-height: 1.3;
  font-size: 21px;
}
p {
  color: var(--dim);
}
[hidden] {
  display: none!important;
}
h1,
h2,
h3 {
  font-family: Georgia,serif;
}

/* Каркас страницы */
.col {
  max-width: 1180px;
  margin: auto;
  padding: 0 30px;
}
header {
  border-bottom: 1px solid var(--rule);
}
header .col {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.wordmark {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1px;
}
nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
}
nav a:hover {
  text-decoration: underline;
}
footer {
  border-top: 1px solid var(--rule);
  padding: 35px 0;
  font-size: 13px;
  color: var(--dim);
}
footer .col {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}
.wordmark {
  font-size: 34px;
}

/* Лента материалов */
.kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: bold;
  color: var(--brand);
}
.stream {
  padding: 35px 0 50px;
}
.stream-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.stream-head h2 {
  margin: 0;
}
.entries {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}
.entry {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.entry-text {
  padding: 25px;
}
.entry img {
  display: block;
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
}
.byline {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 12px;
}
.rubrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 28px;
}
.rubrics button {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--rule);
  padding: 9px 17px;
  font-size: 13px;
}
.rubrics button[aria-pressed=true] {
  background: var(--brand);
  color: var(--on-brand);
}
.nothing {
  padding: 35px;
  border: 1px dashed var(--rule);
}
.entry {
  border-radius: 0;
}
.kicker {
  color: #476a54;
}

/* Страница статьи */
.notice {
  padding: 36px;
  background: var(--wash);
  border-radius: 12px;
  margin: 20px 0 60px;
}
.notice p {
  margin: 10px 0 0;
}
.piece {
  max-width: 780px;
  margin: 65px auto 90px;
}
.piece h1 {
  font-size: 48px;
}
.piece h2 {
  margin-top: 36px;
}
.piece p,
.piece li {
  font-size: 18px;
  line-height: 1.85;
}
.piece img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}
.up {
  display: inline-block;
  color: var(--brand);
  margin-bottom: 25px;
}
.small-print {
  font-size: 13px!important;
}

/* Формы и кнопки */
button,
.cta {
  cursor: pointer;
  border: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 22px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}
button:hover,
.cta:hover {
  filter: brightness(.92);
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--card);
  color: var(--text);
}
label {
  display: block;
  margin: 15px 0 5px;
  font-size: 14px;
}
.result {
  white-space: pre-wrap;
  padding: 30px;
  border: 1px solid var(--rule);
  background: var(--card);
  min-height: 300px;
}

/* Прочее */
.opening {
  padding: 65px 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 55px;
  align-items: center;
}
.opening p {
  font-size: 18px;
  max-width: 500px;
}
.opening img {
  width: 100%;
  border-radius: 14px;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--wash);
  border-radius: 5px;
  font-size: 12px;
}
.search {
  max-width: 350px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
@media(max-width:820px) {
  .col {
      padding: 0 20px;
  }
  header .col {
      padding-top: 20px;
      padding-bottom: 20px;
      flex-wrap: wrap;
      gap: 15px;
  }
  nav {
      gap: 18px;
      flex-wrap: wrap;
  }
  .opening,
  .split {
      grid-template-columns: 1fr;
      gap: 28px;
  }
  .opening {
      padding: 38px 0;
  }
  .entries {
      grid-template-columns: 1fr;
  }
  .stream-head {
      align-items: flex-start;
      flex-direction: column;
  }
  h1 {
      letter-spacing: -1.5px;
  }
  .opening img {
      max-height: 350px;
  }
  .piece {
      margin-top: 35px;
  }
  .piece h1 {
      font-size: 36px;
  }
  footer .col {
      flex-direction: column;
  }
  .search {
      max-width: none;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
      scroll-behavior: auto;
  }
}
@media print {
  header,
  footer,
  .no-print {
      display: none;
  }
  .split {
      display: block;
  }
  .result {
      border: 0;
      color: #000;
      background: #fff;
  }
  .col {
      max-width: none;
  }
}
:root {
  --paper: #f6f4ed;
  --card: #fffef9;
  --text: #172e29;
  --dim: #68736a;
  --brand: #ce4c2f;
  --on-brand: #fff;
  --rule: #d9ddd1;
  --wash: #e8ecdf;
}
.opening img {
  border-radius: 0;
}
.opening {
  border-bottom: 1px solid var(--rule);
}
