﻿:root {
  --sidebar-width: 280px;
  --bg: #fbfbfa;
  --sidebar-bg: #fff;
  --card-bg: #fff;
  --border-color: #d9d9d4;
  --text: #111;
  --muted: #555;
  --accent: #111;
  --radius: 18px;
  font-family: 'Inter', 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
}

.sidebar__toggle {
  display: none;
}

.sidebar__brand {
  margin-bottom: 2rem;
  position: relative;
}

.sidebar__brand h1 {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  padding-right: 2.5rem;
}

.sidebar__brand-link {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar__brand-link:hover,
.sidebar__brand-link:visited,
.sidebar__brand-link:focus-visible {
  color: var(--text);
}

.sidebar__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar__brand p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.theme-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--border-color);
}

.sidebar__section {
  margin-top: 2rem;
}

.sidebar__section-title {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.sidebar__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar__link {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.35rem 0.25rem;
  border-radius: 6px;
}

.sidebar__link.active,
.sidebar__link:focus-visible {
  background: var(--border-color);
  font-weight: 600;
}

.sidebar__social {
  margin-top: 3rem;
  display: flex;
  gap: 0.6rem;
}

.sidebar__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: transparent;
}

.sidebar__social-link:hover,
.sidebar__social-link:focus-visible {
  background: var(--border-color);
}

.sidebar__social-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.content {
  flex: 1;
  padding: 2.75rem 3rem;
}

.content__inner {
  max-width: 900px;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  margin-bottom: 0.8rem;
}

p {
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: 1rem;
  color: var(--muted);
}

.section-group {
  margin-top: 2.5rem;
}

.section-group--hero {
  margin-top: 0;
}

.hero__intro {
  margin-bottom: 1.5rem;
}

.hero__eyebrow {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 52ch;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.hero__lead {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 58ch;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: #111;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.hero__cta:hover {
  background: #000;
  color: #fff;
}

.hero__cta--ghost {
  border-color: transparent;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.hero__media {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.05);
}

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

.hero__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero__actions--center {
  justify-content: center;
}

.page-body-module .hero__actions--center {
  justify-content: flex-start;
}

.module-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--card-bg);
  margin-top: 1rem;
}

.module-card p {
  margin: 0;
}

.module-card__graphic {
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.content-list--bullets {
  list-style: disc;
  padding-left: 1.2rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 160px;
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.highlight-note {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  max-width: 48ch;
  margin-bottom: 1.5rem;
  background: #fff;
  color: var(--text);
}

.system-story {
  max-width: 60ch;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.system-story p {
  margin: 0;
}

.system-link {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.system-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 0 0 2rem;
}

.content-list {
  margin: 1rem 0 0;
  padding-left: 0;
  list-style: none;
  max-width: 62ch;
  color: var(--muted);
}

.content-list li {
  line-height: 1.7;
  margin-bottom: 0.65rem;
}

.page-body-module .section-group--handbook .content-list--bullets {
  list-style: disc;
  padding-left: 1.2rem;
}

.coming-soon-form {
  margin-top: 1.25rem;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.coming-soon-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.coming-soon-input {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.coming-soon-input::placeholder {
  color: var(--muted);
}

.coming-soon-bullets {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  max-width: 62ch;
  color: var(--muted);
  list-style: disc;
}

.coming-soon-bullets li {
  line-height: 1.7;
  margin-bottom: 0.65rem;
}

.coming-soon-stack {
  max-width: 760px;
}

.coming-soon-intro {
  max-width: 60ch;
}

.coming-soon-emphasis {
  color: var(--text);
  font-weight: 600;
}

.coming-soon-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--card-bg);
  padding: 1.25rem;
  max-width: 620px;
  margin-top: 2rem;
}

.coming-soon-divider {
  max-width: 620px;
  margin-top: 1.4rem;
  margin-bottom: 0.2rem;
}

.coming-soon-card-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.coming-soon-features {
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.coming-soon-features p {
  margin: 0;
  padding-left: 0.8rem;
  border-left: 2px solid var(--border-color);
  color: var(--text);
}

.coming-soon-trust {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.page-coming-soon .hero-title {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 800px;
}

.page-coming-soon .hero-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

.page-coming-soon .hero-highlight {
  font-weight: 600;
  color: var(--text);
}

.page-coming-soon .card,
.page-blog .card {
  margin-top: 48px;
  padding: 32px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  max-width: 520px;
}

.page-coming-soon .card-transition {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 0;
}

.page-coming-soon .card-label,
.page-blog .card-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.page-coming-soon .card-intro,
.page-blog .card-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.page-coming-soon .card-title,
.page-blog .card-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 20px;
}

.page-coming-soon .card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  list-style: none;
  padding: 0;
}

.page-coming-soon .card-list li {
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}

.page-coming-soon .card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #2f9e78;
  border-radius: 50%;
}

.page-coming-soon .input-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.page-coming-soon .form-headline {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-coming-soon .input-field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text);
  font-size: 14px;
  margin-bottom: 14px;
}

.page-coming-soon .cta-button,
.page-blog .cta-button {
  width: 100%;
  padding: 17px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border: 1px solid #111;
  cursor: pointer;
  margin-top: 4px;
}

.page-coming-soon .cta-button:hover,
.page-blog .cta-button:hover {
  background: #000;
}

.page-coming-soon .consent-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.2rem 0 0.4rem;
}

