:root {
  --ink: #202016;
  --ink-soft: #565143;
  --moss: #394531;
  --brown: #846044;
  --clay: #a76f4d;
  --mist: #dfe6e2;
  --cream: #f6f1e7;
  --paper: #fffaf0;
  --white: #ffffff;
  --line: rgba(77, 58, 43, 0.16);
  --shadow: 0 18px 42px rgba(52, 43, 30, 0.12);
  --shadow-soft: 0 10px 28px rgba(52, 43, 30, 0.08);
  --radius: 8px;
  --container: 1120px;
  --article: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Kiwi Maru", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.85;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle at 1px 1px, rgba(77, 58, 43, 0.08) 1px, transparent 0),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.46) 1px, transparent 1px);
  background-size: 18px 18px, 54px 54px, 54px 54px;
  opacity: 0.22;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Kiwi Maru", serif;
  line-height: 1.36;
  letter-spacing: 0;
}

h1 {
  font-size: 1.24rem;
}

h2 {
  font-size: 1.92rem;
}

h3 {
  font-size: 1.14rem;
}

section[id] {
  scroll-margin-top: 78px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.article-container {
  width: min(100% - 32px, var(--article));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--brown);
  font-family: "Kiwi Maru", serif;
}

.brand-sub {
  display: block;
  color: var(--brown);
  font-size: 0.68rem;
}

.nav-links {
  display: none;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

.nav-links ul {
  display: contents;
  padding: 0;
  margin: 0;
  list-style: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button::after {
  content: "→";
  margin-left: 10px;
  font-family: "Kiwi Maru", serif;
}

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

.button-primary {
  background: var(--moss);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(57, 69, 49, 0.22);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.button-outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.section {
  padding: 72px 0;
}

.section-compact {
  padding: 52px 0;
}

.section-paper {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0.78)),
    var(--paper);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 30px;
}

.eyebrow {
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}

.lead {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.95;
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 88px);
  align-items: flex-end;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
}

.blog-hero {
  padding: 58px 0 68px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.78) 0%, rgba(246, 241, 231, 0) 100%);
}

.blog-hero-layout {
  display: grid;
  gap: 24px;
  align-items: center;
}

.blog-hero-copy {
  display: grid;
  gap: 20px;
}

.blog-hero .hero-kicker {
  color: var(--brown);
}

.blog-hero .hero-kicker::before {
  background: var(--brown);
}

.blog-hero h1 {
  max-width: 820px;
  font-size: 2.16rem;
  line-height: 1.34;
}

.blog-hero .button-outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.blog-hero-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.blog-hero-photo img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-hero-photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid rgba(77, 58, 43, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.82);
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

.hero-note-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-note-list span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(77, 58, 43, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.2;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(246, 241, 231, 0.9) 0%, rgba(246, 241, 231, 0.62) 42%, rgba(246, 241, 231, 0.18) 72%, rgba(246, 241, 231, 0) 100%),
    linear-gradient(0deg, rgba(246, 241, 231, 0.88) 0%, rgba(246, 241, 231, 0.34) 42%, rgba(246, 241, 231, 0) 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 20px;
  padding: 58px 0 38px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--brown);
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-kicker::before {
  width: 34px;
  height: 1px;
  content: "";
  background: var(--brown);
}

.hero-catch {
  max-width: 820px;
  font-family: "Kiwi Maru", serif;
  font-size: 2.24rem;
  font-weight: 500;
  line-height: 1.28;
}

.hero-lead {
  max-width: 650px;
  color: rgba(32, 32, 22, 0.78);
  font-size: 0.98rem;
  line-height: 2;
}

.hero .button-ghost {
  border-color: rgba(77, 58, 43, 0.2);
  background: rgba(255, 250, 240, 0.72);
  color: var(--ink);
}

.hero-actions,
.cta-actions {
  display: grid;
  gap: 10px;
  max-width: 430px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  border-top: 1px solid rgba(77, 58, 43, 0.18);
  border-bottom: 1px solid rgba(77, 58, 43, 0.14);
  background: rgba(255, 250, 240, 0.48);
  backdrop-filter: blur(8px);
}

.proof-item {
  padding: 14px 12px;
  border-right: 1px solid rgba(77, 58, 43, 0.13);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  font-family: "Kiwi Maru", serif;
  line-height: 1.5;
}

.proof-item span {
  display: block;
  margin-top: 4px;
  color: rgba(32, 32, 22, 0.64);
  font-size: 0.76rem;
  line-height: 1.55;
}

.concept-layout,
.journal-layout,
.course-layout,
.about-layout,
.cta-layout {
  display: grid;
  gap: 30px;
  align-items: center;
}

