:root {
  color-scheme: dark;
  --background: #0b0d10;
  --surface: #12151a;
  --surface-raised: #181c22;
  --text: #e6edf3;
  --muted: #aeb8c3;
  --brand: #8d78ff;
  --accent: #42dcff;
  --border: #5b6978;
  --focus: #ffd166;
  --radius: 1rem;
  --shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
  --content: 67.5rem;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --background: #f4f7fb;
    --surface: #ffffff;
    --surface-raised: #f8f9fc;
    --text: #11151a;
    --muted: #4f5b66;
    --brand: #5038d5;
    --accent: #006f9f;
    --border: #7b8794;
    --focus: #6b3fd6;
    --shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.1);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(75rem 37.5rem at 85% -10%, rgba(124, 97, 255, 0.24), transparent 60%),
    radial-gradient(56rem 31rem at -10% 20%, rgba(33, 212, 253, 0.16), transparent 60%),
    var(--background);
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: #11151a;
  background: #ffd166;
  border-radius: 0.5rem;
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  border-radius: 0.6rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(124, 97, 255, 0.12);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
}

main {
  padding-block: 1.5rem 3rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

h3 {
  font-size: 1.15rem;
}

.lead {
  max-width: 42rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero {
  padding-block: clamp(2rem, 8vw, 5rem);
  text-align: center;
}

.hero .lead {
  margin-inline: auto;
}

.gradient-text {
  color: var(--accent);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  color: #ffffff;
  background: #4b35cc;
  border: 0.0625rem solid transparent;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: #3926a8;
}

.button-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  background: var(--surface);
  border: 0.0625rem solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.profile-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border: 0.125rem solid var(--brand);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.profile-header h1,
.profile-header p {
  margin: 0;
}

.profile-header p,
.muted {
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1.5rem;
}

.badge {
  padding: 0.35rem 0.7rem;
  background: rgba(124, 97, 255, 0.14);
  border: 0.0625rem solid var(--brand);
  border-radius: 999px;
  font-size: 0.88rem;
}

.feed {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed li {
  padding-block: 0.65rem;
  border-bottom: 0.0625rem solid var(--border);
}

.feed li:last-child {
  border-bottom: 0;
}

.feed a {
  overflow-wrap: anywhere;
  font-weight: 650;
}

.feed-meta,
.source-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.source-note {
  margin-top: 1rem;
}

.tool-card {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.tool-card h2 {
  color: var(--accent);
}

.tool-card:hover {
  border-color: var(--accent);
}

.external-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding-block: 1.5rem 2rem;
  color: var(--muted);
  border-top: 0.0625rem solid var(--border);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 43.75rem) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .site-nav ul {
    width: 100%;
  }

  .site-nav ul {
    justify-content: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .profile-header {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
