@import url('https://fonts.googleapis.com/css2?family=Anton&family=Nunito:wght@400;500;600;700;800&display=swap');

/* =========================================================
   PRACTICAL SOBRIETY — USER.CSS
   Clean Joomla 6 foundation derived from the strongest SGS
   layout patterns, without SGS-specific legacy or decoration.
========================================================= */

:root {
  --ps-font-body: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ps-font-heading: "Anton", Impact, "Arial Narrow", sans-serif;
  --ps-ink: #24384a;
  --ps-text: #4f5f6d;
  --ps-text-soft: #6b7883;
  --ps-white: #ffffff;
  --ps-surface: #f8f9fa;
  --ps-surface-alt: #eef3f5;
  --ps-purple: #765091;
  --ps-purple-soft: #eadff1;
  --ps-blue: #247ca4;
  --ps-blue-soft: #d9ebf3;
  --ps-green: #568247;
  --ps-green-soft: #dcebd5;
  --ps-gold: #ae6c1e;
  --ps-gold-soft: #f5e3bc;
  --ps-coral: #a85a62;
  --ps-coral-soft: #f3dce6;
  --ps-border: 2px solid var(--ps-ink);
  --ps-radius-sm: 10px;
  --ps-radius: 15px;
  --ps-radius-lg: 20px;
  --ps-shadow-sm: 0 4px 0 rgba(36, 56, 74, 0.12);
  --ps-shadow: 0 7px 0 rgba(36, 56, 74, 0.16);
  --ps-shadow-hover: 0 10px 0 rgba(36, 56, 74, 0.19);
  --ps-content: 760px;
  --ps-wide: 1100px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ps-text);
  background: var(--ps-white);
  font-family: var(--ps-font-body);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.8;
}

p, li {
  color: var(--ps-text);
  font-family: var(--ps-font-body);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.8;
}

p { margin: 0 0 1.15rem; }
strong, b { color: var(--ps-ink); font-weight: 800; }
img { max-width: 100%; height: auto; }

a, a:link, a:visited {
  color: var(--ps-purple) !important;
  font-weight: 700;
  text-decoration: none !important;
}

a:hover, a:focus { color: var(--ps-blue) !important; }
a:active { color: var(--ps-ink) !important; }
::selection { color: var(--ps-white); background: var(--ps-purple); }

h1, h2, h3, h4 {
  margin-top: 0;
  color: var(--ps-ink) !important;
  background: none !important;
  box-shadow: none !important;
}

h1, h2, h3 {
  font-family: var(--ps-font-heading);
  font-weight: 400;
  letter-spacing: 0.015em;
}

h1 { margin-bottom: 1rem; font-size: clamp(2.7rem, 7vw, 5.8rem); line-height: 0.98; }
h2 { margin-bottom: 0.8rem; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.02; }
h3 { margin-bottom: 0.55rem; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.08; }
h4 { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

.site-grid,
.site-grid > .container-component,
.container-component,
main,
.com-content-article,
.com-content-article__body,
.item-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.container-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  background: var(--ps-white) !important;
  border-top: 5px solid var(--ps-purple);
  box-shadow: 0 1px 0 rgba(36, 56, 74, 0.1);
}

