:root {
  --ink: #23313f;
  --muted: #607080;
  --soft: #f7f4ef;
  --paper: #ffffff;
  --sage: #8fa99b;
  --sage-dark: #567467;
  --blue: #6f92a5;
  --lavender: #d9d3e8;
  --sand: #efe2d0;
  --rose: #ead3ce;
  --line: rgba(35, 49, 63, 0.12);
  --shadow: 0 20px 50px rgba(35, 49, 63, 0.10);
  --radius: 24px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f1e8df 0, transparent 32rem), linear-gradient(135deg, #f8f5ef 0%, #eef4f1 46%, #f7f4ef 100%);
  line-height: 1.6;
}

body.breathing-active {
  background: radial-gradient(circle at center, rgba(143, 169, 155, 0.28), transparent 28rem), linear-gradient(135deg, #f8f5ef 0%, #eef4f1 46%, #f7f4ef 100%);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(247, 244, 239, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: conic-gradient(from 150deg, var(--sage), var(--lavender), var(--sand), var(--sage));
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.72);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.94rem;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(143, 169, 155, 0.18);
  outline: none;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.25rem 1.25rem 3.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--sage-dark);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: 0 12px 28px rgba(35, 49, 63, 0.16);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.soft-panel {
  background: linear-gradient(145deg, rgba(239, 226, 208, 0.72), rgba(217, 211, 232, 0.58));
  border-radius: var(--radius);
  padding: 1.4rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.soft-panel::after {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  right: -5rem;
  bottom: -6rem;
}

.mini-card {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  padding: 1rem;
  max-width: 24rem;
  z-index: 1;
}

.big-quote {
  position: relative;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.04em;
  z-index: 1;
  margin-top: 3rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.25rem 1.25rem;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.section-header p {
  max-width: 42rem;
  color: var(--muted);
}

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

.card,
.notice,
.breathing-widget,
.activity-panel,
.accordion-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(35, 49, 63, 0.07);
}

.card {
  padding: 1.2rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(143, 169, 155, 0.22);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.notice {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.notice strong {
  display: block;
  margin-bottom: 0.25rem;
}

.synopsis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.story-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.story-card.computer {
  background: linear-gradient(145deg, rgba(111, 146, 165, 0.14), rgba(239, 226, 208, 0.58));
}

.phase-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-top: 1rem;
}

.phase {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem;
}

.phase span {
  display: block;
  color: var(--sage-dark);
  font-weight: 900;
  font-size: 0.82rem;
}

.resource-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.resource-menu {
  display: grid;
  gap: 0.55rem;
  position: sticky;
  top: 5.5rem;
}

.resource-tab {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  border-radius: 18px;
  padding: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.resource-tab[aria-selected="true"] {
  background: var(--ink);
  color: white;
}

.activity-panel {
  padding: 1.4rem;
  min-height: 420px;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1.2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  background: rgba(143, 169, 155, 0.18);
  color: var(--sage-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.steps {
  padding-left: 1.2rem;
}

.steps li {
  margin-bottom: 0.8rem;
}

.breathing-section {
  background: rgba(255, 255, 255, 0.38);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.breathing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 1rem;
  align-items: stretch;
}

.breathing-widget {
  padding: 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breath-circle-wrap {
  width: min(72vw, 330px);
  height: min(72vw, 330px);
  display: grid;
  place-items: center;
  margin: 1rem auto;
}

.breath-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #dbe8e1 58%, #8fa99b 100%);
  box-shadow: 0 24px 70px rgba(86, 116, 103, 0.26), inset 0 0 0 10px rgba(255, 255, 255, 0.42);
  display: grid;
  place-items: center;
  transition: transform 4s ease-in-out;
}

.breath-circle.inhale {
  transform: scale(1.72);
}

.breath-circle.hold {
  transform: scale(1.72);
}

.breath-circle.exhale {
  transform: scale(0.92);
}

.breath-label {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
}

.countdown {
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
  margin-top: 0.4rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.select-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.8rem;
}

select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 0.9rem;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.grounding-card {
  padding: 1.4rem;
}

.sense-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

.sense {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.68);
  border-radius: 18px;
  padding: 0.8rem;
  text-align: center;
}

.sense strong {
  display: block;
  font-size: 1.5rem;
}

.accordion {
  display: grid;
  gap: 0.75rem;
}

.accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 1rem 1.1rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-content {
  display: none;
  padding: 0 1.1rem 1.1rem;
  color: var(--muted);
}

.accordion-item.open .accordion-content {
  display: block;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-card {
  background: rgba(35, 49, 63, 0.92);
  color: rgba(255,255,255,0.86);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.footer-card h2,
.footer-card h3 {
  color: white;
}

@media (max-width: 880px) {
  .hero,
  .synopsis,
  .resource-layout,
  .breathing-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .phase-strip {
    grid-template-columns: 1fr 1fr;
  }

  .resource-menu {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .section-header {
    display: block;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 3rem;
  }

  .card-grid,
  .phase-strip,
  .resource-menu,
  .sense-grid {
    grid-template-columns: 1fr;
  }

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

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

/* Wellness wheel */

.wellness-section {
  position: relative;
}

.wellness-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: 1.2rem;
  align-items: center;
}

.wellness-wheel-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.wellness-wheel {
  width: min(78vw, 460px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    #8fa99b 0deg 45deg,
    #d9d3e8 45deg 90deg,
    #efe2d0 90deg 135deg,
    #ead3ce 135deg 180deg,
    #8fb5c7 180deg 225deg,
    #c7d8cd 225deg 270deg,
    #e7c7bd 270deg 315deg,
    #cfc7e3 315deg 360deg
  );
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.58), 0 20px 55px rgba(35, 49, 63, 0.14);
  overflow: hidden;
}

.wellness-wheel::before {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 1px var(--line), 0 8px 28px rgba(35, 49, 63, 0.12);
  z-index: 1;
}

.wellness-center {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 2;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.05;
}

.wheel-label {
  position: absolute;
  z-index: 3;
  width: 7.2rem;
  text-align: center;
  font-size: clamp(0.68rem, 1.7vw, 0.86rem);
  font-weight: 900;
  color: rgba(35, 49, 63, 0.9);
  line-height: 1.1;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.wheel-label.physical { top: 8%; left: 50%; transform: translateX(-50%); }
.wheel-label.emotional { top: 22%; right: 6%; }
.wheel-label.social { top: 50%; right: 1%; transform: translateY(-50%); }
.wheel-label.intellectual { bottom: 22%; right: 6%; }
.wheel-label.spiritual { bottom: 8%; left: 50%; transform: translateX(-50%); }
.wheel-label.occupational { bottom: 22%; left: 6%; }
.wheel-label.financial { top: 50%; left: 1%; transform: translateY(-50%); }
.wheel-label.environmental { top: 22%; left: 6%; }

.wellness-descriptors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.wellness-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.95rem;
}

.wellness-item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.wellness-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

@media (max-width: 880px) {
  .wellness-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .wellness-descriptors {
    grid-template-columns: 1fr;
  }

  .wheel-label {
    width: 5.9rem;
    font-size: 0.67rem;
  }
}

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

.wellness-item details {
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.wellness-item summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--sage-dark);
  list-style-position: outside;
}

.wellness-item summary:focus-visible {
  outline: 2px solid rgba(86, 116, 103, 0.55);
  outline-offset: 4px;
  border-radius: 8px;
}

.wellness-item ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.wellness-item li {
  margin-bottom: 0.45rem;
}

.wheel-label.home { top: 8%; left: 50%; transform: translateX(-50%); }
.wheel-label.physical-health { top: 22%; right: 6%; }
.wheel-label.mental-health { top: 50%; right: 1%; transform: translateY(-50%); }
.wheel-label.spirituality { bottom: 22%; right: 6%; }
.wheel-label.finances { bottom: 8%; left: 50%; transform: translateX(-50%); }
.wheel-label.career { bottom: 22%; left: 6%; }
.wheel-label.relationships { top: 50%; left: 1%; transform: translateY(-50%); }
.wheel-label.recreation { top: 22%; left: 6%; }
