:root {
  --canvas: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eaf0f5;
  --ink: #182d43;
  --heading: #172f44;
  --muted: #64798c;
  --caption: #6d8294;
  --border: #e2e9f0;
  --sidebar: #11273c;
  --link-small: #06707b;
  --primary: #087f8c;
  --primary-edge: #39b8bc;
  --primary-press: #066874;
  --yellow: #ffd84d;
  --yellow-hover: #ffe680;
  --hero-from: #11273c;
  --hero-to: #1b465b;
  --hero-text: #b6cdd9;
  --radius-control: 8px;
  --radius-panel: 14px;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.main {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 32px 32px 48px;
}

.hero {
  position: relative;
  background: linear-gradient(110deg, var(--hero-from), var(--hero-to));
  color: #fff;
  border-radius: 17px;
  padding: 26px 32px;
  margin-bottom: 24px;
  overflow: hidden;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--yellow);
}

.wordmark {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin: 12px 0;
  color: #fff;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.beam {
  position: absolute;
  z-index: 0;
  left: -12px;
  right: -36px;
  top: 50%;
  height: 2.4em;
  transform: translateY(-50%);
  background: radial-gradient(
    ellipse at 18% 50%,
    rgba(255, 216, 77, 0.42),
    rgba(255, 216, 77, 0) 70%
  );
  pointer-events: none;
}

.name {
  position: relative;
  z-index: 1;
}

.first {
  position: relative;
  display: inline-block;
}

.arc {
  position: absolute;
  left: calc(50% - 3px);
  top: 54%;
  width: 1.7em;
  height: 1.7em;
  transform: translate(-50%, -50%);
  overflow: visible;
  color: var(--yellow);
  pointer-events: none;
}

.lede {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 38rem;
  color: var(--hero-text);
}

.section-nav {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
}

.section-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--link-small);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: #fff;
}

.section-nav a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.site-section {
  margin-bottom: 36px;
  scroll-margin-top: 16px;
}

.section-heading {
  margin: 0 0 4px;
  color: var(--sidebar);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
}

.section-lede {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--tile-accent, #087f8c);
  box-shadow: 0 8px 24px rgba(18, 45, 68, 0.07);
  border-radius: var(--radius-panel);
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tile:nth-child(6n + 1) { --tile-accent: #087f8c; --surface-alt: #def4f1; }
.tile:nth-child(6n + 2) { --tile-accent: #347ab5; --surface-alt: #e0eefb; }
.tile:nth-child(6n + 3) { --tile-accent: #5869c5; --surface-alt: #e9eaff; }
.tile:nth-child(6n + 4) { --tile-accent: #b65c85; --surface-alt: #fae6ef; }
.tile:nth-child(6n + 5) { --tile-accent: #b78a21; --surface-alt: #fff2cf; }
.tile:nth-child(6n + 6) { --tile-accent: #408a75; --surface-alt: #e0f2e9; }

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}

.icon-wrap img,
.monogram {
  width: 48px;
  height: 48px;
  display: block;
}

.monogram {
  display: grid;
  place-items: center;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tile h3 {
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 650;
  margin: 12px 0 8px;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.blurb {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.status {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile-foot {
  margin-top: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  border-radius: var(--radius-control);
  padding: 10px 16px;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.button-primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
}

.button-primary:hover:not(:disabled) {
  background: var(--primary-press);
  border-color: var(--primary-press);
}

.button-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--heading);
}

.button-ghost:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.button[aria-disabled="true"],
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.site-footer {
  margin-top: 28px;
  color: var(--heading);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.empty {
  margin: 0;
  color: var(--muted);
}

dialog {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  color: var(--ink);
  background: var(--surface);
  margin: auto;
}

dialog::backdrop {
  background: rgba(17, 39, 60, 0.55);
}

.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dialog-bar h2 {
  margin: 0;
  color: var(--heading);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

dialog iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  background: var(--surface-alt);
  border-radius: 8px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .main {
    padding: 24px 16px 32px;
  }

  .hero {
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