.container-header .container-nav { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.container-header .navbar-toggler {
  color: var(--ps-ink) !important;
  background: var(--ps-white) !important;
  border: var(--ps-border) !important;
  border-radius: var(--ps-radius-sm) !important;
  box-shadow: 0 2px 8px rgba(36, 56, 74, 0.08) !important;
  opacity: 1 !important;
}

.container-footer {
  color: var(--ps-text) !important;
  background: var(--ps-surface);
  border-top: 1px solid rgba(36, 56, 74, 0.12);
}
.site-footer { padding: 32px 20px; text-align: center; }
.breadcrumb { margin-bottom: 0; background: var(--ps-surface); }

.container-header a,
.container-header a:link,
.container-header a:visited,
.metismenu.mod-menu a,
.metismenu.mod-menu a:link,
.metismenu.mod-menu a:visited {
  color: var(--ps-ink) !important;
  background: transparent !important;
}

.container-header a:hover,
.container-header a:focus,
.metismenu.mod-menu a:hover,
.metismenu.mod-menu a:focus,
.container-header .mod-menu .active > a,
.container-header .mod-menu .current > a,
.metismenu.mod-menu .active > a,
.metismenu.mod-menu .current > a,
.metismenu.mod-menu .mm-active > a {
  color: var(--ps-purple) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.container-header .mod-menu .metismenu-item > ul,
.container-header .mod-menu .metismenu-item > .mm-collapse,
.container-header .mod-menu .metismenu-item > .mod-menu__sub,
.container-header .mod-menu .metismenu-item > .nav-child,
.metismenu.mod-menu .mm-collapse,
.metismenu.mod-menu .mod-menu__sub,
.metismenu.mod-menu .nav-child,
.metismenu.mod-menu .dropdown-menu {
  min-width: 200px !important;
  overflow: hidden;
  padding: 10px 0 !important;
  background: var(--ps-white) !important;
  border: 1px solid rgba(36, 56, 74, 0.12) !important;
  border-radius: 0 0 var(--ps-radius) var(--ps-radius) !important;
  box-shadow: 0 10px 24px rgba(36, 56, 74, 0.09) !important;
}

.container-header .mod-menu .metismenu-item > ul a,
.container-header .mod-menu .metismenu-item > .mod-menu__sub a,
.container-header .mod-menu .metismenu-item > .nav-child a,
.metismenu.mod-menu .mm-collapse a,
.metismenu.mod-menu .mod-menu__sub a,
.metismenu.mod-menu .nav-child a,
.metismenu.mod-menu .dropdown-menu a {
  display: block !important;
  padding: 12px 18px !important;
  font-family: var(--ps-font-body) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

.container-header .mod-menu .metismenu-item > ul a:hover,
.container-header .mod-menu .metismenu-item > .mod-menu__sub a:hover,
.container-header .mod-menu .metismenu-item > .nav-child a:hover,
.metismenu.mod-menu .mm-collapse a:hover,
.metismenu.mod-menu .mod-menu__sub a:hover,
.metismenu.mod-menu .nav-child a:hover,
.metismenu.mod-menu .dropdown-menu a:hover {
  color: var(--ps-purple) !important;
  background: var(--ps-purple-soft) !important;
}

.ps-page { width: min(100%, var(--ps-wide)); margin: 0 auto 4rem; box-sizing: border-box; }
.ps-reading { width: min(100%, var(--ps-content)); margin: 0 auto; }
.ps-section { margin: 4rem auto; }
.ps-section-narrow { width: min(100%, var(--ps-content)); margin: 4rem auto; }
.ps-center { text-align: center !important; }

.ps-heading { max-width: 820px; margin: 0 auto 2.2rem; text-align: center; }
.ps-eyebrow {
  display: block;
  margin: 0 0 0.6rem !important;
  color: var(--ps-blue) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}
.ps-heading h1, .ps-heading h2, .ps-heading h3 { margin: 0 !important; padding: 0 !important; }
.ps-heading::after {
  display: block;
  width: 62px;
  height: 5px;
  margin: 1rem auto 0;
  content: "";
  background: var(--ps-purple);
  border-radius: 999px;
}
.ps-lead {
  max-width: 700px;
  margin: 1.1rem auto 0 !important;
  color: var(--ps-text);
  font-size: clamp(1.05rem, 2vw, 1.18rem) !important;
  line-height: 1.75 !important;
}

.ps-button,
.ps-button:link,
.ps-button:visited,
.btn,
.btn:link,
.btn:visited,
.library-btn,
.library-btn:link,
.library-btn:visited {
  display: inline-flex;
  min-height: 46px;
  padding: 0.68rem 1.1rem;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: var(--ps-white) !important;
  background: var(--ps-purple) !important;
  border: 2px solid var(--ps-purple) !important;
  border-radius: 999px !important;
  font-family: var(--ps-font-body);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  box-shadow: var(--ps-shadow-sm);
}

.ps-button:hover,
.ps-button:focus,
.btn:hover,
.btn:focus,
.library-btn:hover,
.library-btn:focus {
  color: var(--ps-white) !important;
  background: var(--ps-blue) !important;
  border-color: var(--ps-blue) !important;
  transform: translateY(-1px);
}

.ps-button-secondary,
.ps-button-secondary:link,
.ps-button-secondary:visited {
  color: var(--ps-ink) !important;
  background: var(--ps-white) !important;
  border-color: var(--ps-ink) !important;
}
.ps-button-secondary:hover,
.ps-button-secondary:focus {
  color: var(--ps-purple) !important;
  background: var(--ps-purple-soft) !important;
  border-color: var(--ps-ink) !important;
}
.ps-button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }

.ps-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; width: 100%; }
.ps-card,
.ps-card:link,
.ps-card:visited {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  color: inherit !important;
  text-decoration: none !important;
  background: var(--ps-white);
  border: var(--ps-border);
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.ps-card:hover,
.ps-card:focus,
.ps-card:focus-within {
  color: inherit !important;
  background: var(--ps-white);
  box-shadow: var(--ps-shadow-hover);
  transform: translateY(-3px);
}
.ps-card:focus-visible { outline: 3px solid var(--ps-ink); outline-offset: 4px; }
.ps-card-stage {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  background: var(--ps-surface-alt);
  border-bottom: 2px solid rgba(36, 56, 74, 0.18);
}
.ps-card-blue .ps-card-stage { background: var(--ps-blue-soft); }
.ps-card-purple .ps-card-stage { background: var(--ps-purple-soft); }
.ps-card-green .ps-card-stage { background: var(--ps-green-soft); }
.ps-card-gold .ps-card-stage { background: var(--ps-gold-soft); }
.ps-card-coral .ps-card-stage { background: var(--ps-coral-soft); }
.ps-card-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 1.4rem 1.45rem 1.5rem; box-sizing: border-box; }
.ps-card-kicker {
  margin: 0 0 0.35rem !important;
  color: var(--ps-blue) !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ps-card-copy h2, .ps-card-copy h3 { margin: 0 0 0.7rem !important; padding: 0 !important; color: var(--ps-ink) !important; text-align: left !important; }
.ps-card-copy p { margin: 0 0 1rem !important; font-size: 0.98rem; line-height: 1.65; }
.ps-card-meta { margin-top: auto !important; padding-top: 0.6rem; color: var(--ps-text-soft) !important; font-size: 0.82rem !important; font-weight: 700 !important; line-height: 1.4 !important; }
.ps-card-action { display: inline-block; margin-top: auto; padding-top: 0.75rem; color: var(--ps-purple); font-weight: 800; }
.ps-card-horizontal { display: grid !important; grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr); min-height: 360px; }
.ps-card-horizontal .ps-card-stage { min-height: 100%; border-right: 2px solid rgba(36, 56, 74, 0.18); border-bottom: 0; }

.ps-panel, .ps-callout {
  padding: clamp(1.25rem, 4vw, 2.2rem);
  background: var(--ps-surface);
  border: var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow);
}
.ps-panel h2, .ps-panel h3, .ps-callout h2, .ps-callout h3 { margin-top: 0 !important; }
.ps-note {
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  align-items: center;
  gap: 1rem;
  box-sizing: border-box;
  background: var(--ps-surface-alt);
  border: var(--ps-border);
  border-radius: 18px;
  box-shadow: 0 5px 0 rgba(36, 56, 74, 0.14);
}
.ps-note-mark {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--ps-white);
  background: var(--ps-blue);
  border: var(--ps-border);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 2px 3px 0 rgba(36, 56, 74, 0.14);
}
.ps-note p { margin: 0 !important; font-size: 0.95rem !important; line-height: 1.65 !important; }

