@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ebe7d4;
  --bg-hero: #d8cfae;
  --surface: rgba(255, 255, 255, 0.65);
  --text: #1a1a1a;
  --muted: #5a5446;
  --accent: #1a1a1a;
  --accent-light: #f4f1e3;
  --border: #1a1a1a;
  --shadow: 0 12px 40px rgba(26, 26, 26, 0.12);
  --radius: 0;
  --max-width: 75rem;
  --prose-width: 65ch;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12120f;
    --bg-hero: #1a1812;
    --surface: rgba(255, 255, 255, 0.06);
    --text: #f2f0e9;
    --muted: #b0a994;
    --accent: #f2f0e9;
    --accent-light: #2a2821;
    --border: #f2f0e9;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  }
}

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

[hidden] {
  display: none !important;
}

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

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}

.has-hero .site-header {
  color: var(--text);
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav__home {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav__home:hover,
.site-nav__home:focus {
  opacity: 0.7;
}

.site-nav__mark {
  display: inline-block;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.site-nav__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.site-nav__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  color: var(--text);
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav__toggle[hidden] {
  display: none;
}

.site-nav__toggle-icon {
  display: block;
  width: 1.125rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.site-nav__toggle-icon::before,
.site-nav__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}

.site-nav__toggle-icon::before {
  top: -5px;
}

.site-nav__toggle-icon::after {
  top: 5px;
}

.site-nav__list,
.site-nav__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__group {
  position: relative;
}

.site-nav__sublist {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 11rem;
  padding: 0.5rem 0.75rem 0.75rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Invisible bridge so the menu stays open while crossing the small gap */
.site-nav__group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 0.25rem;
}

.site-nav__group:hover .site-nav__sublist,
.site-nav__group:focus-within .site-nav__sublist {
  display: flex;
}

.site-nav__list a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.site-nav__list a:hover,
.site-nav__list a:focus {
  border-color: var(--border);
  background: var(--surface);
}

.site-nav__list a[aria-current="page"] {
  border-color: var(--border);
  background: var(--text);
  color: var(--bg);
}

/* Mobile nav */
@media (max-width: 720px) {
  .site-header {
    padding: 1rem;
    background: var(--bg);
  }

  .site-header.is-scrolled {
    background: var(--bg);
    backdrop-filter: none;
  }

  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav__toggle[hidden] {
    display: none;
  }

  .site-nav__list {
    display: none;
    position: fixed;
    inset: 0;
    top: 4rem;
    padding: 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    background: var(--bg);
  }

  .site-nav__list.is-open {
    display: flex;
  }

  .site-nav__sublist {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 1rem;
  }

  .site-nav__list a {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
}

/* Main content */
main {
  flex: 1 0 auto;
  width: 100%;
}

main > article,
main > .prose {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

main > article:has(> .page-header) {
  max-width: var(--max-width);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  background-color: var(--bg-hero);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(235, 231, 212, 0.82) 0%, rgba(235, 231, 212, 0.45) 45%, transparent 70%),
    linear-gradient(to bottom, rgba(235, 231, 212, 0.72) 0%, rgba(235, 231, 212, 0.25) 55%, rgba(235, 231, 212, 0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .hero__image {
    filter: brightness(0.6);
  }

  .hero__overlay {
    background:
      radial-gradient(circle at 50% 35%, rgba(18, 18, 15, 0.72) 0%, rgba(18, 18, 15, 0.38) 45%, transparent 70%),
      linear-gradient(to bottom, rgba(18, 18, 15, 0.62) 0%, rgba(18, 18, 15, 0.22) 55%, rgba(18, 18, 15, 0.12) 100%);
  }
}

@media (max-width: 720px) {
  .hero__image {
    transform: scale(1.15);
    object-position: center 65%;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 52rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Page header (used on index/list pages) */
.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.page-header__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 45rem;
  margin: 0 auto 3rem;
}

.page-header__footer {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 45rem;
  margin: 2.5rem auto 0;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.button:hover,
.button:focus {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button--filled {
  background: var(--text);
  color: var(--bg);
}

.button--filled:hover,
.button--filled:focus {
  background: transparent;
  color: var(--text);
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

.section__inner {
  max-width: var(--prose-width);
  margin: 0 auto;
}

.section--alt {
  background: var(--surface);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

/* Prose */
main h1,
main h2,
main h3,
main h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

main h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-top: 0;
}

main h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
}

main h3 {
  font-size: 1.35rem;
  font-weight: 400;
}

main h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

main p,
main ul,
main ol,
main dl,
main pre,
main table {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

main ul,
main ol {
  padding-left: 1.5rem;
}

main li {
  margin-bottom: 0.5rem;
}

main a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}

main a:hover,
main a:focus {
  opacity: 0.7;
}

main hr {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 20%, transparent);
  margin: 3rem 0;
}

main blockquote {
  margin: 2rem 0;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-style: italic;
}

main code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  color: var(--text);
  padding: 0.15em 0.35em;
}

main pre {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 15%, transparent);
  padding: 1rem;
  overflow-x: auto;
}

main pre code {
  background: transparent;
  padding: 0;
}

main table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

main th,
main td {
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--border) 15%, transparent);
  text-align: left;
  vertical-align: top;
}

main th {
  background: var(--surface);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* Practice cards */
.practice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin: 3rem 0 0;
}

.practice-card {
  display: block;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 12%, transparent);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.practice-card:hover,
.practice-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}

.practice-card h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.practice-card p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Embedded video */
.video {
  margin: 2.5rem 0;
}

.video__player {
  width: 100%;
  max-width: 48rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-hero);
  border: 1px solid color-mix(in srgb, var(--border) 12%, transparent);
}

.video__caption {
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Embedded audio guide */
.audio-guide {
  margin: 1.5rem 0 2.5rem;
}

.audio-guide__player {
  width: 100%;
  max-width: 48rem;
  display: block;
}

.audio-guide__caption {
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 12%, transparent);
  text-align: center;
}

.site-footer__nav {
  max-width: var(--max-width);
  margin: 0 auto 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.site-footer__nav a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus {
  color: var(--text);
}

.site-footer p {
  max-width: var(--max-width);
  margin: 0 auto;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* 404 */
.page-404 {
  text-align: center;
  padding-top: 6rem;
}

.faq {
  max-width: var(--max-width);
  margin: 2rem auto 0;
}

.faq__item {
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.faq__question {
  font-family: var(--font-ui);
  font-weight: 500;
  cursor: pointer;
  padding: 0.75rem 0;
}

.faq__answer {
  padding: 0 0 1rem;
  margin: 0;
  color: var(--muted);
}

/* Reduced motion */
@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;
  }
}