/* Self-hosted (SIL OFL) so the page makes no third-party requests under a strict CSP. */
@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;
  --lilac: #b57edc;
  --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; }
body {
  margin: 0;
  background: 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");
}

#embers {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 2;
  min-height: clamp(600px, 100svh, 1100px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 16px 96px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(255, 106, 26, .16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 35%, rgba(26, 140, 153, .14), transparent 70%);
}
.glow {
  position: absolute;
  top: 50%; left: 50%;
  width: min(70vmin, 620px); aspect-ratio: 1;
  transform: translate(-50%, -62%);
  background: radial-gradient(circle, rgba(224, 169, 46, .28), rgba(255, 106, 26, .08) 45%, transparent 70%);
  filter: blur(20px);
  animation: breathe 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe { 50% { opacity: .55; transform: translate(-50%, -62%) scale(.94); } }

.crest {
  position: relative;
  width: min(46vmin, 300px);
  padding: 0; border: 0; background: none; cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
  animation: rise 1.4s cubic-bezier(.2, .8, .2, 1) both;
  -webkit-tap-highlight-color: transparent;
}
.crest img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .7)) drop-shadow(0 0 28px rgba(224, 169, 46, .25));
}
.crest:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; }

/* Anvil volume, top corner of the hero. */
.sound {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  padding: 4px;
  background: rgba(26, 28, 32, .75);
  border: 1px solid #2f3238;
  animation: fadeUp 1s 1.2s both;
}
.mute {
  display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 0; background: none; color: var(--muted); cursor: pointer;
}
.mute:hover { color: var(--gold); }
.mute:focus-visible, .sound input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mute .x, .mute.muted .waves { display: none; }
.mute.muted .x { display: inline; }
.sound input { width: 96px; margin: 0 8px 0 0; accent-color: var(--gold); cursor: pointer; }
.crest.strike img { animation: strike .35s ease-out; }
@keyframes strike {
  20% { transform: translateY(6px) scale(.97); filter: drop-shadow(0 10px 18px rgba(0,0,0,.7)) drop-shadow(0 0 60px rgba(255,140,40,.8)) brightness(1.25); }
}
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.92); } }

.wordmark {
  margin: 28px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 7.4vw, 5.4rem);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 2px 0 #8d867a, 0 4px 0 #4a463f, 0 10px 24px rgba(0, 0, 0, .8);
  animation: fadeUp 1s .35s both;
}
.rule {
  display: flex; align-items: center; gap: 10px;
  width: min(100%, 560px);
  margin: 18px 0 14px;
  animation: fadeUp 1s .5s both;
}
.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); }
.tagline {
  margin: 0;
  font-family: var(--label);
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.45rem);
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--bone);
  padding-left: .38em; /* balance the trailing letter-spacing */
  animation: fadeUp 1s .65s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

.scroll-cue {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); text-decoration: none;
  font-family: var(--label); font-size: .8rem; letter-spacing: .25em; text-transform: uppercase;
  animation: fadeUp 1s 1.2s both;
}
.scroll-cue svg { animation: bob 2s ease-in-out infinite; }
.scroll-cue:hover { color: var(--gold); }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- Sections ---------- */
main { position: relative; z-index: 2; }
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 16px;
}
.section-title {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 12px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-transform: uppercase;
  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); }
.intro {
  max-width: 640px; margin: 0 auto 40px;
  text-align: center; color: var(--muted);
}

/* ---------- Project cards (riveted plates) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}
.card {
  --accent: var(--teal);
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 24px;
  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(--accent);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
  color: inherit; text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  opacity: 0; transform: translateY(18px);
}
.card.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease, border-color .2s; }
/* Corner rivets. */
.card::before, .card::after {
  content: ""; position: absolute; top: 12px;
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d6d9de, #5b6068 60%, #2a2c30);
}
.card::before { left: 12px; }
.card::after { right: 12px; }
a.card:hover, a.card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 1px var(--accent);
  outline: none;
}
.card[data-status="live"] { --accent: var(--gold); }
.card[data-status="planned"] { --accent: var(--steel); }
.card.lilac { --accent: var(--lilac); }

.card-head { display: flex; align-items: center; gap: 14px; }
.card-head img { width: 54px; height: auto; flex: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.card h3 {
  margin: 0;
  font-family: var(--label); font-weight: 800;
  font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.15;
}
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
/* A photo of finished work on a card. */
.card-photo { margin: 6px 0 0; }
.card-photo img {
  display: block; width: 100%; height: auto;
  border: 1px solid #2f3238; border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}
.card-photo figcaption { margin-top: 8px; color: var(--muted); font-size: .85rem; }
.card-photo figcaption strong { color: var(--bone); font-weight: 600; }

.status {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--label); font-weight: 700;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 8px currentColor;
}
.card[data-status="forging"] .status::before { animation: flicker 1.6s infinite; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .45; } 55% { opacity: .9; } }
.visit {
  margin-top: auto; padding-top: 6px;
  font-family: var(--label); font-weight: 700;
  font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.visit::after { content: " \2192"; display: inline-block; transition: transform .2s; }
a.card:hover .visit::after { transform: translateX(4px); }

/* ---------- Log ---------- */
.log-section { padding-top: 24px; }
.log {
  list-style: none; margin: 24px auto 0; padding: 0 0 0 26px;
  max-width: 640px;
  border-left: 2px solid var(--gunmetal);
}
.log li { position: relative; padding: 0 0 22px; }
.log li::before {
  content: ""; position: absolute; left: -33px; top: 7px;
  width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg);
  box-shadow: 0 0 0 4px var(--coal);
}
.log time {
  display: block;
  font-family: var(--label); font-weight: 700;
  font-size: .8rem; letter-spacing: .18em; color: var(--teal-bright);
}

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 2;
  padding: 40px 16px 48px;
  text-align: center;
  color: var(--muted); font-size: .85rem;
  border-top: 1px solid #1f2125;
}
.footer p { margin: 0; letter-spacing: .08em; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 14px; }
.links:empty { display: none; }
.links a {
  color: var(--bone); text-decoration: none;
  font-family: var(--label); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.links a:hover { color: var(--gold); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--gold); }
.footer-small { margin-top: 10px !important; }

/* ---------- The privacy page (privacy.html): plain reading, roomy lines ---------- */
.policy { max-width: 720px; padding-top: 48px; }
.policy h2 { margin: 40px 0 8px; font-family: var(--label); font-weight: 700; font-size: 1.25rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-bright); }
.policy p, .policy li { font-size: 1.08rem; line-height: 1.75; }
.policy ul { padding-left: 1.3em; }
.policy li { margin-bottom: 8px; }
.policy a { color: var(--gold); }
.policy-lead { font-size: 1.4rem !important; text-align: center; margin: 18px 0 4px; }
.policy-date { text-align: center; color: var(--muted); font-size: .95rem !important; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { opacity: 1; transform: none; }
  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; }
}