.ps-book-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  min-height: 420px;
  overflow: hidden;
  background: var(--ps-white);
  border: var(--ps-border);
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);
}
.ps-book-cover-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: var(--ps-purple-soft);
  border-right: 2px solid rgba(36, 56, 74, 0.18);
}
.ps-book-cover-stage img {
  display: block !important;
  width: auto !important;
  max-width: min(76%, 280px) !important;
  max-height: 365px;
  margin: 0 !important;
  object-fit: contain;
  background: var(--ps-white);
  border-radius: 4px;
  box-shadow: 9px 11px 0 rgba(36, 56, 74, 0.18);
}
.ps-book-copy { display: flex; flex-direction: column; justify-content: center; padding: 1.7rem 1.8rem; }
.ps-book-copy h2 { margin-bottom: 0.45rem !important; }
.ps-resource-list { display: grid; gap: 1rem; max-width: 820px; margin: 0 auto; }
.ps-resource-item {
  padding: 1.15rem 1.25rem;
  background: var(--ps-white);
  border: 1px solid rgba(36, 56, 74, 0.16);
  border-left: 5px solid var(--ps-purple);
  border-radius: 0 var(--ps-radius-sm) var(--ps-radius-sm) 0;
}
.ps-resource-item h3 { margin-bottom: 0.35rem !important; font-family: var(--ps-font-body); font-size: 1.2rem; font-weight: 800; }
.ps-resource-item p:last-child { margin-bottom: 0 !important; }

