:root {
  --bg: #ece4d8;
  --bg-accent: #dfd1bf;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-strong: #fffaf3;
  --border: #d3c1ab;
  --text: #2f241b;
  --muted: #6f5e50;
  --link: #7a4b2f;
  --link-hover: #5f3721;
  --button: #8a5a3c;
  --button-hover: #73462d;
  --button-text: #fffaf5;
  --danger: #8f2f2c;
  --danger-hover: #732523;
  --shadow: 0 12px 30px rgba(66, 43, 23, 0.10);
  --shadow-soft: 0 6px 18px rgba(66, 43, 23, 0.07);
}

* { box-sizing: border-box; }

html {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.45), transparent 36%),
    linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 180px, #f3ece2 100%);
  min-height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}

a:hover {
  color: var(--link-hover);
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}

input, textarea, select {
  border: 1px solid #c9b7a0;
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #9b6b4c;
  box-shadow: 0 0 0 4px rgba(155, 107, 76, 0.16);
  background: #fff;
}

button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(89, 53, 31, 0.18);
  transition: transform .14s ease, background-color .18s ease, box-shadow .18s ease;
}

button:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(89, 53, 31, 0.22);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

button.danger,
.danger {
  background: var(--danger);
  color: #fff;
}

button.danger:hover,
.danger:hover {
  background: var(--danger-hover);
}

pre {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.muted {
  color: var(--muted) !important;
}

ul {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
}

li {
  margin: 0;
  padding: 2px 0;
}

table {
  background: transparent;
}

th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
}

th, td {
  border-bottom-color: rgba(127, 103, 79, 0.18) !important;
}

img {
  box-shadow: var(--shadow);
}

audio {
  margin-top: 8px;
  border-radius: 12px;
}

.toolbar, .admin-links, .inline {
  align-items: center;
}

::selection {
  background: rgba(138, 90, 60, 0.22);
}


.section-gap {
  margin-top: 28px;
}

/* ===== Page Slide Transition ===== */

.page-enter-from-left {
  animation: pageEnterFromLeft .35s ease both;
}

.page-enter-from-right {
  animation: pageEnterFromRight .35s ease both;
}

.page-enter-from-bottom {
  animation: pageEnterFromBottom .35s ease both;
}

.page-exit-left {
  animation: pageExitLeft .35s ease both;
}

.page-exit-right {
  animation: pageExitRight .35s ease both;
}

.page-exit-up {
  animation: pageExitUp .35s ease both;
}

@keyframes pageEnterFromLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pageEnterFromRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pageEnterFromBottom {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pageExitLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}

@keyframes pageExitRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

@keyframes pageExitUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-40px); }
}