:root {
  --bg: #ede4d9;
  --surface: #f9f8f6;
  --ink: #3a3128;
  --muted: #7c7063;
  --border: #d8cec3;
  --accent: #c8b49b;
  --accent-contrast: #3a3128;
  --ring: rgba(58, 49, 40, 0.12);
  --shadow: 0 12px 30px rgba(58, 49, 40, 0.08);
  --radius: 18px;
  --skeleton-base: #efe7dd;
  --skeleton-shine: #f8f4f0;
  --menu-bg: #f2e7d9;
  --menu-border: rgba(58, 49, 40, 0.12);
  --menu-text: #3a3128;
  --menu-highlight: rgba(58, 49, 40, 0.06);
  --menu-highlight-text: #3a3128;
  --menu-backdrop: rgba(58, 49, 40, 0.12);
}

html {
  scroll-behavior: smooth;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100vh;
  position: relative;
  opacity: 0;
  transform: translateY(8px);
}

body.is-ready .page {
  animation: pageIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.5;
  }
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: none;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.brand-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-weight: 700;
  font-size: 1rem;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
}

.nav-toggle-icon {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-icon::before {
  top: -8px;
}

.nav-toggle-icon::after {
  top: 8px;
}

.menu-open .nav-toggle-icon {
  background: transparent;
}

.menu-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  scrollbar-width: none;
}

.menu-header {
  display: none;
}

.site-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.menu-backdrop {
  display: none;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.theme-toggle {
  min-width: 44px;
  gap: 8px;
  padding: 8px 12px;
}

.theme-toggle-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.theme-icon-moon {
  display: none;
}

@media (max-width: 1100px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 24px;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
  }

  body.menu-open .nav-toggle {
    position: fixed;
    top: 52px;
    right: 20px;
    z-index: 40;
    background: transparent;
    border-color: transparent;
    color: var(--menu-text);
  }

  body.menu-open .nav-toggle-icon,
  body.menu-open .nav-toggle-icon::before,
  body.menu-open .nav-toggle-icon::after {
    background: var(--menu-text);
  }

  .site-menu {
    width: 100%;
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 30;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 96px 24px 28px;
    border-radius: 0;
    border: none;
    background: var(--menu-bg);
    box-shadow: none;
    max-height: 100vh;
    overflow-y: auto;
    transform: translateY(120%);
    transition: transform 0.28s ease, opacity 0.28s ease;
    opacity: 0;
    pointer-events: none;
  }

  .site-menu::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .site-menu {
    scrollbar-width: none;
  }

  .site-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--menu-border);
    opacity: 0;
    transform: translateY(10px);
  }

  .menu-logo {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(58, 49, 40, 0.08);
    color: var(--menu-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .menu-title {
    font-family: "Fraunces", serif;
    font-size: 1.9rem;
    line-height: 1.15;
    margin: 0;
    color: var(--menu-text);
  }

  .menu-subtitle {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--menu-text);
    opacity: 0.7;
  }

  .site-menu.is-open .menu-header {
    animation: menu-item-in 0.35s ease forwards;
  }

  .site-menu.is-open .topic-nav .topic-chip {
    animation: menu-item-in 0.35s ease forwards;
  }

  .site-menu.is-open .topic-nav .topic-chip:nth-child(1) {
    animation-delay: 0.14s;
  }

  .site-menu.is-open .topic-nav .topic-chip:nth-child(2) {
    animation-delay: 0.18s;
  }

  .site-menu.is-open .topic-nav .topic-chip:nth-child(3) {
    animation-delay: 0.22s;
  }

  .site-menu.is-open .topic-nav .topic-chip:nth-child(4) {
    animation-delay: 0.26s;
  }

  .site-menu.is-open .topic-nav .topic-chip:nth-child(5) {
    animation-delay: 0.3s;
  }

  .site-menu.is-open .header-actions {
    animation: menu-item-in 0.35s ease forwards;
    animation-delay: 0.34s;
  }

  @keyframes menu-item-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .topic-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: none;
  }

  .site-menu .topic-chip {
    width: 100%;
    justify-content: flex-start;
    padding: 16px 4px;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: none;
    color: var(--menu-text);
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: none;
    font-family: "Fraunces", serif;
    transform: translateY(8px);
  }

  .site-menu .topic-chip:hover {
    border-color: var(--menu-border);
    background: var(--menu-highlight);
    color: var(--menu-highlight-text);
    transform: none;
  }

  .header-actions {
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--menu-border);
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: stretch;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
  }

  .header-actions .btn {
    width: 100%;
    border-color: var(--menu-border);
    border-radius: 14px;
    color: var(--menu-text);
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 1.05rem;
    background: var(--menu-highlight);
  }

  .theme-toggle {
    order: 1;
  }

  .signout-button {
    order: 2;
  }

  .menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--menu-backdrop);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20;
  }

  .menu-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}
