:root {
  --brand: #003c5b;
  --brand-dark: #002a41;
  --active: #2563eb;
  --active-soft: #e7f0ff;
  --surface: #ffffff;
  --surface-muted: #f6f8fb;
  --surface-subtle: #eef4f8;
  --text: #111827;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
  --border: #d9e1e8;
  --border-strong: #b8c5d1;
  --accent-green: #13795b;
  --accent-gold: #9a6700;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface-muted);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

.eyebrow,
.section-label,
.app-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.1;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.header-link {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.header-link:focus-visible,
.app-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.26);
  outline-offset: 3px;
}

.workspace {
  min-height: calc(100vh - 76px);
  padding: 24px clamp(16px, 4vw, 40px) 44px;
}

.intro-band,
.repo-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.intro-band {
  margin-bottom: 18px;
}

.section-label,
.app-kicker {
  color: var(--accent-green);
}

.intro-band h2,
.repo-band h2 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.15;
}

.intro-band p,
.repo-band p {
  max-width: 560px;
  margin: 0;
  color: var(--text-soft);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.app-card {
  display: flex;
  min-height: 300px;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.app-card[href]:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.app-card-planned {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
}

.app-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--brand);
}

.app-icon svg {
  width: 26px;
  height: 26px;
}

.app-card h2 {
  margin: 0;
  color: var(--brand);
  font-size: 22px;
  line-height: 1.2;
}

.app-card p {
  margin: 0;
  color: var(--text-soft);
}

.app-action,
.planned-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--active);
  font-size: 14px;
  font-weight: 800;
}

.app-action svg {
  width: 17px;
  height: 17px;
}

.planned-label {
  align-self: flex-start;
  border: 1px solid #f2d385;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff8e1;
  color: var(--accent-gold);
}

.repo-band {
  align-items: center;
  flex-wrap: wrap;
}

.repo-band code {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-subtle);
  padding: 10px 12px;
  color: var(--brand-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .app-header,
  .intro-band,
  .repo-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-link {
    align-self: flex-start;
  }

  .intro-band h2,
  .repo-band h2 {
    font-size: 24px;
  }

  .app-card {
    min-height: 260px;
  }
}
