:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --paper-deep: #efede4;
  --ink: #232b26;
  --muted: #737970;
  --accent: #b77955;
  --accent-soft: #e6c6a9;
  --sage: #8c9d87;
  --line: rgba(35, 43, 38, 0.15);
  --header-start: #b77955;
  --header-end: #80503f;
  --header-ink: #fffaf4;
  --header-muted: #fff0e2;
  --header-accent: #ffe1be;
  --quote-start: #f2dfd0;
  --quote-end: #f7eee4;
  --quote-ink: #573a30;
  --quote-accent: #a66549;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 500ms ease, color 500ms ease;
}

body[data-theme="ocean"] {
  --paper: #f1f5f2;
  --paper-deep: #e4ece9;
  --ink: #203438;
  --muted: #687b7c;
  --accent: #56878a;
  --accent-soft: #b5d0ca;
  --sage: #7a9994;
  --line: rgba(32, 52, 56, 0.15);
  --header-start: #398087;
  --header-end: #245967;
  --header-ink: #f7ffff;
  --header-muted: #dff2f0;
  --header-accent: #c1ece4;
  --quote-start: #d3e8e4;
  --quote-end: #edf5ee;
  --quote-ink: #23484c;
  --quote-accent: #357b7d;
}

body[data-theme="dusk"] {
  --paper: #f5f1f5;
  --paper-deep: #ece4eb;
  --ink: #352b39;
  --muted: #7c7180;
  --accent: #98728d;
  --accent-soft: #d6bdd1;
  --sage: #a28ba0;
  --line: rgba(53, 43, 57, 0.15);
  --header-start: #896b89;
  --header-end: #59455f;
  --header-ink: #fffaff;
  --header-muted: #f1e3f1;
  --header-accent: #f0d5ed;
  --quote-start: #e8dce9;
  --quote-end: #f4edf3;
  --quote-ink: #48394d;
  --quote-accent: #87658a;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 4;
  display: flex;
  width: 100%;
  min-height: 92px;
  margin: 0;
  padding-inline: max(24px, calc((100vw - 1320px) / 2));
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 26px;
  background: linear-gradient(112deg, var(--header-start), var(--header-end));
  color: var(--header-ink);
  box-shadow: 0 5px 20px rgba(35, 43, 38, 0.11);
  transition: background 400ms ease, color 400ms ease;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--header-ink);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand strong {
  font-weight: 800;
}

.brand-mark {
  color: var(--header-accent);
  font-size: clamp(1.7rem, 1.5rem + 0.55vw, 2rem);
  line-height: 1;
}

.main-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(6px, 0.8vw, 11px);
  min-width: 0;
  white-space: nowrap;
  margin-left: 8px;
  color: var(--header-muted);
  font-size: clamp(0.92rem, 0.85rem + 0.2vw, 1.05rem);
  font-weight: 700;
}

.main-nav a,
.text-link,
.underlined-link,
.closing-link {
  transition: color 180ms ease;
}

.main-nav a:hover,
.text-link:hover,
.underlined-link:hover,
.closing-link:hover {
  color: var(--accent);
}

.site-header .main-nav a,
.site-header .mobile-menu summary,
.site-header .header-admin-link {
  color: var(--header-ink);
  font-weight: 700;
}

.site-header .main-nav {
  font-size: clamp(0.78rem, 0.84vw, 0.92rem);
  font-weight: 700;
}

.main-nav > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.main-nav > .home-nav-link {
  gap: 5px;
}

.home-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header .main-nav a:hover,
.site-header .mobile-menu summary:hover,
.site-header .header-admin-link:hover {
  color: var(--header-accent);
}

.palette-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--header-ink) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--header-ink) 12%, transparent);
  color: var(--header-ink);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.palette-button:hover {
  border-color: var(--header-ink);
  background: color-mix(in srgb, var(--header-ink) 22%, transparent);
}

.palette-button:focus-visible,
.mobile-menu summary:focus-visible,
.main-nav a:focus-visible,
.header-admin-link:focus-visible {
  outline: 3px solid var(--header-accent);
  outline-offset: 4px;
}

.mood-orb {
  position: relative;
  display: inline-block;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 50%;
  background: conic-gradient(
    from 35deg,
    #ff6482,
    #ffbe55,
    #69d8a0,
    #58c8ed,
    #8178f5,
    #d86add,
    #ff6482
  );
  box-shadow: inset -3px -4px 7px rgba(33, 40, 70, 0.22), 0 0 0 2px rgba(255, 255, 255, 0.65), 0 0 12px rgba(255, 196, 109, 0.55);
  animation: mood-orbit 5s linear infinite;
  transition: box-shadow 220ms ease, scale 220ms ease;
}

.mood-orb::after {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 8px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  content: "";
  filter: blur(0.3px);
  transform: rotate(-28deg);
}

.palette-button:hover .mood-orb {
  scale: 1.12;
  box-shadow: inset -3px -4px 7px rgba(33, 40, 70, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.72), 0 0 18px rgba(255, 196, 109, 0.8);
}

