/* ============================================================
   JOBFUL — rugged trades brand
   Palette + type system
   ============================================================ */

:root {
  /* Base */
  --charcoal:      #17191C;   /* near-black base            */
  --charcoal-2:    #202327;   /* raised dark surface        */
  --charcoal-3:    #2A2E33;   /* hairline / border on dark  */
  --offwhite:      #F4F1EB;   /* warm off-white surface     */
  --offwhite-2:    #EAE5DB;   /* slightly deeper paper      */
  --steel:         #6B7178;   /* support gray               */
  --steel-dark:    #3A3F45;
  --steel-light:   #9CA3AB;

  /* Accent — driven by the Tweaks panel (orange / steel-blue) */
  --accent:        #F2661B;
  --accent-press:  #D8530C;
  --accent-ink:    #17191C;   /* text that sits ON the accent */

  /* Text */
  --ink:           #17191C;
  --ink-soft:      #44494F;
  --paper-text:    #F4F1EB;
  --paper-soft:    #B7BBC0;

  /* Type — Archivo is the shipped headline font */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--charcoal);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Texture: subtle concrete grain on dark ---------- */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { position: relative; overflow: hidden; }
.section--dark  { background: var(--charcoal); color: var(--paper-text); }
.section--paper { background: var(--offwhite); color: var(--ink); }
.section--steel { background: var(--charcoal-2); color: var(--paper-text); }
.pad { padding: 72px 0; }
@media (min-width: 760px) { .pad { padding: 104px 0; } }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; }

.h1 { font-size: clamp(42px, 11vw, 86px); font-weight: 700; }
.h2 { font-size: clamp(32px, 7vw, 56px); }
.h3 { font-size: clamp(22px, 4.5vw, 30px); }

.lead { font-size: clamp(18px, 4.5vw, 22px); line-height: 1.5; font-weight: 400; }
.muted-paper { color: var(--paper-soft); }
.muted-ink   { color: var(--ink-soft); }

.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty; }

/* ---------- Buttons: chunky, squared-off ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 17px;
  line-height: 1;
  padding: 18px 26px;
  border: none;
  border-radius: 3px;
  min-height: 56px;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  position: relative;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}
.btn--primary:hover {
  background: var(--accent-press);
  transform: translateY(-2px);
  box-shadow: 0 10px 0 -2px rgba(0,0,0,0.25);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }

.btn--ghost {
  background: transparent;
  color: var(--paper-text);
  border: 2px solid var(--charcoal-3);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--block { width: 100%; }
.btn__arrow { font-size: 20px; transition: transform .15s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Misc utility ---------- */
.rule { height: 1px; background: var(--charcoal-3); border: 0; }
.rule--ink { background: rgba(23,25,28,0.12); }

.tag {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--steel-light);
}

/* hide scrollbars where needed */
.noscroll::-webkit-scrollbar { display: none; }

/* reveal-on-load helper for slide-ins (respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .6s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
}
