@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=Golos+Text:wght@400;500;600;700&display=swap");

:root { color-scheme: light; --bg: #f7f5ec; --ink: #232b24; --quiet: #525d51; --line: #d2d5c6; --accent: #546342; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.65 "Golos Text", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #925c34; outline-offset: 5px; }
h1, h2, h3 { margin: 0; font-family: Lora, Georgia, serif; font-weight: 500; line-height: 1.12; }
p { margin: 0; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.bar { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-header nav a, .site-footer nav a { font-size: .9rem; }
.brand { text-decoration: none; font-weight: 700; letter-spacing: -.045em; font-size: 1.45rem; }
.brand span { margin-left: .22em; color: var(--accent); font-weight: 500; }
.hero { padding-block: clamp(60px, 10vw, 132px) clamp(44px, 6vw, 78px); }
.hero h1 { max-width: 13ch; font-size: clamp(3rem, 7.8vw, 7rem); letter-spacing: -.06em; }
.hero em { color: var(--accent); font-style: normal; }
.hero p, .lede { max-width: 45rem; margin-top: 22px; color: var(--quiet); font-size: clamp(1.07rem, 2vw, 1.28rem); }
.agents h2, .journal h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.agents:last-child { padding-block-end: clamp(40px, 6vw, 72px); }
.agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.agent { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); background: #eee9dc; border-radius: 15px; }
.agent img { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; }
.agent-body { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; padding: clamp(22px, 4vw, 38px); }
.agent h3 { font-size: clamp(2rem, 4vw, 3.2rem); }
.agent .status { display: flex; gap: 9px; align-items: center; color: #604a34; font-size: .88rem; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #976a3b; flex: none; }
.status.live { color: #3d583f; }
.status.live::before { background: #58764f; }
.agent-body > p:not(.status) { margin-bottom: 4px; max-width: 40ch; }
.button { margin-top: auto; padding: 10px 15px; border-radius: 8px; color: #fffdf5; background: #38563f; text-decoration: none; font-weight: 600; }
.mikhailych .button { background: #513824; }
.button:hover, .editorial-link:hover { filter: brightness(1.17); }
.button span, .editorial-link span { margin-left: .35em; }
.journal { display: flex; justify-content: space-between; align-items: center; gap: 18px 34px; margin-block: clamp(54px, 9vw, 100px); padding: 22px 0; border-block: 1px solid var(--line); }
.journal p { margin-top: 10px; color: var(--quiet); }
.editorial-link { font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); }
.directory, .prose { padding-block: clamp(45px, 8vw, 90px); min-height: 60vh; }
.directory h1, .prose h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); letter-spacing: -.04em; overflow-wrap: break-word; }
.entries { list-style: none; margin: 36px 0 0; padding: 0; max-width: 48rem; border-top: 1px solid var(--line); }
.entries li { padding: 23px 0; border-bottom: 1px solid var(--line); }
.entries h2 { margin: 6px 0 9px; font-size: clamp(1.45rem, 3vw, 2rem); }
.entries p, time { color: var(--quiet); }
time { font-size: .875rem; }
.prose { max-width: 760px; }
.crumb { margin-bottom: 24px; }
.prose article > * + * { margin-top: 16px; }
.prose h2 { margin-top: 30px; font-size: 1.65rem; }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .bar { padding-block: 12px; }
  .agent-grid { grid-template-columns: 1fr; }
  .journal { align-items: flex-start; flex-direction: column; }
}
