@import url("/components.css");
@import url("/responsive.css");

:root {
  color-scheme: dark;
  --md-sys-color-background: #101411;
  --md-sys-color-on-background: #e0e4dc;
  --md-sys-color-surface: #101411;
  --md-sys-color-on-surface: #e0e4dc;
  --md-sys-color-surface-container-low: #191d1a;
  --md-sys-color-surface-container: #1d211e;
  --md-sys-color-surface-container-high: #272b28;
  --md-sys-color-on-surface-variant: #c0c9bf;
  --md-sys-color-outline: #8a9389;
  --md-sys-color-outline-variant: #414941;
  --md-sys-color-primary: #7bdc9a;
  --md-sys-color-on-primary: #00391f;
  --md-sys-color-primary-container: #00522f;
  --md-sys-color-on-primary-container: #96f7b5;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error: #690005;
  --app-color-success: #7bdc9a;
  --app-color-warning: #e8c16f;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --content-max: 1180px;
  font-family: ui-rounded, "Avenir Next", "Nunito Sans", system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="moon"]) {
    color-scheme: light;
    --md-sys-color-background: #f8fbf3;
    --md-sys-color-on-background: #191c18;
    --md-sys-color-surface: #f8fbf3;
    --md-sys-color-on-surface: #191c18;
    --md-sys-color-surface-container-low: #f2f5ed;
    --md-sys-color-surface-container: #ecefe7;
    --md-sys-color-surface-container-high: #e6e9e1;
    --md-sys-color-on-surface-variant: #424940;
    --md-sys-color-outline: #72796f;
    --md-sys-color-outline-variant: #c2c9be;
    --md-sys-color-primary: #006d3f;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #95f7b6;
    --md-sys-color-on-primary-container: #00210f;
    --md-sys-color-error: #ba1a1a;
    --md-sys-color-on-error: #ffffff;
    --app-color-success: #127a47;
    --app-color-warning: #8a6500;
  }
}

:root[data-theme="sun"] {
  color-scheme: light;
  --md-sys-color-background: #f8fbf3;
  --md-sys-color-on-background: #191c18;
  --md-sys-color-surface: #f8fbf3;
  --md-sys-color-on-surface: #191c18;
  --md-sys-color-surface-container-low: #f2f5ed;
  --md-sys-color-surface-container: #ecefe7;
  --md-sys-color-surface-container-high: #e6e9e1;
  --md-sys-color-on-surface-variant: #424940;
  --md-sys-color-outline: #72796f;
  --md-sys-color-outline-variant: #c2c9be;
  --md-sys-color-primary: #006d3f;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #95f7b6;
  --md-sys-color-on-primary-container: #00210f;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --app-color-success: #127a47;
  --app-color-warning: #8a6500;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
}

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

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

.shell {
  width: min(100% - calc(var(--space-4) * 2), var(--content-max));
  margin: 0 auto;
  padding: var(--space-6) 0 var(--space-12);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0 var(--space-8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--radius-md);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.shell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: flex-end;
}

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

.eyebrow {
  display: inline-flex;
  margin: 0 0 var(--space-4);
  color: var(--md-sys-color-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

.lead {
  max-width: 680px;
  margin-top: var(--space-5);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 1rem;
  line-height: 1.55;
}
