/* ───────────────────────────────────────────────
   Giant Goblin — the goblin den
   A dark cave chronicle, defaced by its goblins.
   ─────────────────────────────────────────────── */

:root {
  --cave: #10150e;
  --moss-panel: #1c2418;
  --moss-border: #3a4a2e;
  --goblin-green: #a8d65c;
  --scrawl: #8fbf4f;
  --scrawl-dim: #6f9c3f;
  --torch: #d9a441;
  --torch-dim: #6b5d3a;
  --glow: #5dcaa5;
  --text: #c9c6b4;
  --text-bright: #e8e6d5;
  --text-muted: #9aa888;
  --text-faint: #5f6e52;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IM Fell English", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(217, 164, 65, 0.07), transparent 55%),
    var(--cave);
}

.scrawl {
  font-family: "Caveat", cursive;
  color: var(--scrawl);
}

/* ── Header ── */

.site-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.site-title {
  font-family: "Grenze Gotisch", serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: var(--goblin-green);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(168, 214, 92, 0.15);
}

.site-graffiti {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-size: 1.25rem;
  color: var(--scrawl-dim);
  transform: rotate(-6deg) translateY(-0.6em);
  margin-left: 0.4rem;
}

.site-tagline {
  margin: 0.2rem 0 1.2rem;
  font-style: italic;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.75rem;
}

.site-nav a {
  font-family: "Grenze Gotisch", serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--torch);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--text-bright);
  border-bottom-color: var(--torch);
}

/* ── The den page ── */

.page {
  max-width: 46rem;
  margin: 0 auto 3rem;
  padding: 2.5rem clamp(1.25rem, 5vw, 3.5rem) 3rem;
  background: var(--moss-panel);
  border: 1px solid var(--moss-border);
  border-radius: 4px;
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.3),
    0 18px 50px rgba(0, 0, 0, 0.6);
}

h1, h2, h3, h4 {
  font-family: "Grenze Gotisch", serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-bright);
}

h1 {
  font-size: 2.2rem;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.6rem;
  color: var(--goblin-green);
  margin-top: 2.25rem;
  border-bottom: 1px solid var(--moss-border);
  padding-bottom: 0.25rem;
}

h3 {
  font-size: 1.25rem;
  color: var(--torch);
}

a {
  color: var(--torch);
  text-decoration-color: var(--torch-dim);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--goblin-green);
}

strong {
  color: var(--text-bright);
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 1.25rem;
  border-left: 3px solid var(--torch);
  font-style: italic;
  color: var(--text-muted);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  background: var(--cave);
  border: 1px solid var(--moss-border);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th, td {
  border: 1px solid var(--moss-border);
  padding: 0.45rem 0.7rem;
  text-align: left;
}

th {
  font-family: "Grenze Gotisch", serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--goblin-green);
  background: var(--cave);
}

/* Cave-wall scratches with glowing mushrooms */
hr.rule,
hr {
  border: none;
  height: 16px;
  margin: 1.5rem 0 2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16'%3E%3Cpath d='M2 9 L40 6 L48 11 L90 5 L98 10 L132 7' stroke='%233a4a2e' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='146' cy='8' r='3.5' fill='%235dcaa5'/%3E%3Ccircle cx='155' cy='10' r='2.2' fill='%235dcaa5'/%3E%3Ccircle cx='162' cy='6' r='1.8' fill='%23d9a441'/%3E%3Cpath d='M172 7 L210 10 L218 5 L262 9 L298 6' stroke='%233a4a2e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center / auto 16px no-repeat;
}

/* ── Goblin marginalia ── */

.goblin-note {
  margin: 2rem 0 0.5rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--scrawl-dim);
  font-family: "Caveat", cursive;
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--scrawl);
  transform: rotate(-1.5deg);
}

/* ── Entry metadata ── */

.entry-meta {
  margin: 0;
  font-style: italic;
  color: var(--text-muted);
}

.entry-meta .entry-summary::before {
  content: " — ";
}

/* ── Section listings ── */

.section-blurb {
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0;
}

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-list li {
  margin: 0 0 1rem;
  padding: 1rem 1.3rem;
  background: var(--cave);
  border: 1px solid var(--moss-border);
  border-radius: 4px;
}

.entry-list a {
  font-family: "Grenze Gotisch", serif;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--goblin-green);
  text-decoration: none;
}

.entry-list a:hover {
  color: var(--text-bright);
}

.entry-list time {
  display: inline-block;
  margin-left: 0.75rem;
  font-style: italic;
  color: var(--text-faint);
  font-size: 0.95rem;
}

.entry-list p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.02rem;
}

.entry-list .empty {
  font-style: italic;
  color: var(--text-muted);
  background: none;
  border: none;
}

/* ── Home page cards ── */

.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.section-cards a {
  display: block;
  height: 100%;
  padding: 1.25rem 1.4rem;
  background: var(--cave);
  border: 1px solid var(--moss-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.section-cards a:hover {
  transform: translateY(-3px);
  border-color: var(--scrawl-dim);
}

.section-cards h2 {
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
  color: var(--goblin-green);
  border: none;
  padding: 0;
}

.section-cards p {
  margin: 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ── Footer ── */

.site-footer {
  text-align: center;
  padding-bottom: 2.5rem;
  color: var(--text-faint);
  font-style: italic;
}

.site-footer .mushrooms {
  display: block;
  width: 140px;
  height: 16px;
  margin: 0 auto 0.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16'%3E%3Cpath d='M20 9 H72 M128 9 H180' stroke='%233a4a2e' stroke-width='1.5'/%3E%3Ccircle cx='88' cy='9' r='3.5' fill='%235dcaa5'/%3E%3Ccircle cx='100' cy='6' r='4.5' fill='%235dcaa5'/%3E%3Ccircle cx='112' cy='10' r='2.8' fill='%23d9a441'/%3E%3C/svg%3E") center / contain no-repeat;
}

.site-footer .scrawl {
  font-size: 1.15rem;
  font-style: normal;
}
