/* ==========================================================================
   SMEZON — restored catalogue
   Theme: "Machined Steel" — deep steel navy, safety amber, condensed caps,
   hairline rules and hazard-stripe dividers. Bootstrap 5 grid/utilities only;
   everything below is the brand layer.
   ========================================================================== */

:root {
  --ink:        #0E1620;
  --ink-2:      #16202C;
  --steel:      #1B2836;
  --slate:      #33465C;
  --blue:       #12437F;
  --blue-lt:    #2A6FD1;
  --amber:      #F2A007;
  --amber-dk:   #C07C00;
  --paper:      #F3F4F6;
  --paper-2:    #E8EAEE;
  --line:       #D3D8DE;
  --line-dk:    #2C3A49;
  --text:       #1A222C;
  --text-mid:   #55636F;
  --white:      #FFFFFF;

  --font-head:  "Saira Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono:  "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
}

/* ---- Safeguard: content is NEVER hidden waiting on JavaScript -------------
   Any reveal/animation library is progressive enhancement only. */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* --------------------------------------------------------------- base ---- */
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text);
  background: var(--paper);
  margin: 0;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(18, 67, 127, .28); }
a:hover, a:focus { color: var(--blue-lt); border-bottom-color: var(--amber); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .6em;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* hazard stripe divider — a signature element of this site */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(135deg,
    var(--amber) 0 14px, var(--ink) 14px 28px);
}
.stripe--thin { height: 5px; }

/* ------------------------------------------------------------- header ---- */
.site-head { background: var(--ink); color: #C8D2DC; }

.head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  flex-wrap: wrap;
  padding: .9rem 0;
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: .16em;
  color: var(--white);
  border: 0;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  min-width: 0;
}
.brand:hover, .brand:focus { color: var(--amber); }
.brand span {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  color: var(--amber);
  text-transform: uppercase;
  white-space: nowrap;
}

/* main nav — min-width:0 + wrap so links can never be clipped past the viewport */
.mainnav { min-width: 0; }
.mainnav ul {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: .25rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mainnav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #C8D2DC;
  border: 0;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.mainnav a:hover, .mainnav a:focus, .mainnav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--amber);
}

/* category strip — scrolls rather than clips on narrow viewports */
.catstrip { background: var(--ink-2); border-top: 1px solid var(--line-dk); }
.catstrip .wrap { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.catstrip-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
  padding: .55rem 0;
}
.catstrip ul {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: .55rem 0;
  scrollbar-width: thin;
}
.catstrip a {
  font-size: .82rem;
  letter-spacing: .03em;
  color: #93A3B3;
  border: 0;
  white-space: nowrap;
}
.catstrip a:hover, .catstrip a:focus, .catstrip a[aria-current="page"] { color: var(--amber); }

/* --------------------------------------------------------- page header --- */
.pagehead { background: var(--steel); color: #DCE3EA; padding: 3rem 0 2.6rem; }
.pagehead .kicker {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 .9rem;
  display: block;
}
.pagehead h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  text-transform: uppercase;
  margin-bottom: .5rem;
  max-width: 22ch;
}
.pagehead .standfirst {
  font-size: 1.06rem;
  color: #AEBCC9;
  max-width: 62ch;
  margin: 0;
}

/* spec strip — small hairline fact band under the page title */
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 1.8rem 0 0;
  border-top: 1px solid var(--line-dk);
}
.specs div {
  flex: 1 1 170px;
  min-width: 0;
  padding: .85rem 1.1rem .85rem 0;
  border-right: 1px solid var(--line-dk);
}
.specs div:last-child { border-right: 0; }
.specs dt, .specs .k {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7B8B9B;
  display: block;
  margin-bottom: .25rem;
}
.specs .v {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

/* ------------------------------------------------------------- figure ---- */
.pagefig { background: var(--ink); }
.pagefig figure { margin: 0; }
.pagefig img { width: 100%; max-height: 460px; object-fit: cover; }
.pagefig figcaption {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7B8B9B;
  padding: .7rem 1.5rem .9rem;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
}

/* homepage hero */
.hero { background: var(--steel); color: #DCE3EA; padding: 3.2rem 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: end; }
.hero img { width: 100%; border: 1px solid var(--line-dk); }
.hero .kicker {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: .9rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .6rem;
}
.hero .standfirst { font-size: 1.1rem; color: #AEBCC9; max-width: 56ch; margin: 0; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}

/* --------------------------------------------------------------- prose --- */
.prose { padding: 3rem 0 3.5rem; }
.prose-inner { max-width: 74ch; }

.prose h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  text-transform: uppercase;
  margin-top: 2.6rem;
  padding-top: 1.1rem;
  border-top: 3px solid var(--ink);
  position: relative;
}
.prose h2::after {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 74px; height: 3px;
  background: var(--amber);
}
.prose h3 {
  font-size: 1.32rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: 1.9rem;
  color: var(--slate);
}
.prose p { margin: 0 0 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.35rem; padding-left: 0; list-style: none; }
.prose ol { counter-reset: n; }
.prose li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .7rem;
}
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 9px; height: 9px;
  background: var(--amber);
}
.prose ol > li::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0; top: .05em;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--amber-dk);
}
.prose strong { font-weight: 600; color: var(--ink); }

.prose blockquote {
  margin: 1.8rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border-left: 5px solid var(--amber);
  box-shadow: 0 1px 0 var(--line);
}
.prose blockquote p { margin-bottom: .9rem; font-size: 1.02rem; color: var(--text-mid); }
.prose blockquote p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- footer ---- */
.site-foot { background: var(--ink); color: #93A3B3; padding: 3rem 0 2rem; font-size: .93rem; }
.site-foot h2 {
  font-size: .68rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  border: 0;
  padding: 0;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .5rem; }
.site-foot a { color: #B4C0CB; border: 0; }
.site-foot a:hover, .site-foot a:focus { color: var(--amber); }
.foot-note {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dk);
  font-size: .82rem;
  color: #6D7C8B;
}
.foot-note p { margin: 0 0 .5rem; }

/* ---------------------------------------------------------------- 404 ---- */
.err { padding: 5rem 0 6rem; text-align: left; }
.err .code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 20vw, 11rem);
  line-height: .9;
  color: var(--paper-2);
  margin: 0;
}
.err h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); text-transform: uppercase; margin-top: -.3em; }
.err-lede { max-width: 60ch; }
.err-cats {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: .6rem 1.6rem;
}

/* ----------------------------------------------------- entrance motion ---
   CSS-only, ends in the visible state, fill-mode both. Content stays
   visible even if the animation never runs. */
@keyframes riseIn { from { opacity: .001; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .pagehead h1, .hero h1 { animation: riseIn .5s ease-out both; }
}

/* ------------------------------------------------------------ responsive - */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand { font-size: 1.5rem; letter-spacing: .12em; }
  .brand span { display: none; }
  .mainnav ul { gap: .2rem 1.1rem; }
  .mainnav a { font-size: .95rem; }
  .pagehead { padding: 2.2rem 0 2rem; }
  .pagefig img { max-height: 260px; }
  .specs div { flex-basis: 50%; border-right: 0; }
}

/* homepage h1 — brand line above the descriptive line, one heading element */
.hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); letter-spacing: .02em; }
.hero .hero-brand {
  display: block;
  font-size: clamp(2.8rem, 8vw, 5rem);
  letter-spacing: .1em;
  line-height: .95;
  margin-bottom: .18em;
  color: var(--white);
}
