/* =========================================================
   RUSTHELL — Abruzzo street food, London
   Design tokens + shared components
   ========================================================= */

/* Self-hosted fonts (SIL Open Font License) — the site works offline */
@font-face { font-family: "Big Shoulders Display"; font-weight: 600; font-display: swap; src: url(../fonts/big-shoulders-display-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url(../fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url(../fonts/big-shoulders-display-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo-latin-wdth-italic.woff2) format("woff2"); }

:root {
  /* Palette — built from the logo red and burgundy, then steel, soot and bone */
  --pitch: #000000;      /* hero / fire sections */
  --soot: #1C1817;       /* base background */
  --char: #2A2422;       /* raised surfaces */
  --ash: #4A4240;        /* lines on dark */
  --steel: #8E9396;      /* secondary text, metal */
  --concrete: #BDB6AB;   /* muted text on dark */
  --bone: #EDE6D8;       /* primary text, paper */
  --red: #C41E2A;        /* logo red — the brand */
  --offal: #5E0D1B;      /* logo burgundy */
  --rust: #9A3B1B;       /* oxidised accents */
  --ember: #FF7A1F;      /* glow only, never text on light */

  --f-display: "Big Shoulders Display", "Impact", "Arial Narrow", sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --measure: 62ch;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem);
  --step-3: clamp(2.6rem, 1.8rem + 3.4vw, 5rem);
  --step-4: clamp(3.6rem, 2rem + 7vw, 9rem);
  --step-5: clamp(4.6rem, 1rem + 15vw, 19rem);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--soot);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* global film grain — the soot on everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.07;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: overlay;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: var(--measure); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--bone); color: var(--pitch); padding: 10px 16px; z-index: 200;
}
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */

.display {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.01em;
}
.h-xl { font-family: var(--f-display); font-weight: 900; font-size: var(--step-4); line-height: 0.86; text-transform: uppercase; }
.h-l  { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); line-height: 0.9; text-transform: uppercase; }
.h-m  { font-family: var(--f-display); font-weight: 800; font-size: var(--step-2); line-height: 0.95; text-transform: uppercase; }
.h-s  { font-family: var(--f-body); font-weight: 700; font-size: var(--step-1); line-height: 1.2; font-variation-settings: "wdth" 112; }

.lede { font-size: var(--step-1); line-height: 1.45; color: var(--bone); max-width: 34ch; font-variation-settings: "wdth" 104; }
.muted { color: var(--concrete); }
.small { font-size: var(--step--1); }

/* the logo's own tagline style: wide grotesk, tracked — used only for the brand line */
.tagline {
  font-family: var(--f-body);
  font-variation-settings: "wdth" 125;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: var(--step--1);
}

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(20, 16, 15, 0.92);
  backdrop-filter: blur(8px);
  border-color: var(--ash);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand .wm { width: 132px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.3rem; letter-spacing: 0.02em; line-height: 1;
  padding: 14px 22px 13px;
  text-decoration: none;
  border: 2px solid var(--red);
  background: var(--red); color: var(--bone);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--bone); border-color: var(--bone); color: var(--pitch); }
.btn--ghost { background: transparent; border-color: var(--bone); }
.btn--ghost:hover { background: var(--bone); }
.nav .btn { font-size: 1.05rem; padding: 10px 16px 9px; border-bottom-width: 2px; }

.menu-toggle {
  display: none;
  background: none; border: 2px solid var(--bone); color: var(--bone);
  font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; text-transform: uppercase;
  padding: 8px 14px 7px; cursor: pointer;
}

@media (max-width: 880px) {
  .brand .wm { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 22px;
    background: var(--pitch);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  }
  .nav a { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2.6rem; }
  .nav .btn { font-size: 1.6rem; padding: 14px 24px; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ---------- section scaffolding ---------- */

section { position: relative; }
.pad { padding-block: clamp(80px, 12vw, 170px); }
.pad-s { padding-block: clamp(56px, 7vw, 100px); }

.on-black { background: var(--pitch); }
.on-offal { background: var(--offal); }
.on-bone { background: var(--bone); color: var(--pitch); }
.on-bone .muted { color: #5a524c; }
.on-red { background: var(--red); color: var(--bone); }

/* grill bars — the divider used between heavy sections */
.grill {
  height: 26px;
  background:
    repeating-linear-gradient(90deg, #3a3634 0 6px, #6d6a68 6px 8px, #2a2624 8px 22px);
  border-block: 3px solid #0d0b0a;
  box-shadow: inset 0 -8px 14px rgba(255, 90, 20, .18);
}

/* steel plate surface */
.plate {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.25)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px),
    #2b2827;
  border: 1px solid #3d3836;
  position: relative;
}
.plate::before, .plate::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9a9593, #403b39 70%);
  top: 10px; left: 10px;
}
.plate::after { left: auto; right: 10px; }

/* rust stain helper */
.rusty {
  background:
    radial-gradient(ellipse 60% 40% at 15% 85%, rgba(154,59,27,.55), transparent 70%),
    radial-gradient(ellipse 40% 30% at 90% 10%, rgba(154,59,27,.35), transparent 70%),
    var(--char);
}

/* ---------- photo slots ----------
   Each .shot shows a real photo when assets/foto/<file> exists.
   Until then it shows an art-directed placeholder with the shot brief. */
.shot {
  position: relative; margin: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(255,122,31,.45), transparent 70%),
    radial-gradient(ellipse 50% 40% at 30% 80%, rgba(196,30,42,.5), transparent 70%),
    linear-gradient(180deg, #120e0d, #2a1a15);
  min-height: 220px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.shot.has-photo img { opacity: 1; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-size: var(--step--1);
  color: var(--concrete);
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.shot.has-photo figcaption { color: var(--bone); }
.shot:not(.has-photo)::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); opacity: .25; mix-blend-mode: overlay;
}
.shot .shot-tag {
  position: absolute; top: 12px; left: 14px;
  font-size: 0.75rem; color: var(--steel);
  border: 1px solid var(--ash); padding: 2px 8px;
}
.shot.has-photo .shot-tag { display: none; }

/* ---------- footer ---------- */

.site-footer { background: var(--pitch); padding: 72px 0 36px; border-top: 3px solid var(--red); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; margin-bottom: 12px; color: var(--steel); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--red); }
.foot-logo { width: 240px; margin-bottom: 18px; }
.foot-base { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--ash); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--steel); font-size: var(--step--1); }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- concept notes (placeholders, clearly marked) ---------- */
.concept-note {
  display: inline-block;
  font-size: 0.78rem; line-height: 1.4;
  color: var(--steel);
  border: 1px dashed var(--ash);
  padding: 6px 10px;
}
.on-bone .concept-note { color: #6b625b; border-color: #b3aa9f; }

/* ---------- reveal (one quiet entrance, only for big type) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- page heads for inner pages ---------- */
.page-head {
  position: relative;
  padding: clamp(140px, 18vw, 230px) 0 clamp(56px, 7vw, 90px);
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(255,122,31,.35), transparent 65%),
    radial-gradient(ellipse 60% 50% at 50% 115%, rgba(196,30,42,.55), transparent 70%),
    var(--pitch);
  overflow: hidden;
}
.page-head h1 { font-size: var(--step-5); }
.page-head .lede { margin-top: 24px; }

/* visually hidden */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
