@charset "UTF-8";

/*
AI GENERATION RULES

This stylesheet is the visual source of truth
Use tokens from :root and [data-theme="dark"] instead of hardcoded values
Do not recreate removed decorative branches or crossing corner lines
The hero may use soft sunlight, radial gradients and one subtle arc
Modals and empty states must stay clean and free of decoration
All interactive elements must keep visible :focus-visible styles
Primary actions must use --primary and --on-primary
Secondary text must use --text-muted only when size and contrast remain readable
Do not put periods at the end of headings and interface paragraphs
*/

:root {
  --bg: #f7f3ec;
  --surface: #fffdf8;
  --surface-2: #f1ebe0;
  --border: #e2d5c1;

  --text: #2a2620;
  --text-muted: #665d50;

  --primary: #b8924a;
  --primary-hover: #a07d3a;
  --primary-soft: #efe3cc;
  --on-primary: #ffffff;

  --accent: #b85f35;
  --success: #4f7a3f;
  --danger: #a13d31;
  --warning: #8a5d12;
  --info: #4d7185;

  --focus-ring: #c9963d;
  --focus-shadow: 0 0 0 3px rgba(201, 150, 61, .28);

  --shadow-sm: 0 1px 2px rgba(60, 45, 20, .06);
  --shadow-md: 0 8px 24px -10px rgba(60, 45, 20, .22);
  --shadow-lg: 0 24px 60px -20px rgba(60, 45, 20, .36);

  --radius: 10px;
  --radius-lg: 16px;

  --sidebar-w: 248px;
  --sidebar-w-collapsed: 68px;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --hero-light:
    radial-gradient(ellipse 78% 76% at 86% 14%, rgba(255, 220, 150, .36), transparent 68%),
    radial-gradient(ellipse 58% 52% at 78% 34%, rgba(255, 235, 200, .26), transparent 72%),
    radial-gradient(ellipse 60% 50% at 20% 90%, rgba(220, 180, 120, .12), transparent 60%);
}

[data-theme="dark"] {
  --bg: #1a1612;
  --surface: #221d18;
  --surface-2: #2b251f;
  --border: #463a2f;

  --text: #f0e8d8;
  --text-muted: #b5a68d;

  --primary: #d4a960;
  --primary-hover: #e3bb75;
  --primary-soft: #3a2f1f;
  --on-primary: #1f160a;

  --accent: #d8814f;
  --success: #91b77e;
  --danger: #e2877b;
  --warning: #e0b260;
  --info: #90b5c8;

  --focus-ring: #e0b260;
  --focus-shadow: 0 0 0 3px rgba(224, 178, 96, .28);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);

  --hero-light:
    radial-gradient(ellipse 74% 72% at 86% 18%, rgba(212, 169, 96, .24), transparent 70%),
    radial-gradient(ellipse 56% 48% at 78% 36%, rgba(216, 129, 79, .13), transparent 74%),
    radial-gradient(ellipse 70% 50% at 10% 100%, rgba(0, 0, 0, .35), transparent 60%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

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

/* Layout */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .25s ease;
}

.app.collapsed {
  grid-template-columns: var(--sidebar-w-collapsed) minmax(0, 1fr);
}

.app > .sidebar {
  grid-column: 1;
}

.app > .main {
  grid-column: 2;
}

/* Sidebar */

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transition: background .3s;
}

.sidebar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  min-width: 0;
}

.brand .name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.sidebar-hint {
  padding: 10px 18px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: .02em;
}

.sidebar-toggle {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: background .15s, color .15s, transform .25s;
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: var(--surface-2);
  color: var(--text);
}

.app.collapsed .sidebar-toggle {
  transform: rotate(180deg);
}

.sidebar-section {
  padding: 16px 12px 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.sidebar-nav {
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13.5px;
  white-space: nowrap;
  transition: background .15s, color .15s;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.nav-item svg {
  flex-shrink: 0;
}

.nav-item .label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.app.collapsed .sidebar-hint,
.app.collapsed .sidebar-section,
.app.collapsed .nav-item .label,
.app.collapsed .brand .name,
.app.collapsed .sidebar-foot .user-meta {
  display: none;
}

.app.collapsed .sidebar-head {
  padding: 20px 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.app.collapsed .sidebar-toggle {
  margin-left: 0;
}

.app.collapsed .nav-item {
  justify-content: center;
  padding: 10px;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary));
  display: grid;
  place-items: center;
  color: var(--on-primary);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.user-meta b {
  font-weight: 600;
  font-size: 13px;
}

.user-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-item {
  position: relative;
}

.app.collapsed .sidebar {
  overflow: visible;
  z-index: 20;
}

.app.collapsed .sidebar-nav {
  position: relative;
}

.app.collapsed .nav-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 100;
}

.app.collapsed .nav-item[data-tooltip]::before {
  content: "";
  position: absolute;
  left: calc(100% + 5px);
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--text);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease;
  z-index: 99;
}

.app.collapsed .nav-item[data-tooltip]:hover::after,
.app.collapsed .nav-item[data-tooltip]:focus-visible::after,
.app.collapsed .nav-item[data-tooltip]:hover::before,
.app.collapsed .nav-item[data-tooltip]:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.app.collapsed .nav-item[data-tooltip]:hover::after,
.app.collapsed .nav-item[data-tooltip]:focus-visible::after {
  transform: translateY(-50%) translateX(0);
}

/* Main */

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.hamburger:hover {
  background: var(--surface-2);
}

.search {
  flex: 1;
  max-width: 440px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
}

.search:focus-within {
  border-color: var(--focus-ring);
  box-shadow: var(--focus-shadow);
}

.search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
}

.search kbd {
  font-family: var(--font-body);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: background .15s, color .15s;
  position: relative;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.icon-btn .dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}

/* Content */

.content {
  padding: 40px 48px 80px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.page-head {
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--primary);
}

h1.display {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}

h1.display em {
  color: var(--primary);
  font-style: italic;
}

.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 660px;
  line-height: 1.6;
}

.section {
  margin-top: 56px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.005em;
}

.section-head .num {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--primary);
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 400px;
}

/* Hero */

.hero-card {
  position: relative;
  background: var(--hero-light), var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px;
  overflow: hidden;
  min-height: 360px;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  opacity: .2;
  pointer-events: none;
}

.hero-card::after {
  content: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-actions {
  margin-top: 28px;
}

/* Grid and cards */

.grid {
  display: grid;
  gap: 20px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.card.hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}

.card .kicker,
.kicker {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
  font-size: 14px;
}

.principle .marker {
  margin-bottom: 14px;
}

.stat .value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  margin: 8px 0 4px;
}

.stat .value-unit {
  font-size: 24px;
  color: var(--text-muted);
}

.stat .delta {
  font-size: 12.5px;
  color: var(--success);
  font-weight: 600;
}

/* Buttons */

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-lg {
  min-height: 48px;
  padding: 14px 26px;
  font-size: 15px;
}

.btn:disabled {
  opacity: .5;
  transform: none;
  box-shadow: none;
}

.example-row {
  margin-top: 14px;
}

/* Forms */

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .04em;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--focus-ring);
  box-shadow: var(--focus-shadow);
}

.textarea {
  resize: vertical;
  min-height: 92px;
}

.hint {
  font-size: 12px;
  color: var(--text-muted);
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.checkbox input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-actions {
  margin-top: 22px;
  justify-content: flex-end;
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: .2s;
  cursor: pointer;
}

.switch .slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: .2s;
}

.switch input:checked + .slider {
  background: var(--primary);
  border-color: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
  background: var(--on-primary);
}

.switch input:focus-visible + .slider {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Badges and chips */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.badge-primary {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-success {
  background: color-mix(in oklab, var(--success) 15%, transparent);
  color: var(--success);
}

.badge-warning {
  background: color-mix(in oklab, var(--warning) 17%, transparent);
  color: var(--warning);
}

.badge-danger {
  background: color-mix(in oklab, var(--danger) 15%, transparent);
  color: var(--danger);
}

.badge-muted {
  background: var(--surface-2);
  color: var(--text-muted);
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text);
  transition: border-color .15s, color .15s, background .15s;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.chip .x {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, currentColor 20%, transparent);
  font-size: 10px;
}

/* Lists */

.list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}

