:root {
  --paper: #faf7f2;
  --paper-warm: #f3ece4;
  --cream: #fffaf4;
  --ink: #292522;
  --ink-soft: #5f5751;
  --berry: #7b4053;
  --berry-dark: #5e2f40;
  --berry-light: #a96878;
  --blush: #d7aaa8;
  --sage: #a7b2a0;
  --sage-dark: #687564;
  --line: rgba(41, 37, 34, 0.16);
  --line-light: rgba(255, 250, 244, 0.24);
  --shadow: 0 24px 65px rgba(65, 45, 42, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  --shell: 1180px;
  --radius: 22px;
}

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

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

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h1 em,
h2 em {
  color: var(--berry);
  font-weight: 400;
}

::selection {
  background: var(--blush);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--berry-light);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.narrow-shell {
  width: min(calc(100% - 48px), 820px);
}

.article-shell {
  width: min(calc(100% - 48px), 780px);
}

.section {
  padding-block: 110px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--berry);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #f2d8dc;
}

.eyebrow-mark {
  width: 30px;
  height: 1px;
  background: currentColor;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button-primary {
  background: var(--berry);
  color: white;
}

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

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

.button-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}

.button-cream {
  background: var(--cream);
  color: var(--berry-dark);
}

.button-cream:hover {
  background: white;
}

.button-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.76rem;
}

.button-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.8;
  transition: color 160ms ease, gap 160ms ease;
}

.text-link:hover {
  gap: 12px;
  color: var(--berry-dark);
}

