  :root {
    --bg: #f7f6f2;
    --paper: #fffefa;
    --ink: #151515;
    --muted: #77736a;
    --line: #dedbd2;
    --soft: #ece8dd;
    --accent: #151515;
    --danger: #9f2a24;
    --radius: 6px;
    --font: Avenir, "Avenir Next", Montserrat, "Helvetica Neue", Arial, sans-serif;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
  }

  button, input, textarea, select {
    font: inherit;
  }

  button {
    cursor: pointer;
  }

  .shell {
    min-height: 100vh;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px clamp(18px, 4vw, 56px);
    background: rgba(247, 246, 242, 0.9);
    border-bottom: 1px solid rgba(21, 21, 21, 0.08);
    backdrop-filter: blur(14px);
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--ink);
  }

  .brand img {
    width: 92px;
    height: auto;
    display: block;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .user-chip {
    color: var(--muted);
    font-size: 13px;
  }

  .btn {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    min-height: 40px;
    padding: 0 18px;
    border-radius: var(--radius);
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  .btn.secondary {
    background: transparent;
    color: var(--ink);
  }

  .btn.text {
    min-height: auto;
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 7px 4px;
  }

  .hero {
    min-height: 420px;
    display: grid;
    place-items: center;
    padding: 70px 18px 42px;
    text-align: center;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    margin: 0;
    font-size: clamp(24px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0;
  }
  .hero h1 span {
    display: block;
    white-space: nowrap;
  }

  .hero-copy {
  max-width: 100%;
  width: 100%;
  text-align: center;
}

.hero h1 {
  width: 100%;
  text-align: center;
}

.hero h1 span {
  display: block;
  width: 100%;
  white-space: nowrap;
  text-align: center;
}

  .hero p {
    margin: 20px auto 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 16px;
  }

  .section-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
    flex-wrap: wrap;
  }

  .section-switch .btn.active {
    background: var(--ink);
    color: var(--paper);
  }

  .content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px clamp(18px, 4vw, 56px) 70px;
  }

  .section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
  }

  .section-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 400;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 160px)) auto;
    gap: 8px;
    margin-bottom: 24px;
    align-items: end;
    justify-content: start;
  }

  .field label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
  }

  .field input,
  .field select,
  .field textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    padding: 9px 11px;
    outline: none;
  }

  .field textarea {
    min-height: 150px;
    resize: vertical;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .latest-list {
    display: grid;
    gap: 16px;
  }

  .latest-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 220px;
  }

  .latest-card .cover {
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .excerpt {
    color: #3a3935;
    margin: 10px 0 16px;
    max-height: 96px;
    overflow: hidden;
  }

  .card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
  }

  .cover {
    aspect-ratio: 1 / 1;
    background: var(--soft);
    display: grid;
    place-items: center;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
  }

  .article-film .cover {
    aspect-ratio: 2 / 3;
  }

  .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .card-body {
    padding: 15px;
  }

  .card-title {
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 0;
    margin: 0 0 8px;
    text-align: left;
    font-size: 18px;
    font-weight: 400;
  }

  .meta {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
  }

  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
  }

  .tag {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    padding: 3px 8px;
    font-size: 12px;
  }

  .card-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .icon-btn {
    min-height: 36px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .icon-btn.active {
    background: var(--soft);
    border-color: var(--ink);
  }

  .icon-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
  }

  .icon-label {
    font-size: 11px;
  }

  .stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 18px;
  }

  .star-btn {
    border: 0;
    background: transparent;
    color: var(--line);
    font-size: 24px;
    line-height: 1;
    padding: 2px;
  }

  .star-btn.active {
    color: var(--ink);
  }

  .empty {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 36px;
    text-align: center;
    color: var(--muted);
  }

  .modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(21, 21, 21, 0.28);
  }

  .modal-backdrop.open {
    display: flex;
  }

  .modal {
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 24px;
  }

  .modal-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
  }

  .modal h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
  }

  .close {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: var(--ink);
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .full {
    grid-column: 1 / -1;
  }

  .notice {
    color: var(--muted);
    font-size: 13px;
    margin: 10px 0 0;
  }

  .error {
    color: var(--danger);
  }

  .article-detail {
    white-space: pre-wrap;
    color: #2b2b2b;
  }

  .comments {
    margin-top: 24px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }

  .comment {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }

  @media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filters { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  }

  @media (max-width: 620px) {
    .topbar { align-items: flex-start; }
    .brand img { width: 78px; }
    .grid { grid-template-columns: 1fr; }
    .latest-card { grid-template-columns: 1fr; }
    .latest-card .cover {
      aspect-ratio: 1 / 1;
      border-right: 0;
      border-bottom: 1px solid var(--line);
    }
    .latest-card.article-film .cover {
      aspect-ratio: 2 / 3;
    }
    .filters { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
  }

  .hero-copy {
  max-width: 100%;
  width: 100%;
  text-align: center;
}

.hero h1 {
  width: 100%;
  margin: 0;
  font-size: clamp(24px, 4.4vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
}

.hero h1 span {
  display: block;
  width: 100%;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(17px, 5.2vw, 28px);
  }
}