/* Level — structure stylesheet. Colors come ONLY from var(--m-*) set in seasoning.css. */

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

body {
  background: var(--m-bg);
  color: var(--m-text);
  font-family: var(--m-font-body), system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--m-font-display), Georgia, serif; font-weight: 700; }

a { color: inherit; text-decoration: none; transition: color 0.18s ease; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 28px; }

/* ---- Navigation ---- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.logo { font-family: var(--m-font-display), Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--m-heading); }
.logo:hover { color: var(--m-accent); }
.links { display: flex; gap: 22px; }
.links a { font-size: 0.88rem; font-weight: 600; color: var(--m-soft); }
.links a:hover { color: var(--m-accent); }
.links a[aria-current="page"] { color: var(--m-heading); border-bottom: 2px solid var(--m-accent); padding-bottom: 3px; }

/* ---- Prominent hero: full-bleed photo, copy over scrim ---- */
.hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--m-bg) 98%),
              linear-gradient(100deg, var(--m-bg) 0%, transparent 50%);
  opacity: 0.92;
}
.hero-copy { position: relative; width: 100%; padding-bottom: 56px; }
.hero-copy h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.6rem); color: var(--m-heading);
  line-height: 1.08; margin-top: 16px; max-width: 640px;
}
.hero-copy .intro { margin-top: 16px; color: var(--m-soft); max-width: 520px; }

/* ---- Painter's tape labels ---- */
.tape {
  display: inline-block; padding: 6px 16px;
  background: var(--m-accent); color: var(--m-bg);
  font-size: 0.82rem; font-weight: 600;
  transform: rotate(-1.2deg); opacity: 0.92;
  clip-path: polygon(1% 8%, 99% 0%, 100% 92%, 0% 100%);
}
.tape-2 { transform: rotate(0.8deg); margin-bottom: 22px; }

/* ---- Promise ---- */
.block { padding: 54px 28px 10px; }
.promise {
  max-width: 640px; padding: 22px 26px;
  border: 2px solid var(--m-heading); background: var(--m-surface);
  box-shadow: 6px 6px 0 var(--m-line);
}
.promise p { font-size: 1.02rem; color: var(--m-text); }

/* ---- Level divider (bubble settles to center) ---- */
.level-divider { text-align: center; padding: 44px 0 8px; color: var(--m-accent); }
.level-divider .bubble { animation: settle 2.2s ease-out both; }
@keyframes settle {
  0% { transform: translateX(-34px); }
  55% { transform: translateX(12px); }
  80% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .level-divider .bubble { animation: none; } }
.mono-note { display: block; margin-top: 4px; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--m-faint); }

/* ---- Jobs ---- */
.job { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; padding: 26px 0; border-bottom: 1px solid var(--m-line); align-items: start; }
.job:not(:has(img)) { grid-template-columns: 1fr; }
.job img { width: 100%; height: 240px; object-fit: cover; border: 1px solid var(--m-line); }
.job.big img { height: 300px; }
.job h3 { font-size: 1.3rem; color: var(--m-heading); }
.job-facts { font-size: 0.82rem; font-weight: 600; color: var(--m-accent); margin: 4px 0 10px; }
.job p { font-size: 0.95rem; color: var(--m-text); margin-bottom: 10px; }
.surprised { font-size: 0.88rem; color: var(--m-soft); font-style: italic; border-left: 3px solid var(--m-accent); padding-left: 12px; }
.quiet-link { display: inline-block; margin-top: 22px; font-weight: 600; font-size: 0.92rem; color: var(--m-accent); text-decoration: underline; text-underline-offset: 4px; }

/* ---- How a job runs ---- */
.how-band { background: var(--m-surface); padding: 56px 0 64px; margin-top: 50px; }
.sec-title { font-size: 1.7rem; color: var(--m-heading); }
.how-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 22px; }
.how-cols p { font-size: 0.95rem; color: var(--m-soft); }
.how-cols strong { display: block; color: var(--m-heading); margin-bottom: 6px; }

/* ---- Inner pages ---- */
.page { padding: 50px 0 80px; }
.wrap.page { padding-left: 28px; padding-right: 28px; }
.page-title { font-size: clamp(1.9rem, 4.2vw, 2.6rem); color: var(--m-heading); line-height: 1.15; }
.page-lede { margin-top: 14px; color: var(--m-soft); max-width: 580px; }
.page .job.big { margin-top: 34px; }
.fine-note { margin-top: 36px; font-size: 0.88rem; font-style: italic; color: var(--m-faint); }

.c-item { padding: 20px 0; border-top: 1px solid var(--m-line); max-width: 560px; }
.c-item h3 { font-size: 1.1rem; color: var(--m-heading); margin-bottom: 4px; }
.c-item p { font-size: 0.94rem; color: var(--m-soft); }
.c-item .big-line { font-family: var(--m-font-display), Georgia, serif; font-size: 1.7rem; font-weight: 700; color: var(--m-accent); }

/* ---- Footer ---- */
footer { border-top: 3px solid var(--m-heading); padding: 26px 0 34px; margin-top: 20px; }
.foot-row { display: flex; justify-content: space-between; gap: 20px; font-size: 0.85rem; color: var(--m-soft); flex-wrap: wrap; }
.foot-legal { margin-top: 8px; font-size: 0.78rem; color: var(--m-faint); }

@media (max-width: 780px) {
  .hero { min-height: 58vh; }
  .job, .how-cols { grid-template-columns: 1fr; }
  .job img { height: 220px; }
  .links { gap: 14px; }
  .links a { font-size: 0.78rem; }
  .foot-row { flex-direction: column; gap: 6px; }
}
