:root {
  --bg: #f5f1e8;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --text: #1c1917;
  --muted: #6b625c;
  --accent: #c9732f;
  --accent-dark: #8c4712;
  --border: #e6dbc9;
  --shadow: 0 18px 60px rgba(28, 25, 23, 0.08);
  --radius: 20px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(201, 115, 47, 0.16), transparent 35%),
    linear-gradient(180deg, #fbf6ee 0%, var(--bg) 100%);
}

img {
  display: block;
  max-width: 100%;
  border-radius: 16px;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 760px);
}

.landing-shell,
.site-main {
  padding-bottom: 4rem;
}

.landing-hero,
.module,
.status-page {
  padding: 5rem 0 2rem;
}

.landing-hero,
.card,
.module,
.site-header {
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
}

.landing-hero,
.card,
.module,
.status-page {
  width: min(calc(100% - 2rem), var(--container));
  margin: 1rem auto 0;
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding-inline: 2rem;
}

.landing-actions,
.highlight-grid,
.gallery-grid,
.contact-list,
.site-nav,
.landing-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.landing-grid {
  width: min(calc(100% - 2rem), var(--container));
  margin: 1rem auto 0;
}

.card {
  flex: 1 1 260px;
  padding-block: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.button-secondary {
  background: #efe2d0;
  color: var(--accent-dark);
}

.admin-body-editor .button {
  background: #2563eb;
  color: #fff;
}

.admin-body-editor .button-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 246, 238, 0.88);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.module h1,
.landing-hero h1 {
  margin-top: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.module h2,
.card h2 {
  margin-top: 0;
}

.highlight-card {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.contact-list {
  padding: 0;
  list-style: none;
}

.map-frame {
  overflow: hidden;
  margin-top: 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.map-frame iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
}

.muted,
code,
.status-page p {
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-header .container {
    align-items: flex-start;
    padding-block: 1rem;
    flex-direction: column;
  }

  .landing-hero,
  .card,
  .module,
  .status-page {
    padding-inline: 1.25rem;
  }
}

.admin-body {
  background: linear-gradient(180deg, #f2efe8 0%, #e9e1d5 100%);
}

.admin-body-editor {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
  color: #16202b;
}

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

.admin-shell-wide {
  width: min(calc(100% - 1rem), 1880px);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(28, 25, 23, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-body-editor .admin-header {
  background: rgba(18, 25, 38, 0.92);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.admin-header .brand,
.admin-header .site-nav a {
  color: #f7efe1;
}

.admin-body-editor .admin-header .brand,
.admin-body-editor .admin-header .site-nav a {
  color: #f8fafc;
}

.admin-header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-main {
  padding: 2rem 0 4rem;
}

.admin-card {
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-card-header h1,
.admin-card-header h2,
.admin-module-head h3 {
  margin: 0;
}

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

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

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.admin-form-grid,
.admin-module-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-form-grid label,
.admin-module-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea,
.admin-inline-form input,
.admin-inline-form select,
.admin-module-form input,
.admin-module-form select,
.admin-module-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d8cbb7;
  border-radius: 12px;
  background: white;
  font: inherit;
}

.admin-form-grid textarea,
.admin-module-form textarea {
  min-height: 180px;
  resize: vertical;
}

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

.admin-stack {
  display: grid;
  gap: 1rem;
}

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

.admin-inline-form,
.admin-module-form {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: 2fr 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
}

.admin-check input {
  width: auto;
  min-height: auto;
}

.admin-module-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  grid-column: 1 / -1;
}

.admin-advanced summary {
  cursor: pointer;
  font-weight: 700;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: #f1e3d1;
  color: #7a4a21;
  font-size: 0.9rem;
}

.admin-pill-live {
  background: #dff6e6;
  color: #166534;
}

.editor-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr) 312px;
  gap: 0.75rem;
  min-height: calc(100vh - 130px);
}

.editor-commandbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.35rem 0.55rem;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.editor-commandbar-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.editor-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 0.7rem;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  font-size: 0.9rem;
}

.editor-command.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.editor-command.status {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.editor-command.subtle {
  background: #f8fafc;
  color: #475569;
}

.editor-panel {
  min-height: 0;
  background: rgba(255, 250, 242, 0.96);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-body-editor .editor-panel {
  background: rgba(248, 250, 252, 0.98);
  border-color: #d7e0ea;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.editor-panel-left,
.editor-panel-right {
  display: flex;
  flex-direction: column;
}

.editor-panel-head,
.editor-toolbar {
  padding: 0.8rem 0.8rem 0;
}

.editor-panel-head h1,
.editor-panel-head h2 {
  margin: 0;
}

.editor-module-list {
  display: grid;
  gap: 0.35rem;
  overflow: auto;
}

.editor-help {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.editor-reorder-form {
  display: none;
}

.editor-sidebar-section {
  padding: 0.75rem;
}

.editor-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.editor-sidebar-head h2,
.editor-properties-group h3 {
  margin: 0;
}

.editor-page-links {
  display: grid;
  gap: 0.75rem;
}

.editor-page-link {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.admin-body-editor .editor-page-link,
.admin-body-editor .editor-module-item,
.admin-body-editor .editor-properties-group,
.admin-body-editor .editor-library-summary,
.admin-body-editor .editor-library-item,
.admin-body-editor .editor-status-card,
.admin-body-editor .editor-info-card {
  border-color: #d7e0ea;
  background: #ffffff;
}

.editor-page-link span {
  color: var(--muted);
  font-size: 0.88rem;
}

.editor-page-link.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(201, 115, 47, 0.15);
}

.admin-body-editor .editor-page-link.is-selected,
.admin-body-editor .editor-library-item.is-selected,
.admin-body-editor .editor-module-row.is-selected {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.editor-module-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  padding: 0.3rem;
  border: 1px solid transparent;
  border-radius: 8px;
}

.editor-module-row.is-selected {
  background: rgba(201, 115, 47, 0.08);
  border-color: rgba(201, 115, 47, 0.18);
}

.admin-body-editor .editor-module-row.is-selected {
  background: rgba(37, 99, 235, 0.06);
}

.editor-module-row.is-dragging {
  opacity: 0.5;
}

.editor-module-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  min-width: 0;
}

.editor-module-main {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.editor-module-item strong,
.editor-module-item span {
  display: block;
}

.editor-module-item strong {
  font-size: 0.96rem;
  line-height: 1.15;
}

.editor-module-item span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-module-toolbar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.editor-row-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: nowrap;
}

.editor-icon-button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-body-editor .editor-icon-button {
  border-color: #d7e0ea;
  background: #f8fafc;
  color: #0f172a;
}

.editor-icon-drag {
  border-style: dashed;
  background: #fbf5ed;
  cursor: grab;
}

.admin-body-editor .editor-icon-drag {
  background: #eff6ff;
  border-color: #93c5fd;
}

.editor-icon {
  font-size: 0.78rem;
  line-height: 1;
}

.editor-state {
  font-size: 0.85rem;
  color: var(--muted);
}

.editor-state.is-on {
  color: #166534;
}

.editor-state.is-off {
  color: #9a3412;
}

.editor-panel-center {
  display: flex;
  flex-direction: column;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.editor-feedback {
  margin: 0.75rem 0.75rem 0;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #b8dfc4;
  background: #edf9f0;
  color: #166534;
}

.admin-body-editor .editor-feedback {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.editor-preview-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 0;
  flex-wrap: wrap;
}

.editor-toolbar-group,
.editor-site-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.editor-preview-frame {
  flex: 1;
  padding: 0.75rem;
}

.editor-preview-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 860px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.admin-body-editor .editor-preview-frame iframe {
  border-color: #cbd5e1;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.editor-properties {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
  overflow: auto;
}

.editor-properties-group,
.editor-library-summary {
  display: grid;
  gap: 0.75rem;
  padding: 0.8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.editor-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.editor-side-status {
  display: grid;
  gap: 0.5rem;
  padding: 0 0.75rem 0.75rem;
}

.editor-status-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.editor-status-card small {
  color: var(--muted);
}

.editor-properties label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.editor-properties input,
.editor-properties select,
.editor-properties textarea {
  width: 100%;
  min-height: 36px;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d8cbb7;
  border-radius: 8px;
  background: white;
  font: inherit;
}

.admin-body-editor .editor-properties input,
.admin-body-editor .editor-properties select,
.admin-body-editor .editor-properties textarea {
  border-color: #cbd5e1;
  background: #fff;
}

.editor-properties textarea {
  min-height: 120px;
  resize: vertical;
}

.editor-library {
  border-top: 1px solid var(--border);
}

.editor-library-list {
  display: grid;
  gap: 0.35rem;
}

.editor-library-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.editor-library-item.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(201, 115, 47, 0.15);
}

.editor-library-item span,
.editor-library-item small,
.editor-empty {
  color: var(--muted);
}

.editor-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0;
}

.editor-info-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.7rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.editor-action-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-body-editor .eyebrow {
  color: #2563eb;
}

.admin-body-editor .muted,
.admin-body-editor code {
  color: #64748b;
}

.admin-body-editor .admin-pill {
  background: #e2e8f0;
  color: #334155;
}

.admin-body-editor .admin-pill-live {
  background: #dbeafe;
  color: #1d4ed8;
}

@media (max-width: 860px) {
  .admin-form-grid,
  .admin-module-form,
  .admin-inline-form {
    grid-template-columns: 1fr;
  }

  .editor-shell {
    grid-template-columns: 1fr;
  }

  .editor-toolbar,
  .editor-info-grid,
  .editor-module-row {
    grid-template-columns: 1fr;
  }

  .editor-commandbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