.values {
  display: grid;
  gap: 12px;
}

.promise-grid {
  display: grid;
  gap: 12px;
}

.value-card,
.promise-card,
.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.value-card,
.promise-card {
  padding: 18px;
}

.value-card span,
.promise-card span,
.category-card span {
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 500;
}

.value-card p,
.promise-card p,
.journal-body p,
.course-item p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.85;
}

.journal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.journal-media-link {
  display: block;
  overflow: hidden;
}

.journal-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.journal-card:hover img {
  transform: scale(1.03);
}

.journal-body {
  display: grid;
  gap: 13px;
  padding: 20px;
}

.journal-title-link {
  transition: color 0.2s ease;
}

.journal-title-link:hover {
  color: var(--clay);
}

.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4eadf;
  color: var(--brown);
  font-size: 0.74rem;
  font-weight: 500;
}

.category-grid,
.post-grid {
  display: grid;
  gap: 14px;
}

.category-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 154px;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(223, 230, 226, 0.34)),
    var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::after {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(77, 58, 43, 0.12);
  border-radius: 50%;
  content: "";
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(52, 43, 30, 0.08);
}

.course-list {
  display: grid;
  gap: 14px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.course-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.course-photo,
.about-photo {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.course-photo img,
.about-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.final-cta {
  overflow: hidden;
  background: var(--moss);
  color: var(--white);
}

.final-cta .lead,
.final-cta .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.article-hero {
  padding: 54px 0 38px;
}

.archive-hero {
  padding-bottom: 0;
}

.breadcrumb {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--brown);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.article-head {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.article-head h1 {
  font-size: 2.46rem;
}

.hero-photo {
  margin-top: 30px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-photo img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body {
  padding: 34px 0 76px;
}

.article-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.article-section:first-child {
  padding-top: 0;
}

.article-section h2,
.post-content h2 {
  margin: 28px 0 14px;
  font-size: 1.62rem;
}

.article-section h3,
.post-content h3 {
  margin: 22px 0 8px;
  font-size: 1.12rem;
}

.article-section p + p,
.post-content p + p {
  margin-top: 14px;
}

.article-section p,
.article-section li,
.post-content p,
.post-content li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 2;
}

.post-content ul,
.article-section ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.post-content li,
.article-section li {
  padding-left: 14px;
  border-left: 2px solid var(--line);
}

.note-box {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.note-box strong {
  font-family: "Kiwi Maru", serif;
  font-size: 1.12rem;
}

.article-cta {
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--moss);
  color: var(--white);
}

.article-cta p {
  color: rgba(255, 255, 255, 0.76);
}

.pagination {
  margin-top: 28px;
}

.footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-copy {
  display: grid;
  gap: 2px;
}

.footer-copy p + p {
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 640px) {
  .container,
  .article-container {
    width: min(100% - 26px, var(--container));
  }

  .brand-sub,
  .nav-links {
    display: none;
  }

  .site-header .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .section {
    padding: 58px 0;
  }

  .section-compact {
    padding: 42px 0;
  }

  .hero {
    min-height: calc(100svh - 76px);
  }

  .hero-content {
    gap: 16px;
    padding: 36px 0 30px;
  }

  .hero-catch {
    max-width: 360px;
    font-size: 2.08rem;
  }

  .hero-lead {
    font-size: 0.92rem;
    line-height: 1.86;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .site-header .button {
    width: auto;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .proof-item {
    padding: 11px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(77, 58, 43, 0.13);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .article-hero {
    padding: 38px 0 26px;
  }

  .article-head h1 {
    font-size: 2.08rem;
  }

  .hero-photo img {
    aspect-ratio: 4 / 3;
  }

  .blog-hero-photo figcaption {
    position: static;
    max-width: none;
    border-width: 1px 0 0;
    border-radius: 0;
    background: var(--paper);
  }
}

@media (min-width: 720px) {
  h2 {
    font-size: 2.46rem;
  }

  .nav-links {
    display: flex;
  }

  .hero-actions,
  .cta-actions {
    display: flex;
    flex-wrap: wrap;
    max-width: none;
  }

  .category-grid,
  .post-grid,
  .promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  h1 {
    font-size: 1.44rem;
  }

  h2 {
    font-size: 3rem;
  }

  .section {
    padding: 96px 0;
  }

  .hero-catch {
    max-width: 920px;
    font-size: 4.3rem;
  }

  .blog-hero h1 {
    font-size: 3.22rem;
  }

  .concept-layout,
  .journal-layout,
  .course-layout,
  .about-layout,
  .cta-layout,
  .blog-hero-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .promise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
