/* NIKS: five colours only. White is reserved for the logo letters. */
:root {
  --orange: #FF4F00; /* logo, buttons, big headings, the word NIKS everywhere */
  --ink: #14110F;    /* text, dark sections */
  --teal: #0E5A73;   /* links, secondary buttons */
  --cream: #FFF4EC;  /* page */
  --sand: #E8DFD5;   /* cards, borders */
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.125rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: 1.75rem; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph { font-family: ui-monospace, monospace; font-size: .85em; background: var(--sand); padding: 0 .3em; }

/* Language switch: both languages are in the HTML, CSS shows one. */
html[data-lang="af"] [lang="en"]:not(html), html[data-lang="en"] [lang="af"]:not(html) { display: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: .5em 1em; z-index: 10; }
.skip:focus { left: 8px; }

.top { position: sticky; top: 0; z-index: 5; background: var(--cream); border-bottom: 2px solid var(--sand); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font: 1.6rem var(--display); }
nav { margin-left: auto; }
nav ul { display: flex; gap: clamp(.75rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; }
.lang { display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button { font: 700 .9rem var(--body); border: 0; background: transparent; color: var(--ink); padding: .35em .75em; cursor: pointer; min-height: 36px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

.btn { display: inline-block; background: var(--orange); color: var(--ink); font: 700 1.1rem var(--body); text-decoration: none;
  border: 3px solid var(--ink); border-radius: 999px; padding: .8em 1.6em; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.hero { padding: clamp(2rem, 6vw, 6rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.hero h1 { color: var(--ink); font-size: clamp(2rem, 4vw, 3.4rem); }
@media (min-width: 900px) { .hero h1 { white-space: nowrap; } }
/* Hero tagline: NIKS/NOTHING shows at once, a 350 ms pause, then the rest types in at 38 ms a character (--b = brand length); the caret blinks out. Replays on language switch. */
.hero h1 .tw { white-space: nowrap; }
.hero h1 { min-height: 1.1em; }
/* Wait for the Anton web font before typing, so the first (Afrikaans) run doesn't start in the fallback font's spacing. */
html:not(.fonts-ready) .hero h1 { visibility: hidden; }
html:not(.fonts-ready) .hero h1 .c, html:not(.fonts-ready) .hero h1 .caret { animation-play-state: paused; }
.hero h1 .c { font-size: 0; animation: type-in 1ms linear both; animation-delay: calc(350ms + (var(--i) - var(--b)) * 38ms); }
.hero h1 .tw.niks .c { animation: none; font-size: 1em; }
@keyframes type-in { to { font-size: 1em; } } /* letters take no space until typed, so the caret follows */
.hero h1 .caret { display: inline-block; width: .08em; height: .85em; margin-left: .06em; vertical-align: -.05em; background: var(--orange);
  animation: caret-blink .5s steps(1) 4 both; animation-delay: calc(350ms + (var(--n) - var(--b)) * 38ms); opacity: 1; }
@keyframes caret-blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .c { animation: none; font-size: 1em; } .hero h1 .caret { display: none; } } /* the logo and button carry the orange in this view */
.lede { font-size: 1.3rem; max-width: 34ch; margin: 0 0 2rem; }
.hero-logo img { width: min(520px, 100%); margin: 0 auto; }

.range { padding: clamp(3rem, 8vw, 7rem) 0; border-top: 2px solid var(--sand); }
.intro { font-size: 1.3rem; margin: 0 0 2.5rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.card { background: var(--sand); border-radius: 16px; padding: 1.25rem; display: flex; flex-direction: column; }
.photo { aspect-ratio: 4 / 3; background: var(--cream); border: 2px dashed var(--ink); border-radius: 10px; display: grid; place-items: center;
  font: .85rem ui-monospace, monospace; margin-bottom: 1rem; text-align: center; padding: .5rem; }
.tag { font-weight: 600; margin: 0 0 1rem; flex: 1; }
.more { font-weight: 700; }

.about { background: var(--ink); color: var(--cream); padding: clamp(3rem, 8vw, 7rem) 0; }
.about h2 { color: var(--orange); }
.about p { font-size: 1.3rem; }
.about .ph { background: transparent; border: 1px solid var(--sand); }
.about :focus-visible { outline-color: var(--orange); }

.contact { padding: clamp(3rem, 8vw, 7rem) 0; }
form { display: grid; gap: .4rem; margin-top: 1.5rem; }
label { font-weight: 700; margin-top: .8rem; }
input, select, textarea { font: inherit; color: var(--ink); background: #FFF4EC; border: 2px solid var(--ink); border-radius: 10px; padding: .7em .8em; width: 100%; }
form .btn { justify-self: start; margin-top: 1.4rem; }
.error { font-weight: 700; border-left: 6px solid var(--orange); padding-left: .6em; margin: .8rem 0 0; }
.small { font-size: .95rem; }

.foot { background: var(--ink); color: var(--cream); padding: 3rem 0; }
.foot-grid { display: grid; gap: .4rem; }
.foot-brand { font: 2.5rem var(--display); color: var(--orange); margin: 0; }
.foot p { margin: 0; }
.foot .ph { background: transparent; border: 1px solid var(--sand); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-logo img { width: min(320px, 80vw); }
  .bar { flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
  nav { order: 3; width: 100%; margin: 0; }
  nav ul { justify-content: space-between; }
  .lang { margin-left: auto; }
}
/* Brand rule: NIKS (and NOTHING in English) is always in the primary colour. Bold in body text so it stays readable on cream. */
.niks { color: var(--orange); }
p .niks, li .niks, label .niks { font-weight: 700; }
