:root {
  --bg: #0d1713;
  --panel: rgba(13, 23, 19, 0.78);
  --panel-soft: rgba(255, 250, 239, 0.9);
  --panel-muted: rgba(247, 240, 224, 0.82);
  --text: #f8f4eb;
  --text-dark: #1c1a18;
  --muted: #d9d0c0;
  --accent: #d5a85b;
  --accent-dark: #6f4d22;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --radius-sm: 16px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Alegreya Sans", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(6, 12, 10, 0.66), rgba(6, 12, 10, 0.72)),
    url("/assets/hero-default.jpg") center center / cover no-repeat fixed;
}

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

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

.site-shell {
  min-height: 100vh;
  backdrop-filter: blur(1px);
}

.wrap {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(10, 18, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 16px 0;
}

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

.brand-title {
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.nav a,
.nav button,
.button,
button,
input[type="submit"] {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.nav-link,
.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.nav-link:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.button-primary,
input[type="submit"],
.top-action {
  background: linear-gradient(135deg, #d3ad6b, #b77b34);
  color: #1d1308;
  font-weight: 700;
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-side,
.panel,
.flash,
.cookie-banner {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
  background: linear-gradient(160deg, rgba(10, 19, 15, 0.88), rgba(32, 43, 37, 0.68));
  border: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(213, 168, 91, 0.18);
  color: #f0d4a0;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: "Alegreya", Georgia, serif;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.94;
}

.hero p {
  margin: 0;
  max-width: 54ch;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--muted);
}

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

.hero-side {
  padding: 28px;
  background: linear-gradient(180deg, rgba(246, 239, 224, 0.96), rgba(235, 224, 203, 0.88));
  color: var(--text-dark);
}

.hero-side h2,
.section-header h2,
.panel h2,
.card h3,
.admin-grid h2 {
  font-family: "Alegreya", Georgia, serif;
}

.section {
  padding: 22px 0 34px;
}

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

.section-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

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

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.one {
  grid-template-columns: 1fr;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--panel-soft);
  color: var(--text-dark);
  border-radius: 26px;
  min-height: 100%;
}

.card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #526d5f, #242b28);
}

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

.card-body {
  padding: 22px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.65rem;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(111, 77, 34, 0.09);
  color: #6f4d22;
  font-size: 0.9rem;
}

.card p,
.panel p,
.copy p {
  line-height: 1.6;
}

.admin-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 10px;
}

.icon-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 17, 14, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.icon-link.danger {
  background: rgba(108, 23, 23, 0.88);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 22px;
}

.panel {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.panel.soft {
  background: var(--panel-soft);
  color: var(--text-dark);
}

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

.gallery-tile {
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.08);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.copy strong {
  color: var(--text);
}

.flash {
  margin: 18px auto 0;
  padding: 15px 18px;
  background: rgba(42, 72, 54, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.flash.error {
  background: rgba(107, 32, 32, 0.9);
}

.page {
  padding: 28px 0 60px;
}

.page-header {
  margin-bottom: 22px;
}

.page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-family: "Alegreya", Georgia, serif;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.94rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 14px 15px;
  font: inherit;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.soft .field input,
.soft .field textarea,
.soft .field select,
.table-wrap input,
.table-wrap textarea,
.table-wrap select {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(28, 26, 24, 0.12);
}

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

.field.checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.field.checkbox input {
  width: auto;
}

.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.stack {
  display: grid;
  gap: 14px;
}

.table-wrap {
  overflow: auto;
  background: var(--panel-soft);
  color: var(--text-dark);
  border-radius: 24px;
  padding: 18px;
}

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

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(28, 26, 24, 0.08);
  vertical-align: top;
}

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

.soft .muted,
.table-wrap .muted {
  color: #6f675b;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 420px;
  padding: 18px;
  background: rgba(255, 248, 236, 0.96);
  color: var(--text-dark);
}

.cookie-banner h3 {
  margin: 0 0 8px;
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.45rem;
}

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

.empty-state {
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  color: var(--muted);
}

.footer {
  padding: 32px 0 48px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .layout,
  .footer-grid,
  .cards,
  .cards.two,
  .gallery-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }
}

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

  .hero-copy,
  .hero-side,
  .panel,
  .card-body {
    padding: 20px;
  }

  .topbar-inner,
  .split {
    align-items: start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav-link,
  .button,
  button,
  input[type="submit"] {
    width: 100%;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}