.ps-language-hub { width: min(100%, var(--ps-wide)); margin: 0 auto 4rem; }
.ps-language-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.ps-language-card .ps-card-stage { min-height: 205px; }
.ps-language-mark {
  position: relative;
  display: flex;
  width: 158px;
  height: 112px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--ps-purple);
  background: var(--ps-white);
  border: var(--ps-border);
  border-radius: 14px;
  box-shadow: 8px 9px 0 rgba(36, 56, 74, 0.15);
}
.ps-language-code { font-family: Georgia, serif; font-size: 2.25rem; font-weight: 800; line-height: 1; }
.ps-language-name { margin-top: 0.35rem; color: var(--ps-ink); font-size: 0.9rem; font-weight: 800; }

.ps-language-banner { width: 100%; margin: 1.15rem auto 0.35rem; }
.ps-language-banner-link,
.ps-language-banner-link:link,
.ps-language-banner-link:visited {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  min-height: 78px;
  padding: 0.85rem 1rem;
  overflow: hidden;
  align-items: center;
  gap: 1rem;
  box-sizing: border-box;
  color: var(--ps-ink) !important;
  background: var(--ps-surface-alt);
  border: var(--ps-border);
  border-radius: 16px;
  box-shadow: 0 5px 0 rgba(36, 56, 74, 0.14);
}
.ps-language-banner-link::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--ps-blue) 0 25%, var(--ps-gold) 25% 50%, var(--ps-purple) 50% 75%, var(--ps-green) 75% 100%);
  border-radius: 0 0 5px 5px;
}
.ps-language-banner-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--ps-white);
  background: var(--ps-blue);
  border: var(--ps-border);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 800;
}
.ps-language-banner-copy { display: grid; min-width: 0; gap: 0.12rem; line-height: 1.3; }
.ps-language-banner-kicker { color: var(--ps-blue); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.ps-language-banner-copy strong { color: var(--ps-purple); font-size: 1rem; font-weight: 800; }
.ps-language-banner-detail { color: var(--ps-text-soft); font-size: 0.79rem; font-weight: 600; }
.ps-language-banner-action {
  display: inline-flex;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  align-items: center;
  justify-content: center;
  color: var(--ps-ink);
  background: var(--ps-white);
  border: var(--ps-border);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(36, 56, 74, 0.12);
}

.lang-ja,
.lang-ja p,
.lang-ja li,
.lang-ja h1,
.lang-ja h2,
.lang-ja h3 {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif !important;
}

.lang-ko,
.lang-ko p,
.lang-ko li,
.lang-ko h1,
.lang-ko h2,
.lang-ko h3 {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif !important;
  word-break: keep-all;
}

.lang-es { font-family: var(--ps-font-body); }
.ps-spacer { height: 2rem; }
.ps-spacer-large { height: 4rem; }
.ps-muted { color: var(--ps-text-soft) !important; }
.ps-full-width { width: 100% !important; }
.ps-hidden { display: none !important; }

@media (max-width: 800px) {
  .ps-card-grid, .ps-language-grid { grid-template-columns: 1fr; }
  .ps-card-horizontal { grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr); }
  .ps-book-feature { grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr); }
}

