@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

:root {
  --bg: #0f0f12;
  --surface: #161619;
  --text: #d4d2cb;
  --muted: #706e65;
  --dim: #3a3935;
  --accent: #c9a67a;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

/* layout */

.page {
  width: min(720px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 4rem 0 3rem;
}

/* header */

.site-header {
  margin-bottom: 3.5rem;
}

.site-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}

h1 {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

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

.intro {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* divider */

.divider {
  border: none;
  border-top: 1px solid var(--dim);
  margin: 0;
}

/* feature / product section */

.product {
  margin-bottom: 3rem;
}

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

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.product-name {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.product-tagline {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.product-body p {
  max-width: 55ch;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.product-body ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.product-body li {
  position: relative;
  padding-left: 1.2rem;
  margin: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text);
}

.product-body li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-family: var(--mono);
}

/* links row */

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

/* screenshot gallery */

.screenshots {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.screenshot {
  border-radius: 10px;
  border: 1px solid var(--dim);
  overflow: hidden;
  background: var(--surface);
}

.screenshot a {
  display: block;
  cursor: zoom-in;
}

.screenshot img {
  width: 100%;
  display: block;
}

.screenshot-caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.6rem 0.8rem;
  border-top: 1px solid var(--dim);
}

/* screenshot grid for pairs */

.screenshot-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.screenshot-row .screenshot {
  display: flex;
  flex-direction: column;
}

.screenshot-row .screenshot a {
  flex: 1;
  overflow: hidden;
}

.screenshot-row .screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

/* lightbox modal */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--dim);
  white-space: nowrap;
}

/* about page */

.about-section {
  margin-bottom: 3rem;
}

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

.about-photo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--dim);
}

.about-name {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.about-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.about-body p {
  max-width: 55ch;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* footer */

.footer {
  border-top: 1px solid var(--dim);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.footer p {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* responsive */

@media (max-width: 600px) {
  html { font-size: 14px; }
  .page {
    padding: 2.5rem 0;
  }
  .site-header-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .site-header {
    margin-bottom: 2.5rem;
  }
  .screenshot-row {
    grid-template-columns: 1fr;
  }
  .about-header {
    gap: 1rem;
  }
  .about-photo {
    width: 72px;
    height: 72px;
  }
}
