/* Balanced Grid — soft paper layers, editorial + geometric sans */
:root {
  --color-primary: #8a9a5b;
  --color-secondary: #f4f1de;
  --font-primary: "Hanken Grotesk", system-ui, sans-serif;
  --color-linen: #f7f3ef;
  --color-umber: #4e3b31;
  --color-sage: #8a9a5b;
  --color-sage-soft: rgba(138, 154, 91, 0.22);
  --color-mist: #e8e4df;
  --color-paper: #fdfcfa;
  --color-ink-muted: #6b5a52;
  --color-rest: rgba(120, 160, 190, 0.18);
  --color-move: rgba(138, 154, 91, 0.25);
  --color-mind: rgba(160, 130, 170, 0.15);
  --color-nutrition: rgba(138, 154, 91, 0.2);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: var(--font-primary);
  --space-xs: 0.35rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.75rem;
  --space-xl: 2.75rem;
  --space-2xl: 4rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-sheet: 0 0.35rem 0 rgba(78, 59, 49, 0.06),
    0 1.1rem 2.2rem rgba(78, 59, 49, 0.08);
  --shadow-float: 0 0.5rem 1.5rem rgba(78, 59, 49, 0.12);
  --border-fine: 0.0625rem solid rgba(78, 59, 49, 0.12);
  --transition-fast: 0.28s ease;
  --transition-slow: 0.55s ease;
  --header-pad: clamp(0.75rem, 2vw, 1.25rem);
  --content-max: 72rem;
  --wheel-size: min(88vw, 28rem);
}

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

html {
  font-size: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-umber);
  background-color: var(--color-linen);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-slow);
}

body.sheet-tone-nutrition {
  background-color: color-mix(in srgb, var(--color-linen) 88%, var(--color-sage) 12%);
}

body.sheet-tone-rest {
  background-color: color-mix(in srgb, var(--color-linen) 90%, #a8c4d4 10%);
}

body.sheet-tone-movement {
  background-color: color-mix(in srgb, var(--color-linen) 90%, var(--color-sage) 10%);
}

body.sheet-tone-mindset {
  background-color: color-mix(in srgb, var(--color-linen) 92%, #c9b8cf 8%);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-sage);
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-umber);
}

:focus-visible {
  outline: 0.125rem solid var(--color-sage);
  outline-offset: 0.125rem;
}

.sr-only {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Header (non-sticky, paper strip) --- */
.sheet-site-header {
  position: relative;
  z-index: 40;
  background: color-mix(in srgb, var(--color-paper) 92%, transparent);
  backdrop-filter: blur(0.625rem);
  border-bottom: var(--border-fine);
  box-shadow: var(--shadow-sheet);
}

.sheet-header-row {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--header-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.sheet-brand-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--color-umber);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.sheet-brand-title:hover {
  color: var(--color-sage);
}

.sheet-desktop-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  flex: 1 1 auto;
}

.sheet-desktop-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sheet-desktop-nav a:hover,
.sheet-desktop-nav a[aria-current="page"] {
  background: var(--color-mist);
  color: var(--color-umber);
}

.sheet-burger-trigger {
  order: 999;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  border: var(--border-fine);
  background: var(--color-paper);
  color: var(--color-umber);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sheet-burger-trigger:hover {
  box-shadow: var(--shadow-float);
}

.sheet-burger-trigger i {
  font-size: 1.15rem;
}

@media (max-width: 63.9375rem) {
  .sheet-desktop-nav {
    display: none;
  }

  .sheet-burger-trigger {
    display: flex;
  }
}

/* Mobile panel (separate from header bar) */
.sheet-mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  padding-top: 5.5rem;
  background: color-mix(in srgb, var(--color-linen) 96%, var(--color-paper));
  z-index: 30;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-sm);
  padding-inline: var(--space-lg);
  padding-bottom: var(--space-xl);
  overflow-y: auto;
  border-bottom: var(--border-fine);
  box-shadow: var(--shadow-sheet);
}

.sheet-mobile-panel.is-open {
  display: flex;
}

.sheet-mobile-panel a {
  display: block;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  border: var(--border-fine);
  color: var(--color-umber);
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-sheet);
}

.sheet-mobile-panel a:hover {
  border-color: rgba(138, 154, 91, 0.45);
}

@media (min-width: 64rem) {
  .sheet-mobile-panel {
    display: none !important;
  }
}

