/* coolhatguystudios.com: the studio's pages. Static, no scripts, no
   third-party requests: the fonts are served from here. */

@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader.ttf") format("truetype");
  font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree.ttf") format("truetype");
  font-weight: 300 900; font-display: swap;
}
@font-face {
  font-family: "Rubik Mono One";
  src: url("fonts/RubikMonoOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --night: #0b1020;
  --brass-hi: #f1cd7d;
  --day-top: #2f74d8;
  --paper: #f4f0e6;
  --ink: #1b1a20;
  --ink-soft: #4a4856;
  --on-night: #e9e4d6;
  --link-day: #1d4fa0;
  --studio: "Cinzel", Georgia, serif;
  --chunky: "Rubik Mono One", "Arial Black", system-ui, sans-serif;
  --band-line: #c9c3dc;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --title: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--night);
  color: var(--on-night);
  font: 17px/1.6 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brass-hi); }
a:hover { color: #fff; }

/* The bands at the top and bottom of every page. */
.band {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 4px),
              linear-gradient(100deg, #3a1d66 0%, #2a1d5c 40%, #16224a 100%);
  box-shadow: inset 0 2px 0 rgba(196, 160, 255, 0.22);
}
header.band { border-bottom: 3px solid var(--ink); box-shadow: inset 0 2px 0 rgba(196, 160, 255, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.35); }
footer.band {
  margin-top: auto; border-top: 3px solid var(--ink);
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 4px),
              linear-gradient(280deg, #3a1d66 0%, #2a1d5c 40%, #16224a 100%);
}
.bar {
  display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center;
  justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 16px;
}
.bar .studio {
  display: block; max-width: 100%;
  font-family: var(--studio); font-size: 24px; line-height: 1.2; letter-spacing: 0.01em;
  color: #e3b85e; text-decoration: none; text-shadow: 0 2px 6px rgba(11, 16, 32, 0.6);
}
.bar .studio img {
  height: 26px; width: auto; max-width: 100%; position: relative;
  filter: drop-shadow(0 2px 3px rgba(11, 16, 32, 0.55));
}
/* Drawn only when the image fails: the name, in Cinzel, on the band's colour. */
.bar .studio img::after {
  content: attr(alt); position: absolute; inset: 0;
  display: flex; align-items: center; white-space: nowrap;
  background: #3a1d66; color: #e3b85e;
  font: 22px/1 var(--studio); letter-spacing: 0.08em; text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(11, 16, 32, 0.6);
}
.bar nav { display: flex; gap: 20px; }
.bar nav a {
  font-family: var(--chunky); font-size: 13px; letter-spacing: 0.04em;
  color: var(--band-line); text-decoration: none;
}
.bar nav a:hover, .bar nav a[aria-current] { color: var(--brass-hi); }

/* The studio's mark on a cloud sky, its pixels kept square however far it is
   scaled. It fills the page down to the footer. */
.studio-hero {
  flex: 1 0 auto;
  background: var(--day-top) url("img/clouds.webp") center / cover;
  image-rendering: pixelated;
  padding: 40px 16px 64px; text-align: center;
}
.studio-hero img {
  width: min(440px, 82vw); margin: 0 auto; image-rendering: auto;
  filter: drop-shadow(0 2px 2px rgba(11, 16, 32, 0.7)) drop-shadow(0 10px 18px rgba(11, 16, 32, 0.45));
}
.studio-hero p {
  display: inline-block; max-width: 560px; margin: 28px auto 0; padding: 10px 16px;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
}

/* Plain pages: support and privacy, ink on paper. */
.page { flex: 1 0 auto; background: var(--paper); color: var(--ink); }
.page a { color: var(--link-day); }
.page a:hover { color: var(--ink); }
.page main { max-width: 720px; margin: 0 auto; padding: 40px 16px 64px; }
h1, h2 { font-weight: normal; line-height: 1.25; }
h1 { font-family: var(--title); font-weight: 500; font-size: 40px; margin: 0 0 16px; }
h2 { font-family: var(--chunky); font-size: 14px; letter-spacing: 0.04em; margin: 36px 0 8px; }
.page .meta { color: var(--ink-soft); font-size: 15px; }

footer .foot {
  max-width: 1080px; margin: 0 auto; padding: 28px 16px;
  color: var(--band-line); font-size: 15px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center;
}
footer a { color: var(--band-line); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
