/* Kaizen Flourishing — v4 site redesign
   Tokens locked 12 Nov 2026 in /workspace/brand-assets/new-look/palette.md and fonts.md.
   Imagery is hand-built SVG/CSS line art (cubic Bézier, layered atmosphere). */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/BodoniModa-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/BodoniModa-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black";
  src: url("/fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("/fonts/SourceSerifPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("/fonts/SourceSerifPro-It.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("/fonts/SourceSerifPro-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("/fonts/SourceSerifPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #f6f2ea;
  --foreground: #111111;
  --card: #f6f2ea;
  --card-foreground: #111111;
  --popover: #f6f2ea;
  --popover-foreground: #111111;
  --primary: #111111;
  --primary-foreground: #f6f2ea;
  --secondary: #ece6da;
  --secondary-foreground: #111111;
  --muted: #ece6da;
  --muted-foreground: #4a463f;
  --accent: #b8321f;
  --accent-foreground: #ffffff;
  --border: #111111;
  --input: #111111;
  --ring: #b8321f;
  --panel: #ece6da;
  --label: #b8321f;
  --sand: #e8dcc8;
  --blush: #e8c4bc;
  --sage: #c3d0c2;
  --sage-deep: #5a6b57;
  --dust: #a8b7c6;
  --dust-pale: #c9d3dc;
  --gold: #c9a15a;
  --shadow-soft: 0 12px 36px rgba(17, 17, 17, 0.07), 0 2px 8px rgba(17, 17, 17, 0.04);
  --shadow-lift: 0 18px 50px rgba(17, 17, 17, 0.09), 0 2px 0 rgba(255, 255, 255, 0.55) inset;
  --radius-card: 1.05rem;
  --font-display: "Bodoni Moda", Didot, Georgia, serif;
  --font-grotesk: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  --font-jp: "Noto Serif JP", "Source Serif Pro", serif;
}

html { scroll-padding-top: 8.25rem; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.65;
  background-image:
    radial-gradient(ellipse 80% 50% at 0% -10%, color-mix(in oklab, var(--dust) 34%, transparent), transparent 58%),
    radial-gradient(ellipse 55% 42% at 100% 0%, color-mix(in oklab, var(--blush) 28%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 75%, color-mix(in oklab, var(--sage) 30%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 35% at 8% 70%, color-mix(in oklab, var(--sand) 55%, transparent), transparent 58%);
  background-attachment: fixed;
}

.font-display, h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

.kicker {
  font-family: var(--font-grotesk);
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* Magazine masthead */
.masthead-row {
  display: none;
}
@media (min-width: 768px) {
  .masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.4rem 1.25rem 0.35rem;
  }
}
.masthead-dateline {
  margin: 0;
  font-family: var(--font-grotesk);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.masthead-dateline time,
.masthead-dateline span { color: inherit; }
.channel-link { letter-spacing: 0.14em; }

.sticky-chrome {
  background: color-mix(in oklab, var(--background) 88%, white);
  backdrop-filter: saturate(1.15) blur(12px);
  -webkit-backdrop-filter: saturate(1.15) blur(12px);
  border-bottom: 0;
  box-shadow:
    0 1px 0 var(--foreground),
    0 2px 0 var(--background),
    0 3px 0 var(--foreground),
    0 5px 0 var(--accent);
}
.sticky-chrome header nav {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
@media (min-width: 768px) {
  .sticky-chrome header nav { padding-top: 0.7rem; padding-bottom: 0.7rem; }
  .section-tabs { top: 6.1rem; }
}

.brand-mark img {
  border-radius: 0.55rem;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.08);
}

/* Thin vermilion accent already sits under the chrome via box-shadow. */

/* Hero cover + fold */
.hero-fold {
  position: relative;
  padding-top: 0.55rem;
  padding-bottom: 0;
}
.hero-banner-frame {
  border-width: 5px;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) {
  .hero-fold { padding-top: 0.55rem; }
  .hero-banner-frame { border-width: 6px; }
}

/* Personalised edition — centred in the first-screen eye path */
.hero-fold { position: relative; }

@media (max-width: 767px) {
  .sticky-chrome header nav { padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .section-tabs-list a { padding: 0.5rem 0.7rem 0.45rem; }
  .hero-fold { padding-top: 0.4rem; }
  .hero-banner-frame { border-width: 4px; }
  .hero-banner--teach img,
  .hero-banner.hero-banner--teach img {
    max-height: 168px;
    width: 100%;
    object-fit: cover;
    object-position: center 46%;
  }
  .hero-banner-copy { padding: 0.55rem 0.75rem 0.6rem; }
  .hero-living { font-size: clamp(1.32rem, 7.6vw, 1.75rem); }
  .hero-living-sub { font-size: 0.76rem; line-height: 1.3; margin-top: 0.28rem; }
  .teach-strip li { padding: 0.48rem 0.55rem 0.5rem; }
  .teach-strip-label { font-size: 0.78rem; letter-spacing: 0.06em; }
  .teach-strip-num { font-size: 0.95rem; }
}

@media (min-width: 768px) {
  .hero-fold { padding-top: 0.4rem; }
  .hero-banner-frame {
    max-height: 368px;
    overflow: hidden;
  }
  .hero-banner--teach img,
  .hero-banner.hero-banner--teach img {
    max-height: 356px;
    width: 100%;
    object-fit: cover;
    object-position: center 38%;
  }
  .sticky-chrome header nav { padding-top: 0.55rem; padding-bottom: 0.55rem; }
  .hero-banner-copy { padding: 0.8rem 1.25rem 0.85rem; }
}

.edition-connect {
  position: relative;
  height: 1.15rem;
  margin: 0 0.25rem -1px;
  overflow: visible;
  z-index: 1;
}
.edition-leads {
  display: block;
  width: 100%;
  height: 1.15rem;
  overflow: visible;
}
.edition-leads .orn-bg,
.edition-leads .orn-mid,
.edition-leads .orn-fg,
.edition-leads .orn-blush {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.edition-leads .orn-bg { stroke: var(--dust-pale); stroke-width: 1.1; }
.edition-leads .orn-mid { stroke: var(--sage-deep); stroke-width: 1.25; opacity: 0.8; }
.edition-leads .orn-fg { stroke: var(--foreground); stroke-width: 1.45; }
.edition-leads .orn-blush { stroke: #c98980; stroke-width: 1.2; }

.edition-offer {
  position: relative;
  text-align: center;
  margin: 0 auto;
  padding: 0.7rem 0.9rem 0.8rem;
  background: color-mix(in oklab, var(--background) 35%, white);
  border: 1px solid color-mix(in oklab, var(--foreground) 12%, transparent);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  z-index: 1;
}
.edition-title {
  font-family: var(--font-display), "Bodoni Moda", Didot, Georgia, serif;
  font-weight: 700;
  font-optical-sizing: auto;
  font-size: clamp(1.38rem, 5.2vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 0 0 0.4rem;
  text-wrap: balance;
}
.edition-why {
  margin: 0 auto 0.7rem;
  max-width: 34rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--foreground);
  text-wrap: pretty;
}
.edition-actions { margin: 0; }
.edition-btn {
  display: inline-block;
  font-family: var(--font-grotesk), "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foreground);
  background: transparent;
  border: 1.5px solid var(--foreground);
  border-radius: 999px;
  padding: 0.5rem 1.15rem 0.48rem;
  text-decoration: none;
}
.edition-btn:hover,
.edition-btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

@media (min-width: 768px) {
  .edition-connect { height: 1.35rem; margin: 0 6% -2px; }
  .edition-leads { height: 1.35rem; }
  .edition-offer {
    max-width: 42rem;
    padding: 0.7rem 1.4rem 0.8rem;
  }
  .edition-why { font-size: 1rem; margin-bottom: 0.65rem; }
  .edition-btn { font-size: 0.75rem; padding: 0.55rem 1.3rem 0.52rem; }
}

@media (max-width: 767px) {
  .edition-connect { height: 0.95rem; }
  .edition-leads { height: 0.95rem; }
  .edition-offer { padding: 0.6rem 0.8rem 0.7rem; border-radius: 0.85rem; }
  .edition-why { font-size: 0.84rem; line-height: 1.35; margin-bottom: 0.55rem; }
  .edition-btn { padding: 0.45rem 0.95rem 0.42rem; }
}

/* Lifted section rhythm */
.section-soft {
  position: relative;
}
.section-wash {
  position: relative;
}
.section-wash::before {
  content: "";
  position: absolute;
  inset: 1.25rem -0.5rem auto -0.5rem;
  height: calc(100% - 2.5rem);
  border-radius: 1.75rem;
  background: linear-gradient(
    165deg,
    color-mix(in oklab, var(--dust-pale) 42%, transparent),
    color-mix(in oklab, var(--background) 70%, transparent) 45%,
    color-mix(in oklab, var(--sand) 36%, transparent)
  );
  z-index: -1;
  pointer-events: none;
}

.lift-card {
  background: color-mix(in oklab, var(--background) 55%, white);
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.35rem 1.2rem 1.4rem;
}

/* How we teach — four layered cards */
.teach-cards {
  border-top: 0;
  gap: 1rem;
  margin-top: 2rem;
}
.teach-cards > li {
  border-bottom: 0;
  background: color-mix(in oklab, var(--background) 55%, white);
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.15rem 1.3rem;
}
.teach-cards h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.12;
}
.teach-icon {
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.55rem;
  color: var(--foreground);
}
.teach-icon svg { width: 100%; height: 100%; display: block; }
.teach-example {
  border-top: 1px solid color-mix(in oklab, var(--foreground) 16%, transparent);
}
.teach-byline {
  font-style: italic;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .teach-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .teach-cards > li {
    border-right: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
    padding: 1.4rem 1.15rem 1.45rem;
  }
  .teach-cards > li:first-child { padding-left: 1.15rem; }
  .teach-cards > li:last-child { border-right: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent); padding-right: 1.15rem; }
}

/* Pillars */
.pillar-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  border: 0;
}
.pillar-grid > li {
  position: relative;
  overflow: hidden;
  background: color-mix(in oklab, var(--background) 55%, white);
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.3rem 1.6rem;
}
.pillar-grid > li .ornament {
  position: absolute;
  right: -0.2rem;
  top: 0.7rem;
  width: 7.2rem;
  height: 7.2rem;
  opacity: 0.9;
  pointer-events: none;
}
.pillar-grid > li > *:not(.ornament) { position: relative; z-index: 1; }
.pillar-grid > li .kicker,
.pillar-grid > li h3 { max-width: 70%; }
.pillar-mind { background: linear-gradient(180deg, color-mix(in oklab, var(--dust-pale) 38%, white), color-mix(in oklab, var(--background) 40%, white)); }
.pillar-body { background: linear-gradient(180deg, color-mix(in oklab, var(--sand) 55%, white), color-mix(in oklab, var(--background) 40%, white)); }
.pillar-soul { background: linear-gradient(180deg, color-mix(in oklab, var(--sage) 42%, white), color-mix(in oklab, var(--blush) 18%, white)); }
@media (min-width: 768px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* Films / journal / tools as cards */
.film-grid {
  display: grid;
  gap: 1.25rem;
  border: 0;
  padding: 0;
  margin-top: 2rem;
  list-style: none;
}
.film-grid > li {
  background: color-mix(in oklab, var(--background) 55%, white);
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 0.7rem 0.7rem 1.15rem;
  overflow: hidden;
}
.film-grid img {
  border: 0 !important;
  border-radius: 0.7rem;
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.12);
}
.film-grid .kicker { margin-left: 0.35rem; }
.film-grid h3 { margin-left: 0.35rem; }
.film-grid .link-arrow { margin-left: 0.35rem; }
@media (min-width: 640px) {
  .film-grid { grid-template-columns: 1fr 1fr; gap: 1.35rem; }
}

.journal-card {
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent) !important;
  border-top-width: 1px !important;
  border-radius: var(--radius-card);
  background: color-mix(in oklab, var(--background) 55%, white);
  box-shadow: var(--shadow-soft);
  padding: 1.35rem 1.3rem 1.4rem !important;
  margin-top: 1rem;
}
.journal-card + .journal-card { margin-top: 1rem; }

.syllabus > li,
.tool-chapter {
  border-top: 0;
  background: color-mix(in oklab, var(--background) 55%, white);
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.3rem 1.5rem;
  margin-top: 1rem;
}
.syllabus-tools > li {
  border-top-color: color-mix(in oklab, var(--foreground) 14%, transparent);
}

/* Syllabus pillars */
.syllabus-lede {
  border-top: 0;
  padding-top: 0;
  max-width: 44rem;
}
.syllabus-byline { font-style: italic; }
.syllabus-pillar {
  position: relative;
  margin-top: 2.5rem;
  background: color-mix(in oklab, var(--background) 40%, white);
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.3rem 0.4rem;
  overflow: hidden;
}
.syllabus-pillar .pillar-figure {
  position: absolute;
  right: 0.4rem;
  top: 0.8rem;
  width: 8.5rem;
  height: 8.5rem;
  pointer-events: none;
}
.syllabus-toc { margin-top: 0.5rem; }
.syllabus-toc > li {
  border-top: 1px solid color-mix(in oklab, var(--foreground) 14%, transparent);
  padding: 1.4rem 0 1.5rem;
}
.syllabus-toc h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
}
@media (min-width: 768px) {
  .syllabus-pillar { padding: 2rem 2rem 0.5rem; }
  .syllabus-pillar .pillar-figure { width: 10rem; height: 10rem; right: 1.2rem; top: 1rem; }
  .syllabus-pillar > .kicker,
  .syllabus-pillar > h2,
  .syllabus-pillar > p { max-width: calc(100% - 11rem); }
}

/* Guide / about */
.guide-grid, .about-grid {
  border-top: 0 !important;
  padding-top: 0 !important;
  gap: 1.25rem !important;
}
.guide-panel, .about-copy, .about-intro {
  background: color-mix(in oklab, var(--background) 55%, white);
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.35rem 1.6rem;
}
.about-intro { position: relative; overflow: hidden; }
.about-intro .ornament {
  position: absolute;
  right: -0.4rem;
  bottom: -0.4rem;
  width: 8rem;
  height: 8rem;
  pointer-events: none;
}

.author-card {
  border-top: 0;
  padding-top: 0.5rem;
}

/* Bookends stay sharp and high-contrast */
.bookend-media {
  border-radius: 0.35rem;
  box-shadow: var(--shadow-soft);
}
.seal {
  /* typography and contrast unchanged — heavy grotesk, solid field */
  letter-spacing: 0.06em;
}

/* Forms */
.form-stack input[type="email"],
.form-stack input[type="text"],
.form-stack textarea {
  border: 1px solid color-mix(in oklab, var(--foreground) 22%, transparent);
  background: color-mix(in oklab, var(--background) 50%, white);
  border-radius: 0.65rem;
  box-shadow: inset 0 1px 2px rgba(17, 17, 17, 0.04);
}
.intake-card {
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent) !important;
  border-radius: 1.15rem;
  background: color-mix(in oklab, var(--background) 55%, white);
  box-shadow: var(--shadow-lift);
}

/* Why it's worth it */
.worth-block {
  margin-top: 2rem;
  padding: 1.4rem 1.25rem 1.5rem;
  background: color-mix(in oklab, var(--background) 50%, white);
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-soft);
}
.worth-block h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.2rem 0 1rem;
}
.worth-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.worth-list > li {
  padding: 0.9rem 0.95rem 1rem;
  background: color-mix(in oklab, var(--sand) 28%, white);
  border-radius: 0.8rem;
  border: 1px solid color-mix(in oklab, var(--foreground) 8%, transparent);
}
.worth-list h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}
.worth-list p { margin: 0; }
.worth-note {
  margin: 1rem 0 0;
  font-style: italic;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .worth-list { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .worth-block { padding: 1.7rem 1.6rem 1.6rem; }
  .worth-block h2 { font-size: 2.35rem; }
}

/* Chapter / article */
.chapter-byline {
  font-style: italic;
  font-size: 1rem;
}
.chapter-section h2,
.article-copy h2 {
  border-top: 0;
  box-shadow: 0 -1px 0 var(--foreground), 0 -3px 0 var(--background), 0 -4px 0 var(--foreground);
  padding-top: 1.15rem;
}

/* Footer */
.site-footer {
  position: relative;
  border-top: 0;
  margin-top: 3.5rem;
  padding-top: 2.6rem;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--sand) 40%, var(--background)));
}
.footer-meander {
  display: block;
  width: 100%;
  height: 12px;
  margin: 0 0 1.75rem;
  color: var(--foreground);
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12' viewBox='0 0 28 12' fill='none'%3E%3Cpath d='M0 9.5c1.2 0 1.2-7 3.4-7s2.2 7 4.4 7 2.2-7 4.4-7 2.2 7 4.4 7 2.2-7 4.4-7 2.2 7 4.4 7 2.2-7 2.6-7' stroke='%23111' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hanko {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  border-radius: 0.28rem;
  background: var(--accent);
  color: var(--primary-foreground);
  font-family: var(--font-jp), serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-9deg);
  box-shadow: 0 2px 0 color-mix(in oklab, var(--accent) 70%, #111);
}
.eudaimonia {
  margin: 0.85rem 0 0;
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
.eudaimonia small {
  display: block;
  margin-top: 0.1rem;
  font-style: normal;
  font-family: var(--font-grotesk);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer-fine {
  border-top: 0;
  box-shadow: 0 -1px 0 color-mix(in oklab, var(--foreground) 30%, transparent);
}

/* Vertical kaizen — desktop margin only, very quiet */
.kanji-margin {
  display: none;
}
@media (min-width: 1280px) {
  .kanji-margin {
    display: block;
    position: fixed;
    left: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: var(--font-jp), serif;
    font-size: 2.4rem;
    letter-spacing: 0.4em;
    color: var(--foreground);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    user-select: none;
  }
}

/* Science / figure line art */
.ornament, .pillar-figure, .teach-icon, .section-ornament {
  color: var(--foreground);
}
.ornament svg, .pillar-figure svg, .section-ornament svg { display: block; width: 100%; height: 100%; }
.orn-bg { stroke: var(--dust-pale); fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.orn-mid { stroke: var(--sage-deep); fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.orn-fg { stroke: var(--foreground); fill: none; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.orn-blush { stroke: #c98980; fill: none; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.orn-gold { stroke: var(--gold); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.orn-fill-soft { fill: color-mix(in oklab, var(--blush) 35%, transparent); stroke: none; }

.section-ornament {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.section-ornament--brain { width: 9rem; height: 7.5rem; right: 1rem; top: 0.4rem; opacity: 0.7; }
.section-ornament--neuron { width: 11rem; height: 6.5rem; right: 0.5rem; top: 1.5rem; opacity: 0.65; }
.section-ornament--dna { width: 3.2rem; height: 9rem; right: 1.2rem; top: 1.2rem; opacity: 0.6; }
@media (max-width: 767px) {
  .section-ornament { opacity: 0.4; width: 5.5rem !important; }
  .section-ornament--dna { width: 2.2rem !important; height: 6rem; }
  .pillar-grid > li .ornament { width: 5.4rem; height: 5.4rem; opacity: 0.75; }
  .syllabus-pillar .pillar-figure { width: 5.8rem; height: 5.8rem; opacity: 0.8; }
}

/* Double hairlines on some typographic rules, not on viral stills */
.rule-double {
  height: 0;
  border: 0;
  box-shadow: 0 1px 0 var(--foreground), 0 3px 0 var(--background), 0 4px 0 var(--foreground);
}

/* Menu button slightly softer, still high contrast */
[data-menu-button] {
  border-radius: 0.45rem;
}

/* Buttons keep contrast; a touch of radius for the softer system */
.btn-ink, .btn-red, .btn-outline { border-radius: 0.55rem; }

/* Keep hero living textbook + teach strip heavy, high-contrast grotesk (do not soften) */
.hero-living,
.hero-living-sub,
.teach-strip,
.teach-strip-label,
.teach-strip-num {
  font-family: var(--font-grotesk), "Archivo", "Helvetica Neue", Arial, sans-serif;
}

/* Research partial and leftover hard rules */
#main .border-t-2 { border-top-width: 0; }
.fade-in.mx-auto { position: relative; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}


/* Official v4 logo: circular disc, no hard square frame */
.brand-mark img {
  width: 3.1rem;
  height: 3.1rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08);
  object-fit: cover;
}
@media (min-width: 768px) {
  .brand-mark img { width: 3.35rem; height: 3.35rem; }
}

/* Official Stay to learn seal — heavy, high-contrast, sharp on a phone */
.seal-official {
  display: block;
  width: min(100%, 17.5rem);
  height: auto;
  border-radius: 0;
  filter: none;
}

/* Chamberlain line-art and plates */
.pillar-art, .pillar-figure .pillar-art, .about-art, .section-art, .footer-enso {
  display: block;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
}
.pillar-grid > li .pillar-art {
  position: absolute;
  right: 0.15rem;
  top: 0.4rem;
  width: 7.4rem;
  height: 7.8rem;
  object-position: top center;
  z-index: 0;
}
.pillar-soul .pillar-art { width: 6.6rem; height: 8.2rem; top: 0.2rem; }
.pillar-grid > li > *:not(.pillar-art) { position: relative; z-index: 1; }

.syllabus-pillar .pillar-figure {
  width: 8.2rem;
  height: 9.2rem;
}
.syllabus-pillar .pillar-art {
  width: 100%;
  height: 100%;
  object-position: top center;
}
@media (min-width: 768px) {
  .syllabus-pillar .pillar-figure { width: 10.5rem; height: 11.5rem; right: 1.1rem; top: 0.8rem; }
}

.section-art {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.section-art--mind {
  width: 8.2rem;
  height: auto;
  right: 0.6rem;
  top: 1.4rem;
  opacity: 0.55;
}
.section-art--walkers {
  width: 10rem;
  height: auto;
  right: 0.8rem;
  top: 1.1rem;
  opacity: 0.5;
}
.about-intro { min-height: 12rem; }
.about-art {
  position: absolute;
  right: -0.2rem;
  bottom: 0.2rem;
  width: 11rem;
  height: auto;
  opacity: 0.8;
}
@media (max-width: 767px) {
  .pillar-grid > li .pillar-art { width: 5.2rem; height: 5.6rem; }
  .section-art--mind, .section-art--walkers { width: 5.6rem; opacity: 0.4; }
  .about-art { width: 7.5rem; opacity: 0.65; }
  .syllabus-pillar .pillar-figure { width: 5.6rem; height: 6.4rem; }
}

.footer-brand { position: relative; padding-right: 4.5rem; }
.footer-enso {
  position: absolute;
  right: 0;
  top: -0.4rem;
  width: 3.6rem;
  height: 3.6rem;
  opacity: 0.28;
}
.site-art-credits {
  max-width: 72rem;
  margin: 0.85rem auto 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}


/* Chapter header plates, in-article figures, journal thumbs */
.chapter-header-plate,
.chapter-figure {
  margin: 1.55rem 0 1.85rem;
  padding: 0;
}
.chapter-header-plate img,
.chapter-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid var(--foreground);
  background: var(--background);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) {
  .chapter-header-plate img,
  .chapter-figure img { border-width: 6px; }
  .chapter-figure {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }
}
.chapter-figure {
  margin-top: 2.1rem;
  margin-bottom: 2.35rem;
}

.journal-card--with-art {
  display: grid;
  gap: 1rem 1.35rem;
  align-items: start;
}
.journal-card-art {
  display: block;
  min-width: 0;
}
.journal-card-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border: 3px solid var(--foreground);
  background: var(--background);
  box-shadow: var(--shadow-soft);
}
.journal-card-copy { min-width: 0; }
.journal-card--with-art .journal-card-copy .font-display { margin-top: 0.55rem; }
@media (min-width: 768px) {
  .journal-card--with-art {
    grid-template-columns: 16.75rem 1fr;
    gap: 1.15rem 1.5rem;
  }
}
@media (max-width: 767px) {
  .chapter-header-plate img,
  .chapter-figure img { border-width: 4px; }
  .journal-card-art img { border-width: 2px; }
}
