﻿/* Yow Mill theme inspired by the wiki's dark, green palette */
:root {
  --bg: #0b150c;             /* body background */
  --panel: #092d0b;          /* page background */
  --panel-2: #2e4d30;        /* secondary panels */
  --text: #e6e6e6;           /* primary text */
  --muted: #b3b3b3;          /* secondary text */
  --link: #b8b8b8;           /* links */
  --link-hover: #ebebeb;     /* links hover */
  --brand: #588042;          /* header/nav */
  --border: #405b42;         /* borders */
  --max: 960px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1000px 600px at 15% -10%, rgba(88,128,66,.25), transparent 60%),
              radial-gradient(800px 500px at 85% -20%, rgba(64,91,66,.2), transparent 60%),
              var(--bg);
  min-height: 100vh;
}
a { color: var(--link); text-decoration: none; overflow: hidden; }
a:hover { color: var(--link-hover); }

.site-header {
  display: flex; align-items: center; gap: 1rem;
  max-width: var(--max); margin: 0 auto; padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, rgba(88,128,66,.15), transparent);
}
.logo { color: var(--text); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #6da85a);
  color: #fff; font-weight: 800; letter-spacing: .5px;
}
.logo-text { font-family: Rubik, Inter, system-ui, sans-serif; font-weight: 700; }
.nav { display: inline-flex; gap: 1rem; margin-left: auto; }
.nav a { padding: .35rem .6rem; border-radius: 8px; }
.nav a:hover { background: rgba(64,91,66,.35); }

.site-main { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1rem; }
.site-footer { max-width: var(--max); margin: 0 auto; padding: 1.25rem 1rem; border-top: 1px solid var(--border); color: var(--muted); }

.hero {
  display: grid; gap: .75rem; padding: 1.25rem; margin: .5rem 0 1.25rem;
  background: linear-gradient(180deg, rgba(46,77,48,.65), rgba(9,45,11,.8));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero h1 { margin: 0; font-family: Rubik, Inter, system-ui, sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.hero p { margin: 0; color: var(--muted); }

/* Post list */
.post-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.post-card { display: grid; gap: .4rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(9,45,11,.6); transition: transform .15s ease, background .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-2px); background: rgba(46,77,48,.6); border-color: #4b6a4d; }
.post-card h3 { margin: 0; font-family: Rubik, Inter, system-ui, sans-serif; }
.muted { color: var(--muted); font-size: .92rem; }

/* Article */
article { max-width: var(--max); margin: 0 auto; }
article img { max-width: 100%; height: auto; border-radius: 8px; }
pre { overflow: auto; background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: 8px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Game gallery */
.game-gallery { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.game-card { width: 210px; height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: .75rem; padding: 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(9,45,11,.72); box-shadow: var(--shadow); transition: transform .15s ease, background .2s ease, border-color .2s ease; color: var(--text); text-decoration: none; overflow: hidden; }
.game-card:hover { transform: translateY(-2px); background: rgba(46,77,48,.55); border-color: #4b6a4d; }
.game-logo { width: 96px; height: 96px; border-radius: calc(var(--radius) - 2px); padding: 12px; background: rgba(46,77,48,.4); border: 1px solid rgba(230,230,230,.12); box-shadow: inset 0 0 14px rgba(0,0,0,.35); display: grid; place-items: center; }
.game-logo svg { width: 100%; height: 100%; }
.game-card h3 { margin: 0; font-family: Rubik, Inter, system-ui, sans-serif; font-size: 1rem; }
.game-card p { margin: 0; font-size: .9rem; line-height: 1.25; }


.game-card p.muted { font-size: .8rem; line-height: 1.2; }
.discord-widget { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(9,45,11,.7); box-shadow: var(--shadow); display: grid; gap: .75rem; justify-items: start; }
.discord-widget iframe { width: 100%; max-width: 450px; border: none; height: 500px; }