/* --- Main --- */
.sheet-site-main {
  position: relative;
  z-index: 1;
}

/* Full-width hero banners (100vw), image under copy */
.sheet-hero-full {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(16rem, 52vw, 28rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: var(--border-fine);
}

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

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

.sheet-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(247, 243, 239, 0.97) 0%,
    rgba(247, 243, 239, 0.55) 45%,
    rgba(247, 243, 239, 0.2) 100%
  );
}

.sheet-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  width: 100%;
}

.sheet-hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-sm);
}

.sheet-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--space-md);
  color: var(--color-umber);
}

.sheet-hero-lead {
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--color-ink-muted);
  margin: 0;
}

/* Inner sections */
.sheet-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.sheet-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 0 0 var(--space-md);
}

.sheet-prose {
  max-width: 46rem;
  color: var(--color-ink-muted);
}

.sheet-prose p {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

/* Paper cards */
.sheet-paper-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.sheet-paper-card {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  border: var(--border-fine);
  box-shadow: var(--shadow-sheet);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sheet-paper-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
}

.sheet-thumb-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-fine);
  aspect-ratio: 4 / 3;
  background: var(--color-mist);
}

.sheet-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Split band */
.sheet-split-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 52rem) {
  .sheet-split-band {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.sheet-split-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-fine);
  box-shadow: var(--shadow-float);
  max-height: 22rem;
}

.sheet-split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Balance wheel */
.sheet-wheel-section {
  padding-block: var(--space-2xl);
}

.sheet-wheel-layout {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  justify-items: center;
}

@media (min-width: 60rem) {
  .sheet-wheel-layout {
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
  }
}

.sheet-wheel-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-top: 0;
}

.sheet-wheel-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sheet-balance-wheel {
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  border-radius: 50%;
  background: conic-gradient(
    var(--color-nutrition) 0deg 90deg,
    var(--color-rest) 90deg 180deg,
    var(--color-move) 180deg 270deg,
    var(--color-mind) 270deg 360deg
  );
  box-shadow: inset 0 0 0 0.0625rem rgba(78, 59, 49, 0.12), var(--shadow-float);
}

.sheet-balance-wheel::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: var(--color-paper);
  border: var(--border-fine);
  box-shadow: var(--shadow-sheet);
}

.sheet-wheel-label {
  position: absolute;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-umber);
  width: 42%;
  text-align: center;
  pointer-events: none;
}

.sheet-wheel-seg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 50%);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.sheet-wheel-seg:focus-visible {
  outline: none;
}

.sheet-wheel-seg:nth-of-type(1) {
  transform: rotate(0deg);
}

.sheet-wheel-seg:nth-of-type(2) {
  transform: rotate(90deg);
}

.sheet-wheel-seg:nth-of-type(3) {
  transform: rotate(180deg);
}

.sheet-wheel-seg:nth-of-type(4) {
  transform: rotate(270deg);
}

.sheet-wheel-seg:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sheet-label-nutrition {
  top: 6%;
  left: 29%;
}

.sheet-label-rest {
  top: 29%;
  right: 4%;
}

.sheet-label-movement {
  bottom: 10%;
  right: 18%;
}

.sheet-label-mindset {
  bottom: 14%;
  left: 12%;
}

/* Buttons */
.sheet-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 0.0625rem solid rgba(78, 59, 49, 0.15);
  background: var(--color-sage);
  color: var(--color-paper);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.sheet-btn-primary:hover {
  filter: brightness(1.05);
}

.sheet-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  border: var(--border-fine);
  background: var(--color-paper);
  color: var(--color-umber);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
}

.sheet-btn-ghost:hover {
  box-shadow: var(--shadow-float);
}

/* Forms */
.sheet-form-grid {
  display: grid;
  gap: var(--space-md);
  max-width: 36rem;
}

.sheet-form-grid label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-umber);
}

.sheet-form-grid input[type="text"],
.sheet-form-grid input[type="email"],
.sheet-form-grid textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: var(--border-fine);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-paper);
}

.sheet-form-grid textarea {
  min-height: 9rem;
  resize: vertical;
}

.sheet-consent-row {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--color-ink-muted);
}

.sheet-map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-fine);
  box-shadow: var(--shadow-sheet);
  min-height: 16rem;
}

