/* ============================================================
   LabHack site stylesheet
   Palette sampled directly from the LabHack mark (sepia/leather/rust),
   paired with the same IBM Plex family used across the LabHack tools,
   plus "Rye" (a genuine Western display face) for headline moments only.
   ============================================================ */

:root{
  /* -- palette, sampled from the logo -- */
  --paper:       #efe6d3;   /* aged-paper page background */
  --panel:       #fffcf5;   /* card/panel background, slightly lighter than paper */
  --ink:         #201a12;   /* near-black warm ink -- primary text */
  --ink-soft:    #5b5343;   /* warm brown-gray -- secondary text */
  --line:        #ddd0b3;   /* hairline borders */
  --line-strong: #c6ad7f;   /* stronger tan border / dividers */
  --leather:     #5a3419;   /* dark saddle brown -- headings, nav */
  --leather-dark:#3c2210;
  --rust:        #a1441c;   /* burnt rust -- primary accent / CTA */
  --rust-dark:   #7c3315;
  --tan-tint:    #f3ead6;   /* light tint for alternating sections */
  --cream-card:  #fffef9;

  --radius: 10px;
  --font-display: 'Rye', 'Georgia', serif;
  --font-ui: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0; padding:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } *{ animation:none !important; transition:none !important; } }

img{ max-width:100%; display:block; }
a{ color: var(--rust); text-decoration: none; }
a:hover{ color: var(--rust-dark); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--rust); outline-offset: 2px;
}

