[data-netlify-badge],
.netlify-badge {
  display: none !important;
}

:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-hover: #f0f2f5;
  --border: #e3e6ea;
  --text: #14171c;
  --muted: #626b78;
  --accent: #2f6fed;
  --accent-soft: rgba(47, 111, 237, 0.12);
  --featured-a: #0f766e;
  --featured-b: #22a06b;
  --featured-contrast: #ffffff;
  --shadow: 0 1px 2px rgba(16, 20, 28, 0.06), 0 8px 24px rgba(16, 20, 28, 0.07);
  --radius: 14px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: #141821;
  --surface-hover: #1b2029;
  --border: #262c37;
  --text: #e8ebf0;
  --muted: #949cab;
  --accent: #5b8dff;
  --accent-soft: rgba(91, 141, 255, 0.16);
  --featured-a: #0f9b8e;
  --featured-b: #34d399;
  --featured-contrast: #04261f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --bg: #0b0d12;
    --surface: #141821;
    --surface-hover: #1b2029;
    --border: #262c37;
    --text: #e8ebf0;
    --muted: #949cab;
    --accent: #5b8dff;
    --accent-soft: rgba(91, 141, 255, 0.16);
    --featured-a: #0f9b8e;
    --featured-b: #34d399;
    --featured-contrast: #04261f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

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

a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sun,
.icon-moon {
  grid-area: 1 / 1;
}

.icon-moon {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .icon-sun {
    display: none;
  }
  :root[data-theme="auto"] .icon-moon {
    display: block;
  }
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 19.5rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 60rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
}

.sidebar {
  position: sticky;
  top: 3.5rem;
  min-width: 0;
}

.sidebar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sidebar > .section {
  margin-top: 1.75rem;
}

.section--icons {
  flex: 1 1 auto;
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.content {
  min-width: 0;
}

.profile {
  margin-bottom: 2.25rem;
  text-align: center;
}

.avatar {
  display: block;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.1rem;
  border-radius: 22%;
  object-fit: cover;
}

.profile h1 {
  margin: 0 0 0.4rem;
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 auto;
  max-width: 24rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.section {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.section-title {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.items {
  display: flex;
  min-width: 0;
}

.section--icons .items {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section--rows .items {
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section--cards .items {
  flex-direction: column;
  gap: 0.6rem;
}

.item {
  position: relative;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.item-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.item-icon svg,
.icon-img {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.item-icon--image {
  padding: 0.3rem;
  border-radius: 12px;
  background: #ffffff;
}

.item-icon--image .icon-img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: contain;
}

.item--featured .item-icon--image {
  background: #ffffff;
}

.icon-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
}

.item--icons {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.item--icons:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.item--icons .item-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0;
  background: none;
  color: inherit;
}

.item--icons .item-icon svg,
.item--icons .icon-img {
  width: 100%;
  height: 100%;
}

.item--rows {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  transition: background-color 0.15s ease;
}

.item--rows + .item--rows {
  border-top: 1px solid var(--border);
}

.item--rows:hover {
  background: var(--surface-hover);
}

.item--rows .item-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9px;
}

.item--rows .item-icon svg,
.item--rows .icon-img {
  width: 1.05rem;
  height: 1.05rem;
}

.item--cards {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease;
}

.item--cards:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.item--cards .item-icon {
  width: 2.25rem;
  height: 2.25rem;
}

.item--cards .item-icon svg,
.item--cards .icon-img {
  width: 1.2rem;
  height: 1.2rem;
}

.item--cards.item--featured {
  padding: 1.75rem 1.25rem;
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--featured-a), var(--featured-b)) border-box;
}

.item--cards.item--featured:hover {
  background: linear-gradient(var(--surface-hover), var(--surface-hover))
      padding-box,
    linear-gradient(135deg, var(--featured-a), var(--featured-b)) border-box;
}

.item--featured .item-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--featured-a), var(--featured-b));
  color: var(--featured-contrast);
}

.item--featured .item-icon svg,
.item--featured .icon-img {
  width: 1.6rem;
  height: 1.6rem;
}

.item--featured .item-title {
  font-size: 1.15rem;
}

.item--featured .item-sub {
  font-size: 0.9rem;
}

.item-figure {
  flex: 0 0 auto;
  width: 9rem;
  height: 5.5rem;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-hover);
}

.item-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item--cards.has-image {
  gap: 1rem;
}

.item-badge {
  position: absolute;
  top: 0;
  left: 1.1rem;
  transform: translateY(-50%);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--featured-a), var(--featured-b));
  color: var(--featured-contrast);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.item-title {
  font-weight: 550;
  line-height: 1.35;
}

.item--rows .item-title {
  font-size: 0.9rem;
}

.item--cards .item-title {
  font-size: 1rem;
}

.item-sub {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item--cards .item-sub {
  font-size: 0.85rem;
}

.item-tag {
  align-self: flex-start;
  margin-top: 0.2rem;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.item-arrow {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
}

.toast {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--accent);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
}

.footer {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 60rem) {
  .layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    max-width: 34rem;
    padding: 2rem 1.25rem 2.5rem;
  }

  .sidebar,
  .content {
    display: contents;
  }

  .sidebar-top {
    order: 1;
  }

  .profile {
    order: 2;
    margin-bottom: 0;
  }

  .section--cards {
    order: 3;
  }

  .section--rows {
    order: 4;
  }

  .footer {
    order: 5;
  }

  .toast {
    order: 6;
  }

  .sidebar > .section {
    margin-top: 0;
  }

  .theme-toggle {
    position: static;
  }
}

@media (max-width: 26rem) {
  .layout {
    gap: 1.75rem;
    padding: 1.5rem 1rem 2rem;
  }

  .avatar {
    width: 4.25rem;
    height: 4.25rem;
    margin-bottom: 0.85rem;
  }

  .profile h1 {
    font-size: 1.45rem;
  }

  .tagline {
    font-size: 0.92rem;
  }

  .item--rows {
    padding: 0.55rem 0.6rem;
  }

  .item--cards {
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
  }

  .item--cards.item--featured {
    padding: 1.6rem 0.9rem;
  }

  .item--featured .item-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .item--featured .item-title {
    font-size: 1.05rem;
  }

  .item-figure {
    width: 5.5rem;
    height: 4.5rem;
    border-radius: 9px;
  }

  .item-badge {
    left: 0.9rem;
  }
}

@media (max-width: 22.5rem) {
  .item--cards.has-image .item-icon {
    display: none;
  }
}

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