:root {
  --ink: #1c1917;
  --muted: #615c56;
  --paper: #f4f0e8;
  --card: #fffdf9;
  --line: #e4ddd2;
  --magenta: #e21878;
  --yellow: #ffd000;
  --cyan: #00aed6;
  --green: #6fbe44;
  --shadow: 0 18px 50px rgba(48, 32, 18, 0.08);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Outfit, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 280px at 0 -40px, rgba(226, 24, 120, 0.08), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.preview-bar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 16px;
}
.topline { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topline-inner, .header-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topline-inner { min-height: 42px; }
.topline-links, .header-tools, .footer-grid a, .side-card a { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.main-nav { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.topline a, .main-nav a { text-decoration: none; }
.site-header { background: rgba(255, 253, 249, 0.92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.header-main { min-height: 84px; }
.logo { flex: 0 0 auto; }
.logo img { height: 42px; width: auto; display: block; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}
.main-nav a.store {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  line-height: 1;
}
.icon-btn, .text-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.nav-toggle { display: none; }
.stripe { display: flex; height: 6px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--magenta); }
.stripe span:nth-child(2) { background: var(--yellow); }
.stripe span:nth-child(3) { background: var(--cyan); }
.stripe span:nth-child(4) { background: var(--green); }
.search-panel { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0 20px; }
.search-panel .wrap { display: flex; gap: 8px; }
.search-panel input, .form input, .form textarea, .form select, .inline-form input, .inline-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
}
.search-panel button, .button {
  border: 0;
  background: var(--magenta);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  cursor: pointer;
}
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.hero, .layout, .cards, .article { margin-top: 28px; }
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media, .card-media { position: relative; display: block; overflow: hidden; background: #efe8dc; }
.hero-media { min-height: 420px; height: 100%; }
.hero-media img, .card-media img, .media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-copy { padding: 12px 36px 12px 0; }
.hero h1, .page-head h1, .article h1 {
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 8px 0 12px;
}
.hero h1 { font-size: clamp(36px, 4vw, 58px); }
.hero h1 a, .card h2 a { text-decoration: none; }
.eyebrow, .kicker {
  color: var(--magenta);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.lede, .hero p, .card p { color: var(--muted); }
.meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; margin-bottom: 48px; }
.stack, .cards { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; }
.card, .side-card, .panel, .comment, .empty {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.card { overflow: hidden; }
.card-media { display: block; aspect-ratio: 16/10; background: #efe8dc; }
.media-fallback {
  background:
    linear-gradient(90deg, var(--magenta), var(--yellow), var(--cyan), var(--green));
  min-height: 180px;
}
.card-body, .side-card, .panel, .empty, .comment { padding: 18px 18px 16px; }
.card h2 { font-size: 22px; line-height: 1.2; margin: 6px 0; font-family: var(--serif); }
.side-card { display: grid; gap: 8px; margin-bottom: 16px; }
.side-card h2, .related h2, .comments h2 { font-size: 18px; margin: 0 0 8px; }
.side-card a { text-decoration: none; justify-content: space-between; }
.shop-card { background: #1c1917; color: #fff; }
.page-head { padding-top: 18px; }
.page-head h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 0; }
.article-head h1 { font-size: clamp(36px, 5vw, 64px); }
.article-hero img { width: 100%; border-radius: 24px; max-height: 560px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; margin-top: 22px; }
.narrow { max-width: 820px; }
.prose { font-family: var(--serif); font-size: 1.18rem; line-height: 1.7; overflow-wrap: break-word; }
.prose h2, .prose h3 { font-family: var(--sans); line-height: 1.2; }
.prose img, .prose figure, .prose video { max-width: 100%; height: auto; border-radius: 18px; }
.prose figure { margin: 1.2em 0; }
.prose iframe, .prose video { width: 100%; max-width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }
.prose table, .prose pre { display: block; max-width: 100%; overflow-x: auto; }
.prose a { color: var(--magenta); }
.crumbs, .muted { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { background: var(--paper); border-radius: 999px; padding: 6px 10px; text-decoration: none; font-size: 14px; }
.related, .comments { margin: 20px auto 50px; }
.comment + .comment { margin-top: 12px; }
.form { display: grid; gap: 12px; margin-top: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.note { background: #e9f8ef; border-radius: 12px; padding: 12px 14px; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 36px; }
.pager a, .pager strong {
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
}
.pager strong { background: var(--ink); color: #fff; }
.site-footer { background: #171513; color: #f4efe8; margin-top: 20px; padding: 42px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-grid a, .footer-grid p { color: #d9d1c6; text-decoration: none; }
.footer-grid h2 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-copy { margin-top: 24px; color: #9c948a; font-size: 14px; }
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: none;
  gap: 12px;
  align-items: center;
  z-index: 40;
}
.cookie.is-open { display: flex; }
.cookie[hidden] { display: none !important; }
.cookie p { margin: 0; flex: 1; }
.cookie p a { color: var(--magenta); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie button {
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cookie [data-cookie-accept] { background: var(--ink); color: #fff; }
.cookie-manage {
  display: block;
  border: 0;
  background: transparent;
  color: #d9d1c6;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  text-align: left;
}
.empty { margin: 40px auto; text-align: center; }
.admin-body {
  margin: 0;
  background: #f3efe8;
  color: var(--ink);
  font-family: var(--sans);
}
.adm-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.adm-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  background: #171513;
  color: #f6f1ea;
}
.adm-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.adm-brand img { height: 34px; width: auto; background: #fff; border-radius: 10px; padding: 4px 6px; }
.adm-nav { display: grid; gap: 4px; }
.adm-nav a, .adm-side-foot a {
  color: #d9d1c6;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 15px;
}
.adm-nav a.is-on, .adm-nav a:hover { background: #2a2622; color: #fff; }
.adm-nav a.is-on { box-shadow: inset 3px 0 0 var(--magenta); }
.adm-side-foot { margin-top: auto; display: grid; gap: 4px; }
.adm-side-foot a { font-size: 14px; font-weight: 500; }
.adm-main { min-width: 0; }
.adm-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(243, 239, 232, 0.92);
  border-bottom: 1px solid #e6dfd4;
  backdrop-filter: blur(10px);
}
.adm-top p { margin: 0; font-weight: 700; flex: 1; }
.adm-content { width: min(1120px, calc(100% - 48px)); margin: 28px auto 64px; }
.adm-card {
  background: #fff;
  border: 1px solid #ece4d8;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(48, 32, 18, 0.04);
}
.adm-card h2 { margin: 0 0 14px; font-size: 18px; }
.adm-card-head, .adm-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.adm-card-head { margin-bottom: 8px; }
.adm-card-head h2 { margin: 0; }
.adm-card-head a, .adm-view a, .adm-help a { color: var(--magenta); font-weight: 700; text-decoration: none; }
.adm-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.adm-stat {
  display: grid;
  gap: 4px;
  background: #fff;
  border: 1px solid #ece4d8;
  border-radius: 18px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}
.adm-stat strong { font-size: 30px; letter-spacing: -0.04em; line-height: 1; }
.adm-stat span { color: var(--muted); font-size: 14px; font-weight: 600; }
.adm-toolbar { margin-bottom: 14px; }
.adm-filters { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.adm-filters .adm-input { max-width: 280px; }
.adm-count, .adm-help { margin: 0; color: var(--muted); font-size: 14px; }
.adm-btn, .adm-burger {
  border: 0;
  background: var(--magenta);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.adm-btn.ghost, .adm-burger { background: #fff; color: var(--ink); border: 1px solid #e4ddd2; }
.adm-burger { display: none; }
.adm-btn-block { width: 100%; margin-top: 8px; }
.adm-input {
  width: 100%;
  border: 1px solid #e4ddd2;
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--ink);
}
.adm-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.03em;
  border: 0;
  border-radius: 0;
  padding: 4px 0 10px;
  border-bottom: 1px solid #ece4d8;
}
.adm-field { display: grid; gap: 6px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.adm-field .adm-input { font-size: 16px; font-weight: 500; }
textarea.adm-copy { min-height: 360px; line-height: 1.55; font-weight: 500; }
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th { text-align: left; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; }
.adm-table td { padding: 12px 10px; border-top: 1px solid #f0eae1; vertical-align: top; }
.adm-table a { color: inherit; font-weight: 700; text-decoration: none; }
.adm-table small, .adm-table td small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; }
.adm-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f3efe8;
  font-size: 13px;
  font-weight: 700;
}
.adm-pill.is-publish { background: #e7f6ea; color: #1d7a3a; }
.adm-pill.is-draft, .adm-pill.is-pending { background: #fff4d6; color: #8a5b00; }
.adm-pill.is-spam, .adm-pill.is-trash { background: #fde8ee; color: #a31645; }
.adm-pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.adm-pager a, .adm-pager strong, .adm-pager span {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-decoration: none;
}
.adm-pager strong { background: var(--ink); color: #fff; }
.adm-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.adm-editor-side { display: grid; gap: 12px; position: sticky; top: 84px; }
.adm-split, .adm-checks, .adm-actions, .adm-split-page { display: flex; gap: 12px; flex-wrap: wrap; }
.adm-split .adm-field { flex: 1; min-width: 180px; }
.adm-checks { display: grid; gap: 8px; }
.adm-check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; }
.adm-thumb { width: 100%; border-radius: 14px; margin-bottom: 10px; }
.adm-stack { display: grid; gap: 12px; }
.adm-comment header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-comment header span, .adm-empty { color: var(--muted); }
.adm-empty { margin: 8px 0; }
.adm-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.adm-tabs a { text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid #ece4d8; }
.adm-tabs a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.adm-alert { background: #fde8ee; color: #a31645; border-radius: 12px; padding: 12px 14px; }
.adm-alert.ok { background: #e7f6ea; color: #1d7a3a; }
.adm-split-page { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
.adm-login-body { min-height: 100vh; }
.adm-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.adm-login { width: min(420px, 100%); display: grid; }
.adm-login img { height: 42px; width: auto; }
.adm-login h1 { font-family: var(--serif); font-size: 36px; letter-spacing: -0.04em; margin: 12px 0 4px; }
.adm-login p { margin-top: 0; color: var(--muted); }
@media (max-width: 980px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side {
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  .adm-side.is-open { transform: none; }
  .adm-burger { display: inline-flex; }
  .adm-stats, .adm-editor, .adm-split-page { grid-template-columns: 1fr; }
  .adm-editor-side { position: static; }
  .adm-content { width: min(1120px, calc(100% - 28px)); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .topline-inner { min-height: 36px; }
  .topline-links { display: none; }
  .header-main {
    justify-content: flex-start;
    gap: 6px;
    min-height: 64px;
    flex-wrap: nowrap;
  }
  .logo { flex: 0 0 auto; }
  .logo img { height: 36px; width: auto; max-width: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-toggle, .header-tools .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }
  .header-tools { flex-wrap: nowrap; gap: 6px; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    background: #fff;
    padding: 8px 16px 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a {
    width: 100%;
    min-height: 46px;
    padding: 8px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }
  .main-nav a.store {
    align-self: stretch;
    width: auto;
    margin-top: 12px;
    border-bottom: 0;
    justify-content: center;
    min-height: 44px;
  }
  .search-panel .wrap { flex-wrap: nowrap; }
  .search-panel input { min-width: 0; }
  .search-panel button { flex: 0 0 auto; }
  .hero, .layout, .article-layout, .cards, .footer-grid, .stat-grid { grid-template-columns: 1fr; }
  .hero { margin-top: 16px; gap: 0; border-radius: 22px; }
  .hero-media { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .hero-copy { padding: 18px 18px 22px; }
  .hero h1, .article-head h1 { font-size: clamp(30px, 8.2vw, 42px); }
  .page-head h1 { font-size: clamp(32px, 9vw, 48px); }
  .hero p, .card p { margin-top: 0; }
  .article { margin-top: 16px; }
  .article-hero img { border-radius: 18px; max-height: 320px; }
  .article-layout { gap: 18px; }
  .prose { font-size: 1.08rem; }
  .cards { grid-template-columns: 1fr; }
  .card h2 { font-size: 22px; }
  .layout { gap: 18px; margin-bottom: 28px; }
  .footer-grid { gap: 22px; }
  .footer-grid div { display: grid; gap: 8px; align-content: start; }
  .cookie { left: 12px; right: 12px; bottom: 12px; }
  .cookie.is-open { flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions button { width: 100%; min-height: 44px; }
}
@media (max-width: 420px) {
  .wrap { width: min(1120px, calc(100% - 20px)); }
  .logo img { height: 32px; width: auto; max-width: none; }
  .header-main { gap: 4px; }
  .header-tools { gap: 4px; }
  .nav-toggle, .header-tools .icon-btn { padding: 0 8px; font-size: 13px; min-height: 36px; }
}
@media (max-width: 360px) {
  .logo img { height: 30px; width: auto; max-width: none; }
  .nav-toggle, .header-tools .icon-btn { padding: 0 6px; }
}