.topic-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.topic-chip:hover {
  background: var(--surface);
  border-color: var(--border);
  transform: translateY(-1px);
}

.topic-chip:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.topic-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.topic-actions-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.topic-action {
  border-color: var(--border);
  background: transparent;
}

@media (max-width: 720px) {
  .topic-actions {
    margin-top: 12px;
  }

  .topic-actions-label {
    font-size: 0.7rem;
  }
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  padding: 44px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.hero.hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy h1 {
  font-size: 3.7rem;
  margin: 12px 0 8px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-search {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.search-input {
  flex: 1;
  min-width: 220px;
  padding-left: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23827565' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px;
}

.search-select {
  min-width: 180px;
}

.search-submit {
  width: 100%;
}

.search-summary {
  font-size: 0.9rem;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-panel {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.panel-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.panel-value {
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 20px;
  }

  .pill {
    font-size: 0.75rem;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .hero-copy p {
    font-size: 0.95rem;
  }

  .hero-actions {
    margin-top: 14px;
  }
}
.post-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.skeleton-list {
  display: none;
}

.is-loading .skeleton-list {
  display: flex;
}

.is-loading .post-list:not(.skeleton-list) {
  display: none;
}

.skeleton-post {
  align-items: stretch;
}

.skeleton-line {
  border-radius: 999px;
  height: 14px;
  width: 100%;
  background: linear-gradient(90deg, var(--skeleton-base), var(--skeleton-shine), var(--skeleton-base));
  background-size: 180% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line-sm {
  width: 120px;
  height: 12px;
}

.skeleton-line-tag {
  width: 160px;
  height: 18px;
}

.skeleton-line-lg {
  height: 22px;
  width: 75%;
}

.skeleton-line-md {
  width: 90%;
}

.skeleton-thumb {
  border-radius: 16px;
  min-height: 160px;
  background: linear-gradient(90deg, var(--skeleton-base), var(--skeleton-shine), var(--skeleton-base));
  background-size: 180% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: -180% 0%;
  }
}

.post-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s ease;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item:hover {
  background: var(--bg);
}

.post-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-title {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0;
}

.post-title-link {
  color: var(--ink);
}

.post-title-link:hover {
  color: #5b5148;
}

.post-excerpt {
  color: var(--muted);
  line-height: 1.6;
}

.post-actions {
  margin-top: 6px;
}

.post-thumb {
  width: 220px;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.post-thumb-placeholder {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-media {
  margin: 8px 0 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.post-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.post-detail h1 {
  font-size: 2.2rem;
}

.prose {
  color: var(--ink);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-state {
  align-items: center;
  text-align: center;
  padding: 32px;
  gap: 12px;
}

@media (max-width: 720px) {
  .post-item {
    grid-template-columns: 1fr;
  }

  .post-thumb {
    width: 100%;
    height: 190px;
    order: -1;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.card-media {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

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

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-header {
  padding: 22px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 1.4rem;
  line-height: 1.3;
  display: inline-block;
}

.card-text {
  color: var(--muted);
  line-height: 1.6;
}

.card-actions {
  padding: 0 22px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px var(--ring);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(47, 42, 36, 0.2);
}

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

.btn-outline {
  background: var(--surface);
}
.form-shell .card-body {
  padding-top: 0;
}

.field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  font-weight: 600;
}

.input,
.textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

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

.image-drop {
  position: relative;
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 20px;
  background: var(--bg);
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.image-drop:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--surface);
}

.image-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-drop-title {
  font-weight: 600;
}

.image-drop-subtitle {
  font-size: 0.85rem;
}

.image-drop-filename {
  font-size: 0.8rem;
  color: var(--ink);
}

.image-preview {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  height: auto;
  display: block;
}
.per-page-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.per-page-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.per-page-select {
  width: auto;
  min-width: 110px;
}

.pagination .per-page-form {
  margin-left: auto;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 8px;
}

.pagination-top {
  margin-bottom: 12px;
}

.pagination-bottom {
  margin-top: 12px;
}

.page-indicator {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .pagination .per-page-form {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}
.auth-shell {
  display: flex;
  justify-content: center;
  padding: 12px;
}

.auth-card {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-header h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-input {
  background: var(--bg);
  border-color: var(--border);
}

.auth-input:focus {
  background: var(--surface);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-helper {
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-helper a {
  color: var(--ink);
}

.auth-helper a:hover {
  color: #5b5148;
}
.site-footer {
  margin-top: 24px;
  padding: 32px 28px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-heading {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--ink);
}

.footer-links a:hover {
  color: #5b5148;
}

.footer-muted {
  color: var(--muted);
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-link-btn:hover {
  color: #5b5148;
}

.footer-inline {
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 14px;
}

.notice-alert {
  background: var(--surface);
  border-color: var(--accent);
}

.alert {
  border: 1px solid #fda4af;
  background: #fff1f2;
  color: #9f1239;
  padding: 12px 16px;
  border-radius: 14px;
}

.alert ul {
  margin: 8px 0 0 16px;
  padding: 0;
}
body.clover-open {
  overflow: hidden;
}

.clover-chat {
  position: sticky;
  top: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 9999;
}

.clover-chat.clover-stuck {
  position: fixed;
  right: 24px;
  bottom: 24px;
  top: auto;
}

.clover-chat.clover-in-hero {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: auto;
}

.clover-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(20, 50, 32, 0.2);
  background: linear-gradient(135deg, #d7efd1, #b7dfae);
  color: #163521;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 18px 30px rgba(22, 53, 33, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clover-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(22, 53, 33, 0.24);
}

.clover-toggle-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.clover-toggle-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.clover-dialog {
  width: min(900px, 92vw);
  max-width: 900px;
  border: none;
  padding: 0;
  margin: auto;
  background: transparent;
  color: inherit;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.clover-dialog::backdrop {
  background: rgba(24, 20, 16, 0.6);
  backdrop-filter: blur(4px);
}

.clover-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: cloverDialogIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.clover-dialog.is-closing {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  animation: cloverDialogOut 0.2s ease;
}

.clover-dialog[open]::backdrop {
  animation: cloverBackdropIn 0.28s ease;
}

.clover-dialog.is-closing::backdrop {
  animation: cloverBackdropOut 0.2s ease;
}

.clover-panel {
  width: 100%;
  height: min(78vh, 720px);
  max-height: 78vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(28, 22, 17, 0.28);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clover-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.clover-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clover-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(22, 53, 33, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f4a2a;
}

.clover-avatar svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.clover-name {
  font-weight: 700;
}

.clover-subtitle {
  color: var(--muted);
  font-size: 0.8rem;
}

.clover-close {
  border: none;
  background: rgba(58, 49, 40, 0.08);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}

.clover-messages {
  background: #f6f1eb;
  border-radius: 18px;
  padding: 14px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(58, 49, 40, 0.08);
}

.clover-message {
  display: flex;
}

.clover-message--bot {
  justify-content: flex-start;
}

.clover-message--user {
  justify-content: flex-end;
}

.clover-message-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  background: #f2efe9;
  color: var(--ink);
}

.clover-message-bubble--typing {
  color: var(--muted);
}

.clover-typing-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.clover-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.4;
  animation: cloverDot 1.1s infinite ease-in-out;
}

.clover-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.clover-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.clover-message--user .clover-message-bubble {
  background: #1f4a2a;
  color: #f9f7f2;
}

.clover-suggestions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.clover-suggestion {
  border: 1px solid var(--border);
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.clover-suggestion:hover {
  border-color: #1f4a2a;
  color: #1f4a2a;
  background: rgba(31, 74, 42, 0.08);
}

.clover-form {
  display: flex;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.clover-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 0.95rem;
  background: #fff;
}

.clover-send {
  border: none;
  background: #1f4a2a;
  color: #f9f7f2;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 720px) {
  .clover-chat {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: auto;
    top: auto;
    align-items: flex-end;
  }

  .clover-chat.clover-stuck {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: auto;
    top: auto;
  }

  .clover-chat.clover-in-hero {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: auto;
    top: auto;
    align-items: flex-end;
  }

  .clover-toggle {
    justify-content: center;
  }

  .clover-panel {
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .clover-dialog {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
}

@keyframes cloverDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-4px);
    opacity: 0.85;
  }
}

@keyframes cloverDialogIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cloverDialogOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

@keyframes cloverBackdropIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes cloverBackdropOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.theme-transition body,
.theme-transition .site-header,
.theme-transition .site-menu,
.theme-transition .hero,
.theme-transition .hero-panel,
.theme-transition .post-list,
.theme-transition .post-item,
.theme-transition .card,
.theme-transition .site-footer,
.theme-transition .btn,
.theme-transition .input,
.theme-transition .textarea,
.theme-transition .auth-card,
.theme-transition .post-thumb,
.theme-transition .topic-chip,
.theme-transition .tag,
.theme-transition .pill,
.theme-transition .notice,
.theme-transition .notice-alert {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: inline;
}

:root[data-theme="dark"] {
  --bg: #1f1e1b;
  --surface: #292823;
  --ink: #ede7df;
  --muted: #b8b0a6;
  --border: #3b3832;
  --accent: #d0c7bb;
  --accent-contrast: #1f1e1b;
  --ring: rgba(237, 231, 223, 0.2);
  --shadow: 0 12px 30px rgba(8, 7, 6, 0.45);
  --skeleton-base: #2f2c27;
  --skeleton-shine: #3a3631;
  --menu-bg: #25221e;
  --menu-border: rgba(237, 231, 223, 0.1);
  --menu-text: #ede7df;
  --menu-highlight: rgba(237, 231, 223, 0.12);
  --menu-highlight-text: #ede7df;
  --menu-backdrop: rgba(8, 7, 6, 0.62);
}

:root[data-theme="dark"] body {
  background: var(--bg);
}

:root[data-theme="dark"] .hero-panel {
  background: #312f2a;
}

:root[data-theme="dark"] .notice {
  background: #2d2b26;
  border-color: #3b3832;
}

:root[data-theme="dark"] .notice-alert {
  background: #352f27;
  border-color: #4a4136;
}

:root[data-theme="dark"] .auth-input {
  background: #2d2b26;
  border-color: #4a4136;
  color: var(--ink);
}

:root[data-theme="dark"] .auth-input:focus {
  background: #36342f;
}

:root[data-theme="dark"] .topic-chip:hover {
  background: #3b3832;
}

:root[data-theme="dark"] .btn-ghost {
  border-color: #3b3832;
}

:root[data-theme="dark"] .clover-input {
  background: #1f1e1b;
  color: var(--ink);
}

:root[data-theme="dark"] .clover-message-bubble {
  background: #2f2c27;
}

:root[data-theme="light"] {
  --bg: #ede4d9;
  --surface: #f9f8f6;
  --ink: #3a3128;
  --muted: #7c7063;
  --border: #d8cec3;
  --accent: #c8b49b;
  --accent-contrast: #3a3128;
  --ring: rgba(58, 49, 40, 0.12);
  --shadow: 0 12px 30px rgba(58, 49, 40, 0.08);
}

:root[data-theme="light"] body {
  background: var(--bg);
}

:root[data-theme="light"] .hero-panel {
  background: var(--surface);
}

:root[data-theme="light"] .notice {
  background: var(--surface);
  border-color: var(--border);
}

:root[data-theme="light"] .notice-alert {
  background: #d8cec3;
  border-color: var(--border);
}

:root[data-theme="light"] .auth-input {
  background: var(--bg);
  border-color: var(--border);
  color: var(--ink);
}

:root[data-theme="light"] .auth-input:focus {
  background: var(--surface);
}

:root[data-theme="light"] .topic-chip:hover {
  background: var(--surface);
}

:root[data-theme="light"] .post-item:hover {
  background: #e4d6c8;
}

:root[data-theme="light"] .btn-ghost {
  border-color: var(--border);
}
/*
















 */
