:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #2b2a27;
  --muted: #7a756c;
  --accent: #3f6b5a;
  --accent-soft: #e6efe9;
  --line: #e7e3db;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.04);

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --content-max: 1100px;
  --content-pad: var(--space-4);
}

@media (min-width: 640px) {
  :root {
    --content-pad: var(--space-5);
  }
}

@media (min-width: 900px) {
  :root {
    --content-pad: var(--space-6);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.luna-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-6) var(--content-pad) var(--space-8);
}

.luna-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-3) var(--content-pad);
  border-bottom: 1px solid var(--line);
}

.luna-brand {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

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

.luna-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.luna-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
}

.luna-nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: var(--space-1) 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.luna-nav-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.luna-nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.luna-hero {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6) 0 var(--space-7);
}

.luna-hero-text {
  min-width: 0;
}

.luna-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.luna-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.3;
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-weight: 400;
}

.luna-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  margin: 0 0 var(--space-5);
  color: var(--text);
  max-width: 60ch;
}

.luna-hero-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--accent-soft);
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.luna-hero-figure svg,
.luna-hero-figure img {
  width: 100%;
  height: auto;
}

.luna-block {
  margin: var(--space-7) 0;
}

.luna-block > *:first-child {
  margin-top: 0;
}

.luna-block > *:last-child {
  margin-bottom: 0;
}

.luna-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.luna-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.luna-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.luna-card-title {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 0 0 var(--space-2);
  font-weight: 700;
}

.luna-card-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.luna-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  margin-bottom: var(--space-2);
}

.luna-quote {
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.55;
  font-style: italic;
  color: var(--text);
}

.luna-quote p {
  margin: 0;
}

.luna-quote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: 0.875rem;
  font-style: normal;
  color: var(--muted);
}

.luna-spec {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-5) 0;
  padding: 0;
}

.luna-spec dt {
  font-weight: 700;
  color: var(--text);
}

.luna-spec dd {
  margin: 0 0 var(--space-3);
  color: var(--muted);
}

.luna-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: var(--space-5) 0;
  display: grid;
  gap: var(--space-4);
}

.luna-steps li {
  counter-increment: step;
  position: relative;
  padding-left: var(--space-7);
  min-width: 0;
}

.luna-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
}

.luna-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.luna-table thead,
.luna-table tbody,
.luna-table tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.luna-table th,
.luna-table td {
  padding: var(--space-3) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}

.luna-table th {
  font-weight: 700;
  color: var(--text);
  background: var(--accent-soft);
}

.luna-table tbody tr:hover {
  background: var(--bg);
}

.luna-figure {
  margin: var(--space-6) 0;
  padding: 0;
}

.luna-figure figcaption {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.luna-illustration {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  color: var(--accent);
}

.luna-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  stroke: none;
  flex-shrink: 0;
}

.luna-icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.luna-contact {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-6) 0;
}

.luna-contact-details {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}

.luna-contact-details dt {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.luna-contact-details dd {
  margin: 0 0 var(--space-2);
  font-size: 1rem;
}

.luna-contact-details a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.luna-contact-details a:hover {
  border-bottom-color: var(--accent);
}

.luna-contact-details a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.luna-hours {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.luna-hours h3 {
  margin: 0 0 var(--space-3);
  font-size: 1.0625rem;
}

.luna-hours ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.luna-hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.9375rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: var(--space-2);
}

.luna-hours li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.luna-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  min-width: 0;
}

.luna-map iframe,
.luna-map svg {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

.luna-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-6) var(--content-pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  align-items: center;
}

.luna-bottom a {
  color: var(--accent);
  text-decoration: none;
}

.luna-bottom a:hover {
  text-decoration: underline;
}

.luna-bottom a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (min-width: 640px) {
  .luna-hero {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .luna-spec {
    grid-template-columns: max-content 1fr;
  }

  .luna-spec dd {
    margin-bottom: var(--space-2);
  }

  .luna-contact {
    grid-template-columns: 1fr 1fr;
  }

  .luna-table {
    display: table;
    overflow-x: visible;
  }

  .luna-table thead,
  .luna-table tbody,
  .luna-table tr {
    display: table-row-group;
    width: auto;
  }

  .luna-table tr {
    display: table-row;
  }

  .luna-table th,
  .luna-table td {
    display: table-cell;
  }
}

@media (min-width: 900px) {
  .luna-main {
    padding-top: var(--space-7);
  }

  .luna-hero {
    gap: var(--space-7);
    padding: var(--space-7) 0 var(--space-8);
  }

  .luna-block {
    margin: var(--space-8) 0;
  }

  .luna-cards {
    gap: var(--space-5);
  }

  .luna-contact {
    gap: var(--space-6);
  }
}

@media (min-width: 1200px) {
  .luna-title {
    font-size: 3rem;
  }

  .luna-lead {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .luna-card:hover {
    transform: none;
  }
}


/* --- guard --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; margin: 0; }
main > *, section > *, ul > li, ol > li { min-width: 0; }
svg, table, pre, blockquote, img { max-width: 100%; }
svg { height: auto; }
h1, h2, h3, h4, p, li, dt, dd, td, th, a, figcaption {
  overflow-wrap: anywhere;
}
table { display: block; overflow-x: auto; }
main header, main footer, main nav { display: none !important; }

.wp-header, .wp-footer, main {
  padding-left: max(1.25rem, env(safe-area-inset-left)) !important;
  padding-right: max(1.25rem, env(safe-area-inset-right)) !important;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.wp-header {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem 1.25rem;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.wp-footer {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  margin-top: 2rem;
}
.wp-tagline {
  flex-basis: 100%;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
  max-width: none !important;
}

/* --- hamburger --- */
.wp-menu { margin: 0 0 0 auto; }
.wp-menu-btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  color: inherit;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #d4d4d4);
  border-radius: 0.5rem;
}
.wp-menu-btn::-webkit-details-marker,
.wp-menu-btn::marker { display: none; content: ""; }
.wp-menu-bars,
.wp-menu-bars::before,
.wp-menu-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  position: relative;
}
.wp-menu-bars::before,
.wp-menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.wp-menu-bars::before { top: -6px; }
.wp-menu-bars::after { top: 6px; }

@media (max-width: 719px) {
  .wp-nav-wide { display: none !important; }
  .wp-menu:not([open]) > nav { display: none !important; }
  .wp-menu[open] { flex-basis: 100%; width: 100%; margin: 0; }
  .wp-menu[open] > nav {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 0.5rem 0 0.15rem !important;
  }
  .wp-menu[open] > nav > a {
    display: block !important;
    padding: 0.7rem 0.15rem !important;
  }
}

@media (min-width: 720px) {
  .wp-menu { display: none !important; }
  .wp-nav-wide {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.35rem 1.1rem;
    margin: 0 0 0 auto;
    align-items: center;
  }
}
