 :root {
      --bg: #0b0d0c;
      --surface: #111513;
      --text: #d6e2dc;
      --muted: #8fa39a;
      --accent: #00c896;
      --divider: #1d2723;
      --content-max: 1100px;
      --border: 1px solid var(--divider);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: "Source Sans 3", "Segoe UI", sans-serif;
      line-height: 1.6;
      letter-spacing: 0.01em;
      padding: 1.5rem 0 2rem;
    }

    a {
      color: var(--accent);
      text-decoration: none;
      border-bottom: 1px solid transparent;
    }

    a:hover,
    a:focus-visible {
      border-bottom-color: var(--accent);
      outline: none;
    }

    .container {
      width: min(100% - 2rem, var(--content-max));
      margin: 0 auto;
    }

    .site-header {
      border-bottom: var(--border);
      margin-bottom: 2rem;
      padding-bottom: 1.25rem;
    }

    .site-header .container {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 1rem;
      align-items: center;
    }

    .brand {
      font-family: "Fira Code", monospace;
      color: var(--accent);
      font-size: 0.95rem;
      white-space: nowrap;
    }

    .header-copy h1 {
      font-family: "Fira Code", monospace;
      font-size: clamp(1.5rem, 4.5vw, 2.1rem);
      line-height: 1.1;
      margin-bottom: 0.35rem;
    }

    .header-copy p {
      color: var(--muted);
      font-size: 0.95rem;
    }

    .nav-back {
      display: inline-block;
      font-family: "Fira Code", monospace;
      font-size: 0.9rem;
      color: var(--accent);
      justify-self: end;
    }

    main {
      display: grid;
      gap: 1.5rem;
    }

    .flow {
      border-top: var(--border);
      padding-top: 1.5rem;
      margin-bottom: 0.5rem;
    }

    h2 {
      font-family: "Fira Code", monospace;
      color: var(--accent);
      font-size: clamp(1.15rem, 2.2vw, 1.35rem);
      margin: 2rem 0 1rem;
    }

    .hint {
      color: #9a9a9a;
      font-size: 0.92rem;
      margin-bottom: 1rem;
    }

    table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 8px 8px;
    }

    th {
      text-align: left;
      color: var(--accent);
      font-size: 0.95rem;
      padding: 0.5rem 0.75rem 0.8rem;
      font-weight: 700;
      font-family: "Fira Code", monospace;
      border-bottom: var(--border);
    }

    .crud {
      width: 40px;
      text-align: center;
      color: var(--accent);
      font-size: 1.2rem;
      font-weight: 700;
      font-family: "Fira Code", monospace;
    }

    .box {
      border: var(--border);
      background: var(--surface);
      color: var(--text);
      padding: 0.8rem;
      font-size: 0.9rem;
      font-family: "Fira Code", monospace;
      line-height: 1.4;
      min-height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .arrow {
      width: 40px;
      text-align: center;
      color: var(--accent);
      font-size: 1rem;
      font-weight: 700;
    }

    .notes {
      margin-top: 1.5rem;
      color: #c0c0c0;
      font-size: 0.9rem;
      line-height: 1.6;
      padding: 1.25rem;
      background: var(--surface);
      border: var(--border);
    }

    .notes strong {
      color: var(--accent);
      font-weight: 700;
    }

    footer {
      border-top: var(--border);
      padding-top: 1.5rem;
      margin-top: 2rem;
      color: var(--muted);
      font-size: 0.9rem;
    }

    @media (max-width: 760px) {
      body {
        padding: 1rem 0 1.5rem;
      }

      .site-header {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
      }

      .site-header .container {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 0.35rem;
      }

      .nav-back {
        justify-self: start;
      }

      table,
      thead,
      tbody,
      tr,
      td,
      th {
        display: block;
        width: 100%;
      }

      thead {
        display: none;
      }

      table {
        border-spacing: 0;
      }

      tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
        margin-bottom: 1rem;
        padding: 0.85rem;
        border: var(--border);
        background: var(--surface);
      }

      td {
        border: 0;
        padding: 0;
        min-width: 0;
      }

      .crud,
      .box,
      .arrow {
        width: 100%;
        text-align: left;
      }

      .crud {
        font-size: 1rem;
      }

      .crud::before,
      .flow td:nth-child(2)::before,
      .flow td:nth-child(4)::before,
      .flow td:nth-child(6)::before,
      .flow td:nth-child(8)::before {
        display: block;
        font-size: 0.72rem;
        color: var(--muted);
        font-family: "Fira Code", monospace;
        margin-bottom: 0.25rem;
      }

      .crud::before {
        content: "Step";
      }

      .flow td:nth-child(2)::before {
        content: "Route";
      }

      .flow td:nth-child(4)::before {
        content: "Controller";
      }

      .flow td:nth-child(6)::before {
        content: "View (EJS)";
      }

      .flow td:nth-child(8)::before {
        content: "Model & Queries";
      }

      .box {
        min-height: auto;
        justify-content: flex-start;
        text-align: left;
        padding: 0.65rem 0.7rem;
      }

      .flow td:nth-child(3),
      .flow td:nth-child(5),
      .flow td:nth-child(7) {
        display: none;
      }

      .arrow {
        display: none;
      }

      .notes {
        padding: 1rem;
      }
    }

    @media (max-width: 420px) {
      .container {
        width: min(100% - 1rem, var(--content-max));
      }

      .header-copy h1 {
        font-size: 1.35rem;
      }

      .header-copy p,
      .hint,
      footer,
      .notes,
      .box {
        font-size: 0.82rem;
      }

      .notes {
        padding: 0.9rem;
      }
    }