:root {
  --bg: #050505;
  --panel: #0f0d0a;
  --panel-soft: #17130e;
  --text: #f7eedc;
  --muted: #c8bda8;
  --line: rgba(217, 181, 109, 0.32);
  --accent: #d9b56d;
  --accent-deep: #9b7432;
  --shadow: rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(217, 181, 109, 0.12), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.page-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(217, 181, 109, 0.18);
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

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

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.language-switcher {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0.2rem;
}

.language-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.45rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button.active {
  background: var(--accent);
  color: #100c05;
}

.section-band {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 4.25rem);
  place-items: center;
  isolation: isolate;
}

.blog-hero {
  display: grid;
  min-height: 42vh;
  place-items: start;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0.94)),
    repeating-linear-gradient(120deg, rgba(217, 181, 109, 0.08) 0 1px, transparent 1px 5rem);
}

.blog-heading {
  width: min(1120px, 100%);
  max-width: none;
  text-align: left;
}

.blog-heading h1 {
  max-width: none;
  margin-inline: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  white-space: nowrap;
}

.blog-heading .hero-copy {
  max-width: 760px;
  margin: 1rem 0 0;
}

.hero::before {
  position: absolute;
  inset: 2rem;
  z-index: -1;
  content: "";
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(217, 181, 109, 0.16) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(217, 181, 109, 0.16) 50%, transparent 50.2%);
  opacity: 0.65;
}

.hero-content {
  width: min(920px, 100%);
  text-align: center;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2rem, 5vw, 5.4rem);
  max-width: 30ch;
  margin-inline: auto;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
}

h3 {
  font-size: 1.25rem;
}

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

.hero-copy {
  max-width: 720px;
  margin: 1.5rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.75rem 1.2rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #100c05;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button.small {
  width: 100%;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-orbit span {
  position: absolute;
  color: rgba(217, 181, 109, 0.26);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2rem, 5vw, 5rem);
}

.hero-orbit span:nth-child(1) {
  top: 18%;
  left: 12%;
}

.hero-orbit span:nth-child(2) {
  right: 16%;
  top: 21%;
}

.hero-orbit span:nth-child(3) {
  bottom: 18%;
  left: 18%;
}

.hero-orbit span:nth-child(4) {
  right: 12%;
  bottom: 20%;
}

.celestial-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 0 clamp(1rem, 5vw, 5rem);
  color: var(--accent);
}

.celestial-divider span {
  height: 1px;
  background: var(--line);
}

.section-heading {
  max-width: 760px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered p:last-child {
  max-width: 620px;
  margin-inline: auto;
}

.intro-grid,
.wisdom,
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.reader-card,
.principles article,
.service-card,
.booking-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(23, 19, 14, 0.92), rgba(8, 8, 8, 0.94));
  box-shadow: 0 22px 60px var(--shadow);
}

.reader-card {
  padding: 1rem;
}

.reader-card p {
  padding: 0 1rem 0.5rem;
}