@media (max-width: 768px) {
  .container-header .container-nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: flex-start !important;
    row-gap: 0.8rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }
  .container-header .mod-finder,
  .container-header .search,
  .container-header .finder {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 !important;
  }
  .container-header .navbar-toggler { margin: 0 !important; }
  .container-header .navbar-collapse,
  .container-header .mod-menu { margin: 0 !important; padding: 0 !important; }
}

@media (max-width: 640px) {
  body, p, li { font-size: 1rem; }
  .ps-card-horizontal,
  .ps-book-feature { display: flex !important; flex-direction: column; min-height: 0; }
  .ps-card-horizontal .ps-card-stage,
  .ps-book-cover-stage {
    min-height: 280px;
    border-right: 0;
    border-bottom: 2px solid rgba(36, 56, 74, 0.18);
  }
  .ps-card-copy,
  .ps-book-copy { text-align: center; }
  .ps-card-copy h2,
  .ps-card-copy h3 { text-align: center !important; }
  .ps-note { align-items: flex-start; }
  .ps-language-banner-link,
  .ps-language-banner-link:link,
  .ps-language-banner-link:visited { grid-template-columns: 46px minmax(0, 1fr); }
  .ps-language-banner-mark { width: 46px; height: 46px; }
  .ps-language-banner-action {
    grid-column: 2;
    min-height: 0;
    padding: 0.35rem 0;
    justify-content: flex-start;
    color: var(--ps-purple);
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .ps-note { display: block; text-align: center; }
  .ps-note-mark { margin: 0 auto 0.8rem; }
  .ps-card-copy,
  .ps-book-copy { padding: 1.2rem 1.1rem 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .ps-card:hover,
  .ps-card:focus,
  .ps-card:focus-within,
  .ps-button:hover,
  .ps-button:focus { transform: none !important; }
}

/* =========================================================
   Practical Sobriety — Homepage
========================================================= */

.ps-home {
  width: min(100%, 1100px);
  margin: 0 auto 4rem;
  box-sizing: border-box;
}


/* =========================================================
   Hero
========================================================= */

.ps-hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(280px, 0.8fr);
  min-height: 560px;
  margin: 1.5rem auto 4.5rem;
  overflow: hidden;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2rem, 5vw, 4.25rem);
  box-sizing: border-box;

  background:
    linear-gradient(
      135deg,
      #ffffff 0 60%,
      var(--ps-purple-soft) 60% 100%
    );

  border: var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow);
}

.ps-hero-text {
  min-width: 0;
}

.ps-hero .ps-eyebrow {
  margin: 0 0 0.7rem !important;
  color: var(--ps-blue) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.12em;
  text-align: left;
}

.ps-hero h1 {
  max-width: 700px;
  margin: 0 0 1.2rem !important;
  padding: 0 !important;
  color: var(--ps-ink) !important;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  text-align: left;
}

.ps-intro {
  margin: 0 0 0.7rem !important;
  color: var(--ps-purple) !important;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem) !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

.ps-hero-text > p:not(.ps-eyebrow):not(.ps-intro) {
  max-width: 650px;
  margin-bottom: 1.6rem !important;
  font-size: 1.06rem;
  line-height: 1.75;
}


/* =========================================================
   Hero buttons
========================================================= */