.text-link-large {
  margin-top: 18px;
  font-size: 0.9rem;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px rgba(41, 37, 34, 0.05);
}

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

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.wordmark span:last-child {
  color: var(--berry);
  font-style: italic;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav > a:not(.button) {
  position: relative;
  padding-block: 12px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.site-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--berry);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav > a:not(.button):hover::after,
.site-nav > a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle-label {
  font-size: 0.75rem;
  font-weight: 700;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before {
  position: absolute;
  top: -6px;
}

.menu-toggle-lines::after {
  position: absolute;
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding-block: 94px 106px;
  background: var(--paper);
}

.hero-section::before {
  position: absolute;
  width: 440px;
  height: 440px;
  top: -160px;
  right: -130px;
  border: 1px solid rgba(123, 64, 83, 0.12);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
}

.hero-copy h1 {
  max-width: 690px;
  margin-bottom: 30px;
  font-size: clamp(3.6rem, 6.25vw, 6.35rem);
}

.hero-copy h1 em {
  display: block;
}

.hero-intro {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.honest-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.honest-note span {
  color: var(--berry);
}

.hero-visual {
  position: relative;
  min-height: 530px;
  isolation: isolate;
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(123, 64, 83, 0.2);
  border-radius: 50%;
}

.hero-orbit-one {
  width: 420px;
  height: 420px;
  top: 38px;
  right: 8px;
}

.hero-orbit-two {
  width: 330px;
  height: 330px;
  top: 84px;
  right: 54px;
  border-style: dashed;
}

.note-card {
  position: absolute;
  border: 1px solid rgba(41, 37, 34, 0.13);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.note-card-main {
  width: min(390px, calc(100% - 48px));
  top: 40px;
  right: 22px;
  padding: 34px;
  transform: rotate(2.2deg);
}

.note-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hand-circle {
  display: inline-flex;
  width: 54px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--berry);
  border-radius: 50%;
  color: var(--berry);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  transform: rotate(-8deg);
}

.note-question {
  margin-bottom: 32px;
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.note-question em {
  color: var(--berry);
}

.calculation-list {
  display: grid;
  gap: 0;
  font-size: 0.8rem;
}

.calculation-list > div {
  display: flex;
  justify-content: space-between;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.calculation-total {
  margin-top: 10px;
  border-top: 2px solid var(--ink);
  border-bottom: 0 !important;
  font-weight: 800;
}

.note-card-small {
  z-index: 2;
  width: 190px;
  bottom: 26px;
  left: -6px;
  padding: 24px;
  background: var(--blush);
  transform: rotate(-5deg);
}

.note-card-small strong {
  display: block;
  margin-block: 20px 4px;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}

.note-card-small p {
  margin: 0;
  font-size: 0.76rem;
}

.mini-label {
  color: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.drawn-arrow {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-family: var(--serif);
  font-size: 1.7rem;
}

.tape {
  position: absolute;
  z-index: 4;
  width: 98px;
  height: 28px;
  top: 28px;
  right: 160px;
  background: rgba(167, 178, 160, 0.72);
  transform: rotate(-7deg);
}

.scribble-badge {
  position: absolute;
  right: -30px;
  bottom: 4px;
  display: flex;
  width: 150px;
  height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed var(--berry);
  border-radius: 50%;
  color: var(--berry);
  font-family: var(--serif);
  font-size: 0.82rem;
  line-height: 1.1;
  text-align: center;
  transform: rotate(8deg);
}

.scribble-badge strong {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--paper-warm);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-items > div {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-right: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.trust-items > div:last-child {
  border-right: 0;
}

.trust-number {
  color: var(--berry);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.story-grid {
  display: grid;
  gap: clamp(60px, 10vw, 150px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.section-heading h2,
.section-intro-row h2,
.tools-heading h2 {
  margin: 0;
  font-size: clamp(2.75rem, 4.7vw, 5rem);
}

.story-copy {
  padding-top: 46px;
  color: var(--ink-soft);
}

.story-copy p,
.prose-copy p {
  max-width: 680px;
}

.story-copy .story-lead,
.prose-copy .story-lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.pillars-section {
  background: var(--paper-warm);
}

.section-intro-row,
.tools-heading {
  display: grid;
  align-items: end;
  gap: 80px;
  margin-bottom: 56px;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
}

.section-intro-row > p,
.tools-heading > p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.pillar-grid,
.content-grid,
.tool-preview-grid,
.values-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar-card {
  position: relative;
  display: flex;
  min-height: 405px;
  overflow: hidden;
  padding: 32px;
  flex-direction: column;
  border-radius: var(--radius);
}

.pillar-berry {
  background: var(--berry);
  color: white;
}

.pillar-sage {
  background: var(--sage);
}

.pillar-blush {
  background: var(--blush);
}

.pillar-index {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pillar-symbol {
  display: flex;
  width: 84px;
  height: 84px;
  align-items: center;
  justify-content: center;
  margin: 45px 0 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 2rem;
  opacity: 0.88;
}

.pillar-card h3 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.pillar-card p {
  margin-bottom: 28px;
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.82;
}

.pillar-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 750;
}

.latest-section {
  background: var(--cream);
}

.section-intro-with-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.section-intro-with-link .text-link {
  margin-bottom: 10px;
}

.content-card {
  position: relative;
  display: flex;
  min-height: 345px;
  padding: 30px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.content-card:hover {
  border-color: rgba(123, 64, 83, 0.4);
  box-shadow: 0 16px 40px rgba(65, 45, 42, 0.08);
  transform: translateY(-4px);
}

.content-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 54px;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.content-category {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(123, 64, 83, 0.1);
  color: var(--berry);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.content-date {
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
}

.content-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1.08;
}

.content-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.content-card p {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.7;
}

.content-card .text-link {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: auto;
}

.empty-state {
  padding: 54px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
}

.journey-section {
  padding-block: 0;
  background: var(--cream);
}

.journey-panel {
  position: relative;
  display: grid;
  min-height: 520px;
  overflow: hidden;
  align-items: center;
  gap: 70px;
  padding: 70px 74px;
  border-radius: 28px;
  background: var(--berry);
  color: white;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.64fr);
}

.journey-panel::after {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  bottom: -160px;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  content: "";
}

.journey-index {
  position: absolute;
  top: 25px;
  right: 48%;
  color: rgba(255, 255, 255, 0.08);
  font-family: var(--serif);
  font-size: 8rem;
  font-style: italic;
  line-height: 0.65;
  transform: rotate(-8deg);
}

.journey-copy {
  position: relative;
  z-index: 1;
}

.journey-copy h2 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 4.8vw, 5rem);
}

.journey-copy p {
  max-width: 610px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.76);
}

.journey-latest {
  position: relative;
  z-index: 1;
  padding: 32px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.journey-latest h3 {
  margin-block: 28px 16px;
  font-size: 1.8rem;
}

.journey-latest p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.journey-latest a {
  display: inline-flex;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 750;
}

.tools-preview-section {
  background: var(--cream);
}

.tools-heading {
  align-items: end;
}

.tool-preview-card {
  position: relative;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tool-icon {
  display: flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  border: 1px solid var(--berry);
  border-radius: 50%;
  color: var(--berry);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.status-label {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--sage-dark);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-preview-card h3 {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.tool-preview-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.newsletter-section {
  padding-block: 105px;
  background: var(--cream);
}

.newsletter-panel {
  display: grid;
  overflow: hidden;
  align-items: center;
  gap: 70px;
  padding: 70px;
  border-radius: 28px;
  background: var(--berry-dark);
  color: white;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.newsletter-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 4.8vw, 4.8rem);
}

.newsletter-copy > p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.74);
}

.newsletter-promise {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  color: #f2d8dc;
  font-size: 0.73rem;
}

.newsletter-form-wrap {
  position: relative;
  z-index: 1;
}

.newsletter-form > label:first-of-type {
  display: block;
  margin-bottom: 10px;
  color: #f2d8dc;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.email-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.email-row input {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.email-row input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.email-row input:focus {
  border-color: #f2d8dc;
  box-shadow: 0 0 0 3px rgba(242, 216, 220, 0.14);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: 0.68rem;
  line-height: 1.5;
}

.consent-row input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--blush);
}

.form-message {
  margin-bottom: 18px;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.form-message-success {
  border: 1px solid rgba(200, 238, 198, 0.35);
  background: rgba(200, 238, 198, 0.12);
  color: #e2f7df;
}

.form-message-error {
  border: 1px solid rgba(255, 190, 190, 0.35);
  background: rgba(255, 190, 190, 0.12);
  color: #ffe1e1;
}

.site-footer {
  padding-block: 78px 28px;
  background: var(--ink);
  color: white;
}

.footer-grid {
  display: grid;
  gap: 55px;
  padding-bottom: 60px;
  grid-template-columns: 1.65fr 0.7fr 0.7fr 0.95fr;
}

.wordmark-footer {
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.footer-brand p {
  max-width: 290px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.footer-title {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.footer-links a:hover {
  color: white;
}

.footer-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: #a8c59f;
  box-shadow: 0 0 0 5px rgba(168, 197, 159, 0.1);
}

.footer-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.67rem;
}

.page-hero {
  padding-block: 115px 100px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

.page-hero h1 {
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 6.7vw, 6.8rem);
}

.page-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.page-hero-compact {
  padding-block: 80px;
}

.page-hero-compact h1 {
  font-size: clamp(3rem, 5vw, 5rem);
}

.category-nav {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.category-nav a {
  min-width: max-content;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.category-nav a:hover {
  border-color: var(--berry);
  color: var(--berry);
}

.listing-section {
  min-height: 460px;
  background: var(--cream);
}

.content-grid-listing {
  align-items: stretch;
}

.empty-state-large {
  padding-block: 100px;
}

.empty-state-large > span {
  color: var(--berry);
}

.empty-state-large h2 {
  margin: 15px 0 8px;
  font-size: 2.4rem;
}

.article-header {
  padding-block: 85px 90px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 60px;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 700;
}

.back-link:hover {
  color: var(--berry);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.article-header h1 {
  margin-bottom: 30px;
  font-size: clamp(3rem, 6vw, 5.9rem);
}

.article-excerpt {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.45;
}

.article-body-grid {
  display: grid;
  align-items: start;
  gap: 80px;
  padding-block: 90px 120px;
  grid-template-columns: minmax(0, 720px) minmax(210px, 1fr);
}

.article-body {
  color: #403a36;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.5vw, 1.27rem);
  line-height: 1.85;
}

.article-body p {
  margin-bottom: 1.5em;
}

.article-aside {
  position: sticky;
  top: 120px;
  padding: 24px;
  border-left: 2px solid var(--blush);
  background: var(--paper-warm);
}

.article-aside p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.about-hero-grid {
  display: grid;
  align-items: end;
  gap: 90px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
}

.about-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 6rem);
}

.about-intro-card {
  position: relative;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--blush);
  transform: rotate(2deg);
}

.about-intro-card > span {
  position: absolute;
  top: -24px;
  left: 20px;
  color: var(--berry);
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
}

.about-intro-card p {
  position: relative;
  margin: 20px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.45;
}

.prose-grid {
  display: grid;
  align-items: start;
  gap: 100px;
  grid-template-columns: 0.75fr 1.25fr;
}

.prose-sticky {
  position: sticky;
  top: 130px;
}

.scribble-number {
  display: block;
  margin-bottom: 24px;
  color: var(--blush);
  font-family: var(--serif);
  font-size: 5rem;
  font-style: italic;
  line-height: 1;
}

.prose-sticky h2 {
  font-size: 3rem;
}

.prose-copy {
  color: var(--ink-soft);
}

.values-section {
  background: var(--paper-warm);
}

.values-grid {
  margin-top: 35px;
}

.values-grid article {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.values-grid article > span {
  color: var(--berry);
  font-size: 0.65rem;
  font-weight: 800;
}

.values-grid h3 {
  margin-block: 38px 15px;
  font-size: 1.8rem;
}

.values-grid p {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.tools-page-hero {
  text-align: center;
}

.tools-page-hero .narrow-shell {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.coming-pill {
  display: inline-flex;
  margin-top: 32px;
  padding: 9px 15px;
  border: 1px solid rgba(123, 64, 83, 0.24);
  border-radius: 999px;
  color: var(--berry);
  font-size: 0.68rem;
  font-weight: 750;
}

.tool-catalogue {
  display: grid;
  gap: 16px;
}

.catalogue-card {
  display: grid;
  align-items: center;
  gap: 40px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  grid-template-columns: 52px minmax(0, 1fr) 90px;
}

.catalogue-featured {
  background: var(--sage);
}

.catalogue-number {
  align-self: start;
  font-size: 0.7rem;
  font-weight: 800;
}

.catalogue-card h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

.catalogue-card p {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
}

.catalogue-symbol {
  display: flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--berry);
  border-radius: 50%;
  color: var(--berry);
  font-family: var(--serif);
  font-size: 1.8rem;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 7px 11px;
  border: 1px solid rgba(41, 37, 34, 0.18);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.affiliate-note-section {
  padding-top: 0;
}

.affiliate-note {
  display: grid;
  align-items: center;
  gap: 80px;
  padding-block: 60px;
  border-block: 1px solid var(--line);
  grid-template-columns: 0.9fr 1.1fr;
}

.affiliate-note h2 {
  margin: 0;
  font-size: 3rem;
}

.affiliate-note > p {
  margin: 0;
  color: var(--ink-soft);
}

.legal-copy h2 {
  margin: 50px 0 16px;
  font-size: 2rem;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  color: var(--ink-soft);
}

.legal-callout {
  margin-top: 50px;
  padding: 22px;
  border-left: 3px solid var(--berry);
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.error-page small {
  display: block;
  margin-top: 30px;
  color: var(--ink-soft);
}

.account-section {
  display: grid;
  min-height: calc(100vh - 86px);
  place-items: center;
  padding: 70px 24px;
  background: var(--paper-warm);
}

.account-card {
  width: min(100%, 520px);
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.account-card .back-link {
  margin-bottom: 42px;
}

.account-card h1 {
  margin-bottom: 15px;
  font-size: 3.4rem;
}

.account-card > p {
  color: var(--ink-soft);
}

.account-card-centered {
  text-align: center;
}

.account-card-centered .button {
  margin-top: 18px;
}

.stacked-form {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-group label {
  font-size: 0.72rem;
  font-weight: 750;
}

.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: white;
}

.field-group textarea {
  resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(123, 64, 83, 0.1);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 86px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 5px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--berry);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(123, 64, 83, 0.1);
  outline: none;
}

.consent-row-dark {
  color: var(--ink-soft);
}

.field-error,
.validation-summary {
  color: #a22836;
  font-size: 0.72rem;
}

.validation-summary:empty,
.field-error:empty {
  display: none;
}

.validation-summary ul {
  margin: 0;
  padding-left: 18px;
}

.account-note {
  margin: 24px 0 0 !important;
  font-size: 0.7rem;
  text-align: center;
}

.admin-section {
  min-height: calc(100vh - 86px);
  padding-block: 80px 110px;
  background: var(--paper-warm);
}

.admin-header,
.admin-editor-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

.admin-header h1,
.admin-editor-header h1 {
  margin-bottom: 12px;
  font-size: clamp(3rem, 5vw, 5rem);
}

.admin-header p {
  margin: 0;
  color: var(--ink-soft);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header-actions form {
  margin: 0;
}

.admin-nav {
  display: flex;
  gap: 8px;
  margin: -18px 0 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  background: var(--ink);
  color: var(--cream);
}

.admin-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.admin-stat {
  display: grid;
  gap: 5px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--cream);
}

.admin-stat strong {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
}

.admin-stat span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 750;
}

.admin-dashboard-grid {
  display: grid;
  align-items: start;
  gap: 24px;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.8fr);
}

.admin-dashboard-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.admin-dashboard-panel h2 {
  margin: 4px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

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

.admin-recent-list {
  display: grid;
}

.admin-recent-list > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.admin-recent-list strong,
.admin-recent-list small {
  display: block;
}

.admin-recent-list strong {
  margin-bottom: 4px;
  font-size: 0.78rem;
}

.admin-recent-list small {
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.admin-quick-actions {
  display: grid;
  gap: 14px;
}

.admin-quick-actions h2 {
  margin-bottom: 8px;
}

.admin-quick-actions > a {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper-warm);
}

.admin-quick-actions > a:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.admin-quick-actions strong {
  font-size: 0.76rem;
}

.admin-quick-actions span {
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.admin-empty {
  color: var(--ink-soft);
  white-space: normal;
}

.form-message-admin {
  border-color: rgba(67, 111, 61, 0.2);
  background: rgba(102, 146, 93, 0.12);
  color: #31532d;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.admin-table th,
.admin-table td {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  color: var(--ink-soft);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table td {
  font-size: 0.78rem;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(41, 37, 34, 0.08);
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 750;
}

.admin-status.is-published {
  background: rgba(79, 121, 70, 0.13);
  color: #3e6837;
}

.admin-editor-shell {
  width: min(calc(100% - 48px), 1080px);
}

.admin-editor-header .back-link {
  margin-bottom: 30px;
}

.editor-form {
  display: grid;
  align-items: start;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 330px;
}

.editor-form > .validation-summary {
  grid-column: 1 / -1;
}

.editor-main,
.editor-panel {
  display: grid;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.editor-sidebar {
  display: grid;
  gap: 16px;
}

.editor-panel {
  padding: 24px;
}

.editor-panel h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-help {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

@media (max-width: 1040px) {
  .site-nav {
    gap: 18px;
  }

  .hero-grid {
    gap: 40px;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.8fr);
  }

  .scribble-badge {
    right: 0;
  }

  .journey-panel,
  .newsletter-panel {
    gap: 45px;
    padding: 55px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.7fr 0.7fr;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .shell,
  .narrow-shell,
  .article-shell,
  .admin-editor-shell {
    width: min(calc(100% - 36px), var(--shell));
  }

  .section {
    padding-block: 82px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 86px;
    right: 0;
    left: 0;
    display: flex;
    height: calc(100dvh - 86px);
    align-items: stretch;
    padding: 32px 24px 48px;
    flex-direction: column;
    gap: 2px;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav > a:not(.button) {
    padding-block: 16px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.55rem;
  }

  .site-nav > a:not(.button)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 24px;
  }

  .hero-section {
    padding-block: 70px 80px;
  }

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

  .hero-copy h1 {
    max-width: 720px;
  }

  .hero-visual {
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .trust-items > div {
    padding-inline: 12px;
    text-align: center;
  }

  .story-grid,
  .prose-grid,
  .about-hero-grid,
  .affiliate-note {
    gap: 50px;
    grid-template-columns: 1fr;
  }

  .story-copy {
    padding-top: 0;
  }

  .prose-sticky {
    position: static;
  }

  .section-intro-row,
  .tools-heading {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .pillar-grid,
  .content-grid,
  .tool-preview-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-card:last-child,
  .tool-preview-card:last-child,
  .values-grid article:last-child {
    grid-column: 1 / -1;
  }

  .journey-panel,
  .newsletter-panel {
    grid-template-columns: 1fr;
  }

  .journey-index {
    right: 20px;
  }

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

  .article-aside {
    position: static;
  }

  .catalogue-card {
    grid-template-columns: 45px minmax(0, 1fr) 70px;
  }

  .catalogue-symbol {
    width: 65px;
    height: 65px;
  }

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

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .shell,
  .narrow-shell,
  .article-shell,
  .admin-editor-shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 76px;
  }

  .site-nav {
    top: 76px;
    height: calc(100dvh - 76px);
  }

  .section {
    padding-block: 68px;
  }

  .hero-section {
    padding-block: 55px 60px;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 16.5vw, 4.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 470px;
  }

  .note-card-main {
    right: 5px;
    padding: 28px;
  }

  .note-card-small {
    left: 0;
  }

  .scribble-badge {
    display: none;
  }

  .trust-items {
    grid-template-columns: 1fr;
  }

  .trust-items > div {
    min-height: 65px;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-items > div:last-child {
    border-bottom: 0;
  }

  .section-heading h2,
  .section-intro-row h2,
  .tools-heading h2 {
    font-size: clamp(2.55rem, 12vw, 3.7rem);
  }

  .pillar-grid,
  .content-grid,
  .tool-preview-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card:last-child,
  .tool-preview-card:last-child,
  .values-grid article:last-child {
    grid-column: auto;
  }

  .section-intro-with-link {
    display: grid;
    align-items: start;
  }

  .journey-panel,
  .newsletter-panel {
    width: 100%;
    padding: 55px 24px;
    border-radius: 0;
  }

  .journey-panel {
    min-height: auto;
  }

  .newsletter-section {
    padding-block: 0;
  }

  .email-row {
    grid-template-columns: 1fr;
  }

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

  .footer-brand,
  .footer-note {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .page-hero {
    padding-block: 72px 65px;
  }

  .page-hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .article-header {
    padding-block: 58px 65px;
  }

  .back-link {
    margin-bottom: 40px;
  }

  .article-body-grid {
    padding-block: 62px 80px;
  }

  .about-intro-card {
    transform: none;
  }

  .catalogue-card {
    align-items: start;
    gap: 20px;
    padding: 28px;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .catalogue-symbol {
    display: none;
  }

  .feature-list {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-section {
    padding: 35px 14px;
  }

  .account-card {
    padding: 32px 24px;
  }

  .admin-section {
    padding-block: 55px 80px;
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header-actions .button {
    width: 100%;
  }

  .admin-nav {
    overflow-x: auto;
    margin-top: -10px;
    white-space: nowrap;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-dashboard-panel {
    padding: 22px;
  }

  .editor-main,
  .editor-panel {
    padding: 22px;
  }
}

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

/* Visual page editor */
.visual-edit-mode {
  padding-top: 62px;
}

.visual-editor-toolbar {
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  left: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(16px, 3vw, 44px);
  color: #fffaf5;
  background: #251b1d;
  box-shadow: 0 8px 30px rgb(31 20 24 / 18%);
}

.visual-editor-toolbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.visual-editor-toolbar strong {
  font-size: 0.92rem;
}

.visual-editor-toolbar span:not(.visual-editor-live-dot) {
  color: rgb(255 250 245 / 70%);
  font-size: 0.82rem;
}

.visual-editor-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9dce9f;
  box-shadow: 0 0 0 5px rgb(157 206 159 / 15%);
}

.visual-toolbar-button,
.visual-toolbar-exit {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  color: #fffaf5;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.visual-toolbar-button:hover,
.visual-toolbar-button:focus-visible {
  border-color: rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 8%);
}

.visual-toolbar-exit {
  border-color: #f0d5cf;
  color: #251b1d;
  background: #f0d5cf;
}

.editable-block {
  position: relative;
}

.visual-edit-mode .editable-block::after {
  position: absolute;
  z-index: 25;
  inset: 5px;
  border: 2px dashed rgb(132 62 87 / 34%);
  border-radius: 14px;
  content: "";
  pointer-events: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.visual-edit-mode .editable-block:hover::after,
.visual-edit-mode .editable-block:focus-within::after {
  border-color: #843e57;
  background: rgb(132 62 87 / 2%);
}

.visual-edit-button {
  position: absolute;
  z-index: 40;
  top: 16px;
  right: 16px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #843e57;
  box-shadow: 0 8px 24px rgb(73 32 47 / 24%);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.visual-edit-button:hover,
.visual-edit-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgb(73 32 47 / 34%);
}

.visual-edit-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header .visual-edit-button {
  top: 10px;
  right: 12px;
}

.visual-editor-backdrop {
  position: fixed;
  z-index: 1400;
  inset: 0;
  background: rgb(26 18 20 / 48%);
  backdrop-filter: blur(2px);
}

.visual-editor-drawer {
  position: fixed;
  z-index: 1500;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100dvh;
  overflow-y: auto;
  padding: 34px clamp(22px, 4vw, 42px) 50px;
  background: #fffaf5;
  box-shadow: -20px 0 60px rgb(30 20 23 / 22%);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.visual-editor-drawer.is-open {
  transform: translateX(0);
}

.visual-editor-close {
  position: sticky;
  z-index: 2;
  top: 0;
  left: 100%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fffaf5;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.visual-editor-heading {
  margin: 20px 0 30px;
  padding-right: 40px;
}

.visual-editor-heading h2 {
  margin: 7px 0 12px;
  font-size: clamp(2.2rem, 7vw, 3.25rem);
}

.visual-editor-heading p {
  margin: 0;
  color: var(--muted);
}

.visual-editor-form {
  display: grid;
  gap: 24px;
}

.visual-editor-field {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.visual-editor-field > label:first-of-type {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.visual-editor-field input:not([type="hidden"]):not([type="checkbox"]),
.visual-editor-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.5;
}

.visual-editor-field textarea {
  min-height: 132px;
  resize: vertical;
}

.visual-editor-field input[type="file"] {
  padding: 10px;
  font-size: 0.82rem;
}

.visual-editor-field input:focus,
.visual-editor-field textarea:focus {
  border-color: var(--berry);
  outline: 3px solid rgb(132 62 87 / 12%);
  outline-offset: 1px;
}

.visual-editor-field:last-of-type {
  border-bottom: 0;
}

.visual-editor-field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.visual-editor-image-preview {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f4eee8;
}

.visual-editor-image-preview img {
  width: 100%;
  max-height: 260px;
  display: block;
  object-fit: cover;
}

.visual-editor-remove-image {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  font-size: 0.82rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.visual-editor-remove-image input {
  width: 18px;
  height: 18px;
}

.visual-editor-actions {
  position: sticky;
  bottom: -50px;
  margin: 8px -42px -50px;
  padding: 18px 42px 24px;
  border-top: 1px solid var(--line);
  background: rgb(255 250 245 / 96%);
  backdrop-filter: blur(12px);
}

.visual-editor-actions p {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.visual-editor-loading {
  padding: 80px 0;
  color: var(--muted);
  text-align: center;
}

.visual-editor-open {
  overflow: hidden;
}

.visual-edit-mode .site-header {
  position: relative;
  top: auto;
}

.hero-uploaded-image {
  position: absolute;
  z-index: 12;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  border: 10px solid #fffaf5;
  border-radius: 38% 62% 48% 52% / 48% 38% 62% 52%;
  object-fit: cover;
  box-shadow: 0 24px 70px rgb(57 35 42 / 20%);
}

.about-uploaded-image {
  width: 100%;
  max-height: 290px;
  display: block;
  margin-bottom: 22px;
  border-radius: 16px;
  object-fit: cover;
}

.tools-uploaded-image {
  width: min(100%, 720px);
  max-height: 380px;
  display: block;
  margin: 38px auto 0;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgb(57 35 42 / 14%);
}

.wordmark-image {
  width: auto;
  max-width: 180px;
  height: 48px;
  display: block;
  object-fit: contain;
}

@media (max-width: 880px) {
  .visual-edit-mode {
    padding-top: 64px;
  }

  .visual-editor-toolbar {
    min-height: 64px;
    align-items: center;
    flex-direction: row;
    gap: 0;
    padding-block: 10px;
  }

  .visual-editor-toolbar > div {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .visual-editor-toolbar > div::-webkit-scrollbar {
    display: none;
  }

  .visual-toolbar-button,
  .visual-toolbar-exit {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .visual-editor-toolbar > div:first-child {
    display: none;
  }

  .visual-edit-button span {
    display: none;
  }

  .visual-edit-button {
    width: 42px;
    padding-inline: 0;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .visual-editor-drawer {
    padding-inline: 20px;
  }

  .visual-editor-actions {
    margin-inline: -20px;
    padding-inline: 20px;
  }
}
