/* =====================================================
   style.css - shared by every page. Edit here to restyle
   the whole site at once.
   ===================================================== */

/* EDIT: colours. Change a value here and it updates everywhere */
:root {
  --red: #960018;    /* left end of the header gradient */
  --gold: #b8860b;   /* right end of the header gradient */
  --ink: #000;       /* text colour */
  --paper: #fff;     /* page background */
  --muted: #4a4a4a;  /* softer text for descriptions */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.1rem/1.75 Georgia, "Times New Roman", serif; /* EDIT: font */
}

/* Keeps text at a readable width and centred */
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Header: the red-gold gradient band ---- */
.top {
  background: linear-gradient(120deg, var(--red), var(--gold)); /* EDIT: angle/colours */
  color: #fff;
  padding: 4rem 0 3rem;
}
.top h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.top p { margin: 0.8rem 0 0; font-style: italic; font-size: 1.25rem; }

/* ---- Navigation ---- */
nav { border-bottom: 1px solid #ddd; padding: 1rem 0; }
nav a {
  color: var(--ink);
  text-decoration: none;
  margin-right: 1.6rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}
nav a:hover,
nav a[aria-current="page"] { border-bottom-color: var(--gold); } /* marks the current page */

/* ---- Content ---- */
main { padding: 1.5rem 0 3rem; }
h2 { font-weight: 400; font-size: 1.9rem; margin: 2.8rem 0 0.8rem; line-height: 1.2; }
h2::after { /* the little gradient rule under each heading */
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
a { color: var(--red); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* A single project (used on projects.html) */
.project { border-left: 3px solid var(--gold); padding-left: 1.2rem; margin: 1.8rem 0; }
.project h3 { margin: 0; font-weight: 400; font-size: 1.3rem; }
.project p { margin: 0.3rem 0 0; color: var(--muted); }

footer { border-top: 1px solid #ddd; padding: 1.5rem 0; color: var(--muted); font-size: 0.9rem; }