.ps-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.ps-button,
.ps-button:link,
.ps-button:visited {
  display: inline-flex;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;

  color: var(--ps-ink) !important;
  background: #ffffff !important;
  border: 2px solid var(--ps-ink) !important;
  border-radius: 999px !important;

  font-family: var(--ps-font-body);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;

  box-shadow: var(--ps-shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.ps-button-primary,
.ps-button-primary:link,
.ps-button-primary:visited {
  color: #ffffff !important;
  background: var(--ps-purple) !important;
  border-color: var(--ps-purple) !important;
}

.ps-button:hover,
.ps-button:focus {
  color: #ffffff !important;
  background: var(--ps-blue) !important;
  border-color: var(--ps-blue) !important;
  box-shadow: 0 6px 0 rgba(36, 56, 74, 0.15);
  transform: translateY(-2px);
}

.ps-button:focus-visible {
  outline: 3px solid var(--ps-ink);
  outline-offset: 4px;
}


/* =========================================================
   Hero book cover
========================================================= */

.ps-hero-image {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.ps-hero-image img {
  display: block;
  width: auto;
  max-width: min(100%, 285px);
  max-height: 420px;
  margin: 0;
  object-fit: contain;

  background: #ffffff;
  border-radius: 4px;
  box-shadow:
    11px 14px 0 rgba(36, 56, 74, 0.17),
    0 18px 30px rgba(36, 56, 74, 0.18);

  transform: rotate(2deg);
}


/* =========================================================
   Introduction section
========================================================= */

.ps-section {
  width: min(100%, 760px);
  margin: 0 auto 4.5rem;
}

.ps-section h2 {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  color: var(--ps-ink) !important;
  text-align: center;
}

.ps-section h2::after {
  display: block;
  width: 58px;
  height: 5px;
  margin: 0.9rem auto 0;
  content: "";
  background: var(--ps-purple);
  border-radius: 999px;
}

.ps-section p {
  font-size: 1.06rem;
  line-height: 1.8;
}


/* =========================================================
   Three main pathway cards
========================================================= */

.ps-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto 4rem;
}

.ps-cards .ps-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 300px;
  flex-direction: column;
  padding: 1.75rem 1.55rem;
  box-sizing: border-box;

  background: #ffffff;
  border: var(--ps-border);
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.ps-cards .ps-card:nth-child(1) {
  background:
    linear-gradient(
      180deg,
      var(--ps-blue-soft) 0 34%,
      #ffffff 34% 100%
    );
}

.ps-cards .ps-card:nth-child(2) {
  background:
    linear-gradient(
      180deg,
      var(--ps-purple-soft) 0 34%,
      #ffffff 34% 100%
    );
}

.ps-cards .ps-card:nth-child(3) {
  background:
    linear-gradient(
      180deg,
      var(--ps-green-soft) 0 34%,
      #ffffff 34% 100%
    );
}

.ps-cards .ps-card:hover,
.ps-cards .ps-card:focus-within {
  box-shadow: var(--ps-shadow-hover);
  transform: translateY(-4px);
}

.ps-cards .ps-card h3 {
  margin: 0 0 3.7rem !important;
  padding: 0 !important;
  color: var(--ps-ink) !important;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1;
  text-align: left;
}

.ps-cards .ps-card p {
  margin: 0 0 1rem !important;
  font-size: 0.98rem;
  line-height: 1.65;
}

.ps-cards .ps-card a {
  display: inline-block;
  margin-top: auto;
  color: var(--ps-purple) !important;
  font-weight: 800;
}

.ps-cards .ps-card a:hover,
.ps-cards .ps-card a:focus {
  color: var(--ps-blue) !important;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 900px) {

  .ps-hero {
    grid-template-columns: 1fr;
    min-height: 0;

    background:
      linear-gradient(
        180deg,
        #ffffff 0 62%,
        var(--ps-purple-soft) 62% 100%
      );
  }

  .ps-hero-text,
  .ps-hero h1,
  .ps-hero .ps-eyebrow {
    text-align: center;
  }

  .ps-hero-text > p:not(.ps-eyebrow):not(.ps-intro) {
    margin-right: auto;
    margin-left: auto;
  }

  .ps-buttons {
    justify-content: center;
  }

  .ps-hero-image img {
    max-width: min(70%, 280px);
  }

  .ps-cards {
    grid-template-columns: 1fr;
    max-width: 700px;
  }

  .ps-cards .ps-card {
    min-height: 250px;
  }

}

@media (max-width: 640px) {

  .ps-home {
    padding: 0 0.25rem;
  }

  .ps-hero {
    margin-top: 0.75rem;
    margin-bottom: 3.5rem;
    padding: 2.2rem 1.2rem;
    border-radius: 16px;
  }

  .ps-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

  .ps-hero-image img {
    max-width: min(76%, 240px);
    max-height: 340px;
  }

  .ps-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ps-button {
    width: 100%;
  }

  .ps-section {
    margin-bottom: 3.5rem;
  }

  .ps-cards {
    gap: 1.25rem;
  }

  .ps-cards .ps-card {
    min-height: 230px;
    padding: 1.5rem 1.25rem;
    text-align: center;
  }

  .ps-cards .ps-card h3 {
    margin-bottom: 3.3rem !important;
    text-align: center;
  }

}

@media (prefers-reduced-motion: reduce) {

  .ps-button,
  .ps-cards .ps-card {
    transition: none;
  }

  .ps-button:hover,
  .ps-button:focus,
  .ps-cards .ps-card:hover,
  .ps-cards .ps-card:focus-within {
    transform: none;
  }

}

/* =========================================================
   Practical Sobriety — Start Here
========================================================= */

.ps-start-here {
  padding-top: 1.5rem;
}


/* Hero */

.ps-start-hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(260px, 0.8fr);
  min-height: 480px;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin: 0 auto 4.5rem;
  padding: clamp(2rem, 5vw, 4.25rem);
  box-sizing: border-box;

  background:
    linear-gradient(
      135deg,
      #ffffff 0 61%,
      var(--ps-blue-soft) 61% 100%
    );

  border: var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow);
}

