@font-face {
    font-family: "DejaVuCustom";
    src: url("/fonts/DejaVuSansMono.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: "DejaVuCustom";
    src: url("/fonts/DejaVuSansMono-Oblique.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
  }
  
  @font-face {
    font-family: "DejaVuCustom";
    src: url("/fonts/DejaVuSansMono-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: "DejaVuCustom";
    src: url("/fonts/DejaVuSansMono-BoldOblique.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
  }

body {
    margin: 0;
    background: white;
    color: #333;
    font-family: "DejaVuCustom", monospace;
  
    min-height: 100vh;
  
    display: flex;
    flex-direction: column;
  
    /* padding: 80px 24px 0 24px; header spacing + side padding */
  }

  .content {
    margin-left: 4rem;
    margin-right: 4rem;
    flex: 1;              /* pushes footer down */
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 48px;
    padding-top: 100px;  /* space for fixed header */
  }

  .menu {
    text-align: left;
  }
  
  .right-panel {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 384px;
  }

  .snake-widget {
    width: 384px;
    max-width: 100%;
    background: white;
    padding: 12px;
    box-sizing: border-box;
  }

  .snake-header,
  .snake-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .snake-header {
    margin-bottom: 10px;
  }

  .snake-footer {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #555;
  }

  .snake-title {
    font-size: 1rem;
    letter-spacing: 1px;
  }


  #snake-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 1px solid #b0b0b0;
    background: white;
  }

  .snake-controls {
    display: none;
    margin-top: 10px;
    text-align: center;
  }

  .snake-controls-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
  }

  .snake-control {
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    background: white;
    border: 1px solid #bfbfbf;
    width: 42px;
    height: 42px;
    cursor: pointer;
  }

  h1 {
    font-size: 3.5rem;
    letter-spacing: 8px;
    margin-bottom: 40px;
  }
  
  ul {
    list-style: none;
    padding: 0;
  }
  
  li {
    margin: 15px 0;
  }
  
  a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    transition: color 0.3s ease;
  }
  
  a:hover {
    color: #757575;
  }
  
  a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1.5px;
    background: #757575;
    transition: width 0.35s ease;
  }
  
  a:hover::after {
    width: 100%;
  }

  .page {
  max-width: 760px;
  padding: 120px 24px 40px; /* space for fixed header */
  flex: 1; 
  margin-left: 4rem;
}

.page-title {
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
  }

.page-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  line-height: 1.7;
  font-size: 1rem;
  max-width: 65ch;
  
}

.back {
  margin-top: 32px;
}

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  
    display: flex;
    justify-content: space-between;
    align-items: center;
  
    padding: 20px 40px;
    box-sizing: border-box;
  
    font-size: 1rem;
    color: #333;
  
    background: white;
  }
  
  .header-left {
    opacity: 0.8;
  }
  
  .header-right {
    display: flex;
    gap: 16px;
  }
  
  .lang {
    text-decoration: none;
    color: #757575;
    font-size: 1rem;
    position: relative;
  }
  
  .lang.active {
    color: #333;
    font-weight: 500;
  }

  .site-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #757575;
  }

  @media (max-width: 768px) {
    .site-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      padding: 20px;
    }
  
    .header-right {
      align-self: flex-end;
    }

    .content {
      margin-left: 1.5rem;
      margin-right: 1.5rem;
      padding-top: 120px;
      flex-direction: column;
      gap: 28px;
    }
  
    .page {
      margin-left: 0;
      padding: 120px 24px 40px;
    }
  
    .right-panel {
      width: 100%;
    }
  
    .snake-widget {
      width: 100%;
      max-width: 384px;
    }
  
    .snake-controls {
      display: block;
    }
  }


 