.wrap{ max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------------- Nav ---------------- */
.site-nav{
  background: var(--leather);
  border-bottom: 3px solid var(--rust);
}
.site-nav .wrap{ display:flex; align-items:center; justify-content:space-between; padding-top:14px; padding-bottom:14px; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height:36px; width:auto; }
.brand-name{ font-family: var(--font-display); font-size:26px; color:#fbf3e4; letter-spacing:.01em; }
.nav-links{ display:flex; gap:26px; align-items:center; }
.nav-links a{ color:#f1e3c8; font-family: var(--font-ui); font-weight:600; font-size:14.5px; }
.nav-links a:hover{ color:#fff; text-decoration:none; }
.nav-links a.cta-link{
  background: var(--rust); color:#fff; padding:8px 16px; border-radius:6px;
}
.nav-links a.cta-link:hover{ background: var(--rust-dark); color:#fff; }
.nav-toggle{ display:none; }

@media (max-width: 760px){
  .nav-links{
    position:absolute; top:64px; left:0; right:0; background: var(--leather);
    flex-direction:column; align-items:flex-start; padding: 10px 24px 20px;
    display:none; gap:16px; border-bottom: 3px solid var(--rust);
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{
    display:block; background:none; border:1px solid #f1e3c8; color:#f1e3c8;
    border-radius:6px; padding:6px 10px; font-size:14px; cursor:pointer;
  }
  .site-nav .wrap{ position:relative; }
}

/* ---------------- Hero ---------------- */
.hero{ padding: 64px 0 56px; position:relative; overflow:hidden; }
.hero .wrap{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:40px; align-items:center; }
.hero h1{
  font-family: var(--font-display); font-size: 58px; line-height:1.05; margin:0 0 18px;
  color: var(--leather);
}
.hero h1 .accent{ color: var(--rust); }
.hero p.lede{ font-size:18px; color: var(--ink-soft); max-width:46ch; margin:0 0 26px; }
.hero-art{ display:flex; justify-content:center; align-items:center; }
.hero-art img{ max-width: 360px; filter: drop-shadow(0 18px 26px rgba(60,34,16,.18)); }
@media (max-width: 860px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero h1{ font-size:42px; }
  .hero-art{ order:-1; }
  .hero-art img{ max-width:220px; }
}

.btn-row{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  font-family: var(--font-ui); font-weight:700; font-size:15px; padding:12px 22px;
  border-radius:8px; border:2px solid var(--rust); cursor:pointer; display:inline-block;
}
.btn.primary{ background: var(--rust); color:#fff; }
.btn.primary:hover{ background: var(--rust-dark); border-color: var(--rust-dark); color:#fff; text-decoration:none; }
.btn.ghost{ background:transparent; color: var(--leather); border-color: var(--leather); }
.btn.ghost:hover{ background: var(--leather); color:#fff; text-decoration:none; }

/* ---------------- Sections / eyebrows ---------------- */
section{ padding: 56px 0; }
section.tint{ background: var(--tan-tint); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.eyebrow{
  font-family: var(--font-mono); font-size:12px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color: var(--rust); margin:0 0 10px;
}
h2.section-title{ font-family: var(--font-display); font-size:36px; color: var(--leather); margin:0 0 16px; }
p.section-lede{ color: var(--ink-soft); max-width:64ch; font-size:16px; margin:0 0 34px; }

/* ---------------- Toolbox cards ---------------- */
.tool-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (max-width:760px){ .tool-grid{ grid-template-columns:1fr; } }
.tool-card{
  background: var(--cream-card); border:1px solid var(--line-strong); border-radius: var(--radius);
  padding:22px 24px; display:flex; gap:16px; align-items:flex-start;
  box-shadow: inset 0 0 0 3px rgba(198,173,127,0.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tool-card:hover{ transform: translateY(-3px); box-shadow: 0 10px 22px rgba(60,34,16,.12), inset 0 0 0 3px rgba(198,173,127,0.25); }
.tool-icon{ flex:none; width:44px; height:44px; color: var(--rust); }
.tool-card h3{ font-family:var(--font-ui); font-size:17px; margin:0 0 6px; color: var(--leather); }
.tool-card p{ font-size:14px; color: var(--ink-soft); margin:0 0 10px; }
.tool-card a.open-link{ font-family:var(--font-mono); font-size:13px; font-weight:600; }

/* ---------------- Generic cards / grids ---------------- */
.card-grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
@media (max-width:760px){ .card-grid-2{ grid-template-columns:1fr; } }
.panel{
  background: var(--cream-card); border:1px solid var(--line-strong); border-radius: var(--radius);
  padding:26px 26px;
}
.panel h3{ font-family:var(--font-ui); font-size:20px; color:var(--leather); margin:0 0 10px; }
.panel ul{ margin:14px 0 0; padding-left:20px; color:var(--ink-soft); font-size:14.5px; }
.panel li{ margin-bottom:6px; }

/* ---------------- Trail / timeline (About page) ---------------- */
.trail{ position:relative; margin:34px 0 0; padding-left:28px; }
.trail::before{ content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background: repeating-linear-gradient(var(--line-strong),var(--line-strong) 6px, transparent 6px, transparent 12px); }
.trail-stop{ position:relative; margin-bottom:26px; }
.trail-stop::before{ content:''; position:absolute; left:-28px; top:4px; width:12px; height:12px; border-radius:50%; background: var(--rust); border:2px solid var(--panel); }
.trail-stop h4{ margin:0 0 4px; font-family:var(--font-ui); font-size:15.5px; color:var(--leather); }
.trail-stop p{ margin:0; color:var(--ink-soft); font-size:14px; }

/* ---------------- Process steps (Services page) ---------------- */
.process{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:30px; }
@media (max-width:860px){ .process{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .process{ grid-template-columns:1fr; } }
.process-step{ background:var(--cream-card); border:1px solid var(--line); border-radius:var(--radius); padding:18px 18px 20px; position:relative; }
.process-step .step-num{ font-family:var(--font-mono); color:var(--rust); font-size:12px; font-weight:700; letter-spacing:.08em; }
.process-step h4{ margin:8px 0 6px; font-size:15.5px; color:var(--leather); }
.process-step p{ margin:0; font-size:13.5px; color:var(--ink-soft); }

/* ---------------- About header ---------------- */
.about-head{ display:flex; gap:34px; align-items:center; flex-wrap:wrap; }
.about-head img.avatar{ width:180px; height:180px; border-radius:50%; border:4px solid var(--cream-card); box-shadow:0 6px 18px rgba(60,34,16,.18); }
.about-head h1{ font-family:var(--font-display); font-size:42px; color:var(--leather); margin:0 0 6px; }
.about-head .role{ font-family:var(--font-mono); color:var(--rust); font-size:14px; letter-spacing:.04em; }

/* ---------------- Contact / form block ---------------- */
.contact-panel{ background: var(--leather); color:#f1e3c8; border-radius: var(--radius); padding:36px 32px; }
.contact-panel h2{ font-family:var(--font-display); font-size:32px; color:#fbf3e4; margin:0 0 10px; }
.contact-panel p{ color:#e3d3ae; max-width:60ch; }
.form-slot{
  background:#fffef9; border:2px dashed #d9c193; border-radius:10px; padding:26px; margin-top:22px; color:var(--ink-soft);
}
.form-slot strong{ color:var(--leather); }
.form-slot iframe{ width:100%; max-width:640px; display:block; margin:0 auto; border:none; border-radius:8px; background:#fff; }

/* ---------------- Footer ---------------- */
footer.site-footer{ background: var(--leather-dark); color:#cbb98d; padding:34px 0; margin-top:40px; }
footer.site-footer .wrap{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; }
footer.site-footer a{ color:#e7d7ae; }
footer.site-footer .foot-brand{ display:flex; align-items:center; gap:10px; }
footer.site-footer .foot-brand img{ height:24px; }
footer.site-footer small{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.03em; }
