/* "Statement": Helvetica for text, Archivo Black for the name, white page, one bold colour.
   Helvetica is used from the visitor's own device (no download). Devices without it
   show Arial or their own system sans instead. The name alone uses Archivo Black
   (self-hosted, SIL Open Font Licence). */
@font-face {
  font-family: "Archivo Black";
  src: url("fonts/ArchivoBlack-Regular.woff2") format("woff2");
  font-weight: 400 900;   /* only one weight exists: never fake a bolder one */
  font-display: swap;
}
:root {
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --bg: #ffffff;
  --text: #380f08;      /* very dark tomato, on white 16.9:1 */
  --muted: #5e504c;     /* warm grey, on white 7.7:1 */
  --accent: #c8341b;    /* tomato, on white 5.3:1; vs --text 3.2:1, so links read without underlines */
  --hover: #b8860b;     /* gold, on white 3.25:1: only for large or bold text */
  --display: "Archivo Black", var(--font);
  --measure: 36rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { top: 1rem; }

header, main, footer {
  max-width: var(--measure);
  margin: 0 auto;
}

header { padding: 1.5rem 0 0; }

/* Menu: right-aligned, small spaced capitals */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1.5rem;
}
nav a {
  display: inline-block;
  padding: 0.5rem 0;                       /* comfortable tap target */
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
}
nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.45em;
  text-decoration-color: var(--accent);
}

/* Everything else centred */
main, footer { text-align: center; }
main { padding: 2.5rem 0 3rem; }

h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 12.5vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;   /* caps by CSS so screen readers read the name normally */
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin: 1.5rem 0 0;
  color: var(--accent);
}
h2 {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 3.5rem 0 1rem;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.headshot {
  display: block;
  margin: 0 auto;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
}

/* Published work */
.works { list-style: none; margin: 0; padding: 0; }
.works li { margin: 0 0 1.6rem; }
.works .title { font-weight: 700; font-size: 1.2rem; }
.works .meta { display: block; color: var(--muted); font-size: 0.95rem; }
/* Links: tomato, bold and large (so 3:1 contrast applies), no underline at rest.
   On hover or keyboard focus they turn gold AND gain an underline, so the change
   doesn't rely on colour alone. */
.works a, .contact-list a { text-decoration: none; }
.works a:hover, .works a:focus-visible,
.contact-list a:hover, .contact-list a:focus-visible { color: var(--hover); }
.works a:hover .title, .works a:focus-visible .title,
.contact-list a:hover, .contact-list a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
  vertical-align: 0.2em;
  margin-left: 0.3em;
  display: inline-block;   /* a label moves to the next line whole rather than splitting */
}

.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; font-size: 1.1rem; }
.contact-list li { margin: 0 0 0.75rem; }
.contact-list a { font-weight: 700; font-size: 1.2rem; }
.contact-list .email { color: var(--text); font-size: 1.2rem; }

/* Icon links (Instagram): tomato icon, gold on hover or focus.
   Padding gives a 48px tap target around the 32px icon. */
.icon-link {
  display: inline-flex;
  padding: 0.5rem;
  color: var(--accent);         /* icon vs white 5.3:1; gold 3.25:1 (icons need 3:1) */
  border-radius: 0.5rem;
}
.icon-link svg { display: block; }

footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