@keyframes mood-orbit {
  to { transform: rotate(360deg); }
}

.section-wrap {
  width: min(1120px, calc(100% - 112px));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: block;
  min-height: 660px;
  padding-top: 88px;
  padding-bottom: 90px;
}

.hero-content {
  display: grid;
  min-height: 415px;
  grid-template-columns: 1fr 0.94fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-deep);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 58px);
}

.hero-art {
  min-width: 0;
  height: auto;
  min-height: 415px;
}

.hero-copy {
  padding-bottom: clamp(28px, 4vw, 58px);
}

.eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 17px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
}

.hero h1 {
  margin: 25px 0 21px;
  font-family: var(--serif);
  font-size: clamp(57px, 6.3vw, 84px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.99;
}

h1 em,
h2 em {
  color: var(--accent);
  font-weight: 700;
}

.hero-intro {
  max-width: 410px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.button {
  display: inline-flex;
  min-height: 47px;
  padding: 0 19px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  transition: transform 180ms ease, background-color 250ms ease, color 250ms ease;
}

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

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--accent);
}

.button-primary span {
  font-size: 14px;
}

.text-link {
  color: var(--muted);
  font-size: 10px;
}

.text-link span {
  margin-left: 6px;
  color: var(--accent);
}

.hero-note {
  display: flex;
  margin-top: 54px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.05rem + 0.28vw, 1.3rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
}

.note-icon {
  color: var(--accent);
  font-size: 20px;
  font-style: normal;
}

.banner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--paper-deep);
  isolation: isolate;
}

.hero-art,
.meaning-gallery {
  position: relative;
  width: 100%;
  height: 415px;
  overflow: hidden;
  background: var(--paper-deep);
  isolation: isolate;
}

.meaning-gallery {
  height: auto;
  min-height: 415px;
}

.hero-art {
  height: auto;
  min-height: 415px;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  visibility: hidden;
  opacity: 0;
  transition: opacity 650ms ease, visibility 650ms ease;
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
}

.hero-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 35, 31, 0.02) 12%, rgba(15, 35, 31, 0.12) 37%, rgba(15, 35, 31, 0.81) 100%);
  content: "";
  pointer-events: none;
}

.banner-copy {
  position: absolute;
  z-index: 1;
  right: 32px;
  bottom: 73px;
  left: 34px;
  max-width: 490px;
  color: #fff;
}

.banner-kicker {
  color: #f3d9ab;
  font-size: clamp(0.75rem, 0.7rem + 0.12vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.banner-quote {
  margin: 11px 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-wrap: pretty;
}

.banner-credit {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.875rem, 0.82rem + 0.13vw, 1rem);
  font-weight: 600;
}

.banner-controls {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 17px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-arrow,
.banner-dot {
  display: grid;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(18, 37, 32, 0.32);
  color: #fff;
  cursor: pointer;
}

.banner-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 17px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.banner-arrow:hover {
  transform: scale(1.06);
  background: var(--accent);
}

.banner-dots {
  display: flex;
  margin-inline: auto;
  gap: 9px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: background-color 180ms ease, transform 180ms ease;
}

.banner-dot.is-active {
  transform: scale(1.25);
  background: #fff;
}

.banner-arrow:focus-visible,
.banner-dot:focus-visible {
  outline: 3px solid #f3d9ab;
  outline-offset: 3px;
}

.hero-bottom {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: clamp(0.85rem, 0.8rem + 0.16vw, 0.98rem);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-bottom > :last-child {
  margin-left: auto;
}

.scroll-indicator {
  color: var(--accent);
  font-size: 15px;
}

.daily-quote-section {
  width: 100%;
  padding: clamp(26px, 4vw, 48px) max(24px, calc((100vw - 1120px) / 2));
  background: linear-gradient(110deg, var(--quote-start), var(--quote-end));
  color: var(--quote-ink);
  transition: background 400ms ease, color 400ms ease;
}

.daily-quote-content {
  display: flex;
  min-height: 142px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.daily-quote-label {
  color: var(--quote-accent);
  font-size: clamp(0.8rem, 0.75rem + 0.18vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.daily-quote-section blockquote {
  max-width: 900px;
  margin: 15px auto 0;
}

.daily-quote-text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.5;
  text-wrap: pretty;
}

.daily-quote-author {
  display: block;
  margin-top: 12px;
  color: var(--quote-accent);
  font-size: clamp(1rem, 0.92rem + 0.2vw, 1.125rem);
  font-weight: 700;
  font-style: normal;
}

.meaning {
  padding-top: 95px;
  padding-bottom: 105px;
  border-top: 1px solid var(--line);
}

.section-label span {
  color: var(--accent);
  font-size: 9px;
}

.meaning-content {
  display: grid;
  margin-top: 36px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-deep);
}

.meaning-copy {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: clamp(28px, 4vw, 58px);
}

.meaning h2,
.principles-heading h2,
.practice h2,
.closing h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(41px, 4.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.meaning-text {
  padding-top: 4px;
}

.large-copy {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
}

.large-copy em {
  color: var(--accent);
}

.meaning-text > p:not(.large-copy) {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.underlined-link {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
  font-size: 10px;
}

.underlined-link span {
  padding-left: 9px;
  color: var(--accent);
}

.meaning-footnote {
  display: flex;
  margin-top: 73px;
  align-items: center;
  gap: 16px;
}

.footnote-mark {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 47px;
  line-height: 0.6;
}

.meaning-footnote p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
}

.footnote-line {
  width: 54px;
  height: 1px;
  margin-left: auto;
  background: var(--line);
}

.principles-section {
  padding: 88px 0 100px;
  background: var(--paper-deep);
  transition: background-color 500ms ease;
}

.journal-invitation,
.journal-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--accent-soft) 38%, transparent), transparent 54%),
    var(--paper);
  box-shadow: 0 18px 42px rgba(35, 43, 38, 0.08);
}

.journal-invitation {
  margin-top: 40px;
  margin-bottom: 28px;
  padding: clamp(28px, 5vw, 58px);
}

.journal-invitation-copy {
  max-width: 640px;
}

.journal-invitation-kicker {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journal-invitation h2,
.journal-next-step h2 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.journal-invitation p,
.journal-next-step p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.journal-feature-link {
  display: grid;
  margin-top: 22px;
  padding: 14px 17px;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--paper-deep) 72%, transparent);
}

