/* Gold Oak Forge 3D. Same metal as goldoakforge.com. Self-hosted fonts (SIL OFL): no third-party requests. */
@font-face { font-family: "Graduate"; font-weight: 400; font-display: swap; src: url("assets/fonts/Graduate-400.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-weight: 400 500; font-display: swap; src: url("assets/fonts/Saira.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 500; font-display: swap; src: url("assets/fonts/SairaCondensed-500.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 700; font-display: swap; src: url("assets/fonts/SairaCondensed-700.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 800; font-display: swap; src: url("assets/fonts/SairaCondensed-800.woff2") format("woff2"); }

:root {
  --coal: #0d0e10;
  --iron: #1a1c20;
  --gunmetal: #2b2e33;
  --steel: #8a8f98;
  --teal: #1a8c99;
  --teal-bright: #3fc4d1;
  --gold: #e0a92e;
  --gold-deep: #b9811a;
  --ember: #ff6a1a;
  --bone: #ece5d6;
  --muted: #a7a196;
  --display: "Graduate", "Saira Condensed", Impact, sans-serif;
  --label: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Saira", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 420px at 50% 0, rgba(26, 140, 153, .13), transparent 70%),
    var(--coal);
  color: var(--bone);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}
/* Faint hammered-metal grain over everything. */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .06;
  background-image: url("assets/noise.svg");
}
a { color: var(--teal-bright); }
a:hover { color: var(--gold); }


/* ---------- Top bar: the shared forge bar, then this site's sections ---------- */
.top { position: sticky; top: 0; z-index: 6; background: var(--coal); }
.top .forgebar { position: static; }
.shelves {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px;
  padding: 7px 16px;
  background: var(--iron);
  border-bottom: 1px solid #24262b;
}
.shelves a {
  color: var(--bone); text-decoration: none;
  font-family: var(--label); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
}
.shelves a:hover, .shelves a:focus-visible { color: var(--gold); outline: none; }

/* ---------- Masthead ---------- */
main { position: relative; z-index: 2; }
.masthead { max-width: 1100px; margin: 0 auto; padding: 64px 16px 8px; text-align: center; }
.masthead h1 {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.8rem, 6.4vw, 3.8rem); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase;
  text-shadow: 0 2px 0 #8d867a, 0 4px 0 #4a463f, 0 10px 24px rgba(0, 0, 0, .8);
}
.rule { display: flex; align-items: center; gap: 10px; width: min(100%, 480px); margin: 18px auto 16px; }
.rule span { flex: 1; height: 4px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-deep)); }
.rule span:last-child { transform: scaleX(-1); }
.rule i { width: 14px; height: 14px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 12px rgba(224, 169, 46, .6); }
.intro { max-width: 640px; margin: 0 auto; color: var(--muted); }

/* ---------- Sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 56px 16px 8px; }
.section-title {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 10px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  text-transform: uppercase; text-align: center;
  color: var(--gold);
}
.section-title::before, .section-title::after {
  content: ""; flex: 1; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gunmetal));
}
.section-title::after { transform: scaleX(-1); }
.blurb { max-width: 640px; margin: 0 auto 28px; text-align: center; color: var(--muted); }
.empty {
  margin: 0 auto; padding: 22px 16px; max-width: 640px; text-align: center;
  color: var(--steel);
  font-family: var(--label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .85rem;
  border: 1px dashed var(--gunmetal);
}

/* ---------- Pieces ---------- */
.gallery { display: grid; gap: 24px; }
.piece {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: center;
  padding: 20px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .045), transparent 40%),
    linear-gradient(180deg, var(--iron), #141519);
  border: 1px solid #2f3238; border-top: 3px solid var(--teal);
}
.piece-photo img {
  display: block; width: 100%; height: auto;
  border: 1px solid #2f3238; border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
}
.piece-photo:hover img, .piece-photo:focus-visible img { border-color: var(--gold); }
.piece h3 {
  margin: 0 0 8px;
  font-family: var(--label); font-weight: 800;
  font-size: 1.6rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15;
}
.piece p { margin: 0 0 10px; color: var(--muted); }
.piece .credit { font-size: .9rem; }
@media (max-width: 720px) {
  .piece { grid-template-columns: 1fr; }
  html { scroll-padding-top: 150px; }
}

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 2;
  margin-top: 72px; padding: 36px 16px 44px;
  text-align: center;
  color: var(--muted); font-size: .85rem;
  border-top: 1px solid #1f2125;
}
.footer p { margin: 0 0 6px; letter-spacing: .08em; }
.footer a {
  color: var(--bone); text-decoration: none;
  font-family: var(--label); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.footer a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Forge bar: the same header on every Gold Oak Forge site ----------
   Keep this block the same on goldoakforge.com, the Tome, The Way and the 3D site
   (only the two fonts on the first line differ). Its colours are fixed, not the site's. */
.forgebar {
  --fb-brand: var(--display); --fb-link: var(--label);
  position: sticky; top: 0; z-index: 6;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
  padding: 8px max(16px, calc((100% - 1100px) / 2));
  background: #0d0e10;
  border-bottom: 1px solid #24262b;
}
.forgebar-home {
  display: inline-flex; align-items: center; gap: 12px;
  color: #ece5d6; text-decoration: none;
  font-family: var(--fb-brand); font-weight: 400; font-size: 1.05rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .04em;
}
.forgebar-home img { display: block; width: 30px; height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.forgebar-links { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.forgebar-links a {
  color: #a7a196; text-decoration: none;
  font-family: var(--fb-link); font-weight: 700; font-size: .85rem; line-height: 1.6;
  letter-spacing: .14em; text-transform: uppercase;
}
.forgebar a:hover, .forgebar a:focus-visible { color: #e0a92e; outline: none; }
.forgebar-links a[aria-current] { color: #e0a92e; }
/* Reading pages keep their own bar at the top while you scroll; this one scrolls away. */
.reader .forgebar, .story .forgebar { position: static; }
@media (max-width: 600px) {
  .forgebar { justify-content: center; }
  .forgebar-links { justify-content: center; gap: 2px 14px; }
  .forgebar-links a { font-size: .76rem; }
}