.list-item:last-child {
  border-bottom: none;
}

.marker,
.list-item .marker {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  flex-shrink: 0;
}

.list-item .body {
  flex: 1;
  min-width: 0;
}

.list-item .body b {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}

.list-item .body span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.list-item .meta {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Typography */

.type-stack > * + * {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.type-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  justify-content: space-between;
}

.type-row .sample {
  color: var(--text);
}

.type-row .label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.t-display {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.t-h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
}

.t-h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

.t-body {
  font-size: 15px;
}

.t-small {
  font-size: 12px;
  color: var(--text-muted);
}

/* Color swatches */

.swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.swatch {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.swatch .chip-color {
  height: 70px;
}

.swatch .meta {
  padding: 10px 12px;
  font-size: 11px;
}

.swatch .meta b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.swatch .meta span {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Decorative divider */

.divider-orn {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 18px;
  color: var(--primary);
}

.divider-orn::before,
.divider-orn::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.divider-orn span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
}

/* Cards spacing */

.cards-row {
  margin-bottom: 24px;
}

.card-tags {
  margin-top: 14px;
}

/* Empty state */

.empty-state {
  text-align: center;
  padding: 56px 24px;
  overflow: hidden;
}

.empty-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in oklab, var(--primary) 18%, transparent), transparent 60%),
    var(--primary-soft);
  color: var(--primary);
}

.empty-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 10px;
}

.empty-text {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 20px;
  font-size: 14px;
}

.empty-actions {
  justify-content: center;
  margin-top: 8px;
}

/* Modal preview */

.modal-preview {
  text-align: center;
  padding: 40px 24px;
}

.modal-preview p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Footer */

.footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
}

/* Scrim */

.scrim {
  display: none;
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 13, 7, .52);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  transition: opacity .2s ease;
}

[data-theme="dark"] .modal-overlay {
  background: rgba(0, 0, 0, .62);
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s cubic-bezier(.2, .7, .3, 1);
}

@keyframes modalIn {
  from {
    transform: translateY(12px) scale(.98);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}

.modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 10px;
  padding-right: 36px;
}

.modal-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-check {
  margin-top: 14px;
}

.modal-actions {
  margin-top: 24px;
  justify-content: flex-end;
}

/* Placeholders */

::placeholder {
  color: color-mix(in oklab, var(--text-muted) 78%, transparent);
}

/* Reduced motion */

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

/* Tablet */

@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .content {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Mobile */

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

  .app > .sidebar,
  .app > .main {
    grid-column: 1;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-md);
  }

  .app.mobile-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .topbar {
    padding: 12px 20px;
    gap: 10px;
  }

  .search {
    max-width: none;
  }

  .search kbd {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .content {
    padding: 28px 20px 60px;
  }

  .hero-card {
    padding: 28px;
    min-height: auto;
  }

  .hero-card::before {
    top: -72px;
    right: -92px;
    width: 240px;
    height: 240px;
    opacity: .18;
  }

  .hero-card::after {
    content: none;
  }

  .section {
    margin-top: 48px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 8px;
    max-width: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

  .type-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .list-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .list-item .body {
    flex-basis: calc(100% - 50px);
  }

  .list-item .meta {
    margin-left: 50px;
  }

  .modal {
    padding: 32px 24px 24px;
  }

  .scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 40;
  }

  .app.mobile-open .scrim {
    display: block;
  }
}

/* Small mobile */

