/* ============ Forge House — shared styles ============ */
:root{
  --iron:        #191614;
  --iron-2:      #221E1B;
  --iron-3:      #2C2723;
  --ash:         #EDE6DA;
  --ash-dim:     #948A7C;
  --ash-faint:   #5E564C;
  --straw:       #C8A030;
  --bronze:      #B8863B;
  --purple:      #6B4E71;
  --blue:        #3E5C76;
  --line:        rgba(237,230,218,0.09);

  --display: 'Fraunces', serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html[data-theme="light"]{
  --iron:        #F4EFE4;
  --iron-2:      #EAE2D2;
  --iron-3:      #DED2B9;
  --ash:         #241F1A;
  --ash-dim:     #6B5F4E;
  --ash-faint:   #A8987C;
  --straw:       #A87A1E;
  --bronze:      #96652B;
  --purple:      #6B4E71;
  --blue:        #375270;
  --line:        rgba(36,31,26,0.11);
}

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

html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}

body{
  background:var(--iron);
  color:var(--ash);
  font-family:var(--body);
  line-height:1.6;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  transition:background 0.3s ease, color 0.3s ease;
}

a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }

.wrap{ max-width:1140px; margin:0 auto; padding:0 32px; }

/* Temper gauge — signature motif: a bar through real steel-heat tints */
.gauge{
  height:3px;
  width:100%;
  background:linear-gradient(90deg,
    var(--straw) 0%, var(--bronze) 28%, var(--purple) 62%, var(--blue) 100%);
  opacity:0.9;
}
.gauge.thin{ height:1px; opacity:0.5; }

/* ---------- Nav ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:var(--iron);
  background:color-mix(in srgb, var(--iron) 92%, transparent);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
  transition:background 0.3s ease;
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 32px;
  max-width:1140px; margin:0 auto;
  gap:20px;
}
.brand{
  font-family:var(--display);
  font-weight:600;
  font-size:1.25rem;
  letter-spacing:0.02em;
  display:flex; align-items:center; gap:10px;
  flex:none;
}
.brand-mark{ width:20px; height:20px; flex:none; }
.nav-links{ display:flex; gap:30px; font-size:0.92rem; margin-right:auto; }
.nav-links a{ color:var(--ash-dim); transition:color 0.2s; white-space:nowrap; }
.nav-links a:hover, .nav-links a.current{ color:var(--ash); }
.nav-right{ display:flex; align-items:center; gap:18px; flex:none; }
.nav-cta{
  font-family:var(--mono);
  font-size:0.8rem;
  letter-spacing:0.03em;
  border:1px solid var(--bronze);
  color:var(--straw);
  padding:9px 18px;
  transition:background 0.2s, color 0.2s;
  white-space:nowrap;
}
.nav-cta:hover{ background:var(--bronze); color:var(--iron); }
.nav-toggle{ display:none; background:none; border:none; color:var(--ash); font-size:1.4rem; cursor:pointer; }

/* Theme switch */
.theme-switch{
  position:relative;
  width:52px; height:28px;
  border:1px solid var(--ash-faint);
  border-radius:14px;
  cursor:pointer;
  flex:none;
  background:var(--iron-2);
  transition:background 0.3s, border-color 0.3s;
}
.theme-switch input{
  position:absolute; inset:0; opacity:0; cursor:pointer; margin:0;
}
.theme-switch .knob{
  position:absolute; top:2px; left:2px;
  width:22px; height:22px;
  border-radius:50%;
  background:var(--bronze);
  display:flex; align-items:center; justify-content:center;
  transition:transform 0.3s ease, background 0.3s ease;
}
.theme-switch input:checked ~ .knob{ transform:translateX(24px); background:var(--straw); }
.theme-switch .knob svg{ width:13px; height:13px; }
.theme-switch .icon-sun{ position:absolute; right:6px; top:50%; transform:translateY(-50%); opacity:0.5; }
.theme-switch .icon-moon{ position:absolute; left:6px; top:50%; transform:translateY(-50%); opacity:0.5; }

@media (max-width:900px){
  .nav-links{ display:none; }
  .nav-toggle{ display:block; }
}

/* ---------- Section shell ---------- */
section{ padding:96px 0; }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:24px;
  margin-bottom:56px;
  flex-wrap:wrap;
}
.kicker{
  font-family:var(--mono);
  font-size:0.78rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--ash-dim);
  margin-bottom:14px;
}
h2{
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing:-0.01em;
}
.section-note{
  max-width:38ch;
  color:var(--ash-dim);
  font-size:0.98rem;
}

.btn{
  display:inline-block;
  font-family:var(--body);
  font-weight:600;
  font-size:0.95rem;
  padding:14px 28px;
  border:1px solid transparent;
  transition:transform 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s;
  cursor:pointer;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--bronze); color:var(--iron); }
.btn-primary:hover{ background:var(--straw); }
.btn-ghost{ border-color:var(--ash-faint); color:var(--ash); background:none; }
.btn-ghost:hover{ border-color:var(--ash); }

/* ---------- Page hero (for interior pages) ---------- */
.page-hero{ padding:80px 0 56px; }
.page-hero h1{
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing:-0.01em;
  margin-bottom:18px;
}
.page-hero p{ color:var(--ash-dim); max-width:52ch; font-size:1.05rem; }

/* ---------- Footer ---------- */
footer{ padding:64px 0 40px; border-top:1px solid var(--line); margin-top:40px;}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px;
  padding-bottom:40px;
}
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-brand p{ color:var(--ash-dim); font-size:0.9rem; margin-top:14px; max-width:32ch; }
.footer-col h5{
  font-family:var(--mono); font-size:0.75rem; text-transform:uppercase; letter-spacing:0.06em;
  color:var(--ash-dim); margin-bottom:16px;
}
.footer-col a{
  display:block; font-size:0.9rem; color:var(--ash); margin-bottom:10px; opacity:0.85;
}
.footer-col a:hover{ opacity:1; color:var(--bronze); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:28px; border-top:1px solid var(--line);
  font-family:var(--mono); font-size:0.75rem; color:var(--ash-faint);
  flex-wrap:wrap; gap:12px;
}

::selection{ background:var(--bronze); color:var(--iron); }
:focus-visible{ outline:2px solid var(--straw); outline-offset:2px; }
