:root {
    --bg: #e5e4df;
    --window: #f4f3ef;
    --bar: #d1cfca;
    --border: #000;
    --shadow: #999;
    --hover: #c4c2bc;
    --accent: #ff6b3d; /* retro orange for buttons */
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    color: #111;
  }
  
  /* Navbar */
  nav {
    background: var(--bar);
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
  }
  
  nav a {
    text-decoration: none;
    color: var(--border);
    margin: 0 10px;
    transition: color 0.2s;
  }
  
  nav a:hover {
    color: #666;
  }
  
  /* Header */
  header {
    border-bottom: 2px solid var(--border);
    background: #f1f0ec;
    padding: 25px 5%;
    text-align: center;
  }
  
  header h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  
  header p {
    max-width: 800px;
    margin: 0 auto;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* Tales Grid */
  .tales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 60px 5%;
  }
  
  /* Tale Card */
  .tale-card {
    background: var(--window);
    border: 3px solid var(--border);
    box-shadow: 6px 6px 0 var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .tale-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 var(--border);
  }
  
  .tale-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: 2px solid var(--border);
    background: #ccc;
    image-rendering: pixelated;
  }
  
  .tale-info {
    margin-top: 15px;
  }
  
  .tale-info h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .author {
    font-size: 10px;
    color: #444;
    margin-bottom: 8px;
  }
  
  .desc {
    font-size: 12px;
    line-height: 1.4;
    color: #222;
    margin-bottom: 14px;
  }
  
  .read-btn {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--border);
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .read-btn:hover {
    background: #ff855d;
    transform: translateY(-2px);
  }
  
  .actions {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    width: 100%;
    font-family: 'Press Start 2P', cursive;
  }
  
  .actions span {
    cursor: pointer;
  }
  
  .actions span:hover {
    text-decoration: underline;
  }
  
  /* Footer */
  footer {
    border-top: 2px solid var(--border);
    text-align: center;
    padding: 40px 0;
    font-size: 12px;
    color: #444;
  }
  
  /* Responsive */
  @media (max-width: 700px) {
    .tale-card {
      align-items: center;
      text-align: center;
    }
  
    .actions {
      flex-direction: column;
      gap: 6px;
      align-items: center;
    }
  }
  