@media (max-width: 560px) {
  html,
  body {
    font-size: 14px;
  }

  .content {
    padding: 24px 16px 56px;
  }

  .topbar {
    padding: 10px 14px;
  }

  .top-actions .btn {
    display: none;
  }

  .icon-btn,
  .hamburger {
    width: 38px;
    height: 38px;
  }

  .search {
    padding: 8px 10px;
  }

  .hero-card {
    padding: 24px;
    border-radius: 18px;
  }

  h1.display {
    font-size: clamp(36px, 12vw, 48px);
  }

  .lead {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
  }

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

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

  .card {
    padding: 20px;
  }

  .empty-state {
    padding: 44px 20px;
  }

  .empty-actions {
    align-items: stretch;
  }

  .empty-actions .btn {
    width: 100%;
  }

  .modal-overlay {
    padding: 14px;
    align-items: flex-end;
  }

  .modal {
    max-width: none;
    border-radius: 18px 18px 14px 14px;
  }

  .modal-actions {
    align-items: stretch;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

/* Main site */

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease, border-color .3s ease;
}

.site-header-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-brand {
  flex: 0 0 auto;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.mobile-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease, background .2s ease;
}

.site-nav a:hover,
.mobile-menu a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.theme-toggle {
  flex: 0 0 auto;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  place-items: center;
  gap: 4px;
  padding: 10px;
  transition: background .2s ease, border-color .2s ease;
}

.mobile-menu-btn:hover {
  background: var(--surface-2);
}

.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: var(--radius);
  background: var(--text);
}

.mobile-menu {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  display: grid;
  gap: 6px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  justify-content: flex-start;
  width: 100%;
  background: var(--surface-2);
}

.site-section {
  scroll-margin-top: 96px;
  padding: 78px 0;
}

.hero-section {
  padding-top: 34px;
}

.main-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 44px;
  align-items: center;
  padding-top: 58px;
  padding-bottom: 58px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  margin-bottom: 14px;
}

.main-hero h1.display {
  font-family: var(--font-display);
  font-size: clamp(58px, 9vw, 112px);
  line-height: .92;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: 22px;
  color: var(--text-muted);
}

.hero-text {
  max-width: 680px;
  margin-top: 18px;
  color: var(--text);
  font-size: 17px;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-details {
  display: grid;
  gap: 18px;
}

.hero-points {
  display: grid;
  gap: 12px;
}

.hero-points article {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
}

.hero-points article:first-child {
  border-top: 1px solid var(--border);
}

.hero-points span {
  grid-row: 1 / span 2;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

.hero-points h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  font-weight: 600;
}

.hero-points p {
  color: var(--text-muted);
  font-size: 14px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-facts span {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.photo-placeholder {
  aspect-ratio: 1;
  width: 100%;
  max-width: 340px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.photo-placeholder span {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--primary);
}

.about-copy {
  display: grid;
  gap: 18px;
  font-size: 17px;
  color: var(--text);
}

.directions-grid {
  align-items: stretch;
}

.direction-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
}

.direction-card[hidden] {
  display: none;
}

.direction-card .card-link {
  align-self: end;
  color: var(--primary);
  font-weight: 700;
}

.empty-note {
  color: var(--text-muted);
}

.contact-actions {
  margin-top: 0;
}

.contact-btn {
  min-width: 210px;
  justify-content: center;
}

.contact-btn span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-weight: 700;
}

.channels-section {
  margin-top: 42px;
}

.future-section[hidden] {
  display: none;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h3 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 600;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner a {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 860px) {
  .site-header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .site-nav {
    display: none;
  }

  .site-brand .name {
    max-width: 170px;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .site-section {
    padding: 56px 0;
  }

  .hero-section {
    padding-top: 30px;
  }

  .main-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .main-hero h1.display {
    font-size: 58px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .hero-text {
    font-size: 16px;
  }

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

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .photo-placeholder {
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .mobile-menu {
    width: min(100% - 24px, 1120px);
  }

  .site-brand .name {
    max-width: 128px;
  }

  .main-hero h1.display {
    font-size: 46px;
  }

  .hero-lead,
  .hero-text,
  .about-copy {
    font-size: 16px;
  }

  .hero-points article {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
  }

  .hero-points h2 {
    font-size: 26px;
  }

  .photo-placeholder {
    max-width: 100%;
  }
}
