/* Dotney — Pool-Inspired Visual Design Language
   Pure-black canvas, subtle dot matrix grid, monospace typography, restrained elegance */

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

:root {
  --page-black: 0 0% 0%;
  --foreground: 210 20% 95%;
  --muted: 210 10% 60%;
  --border: 210 11% 20%;
  --surface: 210 11% 6%;
  --callout-bg: 210 12% 8%;
  --radius: 6px;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  background-color: hsl(var(--page-black));
  color: hsl(var(--foreground));
  font-family: "Fragment Mono", ui-monospace, SFMono-Regular, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Canvas & Background Grid ---------- */

.dotted-bg {
  position: relative;
  min-height: 100vh;
  background-color: hsl(var(--page-black));
  background-image:
    radial-gradient(circle at center, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .85)),
    radial-gradient(circle, rgba(255, 255, 255, .085) 1px, transparent 1.3px);
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 24px 24px;
}

/* ---------- Page Container ---------- */

.page {
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

/* ---------- Header & Breadcrumb ---------- */

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.crumb {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .18em;
  color: hsl(var(--foreground) / .88);
  text-transform: uppercase;
}

.crumb a {
  color: inherit;
  text-decoration: none;
  opacity: .55;
  transition: opacity .2s ease;
}

.crumb a:hover {
  opacity: 1;
}

.crumb .sep {
  opacity: .35;
  padding: 0 .4em;
}

.lang-switch a {
  font-size: 12px;
  letter-spacing: .08em;
  color: hsl(var(--foreground) / .65);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  transition: all .2s ease;
}

.lang-switch a:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--foreground) / .4);
}

/* ---------- Section Typography ---------- */

.section {
  margin-bottom: 36px;
}

.page-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .06em;
  color: hsl(var(--foreground));
}

.note {
  margin: 0 0 24px;
  font-size: 12.5px;
  color: hsl(var(--muted));
  letter-spacing: .04em;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .05em;
  color: hsl(var(--foreground) / .95);
  text-transform: uppercase;
}

.section h3 {
  margin: 20px 0 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: hsl(var(--foreground) / .9);
}

.section p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: hsl(var(--foreground) / .82);
}

.section p:last-child {
  margin-bottom: 0;
}

.section ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.section li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 20px;
  font-size: 13.5px;
  color: hsl(var(--foreground) / .82);
}

.section li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .68em;
  width: 6px;
  height: 1px;
  background: hsl(var(--foreground) / .45);
}

.section code {
  padding: 1px 5px;
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  color: hsl(var(--foreground) / .95);
  background: hsl(var(--surface));
}

.section a {
  color: hsl(var(--foreground) / .95);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: hsl(var(--foreground) / .35);
  transition: text-decoration-color .2s ease;
}

.section a:hover {
  text-decoration-color: hsl(var(--foreground));
}

.rule {
  height: 1px;
  margin: 36px 0;
  border: 0;
  background: hsl(var(--border) / .75);
}

/* ---------- Callout Box (Pool-Style) ---------- */

.callout-box {
  margin: 20px 0;
  padding: 16px 18px;
  background: hsl(var(--callout-bg));
  border: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--foreground) / .7);
  border-radius: var(--radius);
}

.callout-box h4 {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: hsl(var(--foreground));
}

.callout-box p {
  margin: 0;
  font-size: 13px;
  color: hsl(var(--foreground) / .8);
  line-height: 1.6;
}

/* ---------- Footer Navigation ---------- */

.footer-nav {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid hsl(var(--border) / .6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  color: hsl(var(--muted));
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: .04em;
  color: hsl(var(--foreground) / .6);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: hsl(var(--foreground) / .95);
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .page {
    padding: 40px 20px 80px;
  }
  .header-row {
    margin-bottom: 32px;
  }
  .crumb {
    font-size: 12px;
    letter-spacing: .12em;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
