@import url("https://fonts.googleapis.com/css2?family=Bangers&family=Nunito:wght@400;600;700;800&display=swap");

/* ============================================================
   BASE LAYOUT: shared by every theme.
   Each theme sets the colours/fonts (the --variables) and adds its own flair.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight, 800);
  line-height: 1.1;
  letter-spacing: var(--head-tracking, -0.02em);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(3rem, 9vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Every section centres its content in a column of --max width */
section, .site-header, .site-footer {
  padding-inline: max(1.25rem, calc((100% - var(--max, 1120px)) / 2));
}
section { padding-block: clamp(4rem, 10vw, 7rem); }

/* ---------- Menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.9rem;
  background: var(--header-bg, var(--bg));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { font-family: var(--font-head); font-weight: var(--head-weight, 800); font-size: 1.2rem; text-decoration: none; }
.site-nav { display: flex; gap: 0.25rem; }
.site-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.45rem 0.8rem; border-radius: var(--radius-pill, 999px);
  color: var(--muted);
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--text); background: var(--hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-pill, 999px);
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { border-color: var(--border-strong, var(--text)); color: var(--text); }
.btn-big { font-size: clamp(1.1rem, 3vw, 1.5rem); padding: 1rem 2rem; }

.section-label {
  font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--label, var(--accent)); margin-bottom: 0.6rem;
}
.section-head { margin-bottom: 2.5rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: center; gap: 2rem;
  min-height: min(88vh, 760px);
  padding-block: 3rem;
}
.eyebrow { font-weight: 700; color: var(--muted); margin-bottom: 0.25rem; font-size: 1.15rem; }
.hero h1 { margin-bottom: 0.15em; }
.tagline { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; color: var(--tagline, var(--text)); margin-bottom: 1rem; }
.hero-intro { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { position: relative; width: min(100%, 340px); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--photo-radius, 50%); }
.lead { font-size: 1.3rem; font-weight: 600; }
.roles { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.roles li { padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 16px); }
.roles strong { display: block; color: var(--label, var(--accent)); font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 0.15rem; }
.fun { color: var(--muted); font-style: italic; }

/* ---------- What I do ---------- */
.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.mission {
  display: block; text-decoration: none;
  padding: 1.75rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius, 16px);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.mission:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.mission p { color: var(--muted); margin: 0; }
.icon {
  width: 2.75rem; height: 2.75rem; padding: 0.6rem; margin-bottom: 1rem;
  fill: none; stroke: var(--icon-ink, var(--accent-ink)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  background: var(--icon-bg, var(--accent)); border-radius: var(--radius-icon, 12px);
}

/* ---------- Latest work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.work-card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 16px);
  transition: transform .2s, box-shadow .2s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.work-card img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.work-body { padding: 1.25rem 1.5rem 1.5rem; }
.work-body h3 { margin-bottom: 0.3rem; }
.work-body p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.work-type {
  display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--label, var(--accent)); margin-bottom: 0.5rem;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact > p:not(.section-label) { color: var(--muted); max-width: 32rem; margin-inline: auto; margin-bottom: 2rem; }
.contact .email { display: inline-block; text-decoration: none; max-width: none; color: var(--text); font-family: var(--font-head); font-weight: var(--head-weight, 800); font-size: clamp(1.4rem, 5vw, 2.25rem); letter-spacing: 0.02em; overflow-wrap: anywhere; margin: 0; }
.contact canvas.email { padding: 0; max-width: 100%; height: auto; vertical-align: middle; user-select: none; }
.socials { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.socials a {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-pill, 999px);
  background: var(--surface); transition: border-color .2s, transform .15s;
}
.socials a:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2rem; text-align: center; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); }
.site-footer p { margin: 0; }

/* ---------- Phones & small tablets ---------- */
@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding-block: 0.7rem; }
  .site-nav { width: 100%; overflow-x: auto; margin-left: -0.8rem; }
  .site-nav a { white-space: nowrap; }
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .hero-art { order: -1; }
  .hero-art img { width: 180px; }
  .about { grid-template-columns: 1fr; }
  .about-photo img { width: 160px; }
  .roles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   THEME: COMIC. Leans all the way into the superhero idea.
   Comic-book lettering, bold outlines, halftone dots, punchy colours.
   ============================================================ */
