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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

/* App Shell */
.app-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 60px;
}

/* Eyebrow / Label */
.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 0 8px var(--accent-primary);
}

/* App Header */
.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.app-header h1 {
  margin: 0;
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.subtitle {
  margin: 10px 0 0;
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Module Outlet */
.module-outlet {
  display: grid;
  gap: 24px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .app-shell {
    width: calc(100% - 32px);
    padding: 24px 0 32px;
  }
  
  .app-header {
    flex-direction: column;
    gap: 16px;
  }
}