.sheet-map-frame iframe {
  width: 100%;
  height: clamp(16rem, 42vw, 22rem);
  border: 0;
  display: block;
}

/* Inventory tool */
.sheet-tool-panel {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  border: var(--border-fine);
  box-shadow: var(--shadow-sheet);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-lg);
}

.sheet-slider-row label {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.sheet-slider-row input[type="range"] {
  width: 100%;
}

.sheet-status-map {
  border: var(--border-fine);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background: color-mix(in srgb, var(--color-mist) 65%, var(--color-paper));
}

.sheet-status-map h3 {
  font-family: var(--font-display);
  margin-top: 0;
}

.sheet-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media print {
  .sheet-site-header,
  .sheet-site-footer,
  .sheet-burger-trigger,
  .sheet-mobile-panel,
  .sheet-cookie-layer,
  .sheet-print-actions {
    display: none !important;
  }

  .sheet-site-main,
  .sheet-status-map {
    box-shadow: none !important;
  }
}

/* Ritual cards */
.sheet-ritual-stack {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 45rem) {
  .sheet-ritual-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 68rem) {
  .sheet-ritual-stack {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sheet-ritual-card {
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-fine);
  box-shadow: var(--shadow-sheet);
}

.sheet-ritual-card img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
}

.sheet-ritual-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

/* Products */
.sheet-product-row {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 48rem) {
  .sheet-product-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sheet-product-card {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  border: var(--border-fine);
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sheet-product-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.sheet-product-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.sheet-price-tag {
  font-weight: 600;
  color: var(--color-umber);
  margin-top: auto;
}

/* Footer */
.sheet-site-footer {
  margin-top: var(--space-2xl);
  border-top: var(--border-fine);
  background: color-mix(in srgb, var(--color-paper) 94%, var(--color-mist));
  padding: var(--space-lg) var(--space-md);
}

.sheet-footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.sheet-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
}

.sheet-footer-nav a {
  font-size: 0.88rem;
  color: var(--color-ink-muted);
  text-decoration: none;
}

.sheet-footer-nav a:hover {
  color: var(--color-umber);
  text-decoration: underline;
}

.sheet-footer-meta {
  font-size: 0.82rem;
  color: var(--color-ink-muted);
}

/* Cookie / consent layer */
.sheet-cookie-layer {
  position: fixed;
  z-index: 60;
  inset: auto 0 0 0;
  padding: var(--space-md);
  pointer-events: none;
}

.sheet-cookie-layer.is-dismissed {
  display: none;
}

.sheet-cookie-card {
  pointer-events: auto;
  max-width: var(--content-max);
  margin: 0 auto;
  background: color-mix(in srgb, var(--color-paper) 92%, transparent);
  backdrop-filter: blur(0.75rem);
  border: var(--border-fine);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
}

.sheet-cookie-card p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

.sheet-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Thank you / 404 */
.sheet-center-card {
  max-width: 32rem;
  margin: var(--space-2xl) auto;
  padding: var(--space-xl);
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  border: var(--border-fine);
  box-shadow: var(--shadow-sheet);
  text-align: center;
}

.sheet-center-card h1 {
  font-family: var(--font-display);
  margin-top: 0;
}

/* Legal doc */
.sheet-legal-doc {
  max-width: 48rem;
  margin: 0 auto;
}

.sheet-legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: var(--space-xl);
}

.sheet-legal-doc h2:first-of-type {
  margin-top: var(--space-md);
}

.sheet-legal-doc ul {
  padding-left: 1.2rem;
}

.sheet-date-note {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-lg);
}

/* Decorative line sketch (CSS only) */
.sheet-line-sketch {
  width: 100%;
  max-width: 14rem;
  height: 0.125rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(78, 59, 49, 0.35),
    transparent
  );
  margin: var(--space-md) 0;
}

/* Utility */
.sheet-mt-0 {
  margin-top: 0;
}

.sheet-stack-gap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Mood journal */
.sheet-journal-area {
  width: 100%;
  min-height: 10rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: var(--border-fine);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-paper);
  resize: vertical;
}

/* Hero minimal (legal) */
.sheet-hero-minimal {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(
    120deg,
    var(--color-mist),
    color-mix(in srgb, var(--color-sage) 18%, var(--color-linen))
  );
  border-bottom: var(--border-fine);
}

.sheet-hero-minimal .sheet-hero-inner {
  padding-block: var(--space-xl);
}
