:root {
  --white: #ffffff;
  --text-shadow: 0 2px 14px rgba(0, 0, 0, 1);
  --quote-shadow: 0 6px 20px rgba(0, 0, 0, 1);
  --panel-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --panel-stage-bg: linear-gradient(180deg, rgba(34, 24, 20, 0.58), rgba(15, 11, 10, 0.5));
  --panel-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.12) 100%);
  --panel-header-height: 108px;
  --panel-header-bg:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(150, 181, 231, 0.44), rgba(133, 113, 189, 0.42));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #111;
  font-family: Georgia, "Times New Roman", serif;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #111;
  opacity: 1;
  transition: opacity 280ms ease;
}

.site-bg.is-empty {
  opacity: 0;
}

.site-bg-layer {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateX(0);
}

.site-bg-layer.is-current {
  opacity: 1;
}

.site-bg-layer.is-enter {
  opacity: 0;
  transform: translateX(14px);
}

.site-bg-layer.is-enter.is-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 560ms ease, transform 560ms ease;
}

.site-bg-layer.is-current.is-leave.is-leave-active {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.site-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.22) 32%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0;
  transition: opacity 320ms ease;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 36px 20px;
}

[data-router-view] {
  position: relative;
  z-index: 2;
}

.brand img {
  display: block;
  width: 445px;
  max-width: 34vw;
  height: auto;
}

.brand picture {
  display: block;
}

.top-nav {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  gap: 34px;
  position: relative;
  padding-bottom: 8px;
}

.top-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: var(--text-shadow);
}

.cta-btn {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1;
  padding: 14px 20px;
  transition: all 220ms ease;
}

.cta-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cta-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.cta-ivory {
  color: #1a1a1a;
  border: 1px solid rgba(243, 239, 231, 0.95);
  border-radius: 10px;
  background: rgba(243, 239, 231, 0.94);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.cta-ivory:hover {
  background: #faf7f1;
  transform: translateY(-1px);
}

.cta-underline {
  position: relative;
  color: var(--white);
  padding: 12px 2px 10px;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.cta-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.82);
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.cta-underline:hover::after {
  transform: scaleX(1);
}

.reading-grid {
  margin-top: 34px;
  padding: 18px;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 34px;
  background: var(--panel-stage-bg);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.content-block {
  position: relative;
  margin-top: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 18px 42px rgba(10, 11, 11, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.content-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--panel-header-height);
  background: var(--panel-header-bg);
  pointer-events: none;
}

.content-block h1,
.content-block h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: var(--panel-header-height);
  padding: 20px 22px 18px;
  font-family: var(--panel-font);
  font-size: clamp(20px, 4vw, 30px);
  color: rgba(255, 255, 255, 0.98);
  text-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.content-block p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 26px;
  font-family: var(--panel-font);
  line-height: 1.6;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: none;
}

.content-block p + p {
  padding-top: 0;
  margin-top: -6px;
}

.content-block strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.99);
}

.content-block em {
  font-style: italic;
  color: rgba(255, 241, 214, 0.96);
}

.contact-panel-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-panel-link::after {
  content: "↗";
  font-size: 0.78em;
  line-height: 1;
  color: rgba(255, 244, 222, 0.94);
}

.contact-panel-link:hover {
  color: rgba(255, 244, 222, 0.98);
  border-color: rgba(255, 244, 222, 0.76);
  transform: translateY(-1px);
}

.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--white);
  transform: translateX(0);
  transition: transform 320ms ease, width 320ms ease;
  pointer-events: none;
}

.nav-indicator.no-anim {
  transition: none;
}

@media (max-width: 900px) {
  .site-bg-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.6) 32%, rgba(0, 0, 0, 0.6) 100%);
  }

  .top-nav li:first-child {
    display: none;
  }

  .site-header {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    padding: 16px 14px 18px;
  }

  .brand {
    display: block;
    width: 100%;
  }

  .brand img {
    width: 100%;
    max-width: none;
  }

  .top-nav {
    width: 100%;
    margin-top: 4px;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .top-nav li {
    flex: 1 1 25%;
    min-width: 0;
    text-align: center;
  }

  .top-nav a {
    display: block;
    width: 100%;
    font-size: 17px;
    letter-spacing: 2px;
    padding: 8px 0;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
    font-size: 14px;
    letter-spacing: 2px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .reading-grid {
    padding: 14px;
    gap: 16px;
    margin-top: 24px;
    border-radius: 24px;
  }

  .content-block {
    border-radius: 22px;
  }

  .content-block h1,
  .content-block h2 {
    min-height: auto;
    padding: 18px 18px 16px;
  }

  .content-block p {
    font-size: 19px;
  }
}
