:root {
  --legacy-yellow: #ffff99;
  --cream-panel: #ffffcc;
  --reiki-orange: #f0a71a;
  --deep-orange: #d98700;
  --soft-gold: #f6cf68;
  --ground-brown: #6f4b00;
  --mist-gray: #d8d8c8;
  --white: #ffffff;
  --black: #000000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ground-brown);
  background: var(--legacy-yellow);
  font-family: Lato, Inter, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: var(--deep-orange);
  text-decoration: none;
}

a:hover {
  color: var(--black);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--reiki-orange);
  font-family: Inter, Lato, Arial, sans-serif;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 8px 12px;
  color: var(--black);
  background: var(--cream-panel);
  border: 2px solid var(--deep-orange);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-main,
.footer-inner {
  width: min(940px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  padding-top: 10px;
}

.brand-frame {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px 8px;
  background: var(--cream-panel);
  border: 2px solid var(--reiki-orange);
  border-radius: 6px;
}

.brand-link {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  color: var(--reiki-orange);
  text-decoration: none;
}

.brand-reiki {
  font: 900 clamp(54px, 10vw, 112px)/.78 Inter, sans-serif;
}

.brand-praktijk {
  color: var(--reiki-orange);
  font: 900 clamp(24px, 4vw, 44px)/.92 Inter, sans-serif;
}

.brand-frame p {
  margin: 0 0 4px;
  color: var(--ground-brown);
  font-size: 12px;
  text-transform: uppercase;
}

.primary-nav {
  margin-top: 8px;
  background: var(--cream-panel);
  border: 2px solid var(--reiki-orange);
  border-radius: 6px;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 6px;
  list-style: none;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  display: block;
  min-height: 34px;
  padding: 8px 10px;
  color: var(--deep-orange);
  background: var(--legacy-yellow);
  border: 1px solid var(--soft-gold);
  border-radius: 4px;
  font: 800 12px/1.15 Inter, sans-serif;
  text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav li:focus-within > a {
  color: var(--white);
  background: var(--reiki-orange);
  text-decoration: none;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none !important;
  min-width: 240px;
  max-height: min(70vh, 460px);
  overflow-y: auto;
  background: var(--cream-panel);
  border: 1px solid var(--reiki-orange);
  box-shadow: 0 16px 28px rgba(111, 75, 0, .16);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: grid !important;
}

.site-main {
  padding: 12px 0 44px;
}

.site-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  background: var(--cream-panel);
  border: 2px solid var(--reiki-orange);
  border-radius: 6px;
}

.site-sidebar {
  position: sticky;
  top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .45);
  border-radius: 6px;
}

.site-sidebar h2,
.external-links h3 {
  margin: 0 0 10px;
  color: var(--ground-brown);
  font-size: 12px;
  text-transform: uppercase;
}

.site-sidebar ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-sidebar a {
  display: block;
  min-height: 38px;
  padding: 10px 9px;
  color: var(--deep-orange);
  background: var(--legacy-yellow);
  border: 1px solid var(--reiki-orange);
  border-radius: 4px;
  font: 800 12px/1.15 Inter, sans-serif;
  text-align: center;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.site-sidebar a:hover {
  color: var(--white);
  background: var(--reiki-orange);
  text-decoration: none;
  transform: translateY(-1px);
}

.external-links {
  margin-top: 14px;
}

.home-panel,
.content-panel {
  min-width: 0;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--soft-gold);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(111, 75, 0, .10);
}

.home-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  background: var(--cream-panel);
  border: 1px solid var(--mist-gray);
  border-radius: 8px;
}

.legacy-preview {
  width: min(100%, 430px);
  margin: 0;
  padding: 8px;
  background: var(--legacy-yellow);
  border: 1px solid var(--soft-gold);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(111, 75, 0, .12);
}

.usui-portrait {
  width: 180px;
  margin: 0;
  padding: 8px;
  background: var(--mist-gray);
  border-radius: 6px;
}

.usui-portrait img {
  display: block;
  filter: grayscale(100%);
}

.home-hero h1,
.page-heading h1 {
  margin: 4px 0 0;
  color: var(--ground-brown);
}

.practice-name {
  margin: 0;
  color: var(--deep-orange);
  font-weight: 800;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.btn.btn-primary,
.read-more {
  color: var(--black);
  background: var(--reiki-orange);
  border-color: var(--deep-orange);
}

.btn {
  border-radius: 4px;
}

.content-card {
  margin-top: 18px;
  color: var(--ground-brown);
  font-size: 16px;
  line-height: 1.72;
}

.content-card p {
  margin: 0 0 1em;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--deep-orange);
  font: 800 12px/1 Inter, sans-serif;
  text-transform: uppercase;
}

.page-heading {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--soft-gold);
}

.page-heading h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.site-figure {
  margin: 18px 0;
  padding: 10px;
  background: var(--cream-panel);
  border: 1px solid var(--mist-gray);
  border-radius: 8px;
  text-align: center;
}

.site-figure img {
  max-height: 360px;
  object-fit: contain;
}

.gallery-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.gallery-card,
.category-card,
.link-card {
  padding: 14px;
  background: var(--cream-panel);
  border: 1px solid var(--soft-gold);
  border-radius: 8px;
  text-align: center;
}

.category-intro {
  margin: 18px 0;
}

.category-intro > *:first-child {
  margin-top: 0;
}

.gallery-card img {
  max-height: 230px;
  object-fit: contain;
}

blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--cream-panel);
  border-left: 5px solid var(--reiki-orange);
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.content-card table,
.category-page table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.content-card th,
.content-card td,
.category-page th,
.category-page td {
  padding: 8px;
  border: 1px solid var(--soft-gold);
  overflow-wrap: anywhere;
  vertical-align: top;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 6px;
  content: ">";
}

.toc {
  margin: 16px 0;
  padding: 12px;
  background: var(--cream-panel);
  border: 1px solid var(--soft-gold);
  border-radius: 8px;
}

.main-image {
  float: right;
  width: min(32%, 240px);
  margin: 0 0 18px 20px;
  border-radius: 8px;
}

.site-footer {
  color: var(--legacy-yellow);
  background: var(--ground-brown);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 18px 0;
}

.footer-inner p {
  margin: 0;
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--white);
}

@media (max-width: 820px) {
  .brand-frame,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .site-layout {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: static;
  }

  .site-sidebar ul {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .main-image {
    float: none;
    width: 100%;
    margin: 0 0 18px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .site-main,
  .footer-inner {
    width: min(100% - 18px, 940px);
  }

  .brand-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-panel,
  .content-panel {
    padding: 16px;
  }
}

@media print {
  .site-sidebar,
  .primary-nav,
  .site-footer {
    display: none;
  }

  body,
  .site-layout,
  .home-panel,
  .content-panel {
    color: #000000;
    background: #ffffff;
  }
}
