:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --surface: rgba(255,255,255,.045);
  --surface-strong: rgba(255,255,255,.075);
  --border: rgba(255,255,255,.105);
  --border-hover: rgba(255,255,255,.23);
  --text: #f3f3f3;
  --muted: #a0a0a0;
  --dim: #707070;
  --white: #fff;
  --radius: 18px;
  --mono: "DM Mono",monospace;
  --sans: "Manrope",system-ui,sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -25%,#242424 0,transparent 48%),var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,input,select {
  font: inherit;
}
button,a,select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
.ambient {
  position: absolute;
  pointer-events: none;
  filter: blur(90px);
  opacity: .12;
  border-radius: 50%;
  z-index: -1;
}
.ambient-one {
  width: 320px;
  height: 320px;
  background: #bdbdbd;
  top: 100px;
  left: -180px;
}
.ambient-two {
  width: 280px;
  height: 280px;
  background: #777;
  top: 540px;
  right: -160px;
}
.glass {
  background: linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  max-width: 1240px;
  width: calc(100% - 48px);
  margin: 14px auto 0;
  min-height: 76px;
  padding: 0 22px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid #777;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.055);
  color: #eee;
}
.brand-mark svg {
  width: 26px;
  height: 26px;
}
.brand-copy {
  display: grid;
  line-height: 1.25;
  gap: 5px;
}
.brand-copy strong {
  font-size: 16px;
  letter-spacing: .045em;
}
.brand-copy small {
  font: 10px var(--mono);
  letter-spacing: .06em;
  color: #999;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-link {
  padding: 10px 12px;
  border-radius: 9px;
  color: #aaa;
  font-size: 13px;
  transition: background .2s,color .2s;
  white-space: nowrap;
}
.nav-link:hover,.nav-link.active {
  background: rgba(255,255,255,.075);
  color: #fff;
}
.mobile-menu {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px;
}
.mobile-menu span {
  display: block;
  width: 17px;
  height: 1px;
  background: #eee;
  margin: 4px;
}
.hero {
  max-width: 1160px;
  width: calc(100% - 64px);
  margin: 94px auto 56px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 64px;
}
.eyebrow {
  font: 11px var(--mono);
  letter-spacing: .14em;
  color: #a7a7a7;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-dot,.tiny-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd;
  box-shadow: 0 0 10px #aaa;
  display: inline-block;
}
.hero h1 {
  font-size: clamp(44px,5.3vw,70px);
  line-height: 1.12;
  letter-spacing: -.065em;
  margin: 25px 0 20px;
  font-weight: 700;
}
.hero h1 span {
  color: #8b8b8b;
}
.hero-description {
  max-width: 490px;
  color: #aaa;
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 17px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  transition: transform .2s,background .2s,border-color .2s;
  cursor: pointer;
}
.button:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}
.button-primary {
  background: #f1f1f1;
  color: #101010;
  border-color: #f1f1f1;
}
.button-primary:hover {
  background: #fff;
}
.button-quiet {
  background: rgba(255,255,255,.035);
  color: #ddd;
}
.hero-visual {
  border-radius: 22px;
  padding: 17px 20px 13px;
  min-height: 330px;
  position: relative;
  overflow: hidden;
}
.visual-topline,.visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #858585;
  font: 10px var(--mono);
  letter-spacing: .08em;
}
.topology {
  display: block;
  width: 100%;
  height: auto;
  max-height: 275px;
  margin: 5px auto;
}
.visual-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 13px;
}
.visual-footer span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.mono {
  font-family: var(--mono);
}
.stats-grid {
  max-width: 1160px;
  width: calc(100% - 64px);
  margin: 0 auto 116px;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}
.stat-card {
  padding: 21px 22px 19px;
  border-radius: 15px;
  min-height: 135px;
  transition: transform .2s,border-color .2s;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}
.stat-label {
  font: 10px var(--mono);
  letter-spacing: .1em;
  color: #999;
}
.stat-value {
  font-size: 38px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.05em;
  margin: 11px 0 3px;
  font-variant-numeric: tabular-nums;
}
.stat-note {
  font-size: 11px;
  color: #777;
}
.library-section {
  max-width: 1160px;
  width: calc(100% - 64px);
  margin: 0 auto 100px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-heading h2,.about-section h2 {
  font-size: clamp(30px,3vw,40px);
  line-height: 1.2;
  letter-spacing: -.055em;
  margin: 12px 0 8px;
}
.heading-period {
  color: #777;
}
.section-subtitle {
  color: #888;
  margin: 0;
  font-size: 14px;
}
.resource-count {
  font-size: 10px;
  color: #8b8b8b;
  letter-spacing: .08em;
  padding-bottom: 7px;
  white-space: nowrap;
}
.library-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 14px;
  border-radius: 13px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.search-box svg {
  width: 17px;
  height: 17px;
  stroke: #888;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}
.search-box input {
  background: transparent;
  border: 0;
  outline: 0;
  color: #eee;
  width: 100%;
  font-size: 13px;
  padding: 8px 0;
}
.search-box input::placeholder {
  color: #707070;
}
.search-box kbd {
  border: 1px solid #444;
  border-radius: 5px;
  color: #777;
  padding: 1px 7px;
  font: 11px var(--mono);
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 11px;
  border-left: 1px solid var(--border);
  padding-left: 17px;
  white-space: nowrap;
}
.sort-control span {
  font: 10px var(--mono);
  letter-spacing: .08em;
  color: #777;
}
.sort-control select {
  background: #171717;
  color: #ccc;
  border: 1px solid #333;
  border-radius: 7px;
  padding: 8px 24px 8px 9px;
  font-size: 12px;
  outline: none;
  max-width: 170px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 19px 0 24px;
}
.filter-chip {
  border: 1px solid transparent;
  background: transparent;
  color: #888;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  transition: all .2s;
}
.filter-chip span {
  font: 10px var(--mono);
  color: #737373;
  background: rgba(255,255,255,.055);
  padding: 2px 6px;
  border-radius: 4px;
}
.filter-chip:hover {
  color: #eee;
  background: rgba(255,255,255,.04);
}
.filter-chip.active {
  color: #f5f5f5;
  background: rgba(255,255,255,.08);
  border-color: var(--border);
}
.filter-chip.active span {
  color: #ddd;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 13px;
}
.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 19px;
  border-radius: 15px;
  overflow: hidden;
  transition: transform .22s,border-color .22s,background .22s;
}
.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.25);
  background: linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.035));
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.file-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b8b8b8;
  font: 10px var(--mono);
  letter-spacing: .08em;
}
.file-icon {
  width: 28px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #444;
  border-radius: 6px;
  color: #ddd;
  background: rgba(255,255,255,.035);
}
.file-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.card-date {
  font: 10px var(--mono);
  color: #707070;
}
.category-label {
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #888;
  margin-top: 22px;
}
.resource-card h3 {
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -.025em;
  margin: 7px 0 9px;
  font-weight: 650;
}
.resource-card p {
  color: #969696;
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 15px;
}
.tag-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 5px;
}
.tag {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 5px;
  padding: 3px 6px;
  font: 10px var(--mono);
  color: #858585;
}
.card-bottom {
  border-top: 1px solid rgba(255,255,255,.075);
  margin-top: 17px;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.card-meta {
  font: 10px var(--mono);
  color: #777;
}
.card-link {
  font-size: 12px;
  color: #eee;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.card-link span {
  color: #aaa;
  transition: transform .2s;
}
.resource-card:hover .card-link span {
  transform: translate(2px,-2px);
}
.loading-card {
  grid-column: 1/-1;
  border-radius: 14px;
  padding: 32px;
  color: #888;
  text-align: center;
}
.empty-state {
  border-radius: 15px;
  text-align: center;
  padding: 48px 20px;
}
.empty-state[hidden] {
  display: none;
}
.empty-icon {
  font-size: 38px;
  color: #777;
}
.empty-state h3 {
  margin: 8px 0;
  font-size: 19px;
}
.empty-state p {
  color: #888;
  margin: 0 0 20px;
}
.library-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: #777;
  font-size: 11px;
}
.footnote-mark {
  width: 17px;
  height: 17px;
  border: 1px solid #555;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 11px var(--mono);
  flex-shrink: 0;
}
.about-section {
  max-width: 1160px;
  width: calc(100% - 64px);
  margin: 0 auto 70px;
  border-radius: 18px;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 24px;
}
.about-symbol {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.08em;
  color: #ddd;
  border: 1px solid #444;
  border-radius: 12px;
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
}
.about-symbol span {
  color: #777;
}
.about-section h2 {
  font-size: 24px;
  margin: 8px 0;
}
.about-section p {
  max-width: 690px;
  color: #909090;
  font-size: 12px;
  line-height: 1.9;
  margin: 0;
}
.text-link {
  white-space: nowrap;
  font-size: 12px;
  color: #ddd;
  display: flex;
  gap: 12px;
  align-items: center;
}
.text-link span {
  color: #888;
}
.site-footer {
  max-width: 1160px;
  width: calc(100% - 64px);
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex;
  align-items: center;
  gap: 22px;
  color: #666;
  font-size: 11px;
}
.footer-brand {
  font: 12px var(--mono);
  letter-spacing: .06em;
  color: #bbb;
}
.footer-copy {
  margin-left: auto;
}
.mobile-menu[aria-expanded=true] span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}
.mobile-menu[aria-expanded=true] span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}
@media(max-width:900px) {
  .site-header {
    gap: 12px;
  }
  .brand {
    min-width: auto;
  }
  .brand-copy small {
    display: none;
  }
  .main-nav {
    gap: 0;
  }
  .nav-link {
    padding: 9px 8px;
    font-size: 12px;
  }
  .hero {
    gap: 30px;
    margin-top: 75px;
  }
  .hero-visual {
    min-height: 280px;
  }
  .stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    margin-bottom: 90px;
  }
  .resource-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .about-section {
    grid-template-columns: 55px 1fr;
  }
  .about-section .text-link {
    grid-column: 2;
  }
  .about-section p {
    max-width: none;
  }
}
@media(max-width:640px) {
  .site-header {
    width: calc(100% - 28px);
    top: 8px;
    margin-top: 8px;
    min-height: 65px;
    padding: 0 14px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-copy strong {
    font-size: 14px;
  }
  .mobile-menu {
    display: block;
    z-index: 2;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(17,17,17,.96);
    border: 1px solid var(--border);
    border-radius: 13px;
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open {
    display: flex;
  }
  .nav-link {
    padding: 12px;
  }
  .hero {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 34px;
    margin: 65px auto 38px;
  }
  .hero h1 {
    font-size: clamp(45px,12vw,62px);
    margin-top: 20px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-visual {
    min-height: 250px;
    padding: 15px;
  }
  .topology {
    max-height: 235px;
  }
  .stats-grid,.library-section,.about-section,.site-footer {
    width: calc(100% - 36px);
  }
  .stats-grid {
    gap: 9px;
    margin-bottom: 80px;
  }
  .stat-card {
    padding: 16px;
    min-height: 122px;
  }
  .stat-value {
    font-size: 33px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat-note {
    font-size: 10px;
  }
  .library-section {
    margin-bottom: 75px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 32px;
  }
  .resource-count {
    padding: 0;
  }
  .library-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 12px;
  }
  .sort-control {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 9px 0 0;
    justify-content: space-between;
  }
  .sort-control select {
    max-width: none;
    flex: 1;
  }
  .filter-row {
    gap: 5px;
    margin: 15px 0 18px;
  }
  .filter-chip {
    font-size: 11px;
    padding: 7px 8px;
    gap: 6px;
  }
  .resource-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .resource-card {
    min-height: 205px;
  }
  .about-section {
    padding: 22px;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .about-section .text-link {
    grid-column: auto;
  }
  .about-section h2 {
    font-size: 23px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 8px 15px;
  }
  .footer-copy {
    margin-left: 0;
    width: 100%;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto!important;
    transition: none!important;
    animation: none!important;
  }
}


/* Contact details */
.contact-links {
  display: grid;
  gap: 10px;
  min-width: 265px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  transition: background .2s, border-color .2s, transform .2s;
}

.contact-link:hover {
  background: rgba(255,255,255,.065);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.contact-link-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid #444;
  border-radius: 9px;
  color: #eee;
  font-size: 17px;
}

.linkedin-icon {
  font: 700 15px var(--sans);
}

.contact-link > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-link small {
  color: #858585;
  font: 10px var(--mono);
  letter-spacing: .1em;
}

.contact-link strong {
  color: #e5e5e5;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-link-arrow {
  margin-left: auto;
  color: #888;
  font-size: 14px;
}

@media(max-width:900px) {
  .contact-links {
    grid-column: 2;
    width: 100%;
  }
}

@media(max-width:640px) {
  .contact-links {
    grid-column: auto;
    min-width: 0;
  }
}


/* High-contrast theme: inspired by GitHub's dark interface */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-strong: #21262d;
  --border: #30363d;
  --border-hover: #8b949e;
  --text: #f0f6fc;
  --muted: #c9d1d9;
  --dim: #8b949e;
  --white: #ffffff;
}

body {
  background: var(--bg);
  color: #f0f6fc;
  font-size: 16px;
}

.ambient { display: none; }

.glass {
  background: #161b22;
  border: 1px solid #30363d;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header {
  background: rgba(13,17,23,.97);
  border-color: #30363d;
}

.brand-mark {
  border-color: #484f58;
  background: #21262d;
  color: #f0f6fc;
}

.brand-copy small,
.nav-link,
.eyebrow,
.visual-topline,
.visual-footer,
.stat-label,
.resource-count,
.sort-control span,
.card-date,
.category-label,
.card-meta,
.library-footnote,
.site-footer,
.contact-link small,
.contact-link-arrow {
  color: #b1bac4;
}

.nav-link:hover,
.nav-link.active {
  background: #21262d;
  color: #ffffff;
}

.hero h1 span { color: #79c0ff; }

.hero-description,
.section-subtitle,
.resource-card p,
.about-section p,
.empty-state p {
  color: #c9d1d9;
}

.button-primary {
  background: #238636;
  color: #ffffff;
  border-color: #2ea043;
}

.button-primary:hover {
  background: #2ea043;
  border-color: #3fb950;
}

.button-quiet {
  background: #21262d;
  color: #f0f6fc;
  border-color: #484f58;
}

.hero-visual,
.stat-card,
.library-tools,
.resource-card,
.empty-state,
.about-section {
  background: #161b22;
  border-color: #30363d;
}

.stat-value { color: #ffffff; }
.stat-note { color: #b1bac4; }

.heading-period { color: #79c0ff; }

.search-box svg { stroke: #b1bac4; }
.search-box input { color: #f0f6fc; }
.search-box input::placeholder { color: #8b949e; }

.search-box kbd {
  border-color: #484f58;
  color: #c9d1d9;
  background: #0d1117;
}

.sort-control select {
  background: #0d1117;
  color: #f0f6fc;
  border-color: #484f58;
}

.filter-chip { color: #c9d1d9; }
.filter-chip span {
  color: #c9d1d9;
  background: #21262d;
}
.filter-chip:hover {
  color: #ffffff;
  background: #21262d;
}
.filter-chip.active {
  color: #ffffff;
  background: #1f3b59;
  border-color: #388bfd;
}
.filter-chip.active span { color: #ffffff; }

.resource-card:hover {
  background: #1c2128;
  border-color: #8b949e;
}

.file-type,
.card-link,
.text-link { color: #f0f6fc; }

.file-icon {
  border-color: #484f58;
  color: #f0f6fc;
  background: #21262d;
}

.tag {
  border-color: #484f58;
  color: #c9d1d9;
  background: #0d1117;
}

.card-bottom,
.visual-footer,
.site-footer {
  border-color: #30363d;
}

.card-link span,
.text-link span { color: #79c0ff; }

.loading-card { color: #c9d1d9; }
.empty-icon { color: #79c0ff; }

.about-symbol,
.contact-link-icon {
  color: #f0f6fc;
  border-color: #484f58;
  background: #21262d;
}

.contact-link {
  background: #0d1117;
  border-color: #30363d;
}
.contact-link:hover {
  background: #21262d;
  border-color: #388bfd;
}
.contact-link strong { color: #f0f6fc; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .main-nav {
    background: #161b22;
    border-color: #30363d;
  }
}
