/* Shared look for every shanemickley.com page (not the Voicebound app):
   theme colors, fonts, charred-wood background, the logo header and the footer.
   Comes from the logo in assets/logo/: gold and ember letters burned into black planks.
   Pages with their own styles (Awakened Siren) load this file and skip site.css. */
:root {
  color-scheme: dark;
  --black: #0b0807;            /* char */
  --panel: #15100d;
  --panel-2: #1d1612;
  --text: #efe6dc;
  --muted: #b5a698;
  --gold: #f3c26b;             /* letter glow */
  --gold-hi: #ffe4a8;
  --ember: #ff7a1f;            /* cracks in the wood */
  --ember-deep: #d9531a;
  --on-ember: #1a0b03;
  --line: rgba(243, 194, 107, .16);
  --line-hot: rgba(255, 122, 31, .5);
  --display: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --label: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Lora", Georgia, serif;
  /* fine horizontal grain, like the planks in the logo (tiny inline SVG, no download) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .16' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .72  0 0 0 0 .5  1.4 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.07'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font: 18px/1.7 var(--body);
  background: var(--grain), var(--black);
}
::selection { background: rgba(255, 122, 31, .4); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- site header: the logo, burned into a dark plank ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--grain), rgba(9, 6, 5, .93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(255, 122, 31, .55) 20%, rgba(255, 214, 140, .7) 50%, rgba(255, 122, 31, .55) 80%, transparent) 1;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .55), 0 1px 14px rgba(255, 106, 31, .12);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  column-gap: 16px; row-gap: 4px; min-height: 64px; padding-block: 6px;
}
.site-name { display: block; line-height: 0; text-decoration: none; flex: none; }
.site-name img {
  display: block;
  height: 58px; width: auto;
  /* soften the photo's edges so the plank melts into the header */
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, #000 62%, transparent 100%);
  transition: filter .2s ease;
}
.site-name:hover img { filter: brightness(1.15) drop-shadow(0 0 10px rgba(255, 140, 50, .45)); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-nav a {
  font: 600 14px/1 var(--label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color .15s ease, text-shadow .15s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--gold-hi);
  text-shadow: 0 0 12px rgba(255, 140, 50, .7);
}
@media (max-width: 640px) {
  .site-header .wrap { justify-content: center; min-height: 0; }
  .site-name img { height: 40px; }
  .site-nav { justify-content: center; gap: 2px 14px; }
  .site-nav a { font-size: 12px; letter-spacing: .1em; }
}
@media (max-width: 360px) {
  .site-nav { gap: 2px 10px; }
  .site-nav a { font-size: 11px; letter-spacing: .06em; }
}

/* ---------- footer: a charred plank with glowing cracks ---------- */
.site-footer {
  position: relative;
  background: #050403;
  padding: 0 0 34px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--muted);
}
.site-footer::before {
  content: "";
  display: block;
  height: clamp(54px, 8vw, 104px);
  margin-bottom: 26px;
  background: url("logo/plank.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }
