/* -------------------------------------------------
   style.css - generic layout & component helpers
   -------------------------------------------------

/* ---------- 1. Minimal reset (modern, safe) ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Remove default list styles */
ul,
ol {
	list-style: none;
}

/* Ensure images don't overflow their containers */
img,
picture,
video,
canvas {
	max-width: 100%;
	height: auto;
}

/* ---------- 2. Base page styles ---------- */
html {
	font-size: 100%; /* 16 px = 1rem */
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family);
	font-size: var(--font-base);
	line-height: var(--line-height);
	color: var(--text-primary);
	/* background-color: var(--gray-100); */
	margin: 1rem;
	display: flex;
	justify-content: center;
}

#page-content {
	padding: 1rem;
	background-color: var(--gray-100);
	box-shadow: 0.3rem 0.3rem 5px var(--gray-200);
	width: 100%;
	max-width: 46rem;
	min-height: calc(100vh - 2rem);
	position: relative;
	border-radius: 0.2rem;
	display: flex;
	flex-direction: column;
}

main {
	margin-bottom: 1rem;
}

/* ---------- 3. Header & navigation ---------- */
header {
	/* background-color: var(--brand-primary); */
	/* color: #fff; */
	padding-bottom: clamp(0rem, 6.5vw, 0.5rem);
	margin-bottom: 0.5rem;
	border-bottom-width: 1rem;
	border-bottom-color: var(--brand-ter);
	border-bottom-style: double;
	font-family: "Internal";
}
header h1 {
	max-width: 44rem;
}
header h1 span {
	font-size: clamp(1.2rem, 6.5vw, 3rem);
	/* margin: -1rem 0; */
	line-height: 1.2rem;
	height: fit-content;
}

/* Navigation list - accessible focus style */
nav ul {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding-bottom: 0.5em;
}
nav a {
	color: inherit;
	text-decoration: none;
	padding: var(--space-xxs) 0;
	border-radius: 0.25rem;
}
nav a:hover,
nav a:focus {
	background-color: var(--brand-primary-dark);
}

/* ---------- 4. Grid container (simple Flex fallback) ---------- */
#project-tiles-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	/* padding: 1rem 0 1rem 0; */
	gap: 1rem;
	justify-content: center;
}
.project-tile {
	display: flex;
	flex-direction: column;
	/* background-color: var(--brand-tertiary); */
	text-align: center;
	padding: 0.5rem;
	max-width: 14rem;
	aspect-ratio: 1 / 1;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	/* optional - hint the compositor */
	will-change: transform;
}
.project-tile button:first-of-type {
	margin-top: auto; /* takes up all remaining vertical space */
}
.project-tile

/* ---------- 5. Buttons (primary & secondary) ---------- */
.button {
	display: inline-block;
	font-family: inherit;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	border: none;
	border-radius: 0.375rem;
	padding: var(--space-xs) var(--space-sm);
	transition: background-color 0.15s ease-in-out, opacity 0.15s ease-in-out;
}
.button-primary {
	background-color: var(--brand-primary);
	color: #fff;
}
.button-primary:hover,
.button-primary:focus {
	background-color: var(--brand-primary-dark);
}
.button-secondary {
	background-color: var(--gray-300);
	color: var(--gray-800);
}
.button-secondary:hover,
.button-secondary:focus {
	background-color: var(--gray-400);
}

/* ---------- 6. Form elements (basic, accessible) ---------- */
input,
textarea,
select,
button {
	font: inherit;
	line-height: inherit;
}
input,
textarea,
select {
	width: 100%;
	padding: var(--space-xs);
	border: 1px solid var(--gray-400);
	border-radius: 0.25rem;
	background-color: #fff;
}
input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--brand-primary);
	outline-offset: 2px;
}