.journal-feature-link > span:first-child {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.journal-feature-link strong {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.journal-feature-link > span:last-child {
  color: var(--accent);
  font-size: 1.2rem;
}

.journal-invitation-button {
  display: inline-flex;
  min-height: 54px;
  flex: 0 0 auto;
  padding: 12px 19px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(35, 43, 38, 0.15);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 800;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.journal-invitation-button:hover {
  transform: translateY(-2px);
  background: var(--accent);
  box-shadow: 0 11px 22px rgba(35, 43, 38, 0.2);
}

.journal-next-step {
  margin: 50px auto;
  padding: 28px;
}

.journal-next-step h2 {
  font-size: clamp(1.65rem, 1.4rem + 1vw, 2.25rem);
}

.journal-next-step .journal-invitation-button {
  white-space: nowrap;
}

.principles-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.principles-heading h2 {
  margin-top: 24px;
}

.principles-heading > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
}

.principle-grid {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-card {
  position: relative;
  display: flex;
  min-height: 240px;
  padding: 24px 22px 25px 0;
  flex-direction: column;
  align-items: flex-start;
}

.principle-card + .principle-card {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.card-number {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.principle-image {
  display: block;
  width: 100%;
  height: clamp(116px, 13vw, 165px);
  margin-top: 17px;
  border-radius: 7px;
  object-fit: cover;
}

.principle-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-top: 25px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 16px;
}

.icon-kindness {
  font-size: 20px;
}

.icon-care {
  font-size: 17px;
}

.icon-integrity {
  font-size: 17px;
}

.principle-card h3 {
  margin: 17px 0 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}

.principle-card p {
  max-width: 200px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.principle-card .card-word {
  margin-top: auto;
  padding-top: 6px;
}

.card-word {
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.practice {
  display: grid;
  padding-top: 111px;
  padding-bottom: 112px;
  grid-template-columns: 0.92fr 1fr;
  align-items: center;
  gap: 110px;
}

.practice-visual {
  position: relative;
  display: grid;
  min-height: 330px;
  overflow: hidden;
  place-items: center;
  background: color-mix(in srgb, var(--accent-soft) 28%, var(--paper));
  transition: background 500ms ease;
}

.practice-ring {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 50%;
  animation: breathe 8s ease-in-out infinite;
}

.ring-large {
  width: 245px;
  opacity: 0.65;
}

.ring-small {
  width: 166px;
  animation-delay: -2s;
  opacity: 0.8;
}

.practice-center {
  position: relative;
  z-index: 1;
  display: flex;
  width: 130px;
  height: 130px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breath-mark {
  color: var(--accent);
  font-size: 24px;
  animation: turn 14s linear infinite;
}

.practice-tag {
  position: absolute;
  bottom: 15px;
  left: 17px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.practice-copy h2 {
  margin: 23px 0 15px;
}

.practice-copy > p:not(.practice-message) {
  max-width: 390px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.button-icon {
  color: var(--accent);
  font-size: 17px;
}

.button-secondary:hover .button-icon {
  color: inherit;
}

.practice-message {
  min-height: 16px;
  margin: 13px 0 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  opacity: 0;
  transition: opacity 250ms ease;
}

.practice-message.is-visible {
  opacity: 1;
}

.practice.is-breathing .practice-ring {
  animation-duration: 4s;
}

.closing {
  padding: 70px 24px 73px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  transition: background-color 500ms ease;
}

.closing-inner {
  max-width: 560px;
  margin-inline: auto;
}

.closing-star {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-soft);
  font-size: 21px;
}

.closing-kicker {
  margin-bottom: 18px;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
  font-size: 8px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.closing h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 62px);
}

.closing h2 em {
  color: var(--accent-soft);
}

.closing-link {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent-soft);
  color: var(--paper);
  font-size: 9px;
}

.closing-link span {
  margin-left: 8px;
  color: var(--accent-soft);
}

.site-footer {
  display: flex;
  width: min(1320px, calc(100% - 112px));
  min-height: 85px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
}

.site-footer > p,
.footer-note {
  margin: 0;
  font-size: 9px;
}

.footer-note {
  font-family: var(--serif);
  font-style: italic;
}

.daily-activities {
  padding-top: 90px;
  padding-bottom: 85px;
}

.daily-activities-heading {
  margin-bottom: 28px;
}

.daily-activities-heading h2 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.daily-activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.daily-puzzle-card,
.dhyan-card {
  min-height: 310px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.daily-activity-kicker {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.daily-puzzle-card h3,
.dhyan-card h3 {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 1.3rem + 0.8vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
}

.puzzle-question,
.dhyan-copy p {
  max-width: 52ch;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
}

.puzzle-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.puzzle-form input {
  min-width: 150px;
  min-height: 48px;
  flex: 1 1 145px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.puzzle-form input:focus-visible,
.puzzle-reveal:focus-visible,
.puzzle-form button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.puzzle-feedback {
  min-height: 1.75em;
  margin: 11px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.puzzle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.puzzle-hint,
.puzzle-reveal {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.dhyan-card {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  background: linear-gradient(120deg, var(--paper-deep), var(--paper));
}

.yantra-image {
  width: clamp(135px, 17vw, 220px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 20px rgba(64, 52, 34, 0.13));
}

.dhyan-copy p {
  margin-top: 9px;
}

.dhyan-card .button {
  text-align: center;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@keyframes breathe {
  0%, 100% { transform: scale(0.91); opacity: 0.38; }
  50% { transform: scale(1.06); opacity: 0.88; }
}

@keyframes turn {
  to { transform: rotate(360deg); }
}

@media (min-width: 1450px) {
  .hero {
    min-height: 730px;
  }

  .hero-art {
    min-height: 460px;
  }

  .meaning-gallery {
    min-height: 460px;
  }
}

@media (max-width: 900px) {
  .section-wrap,
  .site-footer {
    width: calc(100% - 64px);
  }

  .site-header {
    min-height: 82px;
    padding-inline: 24px;
    gap: 18px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: 610px;
  }

  .hero-content {
    grid-template-columns: 1fr 0.9fr;
  }

  .hero-art {
    min-height: 350px;
  }

  .meaning-gallery {
    min-height: 350px;
  }

  .hero h1 {
    font-size: clamp(55px, 7.2vw, 70px);
  }

  .meaning-content {
    grid-template-columns: 1fr 1fr;
  }

  .practice {
    gap: 55px;
  }

  .principle-card {
    padding-right: 15px;
  }

  .principle-card + .principle-card {
    padding-left: 15px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 72px;
  }

  .journal-invitation,
  .journal-next-step {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .journal-invitation {
    margin-top: 28px;
    margin-bottom: 10px;
    padding: 25px 21px;
  }

  .journal-next-step {
    margin-block: 36px;
    padding: 23px 19px;
  }

  .journal-next-step .journal-invitation-button {
    white-space: normal;
  }

  .section-wrap,
  .site-footer {
    width: calc(100% - 40px);
  }

  .site-header {
    min-height: 74px;
    padding-inline: 17px;
    gap: 10px;
  }

  .site-header .brand {
    gap: 7px;
    font-size: clamp(0.98rem, 4vw, 1.15rem);
  }

  .site-header .brand-mark {
    font-size: 1.55rem;
  }

  .site-header .palette-button {
    min-height: 40px;
    padding: 7px 10px;
    gap: 7px;
    font-size: 0.82rem;
  }

  .site-header .header-admin-link {
    display: none;
  }

  .mobile-menu nav {
    right: -48px;
    left: auto;
    max-height: min(72vh, 520px);
    overflow-y: auto;
  }

  .hero {
    min-height: unset;
    padding-top: 66px;
    padding-bottom: 73px;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(59px, 15vw, 80px);
  }

  .hero-intro {
    max-width: 450px;
    font-size: 12px;
  }

  .hero-note {
    margin-top: 29px;
  }

  .hero-art {
    height: min(100vw, 390px);
    min-height: 310px;
  }

  .meaning-gallery {
    height: 310px;
    min-height: 310px;
  }

  .banner-copy {
    right: 19px;
    bottom: 70px;
    left: 19px;
  }

  .banner-quote {
    max-width: 390px;
    font-size: clamp(1.55rem, 6.5vw, 1.85rem);
  }

  .banner-controls {
    right: 13px;
    bottom: 13px;
    left: 13px;
  }

  .hero-bottom {
    bottom: 20px;
  }

  .hero-bottom > :first-child {
    display: none;
  }

  .daily-quote-section {
    padding: 23px 20px;
  }

  .daily-quote-content {
    min-height: 124px;
  }

  .daily-quote-text {
    font-size: clamp(1.25rem, 5vw, 1.55rem);
  }

  .meaning {
    padding-top: 70px;
    padding-bottom: 75px;
  }

  .meaning-content {
    margin-top: 27px;
    grid-template-columns: 1fr;
  }

  .meaning-copy {
    gap: 20px;
    padding: 28px 22px;
  }

  .meaning h2,
  .principles-heading h2,
  .practice h2 {
    font-size: 47px;
  }

  .meaning-text {
    max-width: 500px;
  }

  .meaning-footnote {
    margin-top: 49px;
    gap: 11px;
  }

  .daily-activities {
    padding-top: 66px;
    padding-bottom: 62px;
  }

  .daily-activities-grid {
    grid-template-columns: 1fr;
  }

  .daily-puzzle-card,
  .dhyan-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .dhyan-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .yantra-image {
    width: min(52vw, 190px);
    align-self: center;
  }

  .meaning-footnote p {
    font-size: 12px;
    line-height: 1.5;
  }

  .footnote-line {
    width: 24px;
    flex: 0 0 24px;
  }

  .principles-section {
    padding: 69px 0 75px;
  }

  .principles-heading {
    align-items: start;
    flex-direction: column;
    gap: 17px;
  }

  .principles-heading h2 {
    margin-top: 22px;
  }

  .principles-heading > p {
    margin: 0;
  }

  .principle-grid {
    margin-top: 33px;
    grid-template-columns: repeat(2, 1fr);
  }

  .principle-card {
    min-height: 228px;
    padding: 20px 13px 20px 0;
  }

  .principle-card + .principle-card {
    padding-left: 13px;
  }

  .principle-card:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principle-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .principle-card h3 {
    font-size: 17px;
  }

  .principle-card p {
    font-size: 9px;
  }

  .practice {
    padding-top: 75px;
    padding-bottom: 76px;
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .practice-visual {
    min-height: 290px;
  }

  .ring-large {
    width: 220px;
  }

  .practice-copy h2 {
    margin-top: 21px;
  }

  .closing {
    padding: 60px 20px 63px;
  }

  .site-footer {
    min-height: 100px;
    flex-wrap: wrap;
    gap: 3px 15px;
    padding: 19px 0;
  }

  .site-footer > p {
    order: 3;
    width: 100%;
  }

  .footer-note {
    font-size: 8px;
  }
}

.journal-page {
  min-height: 100vh;
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  margin-left: 4px;
  color: var(--accent);
}

.mobile-menu nav {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 165px;
  padding: 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(35, 43, 38, 0.1);
}

.site-header .mobile-menu nav a {
  color: var(--ink);
  font-weight: 600;
}

.mobile-menu nav a {
  padding: 11px 12px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.mobile-menu nav a:hover {
  background: var(--paper-deep);
  color: var(--accent);
}

.header-admin-link,
.back-link {
  color: var(--muted);
  font-size: 10px;
  transition: color 180ms ease;
}

.header-admin-link:hover,
.back-link:hover {
  color: var(--accent);
}

.logout-button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.journal-hero {
  padding-top: 96px;
  padding-bottom: 63px;
}

.journal-hero h1,
.admin-hero h1,
.admin-login h1 {
  margin: 26px 0 17px;
  font-family: var(--serif);
  font-size: clamp(54px, 7vw, 82px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.03;
}

.journal-hero > p,
.admin-login > p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.category-grid-section {
  padding-bottom: 100px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-card {
  position: relative;
  display: flex;
  min-height: 230px;
  padding: 22px 20px;
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper-deep);
  transition: transform 180ms ease, background-color 350ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-legal .category-symbol {
  color: #718b84;
}

.category-financial .category-symbol {
  color: #a37d50;
}

.category-social .category-symbol {
  color: #b77955;
}

.category-spiritual .category-symbol {
  color: #927996;
}

.category-symbol {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: 26px;
}

.category-kicker,
.article-category {
  color: var(--accent);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-card h2 {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.category-card p {
  max-width: 240px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.category-arrow {
  position: absolute;
  right: 19px;
  bottom: 19px;
  color: var(--accent);
  font-size: 15px;
}

.article-list-section {
  padding-top: 0;
  padding-bottom: 100px;
}

.section-heading-row {
  display: flex;
  margin-bottom: 29px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading-row h2,
.community-section > h2,
.comments-section > h2 {
  margin: 11px 0 0;
  font-family: var(--serif);
  font-size: clamp(29px, 4vw, 39px);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.article-card {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-deep) 45%, var(--paper));
  transition: background-color 200ms ease;
}

.article-card:hover {
  background: var(--paper-deep);
}

.article-card-link {
  display: flex;
  min-height: 220px;
  padding: 23px;
  flex-direction: column;
  align-items: flex-start;
}

.article-card h3,
.contribution-card h3 {
  margin: 13px 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
}

.article-card p,
.contribution-card > p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.article-meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 8px;
}

.category-hero {
  padding-top: 84px;
  padding-bottom: 59px;
}

.category-hero .underlined-link {
  margin-top: 23px;
}

.category-article-section {
  min-height: 330px;
}

.article-page {
  max-width: 860px;
  padding-top: 60px;
  padding-bottom: 90px;
}

.article-header {
  max-width: 700px;
  margin: 46px auto 40px;
  text-align: center;
}

.article-header h1 {
  margin: 16px 0 13px;
  font-family: var(--serif);
  font-size: clamp(43px, 7vw, 70px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.article-deck {
  max-width: 570px;
  margin: 0 auto 17px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
}

.article-byline {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 9px;
}

.article-byline span {
  margin: 0 6px;
  color: var(--accent);
}

.article-body {
  max-width: 660px;
  margin: 0 auto;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
  white-space: pre-line;
}

.article-body p {
  margin: 0 0 1.4em;
}

.article-body h2 {
  margin: 1.8em 0 0.7em;
  font-family: var(--sans);
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  line-height: 1.3;
}

.article-media-gallery,
.page-media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 18px;
  margin-top: 32px;
}

.page-media-gallery {
  margin-bottom: 45px;
}

.content-media-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--paper-deep);
}

.content-media-item img,
.content-media-item video,
.content-media-item iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  object-fit: cover;
}

.content-media-item iframe {
  aspect-ratio: 16 / 9;
}

.article-disclaimer {
  max-width: 660px;
  margin: 29px auto 0;
  padding: 14px 17px;
  border-left: 2px solid var(--accent);
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.comments-section {
  max-width: 660px;
  margin: 72px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.comments-section > h2 {
  margin-top: 14px;
  font-size: 34px;
}

.comments-section > h2 span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
}

.muted-copy {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.comments-section > .muted-copy {
  margin: 14px 0 0;
}

.comment-list {
  display: grid;
  margin: 20px 0 33px;
  gap: 10px;
}

.comment-card {
  padding: 16px 18px;
  background: var(--paper-deep);
}

.comment-card p {
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-line;
}

.comment-card > span,
.contribution-author {
  color: var(--muted);
  font-size: 9px;
}

.content-form {
  display: grid;
  gap: 15px;
}

.content-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
}

.content-form input,
.content-form textarea,
.content-form select {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: color-mix(in srgb, var(--paper) 84%, white);
  color: var(--ink);
  font: 400 11px/1.7 var(--sans);
  transition: border-color 180ms ease;
}

.content-form textarea {
  resize: vertical;
}

.content-form input:focus,
.content-form textarea:focus,
.content-form select:focus {
  border-color: var(--accent);
}

.content-form .button {
  justify-self: start;
}

.form-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.comment-form {
  margin-top: 25px;
}

.yours-hero {
  padding-bottom: 36px;
}

.yours-layout {
  display: grid;
  padding-bottom: 78px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 80px;
}

.yours-note {
  padding: 25px;
  background: var(--paper-deep);
}

.yours-note h2 {
  margin: 16px 0 11px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.yours-note > p {
  margin-bottom: 21px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
}

.community-section {
  padding-top: 38px;
  padding-bottom: 90px;
  border-top: 1px solid var(--line);
}

.community-section > h2 {
  margin-bottom: 25px;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.contribution-card {
  padding: 21px;
  background: var(--paper-deep);
}

.contribution-card > p {
  white-space: pre-line;
}

.empty-state {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
}

.flash-stack {
  position: fixed;
  z-index: 5;
  top: 96px;
  right: 22px;
  display: grid;
  width: min(380px, calc(100% - 44px));
  gap: 7px;
}

.flash-message {
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 7px 25px rgba(30, 30, 20, 0.08);
  font-size: 10px;
  line-height: 1.6;
}

.flash-success {
  border-left: 3px solid var(--sage);
}

.flash-error {
  border-left: 3px solid #b45b4b;
}

.admin-login {
  max-width: 500px;
  padding-top: 92px;
  padding-bottom: 110px;
}

.admin-login h1 {
  font-size: 62px;
}

.admin-login .content-form {
  margin-top: 27px;
}

.setup-notice {
  margin-top: 18px;
  padding: 12px;
  border-left: 2px solid var(--accent);
  background: var(--paper-deep);
}

.admin-hero {
  display: flex;
  padding-top: 74px;
  padding-bottom: 42px;
  align-items: end;
  justify-content: space-between;
}

.admin-hero h1 {
  margin-bottom: 0;
  font-size: 62px;
}

.admin-section {
  padding-top: 33px;
  padding-bottom: 38px;
  border-top: 1px solid var(--line);
}

.admin-page-editor {
  max-width: 1020px;
  padding-top: 48px;
  padding-bottom: 88px;
}

.admin-page-editor > h1 {
  margin: 12px 0;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
}

.page-editor-form {
  max-width: 780px;
  margin-top: 28px;
}

.page-editor-form > h2,
.article-editor > h2,
.article-editor > h3 {
  margin: 22px 0 2px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.page-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-admin-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.page-admin-card h3,
.page-admin-card p {
  margin: 0;
}

.page-admin-card p {
  color: var(--muted);
  line-height: 1.7;
}

.existing-media-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
}

.content-form .existing-media-item {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
}

.content-form .existing-media-item input {
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--accent);
}

.content-form input[type="file"] {
  padding: 9px;
}

.seo-score-panel {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.seo-score-panel h3 {
  display: flex;
  margin: 0 0 8px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.1rem;
}

.seo-score-value {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.seo-score-panel ul {
  display: grid;
  margin: 12px 0 0;
  padding-left: 20px;
  gap: 6px;
}

.seo-score-panel li {
  color: var(--muted);
  font-size: 0.92rem;
}

.seo-score-panel li.is-good {
  color: #3d7957;
}

.seo-score-panel li.is-warning {
  color: var(--muted);
}

.count-badge {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  margin-left: 4px;
  padding-inline: 5px;
  place-items: center;
  border-radius: 20px;
  background: var(--paper-deep);
  color: var(--accent);
  font: 500 9px var(--sans);
  vertical-align: middle;
}

.moderation-list {
  display: grid;
  gap: 10px;
}

.moderation-card {
  display: flex;
  padding: 17px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
}

.moderation-card h3 {
  margin: 8px 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.moderation-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  white-space: pre-line;
}

.moderation-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.moderation-actions .button {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 9px;
}

.button-danger {
  border-color: var(--line);
  background: transparent;
}

.button-danger:hover {
  border-color: #b45b4b;
  color: #a14d40;
}

.editor-layout {
  display: grid;
  grid-template-columns: 0.83fr 1.17fr;
  align-items: start;
  gap: 32px;
}

.quote-admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 28px;
}

.quote-editor {
  padding: 21px;
  background: var(--paper-deep);
}

.optional-label {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 500;
}

.quote-admin-list {
  display: grid;
  gap: 10px;
}

.quote-admin-list > h3 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.quote-admin-card {
  display: grid;
  padding: 15px 17px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 14px;
  border: 1px solid var(--line);
}

.quote-admin-card > p {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  font-weight: 600;
  line-height: 1.6;
}

.quote-admin-card > span {
  color: var(--muted);
}

.quote-admin-card form {
  justify-self: end;
}

.quote-admin-card .button {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.8125rem;
}

.quote-admin-card .button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ai-panel {
  padding: 21px;
  background: var(--paper-deep);
}

.ai-panel > h3 {
  margin: 11px 0 7px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.ai-panel > p {
  margin-bottom: 18px;
}

.ai-result {
  min-height: 13px;
  margin: 0;
  color: var(--sage);
  font-size: 9px;
  line-height: 1.6;
}

.ai-result.is-error {
  color: #a14d40;
}

.editor-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}

.editor-actions label {
  min-width: 110px;
}

.admin-article-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.admin-article-list > div {
  display: flex;
  padding: 13px;
  align-items: center;
  gap: 14px;
  background: var(--paper);
}

.admin-article-list strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
}

.admin-article-list a {
  margin-left: auto;
  color: var(--accent);
  font-size: 9px;
}

.journal-footer {
  border-top: 1px solid var(--line);
}

body {
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  line-height: 1.7;
}

.hero-intro,
.meaning-text > p:not(.large-copy),
.principles-heading > p,
.principle-card p,
.practice-copy > p:not(.practice-message),
.journal-hero > p,
.admin-login > p,
.category-card p,
.article-card p,
.contribution-card > p,
.article-deck,
.article-body,
.article-disclaimer,
.comment-card p,
.muted-copy,
.content-form label,
.content-form input,
.content-form textarea,
.content-form select,
.form-note,
.yours-note > p,
.moderation-card p,
.ai-result,
.flash-message,
.site-footer > p {
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  font-weight: 500;
  line-height: 1.75;
}

.large-copy {
  font-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.55rem);
  font-weight: 500;
  line-height: 1.65;
}

.article-body {
  font-size: clamp(1.125rem, 1.04rem + 0.3vw, 1.25rem);
  font-weight: 500;
  line-height: 1.95;
}

.principle-card h3,
.category-card h2,
.article-card h3,
.contribution-card h3,
.yours-note h2,
.moderation-card h3 {
  font-weight: 600;
}

.main-nav,
.mobile-menu summary,
.mobile-menu nav a,
.palette-button,
.button,
.text-link,
.underlined-link,
.closing-link,
.header-admin-link,
.back-link,
.article-meta,
.article-byline,
.comment-card > span,
.contribution-author,
.article-category,
.category-kicker,
.section-label,
.eyebrow,
.card-number,
.card-word,
.practice-tag,
.practice-center,
.closing-kicker,
.footer-note,
.daily-quote-label,
.logout-button,
.moderation-actions .button,
.admin-article-list .article-category,
.admin-article-list strong,
.admin-article-list a {
  font-size: clamp(0.8125rem, 0.77rem + 0.13vw, 0.9375rem);
  font-weight: 600;
}

.main-nav {
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
  font-weight: 700;
}

.brand {
  color: var(--header-ink);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 700;
}

.journal-page .site-header {
  width: 100%;
}

.journal-page .site-header .brand-mark {
  color: var(--header-accent);
}

@media (max-width: 1220px) {
  .main-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .site-header .header-admin-link {
    display: none;
  }
}

@media (max-width: 360px) {
  .site-header {
    padding-inline: 12px;
    gap: 8px;
  }

  .site-header .brand {
    gap: 6px;
    font-size: 0.82rem;
  }

  .site-header .brand-mark {
    font-size: 1.4rem;
  }

  .site-header .palette-button {
    gap: 6px;
    padding-inline: 8px;
  }
}

.button {
  min-height: 48px;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card {
    min-height: 205px;
  }

  .yours-layout {
    gap: 35px;
  }

  .editor-layout {
    gap: 18px;
  }

  .moderation-card {
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .page-admin-grid {
    grid-template-columns: 1fr;
  }

  .mobile-menu {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .journal-hero {
    padding-top: 66px;
    padding-bottom: 42px;
  }

  .journal-hero h1 {
    font-size: clamp(49px, 13vw, 69px);
  }

  .category-grid-section {
    padding-bottom: 69px;
  }

  .category-grid {
    gap: 8px;
  }

  .category-card {
    min-height: 205px;
    padding: 16px 13px;
  }

  .category-symbol {
    margin-bottom: 16px;
  }

  .category-card h2 {
    font-size: 21px;
  }

  .category-card p {
    font-size: 8px;
  }

  .article-list-section {
    padding-bottom: 65px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .article-card-link {
    min-height: 185px;
    padding: 19px;
  }

  .article-page {
    padding-top: 37px;
    padding-bottom: 65px;
  }

  .article-header {
    margin-top: 36px;
  }

  .article-header h1 {
    font-size: 46px;
  }

  .article-body {
    font-size: 14px;
    line-height: 1.9;
  }

  .comments-section {
    margin-top: 52px;
  }

  .yours-hero {
    padding-bottom: 24px;
  }

  .yours-layout {
    padding-bottom: 58px;
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .community-section {
    padding-bottom: 62px;
  }

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

  .admin-login {
    padding-top: 66px;
    padding-bottom: 80px;
  }

  .admin-hero {
    padding-top: 52px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .admin-hero h1 {
    font-size: 52px;
  }

  .moderation-card {
    flex-direction: column;
    gap: 12px;
  }

  .moderation-actions {
    width: 100%;
  }

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

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

  .admin-article-list > div {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
}

.site-header .brand,
.site-header .brand strong,
.site-header .main-nav,
.site-header .main-nav > a,
.site-header .mobile-menu summary,
.site-header .mobile-menu nav a,
.site-header .palette-button,
.site-header .header-admin-link {
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.125rem);
  font-weight: 800;
}

.site-header .main-nav {
  gap: 6px;
}

.site-header .main-nav > a {
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--header-ink) 28%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--header-ink) 8%, transparent);
  box-shadow: 0 2px 5px rgba(35, 43, 38, 0.08);
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-header .main-nav > a:hover {
  border-color: color-mix(in srgb, var(--header-ink) 62%, transparent);
  background: color-mix(in srgb, var(--header-ink) 18%, transparent);
  box-shadow: 0 3px 9px rgba(35, 43, 38, 0.14);
  color: var(--header-ink);
  transform: translateY(-1px);
}

.site-header .home-icon {
  width: 18px;
  height: 18px;
}

.site-header .mobile-menu summary {
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--header-ink) 38%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--header-ink) 10%, transparent);
  box-shadow: 0 2px 6px rgba(35, 43, 38, 0.1);
  list-style: none;
}

@media (max-width: 680px) {
  .site-header .mobile-menu summary {
    padding-inline: 8px;
  }
}

.site-header .mobile-menu summary:hover,
.site-header .mobile-menu[open] summary {
  background: color-mix(in srgb, var(--header-ink) 20%, transparent);
}

.site-header .mobile-menu nav a {
  border-radius: 6px;
  text-decoration: none;
}

.site-header .header-admin-link {
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--header-ink) 38%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--header-ink) 9%, transparent);
  text-decoration: none;
}

@media (max-width: 360px) {
  .site-header .brand,
  .site-header .brand strong,
  .site-header .mobile-menu summary,
  .site-header .mobile-menu nav a,
  .site-header .palette-button,
  .site-header .header-admin-link {
    font-size: 0.94rem;
  }

  .site-header {
    gap: 4px;
  }

  .site-header .brand {
    gap: 5px;
  }

  .site-header .brand-mark {
    font-size: 1.3rem;
  }

  .site-header .mobile-menu summary {
    padding-inline: 6px;
  }

  .site-header .palette-button {
    gap: 4px;
    padding-inline: 5px;
  }

  .site-header .mood-orb {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

main h1,
main h2,
main h3 {
  font-family: var(--serif);
  font-weight: 700;
}

main h1 em,
main h2 em {
  font-weight: 700;
}

.eyebrow,
.section-label {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.025em;
}

.eyebrow {
  text-transform: none;
}

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