/*
Theme Name: Vernism Codex Theme
Theme URI: https://example.org/vernism
Author: Nathan Mumm + ChatGPT
Author URI: https://example.org
Description: Steampunk Codex viewer theme for Vernism. Clean white base, brass accents, cog flourishes, and a codex-style chapter grid.
Version: 1.0.0
License: GPLv2 or later
Text Domain: vernism-codex
*/

/* Basic Reset */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  background: #faf9f6;
  color: #2b2b2b;
  line-height: 1.6;
}

/* Steampunk Accents */
:root {
  --brass: #b08d57;
  --darkbrass: #8b6b3e;
  --ink: #1c1a14;
  --paper: #f7f3e9;
  --steel: #6b7280;
  --accent: #704214;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}

.site-header {
  background: linear-gradient(180deg, #fff, #f2eee6);
  border-bottom: 4px double var(--brass);
}
.brand {
  display:flex; align-items:center; gap:16px;
  padding: 18px 0;
}
.brand .logo {
  width:44px; height:44px; border-radius:50%;
  border:2px solid var(--brass);
  background:
    radial-gradient(circle at 50% 50%, var(--brass) 0 12px, transparent 13px),
    conic-gradient(from 0deg, var(--darkbrass), var(--brass));
}
.brand h1 { margin:0; font-size: 26px; letter-spacing: .5px; color: var(--ink); }
.tagline { color:#5b5b5b; font-size:14px; margin-top:-2px; }

.navbar {
  display:flex; flex-wrap:wrap; gap:14px; padding: 8px 0 14px 0; border-top:1px solid #e5dcc8;
}
.navbar a {
  padding: 8px 12px; border:1px solid #e3d7bf; border-radius: 6px;
  background: #fff; color:#3a2f23;
}
.navbar a:hover { background: #f7f0e3; border-color: var(--brass); }

.hero {
  position: relative;
  padding: 36px 28px;
  margin: 22px 0;
  background: var(--paper);
  border: 2px solid var(--brass);
  box-shadow: inset 0 0 0 3px rgba(176,141,87,0.12);
}
.hero h2 { margin-top:0; color: var(--ink); }
.hero p.lead { font-size: 19px; color:#4a3b2f; }

.codex-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.codex-card {
  border:1px solid #e2d9c2; border-radius: 10px; padding:16px; background:#fff;
  transition: transform .1s ease-in-out, box-shadow .1s ease-in-out;
}
.codex-card h3 { margin-top:0; font-size:18px; color:#3a2f23; }
.codex-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.06); }

.footer {
  padding: 28px 0; margin-top: 28px; color:#6b5b49;
  border-top: 4px double var(--brass);
  background: linear-gradient(0deg, #fff, #f2eee6);
  font-size: 14px;
  text-align:center;
}
.button {
  display:inline-block; padding:10px 14px; border:1px solid var(--brass); border-radius: 6px;
  background: #fff; color: #3a2f23;
}
.button.primary { background: var(--brass); color: #fff; border-color: var(--darkbrass); }
.button.primary:hover { filter: brightness(0.95); }