:root {
  --font-body: "Nunito", system-ui, sans-serif;
  --font-head: "Bangers", "Impact", sans-serif;
  --head-weight: 400;
  --head-tracking: 0.03em;
  --ink: #141414;
  --red: #e63946;
  --blue: #1d8fe1;
  --yellow: #ffd23f;
  --bg: #fffdf5;
  --header-bg: var(--yellow);
  --surface: #ffffff;
  --text: var(--ink);
  --muted: #444;
  --accent: var(--red);
  --accent-ink: #fff;
  --label: var(--red);
  --border: var(--ink);
  --hover: rgba(0, 0, 0, 0.08);
  --radius: 6px;
  --radius-pill: 6px;
  --radius-icon: 50%;
  --shadow-hover: 8px 8px 0 var(--ink);
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(20, 20, 20, 0.07) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
}
.site-header { border-bottom: 3px solid var(--ink); }
.brand { font-size: 1.6rem; letter-spacing: 0.04em; }
.site-nav a { color: var(--ink); font-weight: 800; }

h2 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
h3 { font-size: 1.6rem; }
.section-label {
  display: inline-block; color: var(--ink); background: #fff;
  border: 3px solid var(--ink); border-radius: 18px; padding: 0.3rem 0.9rem;
  box-shadow: 3px 3px 0 var(--ink); position: relative;
}

/* Hero: blue sky with halftone dots and a yellow title */
.hero {
  background-color: var(--blue);
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 2px, transparent 2.5px);
  background-size: 18px 18px;
  border-bottom: 4px solid var(--ink);
  color: #fff;
}
.hero h1 {
  color: var(--yellow); font-size: clamp(4rem, 13vw, 8.5rem);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-2deg); transform-origin: left;
}
.eyebrow, .hero-intro { color: #eaf5ff; }
.tagline {
  display: inline-block; background: #fff; color: var(--ink);
  padding: 0.4rem 1rem; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
}
.hero-art::before {
  content: ""; position: absolute; width: min(115%, 430px); aspect-ratio: 1;
  background: var(--yellow); border: 4px solid var(--ink);
  clip-path: polygon(50% 0%, 61% 18%, 82% 7%, 80% 30%, 100% 35%, 85% 52%, 100% 70%, 78% 72%, 82% 95%, 61% 82%, 50% 100%, 39% 82%, 18% 95%, 22% 72%, 0% 70%, 15% 52%, 0% 35%, 20% 30%, 18% 7%, 39% 18%);
}
.hero-art img { filter: drop-shadow(6px 6px 0 var(--ink)); }

.btn { border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-family: var(--font-head); font-size: 1.35rem; letter-spacing: 0.05em; font-weight: 400; padding: 0.6rem 1.4rem; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-secondary { background: var(--yellow); color: var(--ink); }
.btn-big { font-size: clamp(1.4rem, 4vw, 2rem); }

.roles li, .mission, .work-card, .socials a { border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.roles strong { font-size: 1.45rem; font-weight: 400; color: var(--blue); }
.about-photo img { border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--red); }
.lead { font-size: 1.4rem; }

.missions { background: var(--yellow); border-block: 4px solid var(--ink); }
.mission:nth-child(4n+1) { --icon-bg: var(--red); }
.mission:nth-child(4n+2) { --icon-bg: var(--blue); }
.mission:nth-child(4n+3) { --icon-bg: var(--ink); --icon-ink: var(--yellow); }
.mission:nth-child(4n+4) { --icon-bg: var(--red); }
.icon { border: 3px solid var(--ink); }
.mission:hover, .work-card:hover { transform: translate(-3px, -3px) rotate(-0.6deg); }
.work-card img { border-bottom: 3px solid var(--ink); }
.work-type { background: var(--yellow); color: var(--ink); padding: 0.1rem 0.5rem; border: 2px solid var(--ink); }

.contact { background: var(--red); color: #fff; border-top: 4px solid var(--ink); }
.contact h2 { -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.contact > p:not(.section-label) { color: #ffe9eb; }
.contact .btn-primary { background: var(--yellow); color: var(--ink); }
/* Body font here: Bangers is capitals-only, which would turn the address into MEATDAVIDWOON... */
.contact .email { display: inline-block; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; background: var(--yellow); color: var(--ink); padding: 0.4rem 1.2rem; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); font-size: clamp(1.6rem, 5vw, 2.5rem); }
.socials a { color: var(--ink); }
.site-footer { background: var(--ink); color: #ddd; border: 0; }
