:root {
  --bg: #fff;
  --fg: #000;
  --muted: #666;
  --accent: #111;
  --border: #e6e6e6;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --max: 1080px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

.center {
  text-align: center;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 40;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 48px;
  height: 48px;
  display: inline-block;
}

.wordmark {
  font-family: "VT323", monospace;
  font-size: 34px;
  letter-spacing: 1px;
}

.nav a.btn {
  margin-left: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.15s transform ease, 0.15s background ease, 0.15s color ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
}

.btn.ghost:hover {
  background: #000;
  color: #fff;
}

.btn.solid {
  background: #000;
  color: #fff;
}

.btn.solid:hover {
  background: #333;
}

/* Hero */
.hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}

.hero .kicker {
  font-size: 22px;
  color: var(--muted);
}

.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  margin: 10px 0;
}

.hero p {
  max-width: 740px;
  margin: 14px 0 26px;
  color: var(--accent);
}

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

/* Sections */
.band {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 960px) {
  .list {
    grid-template-columns: 1fr;
  }
}

/* Cards & Items */
.card {
  background: #fff;
  border: 1px solid var(--fg);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 28px;
  margin: 4px 0 10px;
}

.card p {
  margin: 0;
  color: var(--accent);
}

.item {
  position: relative;
  padding: 16px;
  border: 1px dashed var(--fg);
  border-radius: var(--radius);
}

.item h4 {
  font-size: 24px;
  margin: 0 0 6px;
}

.item.soon {
  border: 1px dashed #ccc; /* For "Coming soon" repos */
  padding-top: 32px; /* Space for tag */
}

.item .tag {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 2px 6px;
  font-size: 0.65em;
  font-weight: 600;
  color: #555;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  line-height: 1;
}

/* Details */
details {
  border: 1px solid var(--fg);
  border-radius: 12px;
  padding: 14px 16px;
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

/* Footer */
footer {
  padding: 40px 0;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* Utility */
.mono {
  font-family: monospace;
}

.muted {
  color: var(--muted);
}

.divider {
  height: 1px;
  margin: 36px 0;
  background: var(--fg);
  opacity: 0.1;
}

/* Open Source repo links: make the repo name feel clickable */
#open-source .item h4 a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;

  padding: 2px 6px;
  border-radius: 6px;
  background: #fafafa;
  border: 1px solid #ddd;

  text-decoration: none;
  text-underline-offset: 3px;

  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#open-source .item h4 a:hover,
#open-source .item h4 a:focus-visible {
  background: #000;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  outline: none; /* we'll use the background instead of the default outline */
}

/* Optional: a lighter style that just fades in an underline */
#open-source .item h4 a.alt {
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
}
#open-source .item h4 a.alt:hover,
#open-source .item h4 a.alt:focus-visible {
  text-decoration-color: currentColor;
}

/* Tiny monochrome GitHub icon that inherits the text color */
#open-source .item h4 a::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  /* mask the SVG so it stays 1-color and crisp */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52 0-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38C13.71 14.53 16 11.54 16 8 16 3.58 12.42 0 8 0z"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52 0-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38C13.71 14.53 16 11.54 16 8 16 3.58 12.42 0 8 0z"/></svg>') center / contain no-repeat;
  opacity: 0.85;
}