.portrait-frame {
  display: grid;
  min-height: 390px;
  place-items: center;
  border: 1px solid rgba(217, 181, 109, 0.22);
  background:
    linear-gradient(rgba(5, 5, 5, 0.28), rgba(5, 5, 5, 0.74)),
    radial-gradient(circle at 50% 28%, rgba(217, 181, 109, 0.35), transparent 8rem),
    linear-gradient(135deg, #1f1710, #050505);
  background-position: center;
  background-size: cover;
}

.portrait-frame span {
  color: var(--accent);
  font-size: 7rem;
}

.principles {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.principles article {
  padding: 1.35rem;
}

.principles span {
  color: var(--accent);
  font-weight: 900;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 24rem;
  flex-direction: column;
  padding: 1.25rem;
}

.service-card::before {
  position: absolute;
  inset: 0.55rem;
  content: "";
  border: 1px solid rgba(217, 181, 109, 0.18);
  pointer-events: none;
}

.card-symbol {
  display: grid;
  width: 4.25rem;
  height: 5.9rem;
  place-items: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 2rem;
}

.service-card strong {
  display: block;
  margin-top: auto;
  color: var(--text);
}

.wisdom {
  background:
    linear-gradient(rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.86)),
    repeating-linear-gradient(90deg, rgba(217, 181, 109, 0.08) 0 1px, transparent 1px 7rem);
}

.wisdom-copy {
  max-width: 700px;
}

blockquote {
  margin: 2rem 0 0.6rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  color: var(--text);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.3;
}

cite {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.booking {
  display: grid;
  place-items: center;
}

.booking-panel {
  width: min(940px, 100%);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.blog-browser {
  display: grid;
  gap: 2rem;
}

.blog-controls {
  display: grid;
  grid-template-columns: minmax(14rem, 1.4fr) repeat(3, minmax(9rem, 1fr)) auto;
  gap: 0.8rem;
  align-items: end;
  border: 1px solid var(--line);
  background: rgba(15, 13, 10, 0.72);
  padding: 1rem;
}

.blog-controls label,
.blog-manager label {
  display: grid;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.blog-controls input,
.blog-controls select,
.blog-manager input,
.blog-manager select,
.blog-manager textarea {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  background: #050505;
  color: var(--text);
  padding: 0.65rem;
  font: inherit;
}

.featured-post,
.blog-grid {
  display: grid;
  gap: 1rem;
}

.featured-post-card,
.blog-card,
.blog-empty {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(23, 19, 14, 0.92), rgba(8, 8, 8, 0.96));
  box-shadow: 0 22px 60px var(--shadow);
}

.featured-post-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  min-height: 28rem;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  display: grid;
  min-height: 100%;
}

.blog-card-media {
  display: grid;
  min-height: 13rem;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 28%, rgba(217, 181, 109, 0.28), transparent 8rem),
    linear-gradient(135deg, #1f1710, #050505);
}

.featured-post-card .blog-card-media {
  min-height: 100%;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

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

.blog-card-symbol {
  color: var(--accent);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
}

.blog-card-content {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.blog-card-content h2 {
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  overflow-wrap: anywhere;
}

.blog-card-content p {
  margin: 0;
}

.blog-card-tags,
.tag-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.blog-card-tags span,
.tag-check {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.blog-card details {
  border-top: 1px solid rgba(217, 181, 109, 0.18);
  padding-top: 0.8rem;
}

.blog-card summary,
.featured-post-card summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 900;
}

.blog-entry-body {
  margin-top: 1rem;
  color: var(--muted);
}

.blog-entry-body h2,
.blog-entry-body h3 {
  margin: 1.5rem 0 0.65rem;
  color: var(--text);
}

.blog-entry-body img {
  max-width: 100%;
  border: 1px solid var(--line);
}

.blog-results-meta {
  color: var(--accent);
  font-weight: 900;
}

.blog-empty {
  display: grid;
  place-items: center;
  padding: 3rem;
  text-align: center;
}

.booking-panel p {
  max-width: 650px;
  margin-inline: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #030303;
}

.site-footer h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.footer-links {
  justify-content: end;
}

.editor-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #100c05;
  padding: 0.85rem 1rem;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.admin-page.locked {
  overflow: hidden;
}

.admin-page.locked .admin-content,
.admin-page.locked .editor-toggle,
.admin-page.locked .editor-panel {
  visibility: hidden;
}

.admin-lock {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(217, 181, 109, 0.18), transparent 24rem),
    var(--bg);
}

.admin-lock-card {
  display: grid;
  width: min(430px, 100%);
  gap: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(23, 19, 14, 0.96), rgba(5, 5, 5, 0.98));
  padding: clamp(1.5rem, 5vw, 2.5rem);
  box-shadow: 0 22px 60px var(--shadow);
}

.admin-lock-card h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
}

.admin-lock-card p {
  margin: 0;
}

.admin-lock-card label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 800;
}

