/*
Theme Name: WordPress
Description: Тестовый сайт о релизах WordPress: колонка разделов и карточка свежей версии.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: wordpress
*/

:root {
  --ink: #1d2327;
  --muted: #50575e;
  --paper: #e7eef3;
  --card: #fff;
  --line: #d5dee6;
  --blue: #2271b1;
  --blue-dark: #0a4b78;
  --rail: #13202a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.wp-release {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.rail {
  position: fixed;
  z-index: 5;
  top: 0; left: 0; bottom: 0;
  width: 248px;
  padding: 22px 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 113, 177, 0.45), transparent 42%),
    var(--rail);
  color: #f0f6fa;
  overflow: auto;
}
.brand { display: flex; gap: 12px; align-items: center; }
.mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; color: var(--blue-dark);
  font-weight: 750; font-size: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.brand strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
.brand span { display: block; margin-top: 2px; color: #b7c7d4; font-size: 12px; }
.version-pill {
  display: inline-flex; margin: 18px 0 8px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff; font-size: 13px; font-weight: 650;
}
.rail-note { margin: 0 0 18px; color: #c5d4e0; font-size: 13px; }
.rail .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rail .menu a {
  display: block; padding: 8px 10px; border-radius: 8px; color: #e7f2f8; font-size: 15px;
}
.rail .menu .current-menu-item a,
.rail .menu a:hover { background: rgba(255, 255, 255, 0.1); }

.stage { margin-left: 248px; min-height: 100vh; }
.stage-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
}
.stage-bar time { color: var(--muted); font-size: 13px; }
.search { display: flex; gap: 6px; }
.search input[type="search"] {
  width: 190px; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; background: #fff;
}
.search button {
  border: 0; border-radius: 999px; background: var(--blue); color: #fff;
  padding: 7px 12px; cursor: pointer;
}

.sheet { padding: 0 28px 40px; }
.release {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #0a4b78 0%, #2271b1 58%, #4f94d4 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(19, 32, 42, 0.16);
}
.release-kicker { margin: 0; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; font-weight: 700; opacity: 0.8; }
.release-no { margin: 6px 0 0; font-size: 76px; line-height: 0.9; letter-spacing: -0.06em; }
.release p { margin: 10px 0 0; max-width: 46ch; color: rgba(255, 255, 255, 0.9); }
.release-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.release-actions a {
  border-radius: 999px; padding: 8px 14px; background: #fff; color: var(--blue-dark); font-weight: 650;
}
.release-actions a.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.45); }
.release-photo {
  border-radius: 16px; aspect-ratio: 16 / 10; object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.line {
  display: flex; gap: 8px; overflow: auto; margin: 0 0 22px; padding-bottom: 4px;
}
.line a {
  flex: none; padding: 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--blue-dark); font-size: 14px;
}
.line a:hover { border-color: var(--blue); }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.note, .entry {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.note { display: grid; grid-template-columns: 168px 1fr; min-height: 126px; }
.note .story, .entry { padding: 14px 16px 16px; }
.photo { width: 100%; height: 100%; object-fit: cover; background: #d7e2ea; aspect-ratio: 16 / 10; }
.note .photo { aspect-ratio: auto; height: 100%; }
.kicker { margin: 0; color: var(--blue); font-size: 12px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.note h2, .entry h1 { margin: 6px 0; letter-spacing: -0.03em; line-height: 1.2; }
.note h2 { font-size: 18px; }
.entry h1 { font-size: 34px; }
.meta, .excerpt { margin: 0; color: var(--muted); }
.meta { margin-top: 8px; font-size: 13px; }
.entry { padding: 22px; }
.entry .photo { border-radius: 12px; margin-bottom: 8px; height: auto; }
.content p { margin: 0 0 14px; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.doc-nav { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; align-self: start; }
.doc-nav p { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.doc-nav a { display: block; padding: 7px 8px; border-radius: 8px; color: var(--blue-dark); }
.doc-nav a[aria-current="page"], .doc-nav a:hover { background: #e9f3fb; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; color: var(--blue-dark); }
.foot { color: var(--muted); font-size: 14px; padding: 8px 28px 28px; }
.empty { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }

@media (max-width: 900px) {
  .rail { position: relative; width: auto; }
  .stage { margin-left: 0; }
  .release, .notes, .docs, .note { grid-template-columns: 1fr; }
  .release-no { font-size: 56px; }
  .sheet, .stage-bar, .foot { padding-left: 16px; padding-right: 16px; }
}
