/* ==========================================================================
   Warpefelt Consulting LLC
   All brand-level choices live in the custom properties below — change a
   value here and it propagates through the whole page.
   ========================================================================== */

:root {
  color-scheme: dark;

  --ink:        #000000;   /* page background */
  --band-bg:    #202020;   /* dark bands (hero, about) — lifted off the black */
  --text:       #FFFFFF;   /* body copy */
  --text-muted: #9C9C9C;   /* secondary copy, labels */
  --accent:     #C9C9C9;   /* links, rules, focus */
  --line:       rgba(255, 255, 255, 0.14);

  --font-display: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  Helvetica, Arial, sans-serif;

  --shell:  1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 0.5rem; top: -4rem;
  background: var(--text); color: var(--ink);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  z-index: 100; transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.prose p { margin: 0 0 1.25rem; }
.prose > :last-child { margin-bottom: 0; }

/* Bulleted lists get a short rule instead of a dot. */
.marks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.marks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}
.marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 1rem;
  height: 1px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wordmark:hover { text-decoration: none; color: var(--text); }
.wordmark img { width: 32px; height: 32px; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
}
.nav a { color: var(--text-muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

.nav__cta {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 1rem;
}
.nav__cta:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 2.5rem; height: 2.5rem;
  cursor: pointer;
  position: relative;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 1.1rem; height: 1.5px;
  background: var(--text);
}
.nav-toggle__bar { top: 50%; }
.nav-toggle__bar::before { top: -6px; left: 0; transform: none; }
.nav-toggle__bar::after  { top:  6px; left: 0; transform: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 9vw, 6.5rem);
  background: var(--band-bg);
  position: relative;
  overflow: hidden;
  /* Own stacking context, so the z-index:-1 underlay below stays above the
     hero's own background instead of dropping behind it. */
  isolation: isolate;
}

/* logo-icon.png is white line art on transparency. Bled off the right edge at
   a few percent opacity it reads as texture, not as a second logo. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -4%;
  translate: 0 -50%;
  width: min(46rem, 62%);
  aspect-ratio: 1 / 1;
  background: url("../img/logo-icon.png") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.hero__inner { max-width: 46rem; position: relative; }

.hero__mark {
  width: clamp(72px, 12vw, 104px);
  height: auto;
  margin-bottom: 2.25rem;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.hero__lede {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 400;
  margin: 1rem 0 1rem;
  padding-bottom: 1rem;
}

.hero .button { margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.75rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.button:hover {
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--alt {
  background: var(--band-bg);
  border-block: 1px solid var(--line);
}

/* Light panels -------------------------------------------------------------
   Any block carrying .theme-light re-binds the palette tokens for its own
   subtree, so every component inside it — buttons, rules, links — flips to
   black-on-white without a single component-level override.
   ------------------------------------------------------------------------- */

.theme-light {
  color-scheme: light;

  --ink:        #FFFFFF;   /* panel background */
  --text:       #000000;   /* body copy */
  --text-muted: #5C5C5C;   /* secondary copy, labels */
  --accent:     #333333;   /* links, rules, focus */
  --line:       rgba(0, 0, 0, 0.16);

  background: var(--ink);
  color: var(--text);
}

/* Two light panels in a row read as one sheet, so collapse the doubled
   padding where they meet. */
.theme-light + .theme-light { padding-top: 0; }

.section__title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 2.5rem;
}

/* Intro ------------------------------------------------------------------- */

/* Continues the hero's sentence, so it keeps the hero's 46rem measure and
   lands on the same left edge. */
.intro { max-width: 46rem; }

/* Opening paragraph carries the weight; the rest settles to body size. */
.intro > .prose > p:first-child {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
}

.intro .marks { margin-block: 1.75rem; }
.intro .button { margin-top: 1.5rem; }

/* Services ---------------------------------------------------------------- */

.services {
  display: grid;
  gap: 0;
}

.service {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.service:last-child { border-bottom: 1px solid var(--line); }

.service__title {
  font-size: 1.25rem;
  font-weight: 600;
  align-self: start;
}

.service p { margin-top: 0; }
.service > :last-child { margin-bottom: 0; }

/* Bio --------------------------------------------------------------------- */

.bio {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.bio__portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* Square aspect + cover means 50% lands a true circle, not an ellipse. */
  border-radius: 50%;
}

.bio__name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}
.bio__body p { margin: 0 0 1.25rem; }

.social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0;
  margin: 1.75rem 0 0;
  font-size: 0.9375rem;
}

/* Contact ----------------------------------------------------------------- */

/* One column now that the form is gone; the measure keeps the line length
   readable instead of letting the paragraph run the full shell width. */
.contact { max-width: 34rem; }

.contact__logo {
  width: min(320px, 100%);
  margin: 0 0 1.75rem;
}

.contact__direct { color: var(--text-muted); margin: 0; }

/* The address is the page's call to action, so it gets the emphasis the submit
   button used to carry. */
.contact__email {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.15rem;
}
.contact__email:hover {
  color: var(--accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.footer__legal { margin: 0; margin-left: auto; }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound .prose { max-width: 34rem; margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .bio { grid-template-columns: 1fr; }
  .bio__portrait { max-width: 18rem; }
}

@media (max-width: 720px) {
  .service { grid-template-columns: 1fr; gap: 1rem; }

  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0; }
  .nav__cta { text-align: center; margin-top: 0.5rem; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__legal { margin-left: 0; }
}

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