.admin-lock-card input {
  min-height: 2.8rem;
  border: 1px solid var(--line);
  background: #050505;
  color: var(--text);
  padding: 0.7rem;
  font: inherit;
}

.admin-error {
  min-height: 1.5rem;
  color: #ffb7a8;
  font-weight: 800;
}

.editor-panel {
  position: fixed;
  top: 0;
  right: -100vw;
  z-index: 60;
  display: flex;
  width: min(620px, 100vw);
  height: 100vh;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding: 1rem;
  border-left: 1px solid var(--line);
  background: rgba(10, 9, 7, 0.98);
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.45);
  transition: right 220ms ease;
}

.editor-panel.open,
.editor-panel[aria-hidden="false"] {
  right: 0;
}

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

.editor-header p,
.editor-header h2 {
  margin: 0;
}

.editor-header h2 {
  font-size: 1.4rem;
}

.editor-section-heading {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.editor-section-heading p,
.editor-section-heading h3 {
  margin: 0;
}

.editor-section-heading p {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.icon-button.compact {
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 2.7rem;
  font-size: 1.2rem;
}

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

.editor-panel label,
.switch-row {
  display: grid;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.switch-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.editor-panel input,
.editor-panel select {
  min-height: 2.7rem;
  width: 100%;
  border: 1px solid var(--line);
  background: #050505;
  color: var(--text);
  padding: 0.65rem;
  font: inherit;
}

.symbol-editor {
  display: grid;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.symbol-editor h3 {
  font-size: 1rem;
}

.blog-manager {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.blog-admin-actions,
.inline-field {
  display: flex;
  gap: 0.6rem;
}

.blog-admin-actions {
  flex-wrap: wrap;
}

.inline-field input {
  min-width: 0;
}

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

.tag-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

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

.rich-editor-shell {
  display: grid;
  gap: 0.65rem;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rich-toolbar button,
.rich-toolbar select {
  min-height: 2.35rem;
  border: 1px solid var(--line);
  background: #050505;
  color: var(--text);
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.post-body-editor {
  min-height: 18rem;
  border: 1px solid var(--line);
  background: #050505;
  color: var(--muted);
  padding: 1rem;
  outline: none;
}

.post-body-editor:focus {
  border-color: var(--accent);
}

.post-body-editor h2,
.post-body-editor h3 {
  color: var(--text);
}

.post-body-editor img {
  max-width: 100%;
  border: 1px solid var(--line);
}

.import-button {
  position: relative;
  overflow: hidden;
}

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

.editor-panel input[type="color"] {
  padding: 0.2rem;
}

body.editing [data-edit-key] {
  outline: 1px dashed var(--accent);
  outline-offset: 4px;
  cursor: text;
}

body.editing [data-edit-key]:focus {
  outline-style: solid;
  background: rgba(217, 181, 109, 0.08);
}

@media (max-width: 1020px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-post-card,
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .featured-post-card .blog-card-media {
    min-height: 16rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .site-header,
  .brand,
  .nav-links,
  .footer-links {
    align-items: flex-start;
  }

  .site-header {
    position: static;
    flex-direction: column;
  }

  .nav-links,
  .footer-links {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    inset: 1rem;
  }

  .intro-grid,
  .wisdom,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    min-height: 280px;
  }

  .footer-links {
    justify-content: start;
  }

  .blog-hero {
    min-height: auto;
  }

  .blog-heading h1 {
    font-size: clamp(1.2rem, 6.2vw, 3.2rem);
    white-space: nowrap;
  }

  .blog-controls {
    grid-template-columns: 1fr;
  }

  .blog-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-band {
    padding-inline: 1rem;
  }

  .blog-card-content {
    padding: 1rem;
  }

  .blog-card-content h2 {
    font-size: 1.35rem;
  }
}
