:root {
  --navy: #071a33;
  --navy-raised: #0e2c57;
  --navy-deep: #041225;
  --blue: #9fd4ff;
  --blue-text: #e7f6ff;
  --white: #ffffff;
  --text-navy: #071a33;
  color-scheme: dark;
}

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

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

body {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% -10%, #123866 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: var(--white);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
}

.top,
.sheet {
  padding: 1.1rem 1.25rem;
}

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 3px solid rgba(231, 246, 255, 0.35);
}

.brand,
.company,
.quiet,
.item p,
.package,
.tagline,
.welcome p,
.empty-home p,
.empty-project p {
  margin: 0;
}

.brand {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.company {
  margin-top: 0.2rem;
  color: var(--blue-text);
  font-size: 0.875rem;
  font-weight: 700;
}

.tagline {
  color: var(--blue);
  font-size: 1rem;
  font-weight: 700;
}

.layout {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 5.5rem);
}

.sidebar {
  width: 16.5rem;
  flex: 0 0 16.5rem;
  padding: 1rem 0.85rem;
  border-right: 3px solid rgba(231, 246, 255, 0.35);
  background: rgba(4, 18, 37, 0.35);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.sidebar h2,
.sheet h1 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.projects button {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  border: 3px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.projects button[aria-current="true"] {
  border-color: var(--white);
  background: var(--navy-raised);
}

.projects button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.kind {
  display: block;
  color: var(--blue-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.5rem 2rem;
}

.project-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

.project-about {
  margin: 0.35rem 0 1rem;
  color: var(--blue-text);
  font-weight: 600;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.75rem 0 1.25rem;
}

.item {
  padding: 0.9rem 0;
  border-bottom: 3px solid rgba(14, 44, 87, 0.9);
}

.quote {
  margin: 0.35rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.source {
  margin: 0.35rem 0 0;
  font-weight: 600;
}

.source a,
.privacy a {
  color: var(--blue-text);
  font-weight: 700;
}

.cite {
  margin: 0.35rem 0 0;
  color: var(--blue-text);
}

.package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.btn {
  min-height: 3rem;
  padding: 0 1rem;
  border: 3px solid var(--white);
  border-radius: 0.65rem;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--text-navy);
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  min-height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.9rem;
}

.btn[hidden],
#copy-status[hidden],
.package[hidden],
.welcome[hidden],
.modal[hidden],
#citation-wrap[hidden] {
  display: none !important;
}

.package {
  margin-top: 1rem;
  padding: 1rem;
  border: 3px solid var(--blue);
  border-radius: 0.65rem;
  background: rgba(4, 18, 37, 0.55);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.quiet {
  color: var(--blue-text);
  font-weight: 600;
}

.empty-home,
.empty-project,
.welcome-card,
.modal-card {
  max-width: 36rem;
}

.empty-home,
.empty-project {
  padding: 1.5rem 0;
}

.empty-kicker,
.welcome-kicker {
  margin: 0 0 0.4rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-title,
.welcome-card h1,
.empty-project h3 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.empty-lead,
.welcome-lead,
.empty-project p {
  color: var(--blue-text);
  font-size: 1.05rem;
  font-weight: 600;
}

.empty-actions,
.welcome-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.empty-tips {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border: 3px solid rgba(159, 212, 255, 0.35);
  border-radius: 0.75rem;
  background: rgba(14, 44, 87, 0.45);
  color: var(--blue-text);
  font-weight: 600;
}

.welcome {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 18, 37, 0.72);
  backdrop-filter: blur(6px);
}

.welcome-card {
  width: min(100%, 34rem);
  padding: 1.5rem;
  border: 3px solid var(--white);
  border-radius: 1rem;
  background: linear-gradient(180deg, #0e2c57 0%, #071a33 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.welcome-steps {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--blue-text);
  font-weight: 600;
}

.welcome-steps li + li {
  margin-top: 0.45rem;
}

.welcome-foot {
  margin-top: 1rem;
  color: var(--blue-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.welcome-dismiss {
  display: block;
  margin: 1rem auto 0;
  border: 0;
  background: transparent;
  color: var(--blue-text);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 18, 37, 0.72);
}

.modal-card {
  width: min(100%, 28rem);
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem;
  border: 3px solid var(--white);
  border-radius: 1rem;
  background: #0e2c57;
}

.modal-card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.02em;
}

.modal-card label,
.modal-card fieldset {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--blue-text);
  font-weight: 700;
}

.modal-card .inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1rem;
}

.modal-card input[type="text"],
.modal-card select {
  min-height: 2.75rem;
  padding: 0.45rem 0.7rem;
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.55rem;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 600;
}

.privacy h1,
.privacy h2,
.privacy h3 {
  text-transform: none;
  letter-spacing: 0;
}

.privacy h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.privacy h2 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.05rem;
}

.privacy h3 {
  margin: 0.9rem 0 0.3rem;
  font-size: 1rem;
}

.privacy p,
.privacy li {
  margin: 0.4rem 0;
}

.privacy ul {
  margin: 0.35rem 0 0.6rem;
  padding-left: 1.2rem;
}

.privacy .meta {
  color: var(--blue-text);
}

.sheet {
  padding: 1.1rem 1.25rem;
}

@media (max-width: 720px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }

  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: auto;
    flex-basis: auto;
    border-right: 0;
    border-bottom: 3px solid rgba(231, 246, 255, 0.35);
  }

  .empty-title,
  .welcome-card h1 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .welcome {
    backdrop-filter: none;
  }
}
