/* stem.matiu.dev — Emerging Engineers course. Mobile-first, static, no framework.
   Conventions follow websites/site/styles.css. Amber accent to differentiate
   from the teal web-studio brand. */

:root {
  --amber: #b45309;
  --amber-dark: #92400e;
  --amber-light: #f59e0b;
  --ink: #1c1917;
  --body: #44403c;
  --muted: #78716c;
  --bg: #ffffff;
  --bg-alt: #faf9f7;
  --bg-dark: #1c1917;
  --line: #e7e5e4;
  --radius: 14px;
  --wrap: 1080px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; }
a { color: var(--amber); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 1.9rem; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 32px; font-size: 1.05rem; max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  border: 2px solid var(--amber);
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: .95rem; }
.btn-lg { padding: 15px 28px; font-size: 1.08rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-ghost { background: transparent; color: var(--amber); }
.btn-ghost:hover { background: rgba(180,83,9,.08); color: var(--amber-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--amber); }
.nav-links .btn { color: #fff; }
@media (max-width: 700px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* Hero */
.hero {
  padding: 68px 0 60px;
  background:
    radial-gradient(1200px 420px at 72% -10%, rgba(245,158,11,.13), transparent),
    var(--bg);
}
.eyebrow { color: var(--amber); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: 0 0 18px; letter-spacing: -.02em; max-width: 20ch; }
.lead { font-size: 1.18rem; max-width: 54ch; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { color: var(--muted); margin-top: 20px; font-size: .98rem; }
.hero-grid { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

/* Figures / images */
figure { margin: 0; }
.shot {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-alt);
}
.shot img { width: 100%; }
figcaption { color: var(--muted); font-size: .82rem; margin-top: 8px; }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.section-alt .card { background: #fff; }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--body); }
.card-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 10px; }

/* Weeks timeline */
.weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .weeks { grid-template-columns: 1fr 1fr; } }
.week {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px;
}
.week-n {
  flex: 0 0 auto;
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--amber); color: #fff; font-weight: 700; font-size: .95rem;
}
.week h3 { margin: 0 0 4px; font-size: 1.05rem; }
.week p { margin: 0; font-size: .96rem; }
.week-says { color: var(--amber-dark); font-style: italic; font-size: .92rem; margin-top: 6px !important; }

/* Price */
.price-card {
  max-width: 460px; margin: 0 auto;
  background: #fff; border: 2px solid var(--amber); border-radius: 18px;
  padding: 32px; text-align: center;
  box-shadow: 0 20px 50px -30px rgba(180,83,9,.5);
}
.price { font-size: 3rem; font-weight: 800; color: var(--ink); }
.price-tag { color: var(--muted); font-size: 1.05rem; margin: 0; }
.price-note { color: var(--amber); font-weight: 700; margin: 4px 0 22px; }
.price-list { list-style: none; margin: 0 0 26px; padding: 0; text-align: left; }
.price-list li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid var(--line); }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 9px;
  color: var(--amber); font-weight: 800;
}
.price-fine { color: var(--muted); font-size: .9rem; margin: 16px 0 0; }

/* Facts strip */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { text-align: center; }
.fact-n { display: block; font-size: 1.9rem; font-weight: 800; color: var(--amber); line-height: 1.1; }
.fact-l { color: var(--muted); font-size: .92rem; }

/* Q&A */
.qa { margin: 0; }
.qa dt { font-weight: 700; color: var(--ink); margin-top: 22px; }
.qa dd { margin: 6px 0 0; }

/* Callout */
.callout {
  border-left: 4px solid var(--amber);
  background: var(--bg-alt);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.callout p { margin: 0; }
.callout strong { color: var(--ink); }

/* Contact */
.contact { background: var(--bg-dark); }
.contact h2, .contact h3 { color: #fff; }
.contact p { color: #d6d3d1; }
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; color: #fff; margin-bottom: 6px; font-size: .95rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid #57534e; background: #292524; color: #fff;
  font-family: inherit; font-size: 1rem;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--amber-light); outline-offset: 1px;
}
.form-note { color: #a8a29e; font-size: .88rem; }

/* Code samples */
pre {
  background: #292524; color: #e7e5e4;
  padding: 16px 18px; border-radius: var(--radius);
  overflow-x: auto; font-family: var(--mono); font-size: .88rem; line-height: 1.5;
}
code { font-family: var(--mono); font-size: .92em; }
p code, li code { background: var(--bg-alt); padding: 2px 5px; border-radius: 4px; color: var(--amber-dark); }

/* Tables */
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .92rem; }
.site-footer a { color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; }

/* Utility */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.narrow { max-width: 68ch; }
.pill {
  display: inline-block; background: rgba(180,83,9,.1); color: var(--amber-dark);
  padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}

/* Honeypot — hidden from humans, still reachable by bots that parse the DOM.
   Deliberately not `display:none`: some bots skip those. Off-screen instead. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