.ps-start-hero-copy .ps-eyebrow {
  text-align: left;
}

.ps-start-hero h1 {
  max-width: 730px;
  margin: 0 0 1.15rem !important;
  padding: 0 !important;
  text-align: left !important;
}

.ps-start-lead {
  max-width: 670px;
  margin: 0 !important;
  color: var(--ps-text);
  font-size: clamp(1.08rem, 2vw, 1.24rem) !important;
  line-height: 1.72 !important;
}


/* Compass illustration */

.ps-start-compass {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
}

.ps-start-compass-ring {
  position: absolute;
  inset: 15px;
  display: block;
  background: rgba(255, 255, 255, 0.62);
  border: 4px solid var(--ps-ink);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 16px rgba(255, 255, 255, 0.42),
    8px 10px 0 rgba(36, 56, 74, 0.14);
}

.ps-start-compass-ring::before,
.ps-start-compass-ring::after {
  position: absolute;
  content: "";
  background: var(--ps-ink);
}

.ps-start-compass-ring::before {
  top: 50%;
  right: -16px;
  left: -16px;
  height: 3px;
  transform: translateY(-50%);
}

.ps-start-compass-ring::after {
  top: -16px;
  bottom: -16px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
}

.ps-start-compass-line {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: block;
  width: 154px;
  height: 0;
  border-top: 5px solid var(--ps-purple);
  transform-origin: center;
}

.ps-start-compass-line-one {
  transform: translate(-50%, -50%) rotate(48deg);
}

.ps-start-compass-line-two {
  border-color: var(--ps-blue);
  transform: translate(-50%, -50%) rotate(-42deg);
}

.ps-start-compass-centre {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;

  color: #ffffff;
  background: var(--ps-ink);
  border: 4px solid #ffffff;
  border-radius: 50%;

  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;

  transform: translate(-50%, -50%);
}


/* Intro */

.ps-start-intro {
  margin-bottom: 4.5rem;
}


/* Pathway cards */