.page-coming-soon .consent-wrap input[type="checkbox"] {
  margin-top: 0.2rem;
}

.page-coming-soon .consent-label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.page-coming-soon .consent-label a {
  color: var(--accent);
}

.page-coming-soon .trust-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 0;
}

.page-coming-soon .launch-note,
.page-body-module .launch-note {
  border-left: 2px solid var(--border-color);
  color: var(--text);
  font-size: 0.95rem;
  margin-top: 1.2rem;
  max-width: 58ch;
  padding-left: 0.9rem;
}

.page-coming-soon .safety-note,
.page-body-module .safety-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-top: 1.25rem;
  max-width: 62ch;
}

.page-story h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.25;
  margin-bottom: 0.7rem;
}

.page-coming-soon .cta-subtext {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-top: 14px;
  margin-bottom: 0;
}

.page-coming-soon .coming-soon-faq {
  max-width: 620px;
  margin-top: 2rem;
}

.page-coming-soon .coming-soon-faq h2 {
  margin: 0.4rem 0 1.25rem;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.3;
}

.page-coming-soon .coming-soon-faq .card-transition {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.page-coming-soon .coming-soon-faq .card-intro {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.page-coming-soon .faq-entry {
  border-top: 1px solid var(--border-color);
  padding: 1rem 0 1.05rem;
}

.page-coming-soon .faq-entry:last-of-type {
  border-bottom: 1px solid var(--border-color);
}

.page-coming-soon .faq-question {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
}

.page-coming-soon .faq-answer {
  margin: 0.55rem 0 0;
  max-width: 62ch;
  line-height: 1.7;
}

body.theme-dark .page-coming-soon .hero-text {
  color: #a0a4ab;
}

body.theme-dark .page-coming-soon .hero-highlight {
  color: #e6e8eb;
}

body.theme-dark .page-coming-soon .card,
body.theme-dark .page-blog .card {
  background: #111317;
  border-color: rgba(255, 255, 255, 0.06);
}

body.theme-dark .page-coming-soon .card-transition,
body.theme-dark .page-coming-soon .card-label,
body.theme-dark .page-coming-soon .card-intro,
body.theme-dark .page-coming-soon .input-label,
body.theme-dark .page-coming-soon .trust-text,
body.theme-dark .page-blog .card-label,
body.theme-dark .page-blog .card-intro {
  color: #9aa0a6;
}

body.theme-dark .page-coming-soon .card-list li,
body.theme-dark .page-coming-soon .cta-subtext {
  color: #d1d5db;
}

body.theme-dark .page-coming-soon .card-list li::before {
  background: #6ee7b7;
}

body.theme-dark .page-coming-soon .form-headline {
  color: #e6e8eb;
}

body.theme-dark .page-coming-soon .input-field {
  background: #0d0f13;
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.theme-dark .page-coming-soon .cta-button,
body.theme-dark .page-blog .cta-button {
  background: #e6e8eb;
  color: #0d0f13;
  border-color: #e6e8eb;
}

body.theme-dark .page-coming-soon .cta-button:hover,
body.theme-dark .page-blog .cta-button:hover {
  background: #fff;
}

@media (max-width: 900px) {
  .page-coming-soon .hero-title {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }
}

.page-body-module .content__inner {
  max-width: 920px;
}

.page-body-module .section-group {
  margin-top: 1.5rem;
  padding: 2rem 2.2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.page-body-module .section-group--hero {
  margin-top: 0;
}

.page-body-module .section-group h2,
.page-body-module .section-group h3 {
  margin-top: 0;
}

.page-body-module .section-group h3 {
  font-size: 1.35rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.page-body-module .section-heading-small {
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.page-body-module .hero__actions {
  align-items: center;
}

.page-body-module .section-divider {
  margin: 0 0 1.5rem;
}

.page-body-module .feature-grid {
  margin-top: 1.2rem;
}

.page-body-module .content-list {
  list-style: disc;
  padding-left: 1.2rem;
}

.page-body-module .content-list--checks,
.page-body-module .content-list--crosses {
  list-style: none;
  padding-left: 0;
}

.page-body-module .hero__media {
  margin-left: 0;
  margin-right: auto;
}

.page-body-module .highlight-note {
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.page-body-module .note {
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 2rem;
  font-style: italic;
  color: var(--muted);
}

.page-legal .content__inner {
  max-width: 920px;
}

.page-legal .section-group {
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.page-legal .section-group h2 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
}

.page-legal .content-list {
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
}

.page-legal h1 {
  margin-bottom: 0.3rem;
}

.page-legal p {
  margin-top: 0;
  margin-bottom: 0.65rem;
  line-height: 1.55;
}

.page-legal .content-list li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.page-legal .legal-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

.sidebar__link[href="mind.html"],
.sidebar__link[href="decisions.html"],
.sidebar__link[href="focus.html"],
.sidebar__link[href="work.html"] {
  display: none;
}

body.theme-dark {
  --bg: #131518;
  --sidebar-bg: #181b1f;
  --card-bg: #1d2126;
  --border-color: #2d333b;
  --text: #edf1f5;
  --muted: #b5bdc7;
  --accent: #edf1f5;
}

body.theme-dark .hero__cta {
  background: #e9edf2;
  color: #14171b;
  border-color: #e9edf2;
}

body.theme-dark .hero__cta:hover {
  background: #ffffff;
  color: #101216;
}

body.theme-dark .sidebar__link.active,
body.theme-dark .sidebar__link:focus-visible {
  background: #2e3540;
}

body.theme-dark .article-card__link:hover,
body.theme-dark .article-card__link:focus-visible,
body.theme-dark .article-page__back-button:hover {
  background: #2e3540;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-final-cta {
    padding: 1.5rem 1.2rem;
  }

  .article-page__header h1 {
    max-width: 100%;
  }

  .page-body-module .section-group {
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
  }

  .page-legal .section-group {
    padding: 1.1rem 1rem;
    border-radius: 16px;
  }
}

.article-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.article-card__category {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.article-card__title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.article-card p {
  margin-top: 0;
}

.article-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: auto;
  margin-bottom: 1rem;
}

.article-card__link {
  align-self: flex-start;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.65rem 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
}

.article-card__link:hover,
.article-card__link:focus-visible {
  background: var(--border-color);
}

.page-blog .content__inner {
  max-width: 980px;
}

.page-blog .blog-hero {
  max-width: 760px;
}

.blog-cta-subline {
  border-left: 2px solid var(--border-color);
  color: var(--text);
  font-size: 0.95rem;
  margin-top: 1.2rem;
  padding-left: 0.9rem;
}

.blog-section {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.blog-section__intro {
  margin-bottom: 1.25rem;
}

.blog-section__intro h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  margin-top: 0;
}

.blog-final-cta {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--card-bg);
  padding: 2rem;
  max-width: 720px;
}

.blog-final-cta h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.3;
}

.blog-final-cta .hero__cta {
  margin-top: 0.35rem;
}

.page-blog-article .content__inner {
  max-width: 820px;
}

.article-page__nav {
  margin-bottom: 1rem;
}

.article-page__back,
.article-page__back-button {
  text-decoration: none;
}

.article-page__back {
  color: var(--accent);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
}

.article-page__back::before {
  content: "←";
  margin-right: 0.4rem;
}

.article-page__body {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: clamp(1.35rem, 4vw, 2.6rem);
}

.article-page__header {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.7rem;
  padding-bottom: 1.2rem;
}

.article-page__header h1 {
  max-width: 12ch;
}

.article-page__content {
  max-width: 66ch;
}

.article-page__content p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.82;
  margin: 0 0 1.05rem;
}

.article-page__content .article-page__emphasis {
  color: var(--text);
  font-size: 1.13rem;
  font-weight: 600;
  line-height: 1.7;
}

.article-page__footer {
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.article-page__footer p {
  color: var(--text);
  font-weight: 600;
}

.article-page__back-button {
  background: transparent;
  color: var(--text);
}

.article-page__back-button:hover {
  background: var(--border-color);
  color: var(--text);
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--card-bg);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  max-width: 55ch;
}

@media (max-width: 1100px) {
  .sidebar {
    position: fixed;
    height: auto;
  }
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
  }

  .content {
    padding: 2.5rem 1.5rem;
  }

  .sidebar__toggle {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
  }

  .sidebar__toggle:hover,
  .sidebar__toggle:focus-visible {
    background: var(--border-color);
  }

  .sidebar__section,
  .sidebar__social {
    display: none;
  }

  .sidebar--open .sidebar__section {
    display: block;
  }

  .sidebar--open .sidebar__social {
    display: flex;
  }

  .page-body-module .section-group--hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }
}

@media (max-width: 600px) {
  .content {
    padding: 2rem 1.25rem;
  }

  h1 {
    font-size: 2.3rem;
  }

  .page-body-module .section-group--hero h1 {
    font-size: clamp(1.55rem, 7.6vw, 2.05rem);
    line-height: 1.2;
  }
}

body.theme-dark .sidebar__toggle {
  background: #252b34;
  color: #f2f5f8;
  border-color: #3a4452;
}

body.theme-dark .sidebar__toggle:hover,
body.theme-dark .sidebar__toggle:focus-visible {
  background: #2f3947;
}