/* ---------- 7. Alerts / messages ---------- */
.alert {
	padding: var(--space-sm);
	border-radius: 0.25rem;
	margin-block: var(--space-sm);
}
.alert-success {
	background-color: var(--brand-success);
	color: #fff;
}
.alert-warning {
	background-color: var(--brand-warning);
	color: #212529;
}
.alert-danger {
	background-color: var(--brand-danger);
	color: #fff;
}

/* ---------- 8. Footer ---------- */
footer {
	/* background-color: var(--gray-800); */
	/* color: var(--gray-200); */
	text-align: center;
	padding: var(--space-md) var(--space-sm);
	font-size: 0.875rem;
	margin-top: auto; /* takes up all remaining vertical space */
}

/* Utils */
/* -------------------------------------------------
   Flex‑letter heading - each character gets its own flex item
   ------------------------------------------------- */
.flex-letters {
	/* 1️⃣ Break out of the header's horizontal padding (same trick you already use) */
	/* margin-left: -1rem; */
	/* margin-right: -1rem; */
	/* padding-left: 1.1rem; */
	/* padding-right: 0.9rem; */

	/* 2️⃣ Turn the heading itself into a flex container */
	display: flex;
	justify-content: space-evenly; /* spread items across the whole line */
	align-items: center; /* vertical centering */
	text-align: left; /* not really needed, but keeps fallback tidy */
	white-space: nowrap; /* keep everything on one line */
	min-height: 1.2rem;
}

/* 3️⃣ Every character lives in a span - make them flex items */
.flex-letters span {
	flex: 1 1 0; /* each span gets an equal share of the line */
	text-align: center; /* centre the character inside its slot */
	font-family: "Roboto Mono", "Courier New", monospace; /* optional - monospaced looks cleaner */

	/* ---- animation helpers ---- */
	transition: flex-basis 0.25s ease, flex-grow 0.25s ease, margin 0.25s ease,
		transform 0.25s ease, letter-spacing 0.25s ease;
	will-change: transform; /* hint for GPU compositing */

	transform: translateZ(0);
}

/* -------------------------------------------------
   Optional - a tiny visual tweak so the letters don't look too cramped
   ------------------------------------------------- */
/* First letter - stick to the left edge */
.flex-letters span:first-child {
	flex: 0 0 auto; /* don't grow, don't shrink - keep its natural width */
	text-align: left; /* align the glyph to the left side of its own box */
}

/* Last letter - stick to the right edge */
.flex-letters span:last-child {
	flex: 0 0 auto; /* same as above */
	text-align: right; /* align the glyph to the right side of its own box */
}

/* -------------------------------------------------
   End of style.css
   ------------------------------------------------- */




   /* -------------------------------------------------
   2️⃣ Work‑in‑Progress overlay styles
   ------------------------------------------------- */

/* Backdrop – covers the whole viewport */
.wip-backdrop {
  position: fixed;
  inset: 0;                     /* shorthand for top/right/bottom/left:0 */
  background: rgba(0, 0, 0, 0.55);   /* dimmed background */
  display: flex;               /* flex makes centering trivial */
  align-items: center;         /* vertical centering */
  justify-content: center;     /* horizontal centering */
  z-index: 9999;               /* on top of everything else */
}

/* Modal card */
.wip-modal {
  background: #fff;            /* white card */
  color: #222;                 /* dark text */
  max-width: 28rem;            /* limit width on large screens */
  width: 90%;                  /* shrink on tiny screens */
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(0,0,0,.2);
  text-align: center;
  font-family: system-ui, sans-serif;
}

/* Icon – big and spaced */
.wip-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

/* Headline */
.wip-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Message paragraph */
.wip-message {
  margin: 0 0 1.5rem;
  line-height: 1.45;
}

/* Close button */
.wip-close {
  cursor: pointer;
  background: #0066cc;               /* brand‑blue – change to your colour */
  color: #fff;
  border: none;
  border-radius: 0.4rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease;
}
.wip-close:hover,
.wip-close:focus {
  background: #004fa1;
}

/* Optional – hide the overlay when you add the .hidden class */
.wip-backdrop.hidden {
  display: none;
}