﻿:root {
  --bg: #f7f4ed;
  --panel: #ffffff;
  --panel-alt: #f1ece2;
  --border: #d7cfbf;
  --text: #1f2933;
  --muted: #5f6c76;
  --accent: #8b4f2b;
  --accent-strong: #6d3d20;
  --danger: #a64032;
  --shadow: 0 14px 40px rgba(56, 42, 28, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
  color: var(--text);
}

img,
video {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.brand {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(241, 236, 226, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.72);
}

.site-nav-link.is-active {
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.site-utility {
  display: flex;
  align-items: center;
}

.site-auth-link {
  min-height: 2.85rem;
}

.site-auth-link.is-active {
  background: var(--accent);
  color: #fff;
}

.site-auth-link.is-active:hover,
.site-auth-link.is-active:focus-visible {
  background: var(--accent-strong);
  color: #fff;
}

.brand:hover {
  color: var(--accent);
}

.page {
  padding: 2rem 0 4rem;
}

.hero,
.detail-header,
.panel,
.card,
.empty-state {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero,
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2 {
  margin-top: 0;
}

.lede,
.muted,
table,
label span,
p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--panel-alt);
  border-bottom: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

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

.media-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--accent-strong);
  font-weight: 700;
  background: radial-gradient(circle at top left, #eadfce, #f3ede1 60%);
}

.card-body,
.panel,
.empty-state {
  padding: 1.4rem;
}

.card-body h2 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.card-body a {
  color: var(--text);
  text-decoration: none;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.price-chip {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #efe5d8;
  color: var(--accent-strong);
  font-weight: 700;
}

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

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.1rem;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

.button,
button[type="submit"] {
  background: var(--accent);
  color: #fff;
}

.button:hover,
button[type="submit"]:hover {
  background: var(--accent-strong);
}

.button.secondary {
  background: var(--panel-alt);
  color: var(--text);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #e4dccd;
  color: var(--text);
}

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

.stack-lg > * + * {
  margin-top: 1.5rem;
}

.stack-md > * + * {
  margin-top: 1rem;
}

.stack-sm > * + * {
  margin-top: 0.75rem;
}

.top-gap {
  margin-top: 1rem;
}

label {
  display: block;
}

label span {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

input[type="text"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.actions {
  white-space: nowrap;
}

.preview-cell {
  width: 96px;
}

.thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.media-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.media-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}

.media-card img,
.media-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #000;
}

.media-copy {
  padding: 1rem;
}

.linked-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #fff1ef;
  color: #8d2d21;
  border: 1px solid #efc6c0;
}

.field-hint {
  margin: 0;
  font-size: 0.95rem;
}

.muted-panel {
  background: var(--panel-alt);
}

.empty-state {
  padding: 2rem;
  text-align: center;
}

code {
  background: var(--panel-alt);
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
}

@media (max-width: 760px) {
  .hero,
  .detail-header,
  .header-inner,
  .header-actions,
  .linked-item {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav-link,
  .site-auth-link {
    width: 100%;
  }
}