.ps-start-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.ps-start-path-card {
  min-height: 470px;
}

.ps-start-path-mark {
  position: relative;
  display: grid;
  width: 145px;
  height: 145px;
  place-items: center;

  color: var(--ps-ink);
  background: #ffffff;
  border: var(--ps-border);
  border-radius: 50%;
  box-shadow: 7px 8px 0 rgba(36, 56, 74, 0.15);
}

.ps-start-path-mark span {
  position: absolute;
  top: 19px;
  color: var(--ps-blue);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ps-start-path-mark strong {
  margin-top: 12px;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
}


/* Health panel */

.ps-start-now {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 2rem;
  width: min(100%, 860px);
  margin: 4.5rem auto;
  background: var(--ps-coral-soft);
}

.ps-start-now-copy .ps-eyebrow {
  text-align: left;
  color: var(--ps-coral) !important;
}

.ps-start-now-copy h2 {
  margin-bottom: 1rem !important;
  text-align: left;
}

.ps-start-now-mark {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  justify-self: center;

  color: #ffffff;
  background: var(--ps-coral);
  border: var(--ps-border);
  border-radius: 50%;
  box-shadow: 7px 8px 0 rgba(36, 56, 74, 0.14);
}

.ps-start-now-mark span {
  font-family: var(--ps-font-heading);
  font-size: 4.8rem;
  line-height: 1;
}


/* Principles */

.ps-principle-list {
  display: grid;
  gap: 1.25rem;
}

.ps-principle {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.25rem 1.35rem;

  background: #ffffff;
  border: 1px solid rgba(36, 56, 74, 0.18);
  border-left: 5px solid var(--ps-purple);
  border-radius: 0 var(--ps-radius) var(--ps-radius) 0;
}

.ps-principle-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;

  color: #ffffff;
  background: var(--ps-purple);
  border-radius: 50%;

  font-weight: 800;
}

.ps-principle h3 {
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  font-family: var(--ps-font-body);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
}

.ps-principle p {
  margin: 0 !important;
  font-size: 0.98rem;
  line-height: 1.65;
}


/* Book */

.ps-start-book {
  width: min(100%, 980px);
}


/* Responsive */

@media (max-width: 900px) {

  .ps-start-hero {
    grid-template-columns: 1fr;
    background:
      linear-gradient(
        180deg,
        #ffffff 0 61%,
        var(--ps-blue-soft) 61% 100%
      );
  }

  .ps-start-hero-copy,
  .ps-start-hero-copy .ps-eyebrow,
  .ps-start-hero h1 {
    text-align: center !important;
  }

  .ps-start-lead {
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center;
  }

  .ps-start-path-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
  }

  .ps-start-path-card {
    display: grid;
    grid-template-columns:
      minmax(220px, 0.75fr)
      minmax(0, 1.25fr);
    min-height: 320px;
  }

  .ps-start-path-card .ps-card-stage {
    min-height: 100%;
    border-right: 2px solid rgba(36, 56, 74, 0.18);
    border-bottom: 0;
  }

}


@media (max-width: 640px) {

  .ps-start-here {
    padding-top: 0.75rem;
  }

  .ps-start-hero {
    min-height: 0;
    padding: 2.2rem 1.2rem;
  }

  .ps-start-compass {
    transform: scale(0.82);
    margin-top: -18px;
    margin-bottom: -18px;
  }

  .ps-start-path-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .ps-start-path-card .ps-card-stage {
    min-height: 220px;
    border-right: 0;
    border-bottom: 2px solid rgba(36, 56, 74, 0.18);
  }

  .ps-start-path-card .ps-card-copy,
  .ps-start-path-card .ps-card-copy h2 {
    text-align: center !important;
  }

  .ps-start-now {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ps-start-now-copy .ps-eyebrow,
  .ps-start-now-copy h2 {
    text-align: center !important;
  }

  .ps-start-now-mark {
    grid-row: 1;
  }

  .ps-principle {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ps-principle-number {
    margin: 0 auto;
  }

}
