/* Zackary Services LLC — site styles
   Brand: purple #663399, slate #5A5A66, ink #1A1A1F
   Plain CSS, no framework. Edit freely. */

:root {
  --purple: #663399;
  --slate: #5a5a66;
  --ink: #1a1a1f;
  --deep: #0e3b47;          /* ocean, used at the edges only */
  --deep-soft: #e8eef0;
  --rule: #e4e4e8;
  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --measure: 62ch;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--purple); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

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

/* ---------------------------------------------------------------- header */
header {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bar img { width: 42px; height: 42px; flex: none; }
.brand { display: flex; flex-direction: column; margin-right: auto; }
.brand .name {
  font-size: 15px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink);
}
.brand .loc { font-size: 12.5px; color: var(--slate); letter-spacing: .04em; }

nav { display: flex; gap: 22px; }
nav a {
  font-size: 14.5px; color: var(--slate); letter-spacing: .03em;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
nav a:hover { color: var(--purple); text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--purple); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 68px 0 54px; text-align: center; position: relative; }
.hero-band {
  position: relative; overflow: hidden;
  background:
    url("images/contours-hero.svg") no-repeat right -150px top -170px / 760px auto,
    linear-gradient(180deg, #f4f8f9 0%, #ffffff 82%);
  border-bottom: 1px solid var(--rule);
}
.hero img.mark { width: 108px; height: 108px; }
.hero h1 {
  margin: 26px 0 0;
  font-size: 15px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink);
}
.hero .rule {
  width: 62px; height: 1px; background: var(--purple);
  margin: 16px auto 14px; border: 0;
}
.hero .tagline {
  margin: 0 auto; max-width: none; font-size: 19px; font-weight: 300; color: var(--slate);
}

/* ---------------------------------------------------------------- text */
main { padding: 8px 0 20px; }
section { padding: 40px 0 34px; border-top: 0; position: relative; }
section + section::before {
  content: ""; display: block; position: absolute; top: 0; left: 0; right: 0;
  height: 10px; background: url("images/wave-rule.svg") repeat-x center / 120px 10px;
}

h2 {
  font-size: 13px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--purple);
  margin: 0 0 18px;
}
h3 { font-size: 17px; margin: 0 0 6px; color: var(--ink); }
p { max-width: var(--measure); margin: 0 0 16px; }

/* a centred section: centre the text AND the text block itself */
.centred { text-align: center; }
.centred p { margin-left: auto; margin-right: auto; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink); }

/* ---------------------------------------------------------------- lists */
.caps { display: grid; gap: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.caps p { margin: 0; color: var(--slate); font-size: 15.5px; }

.practice {
  columns: 3; column-gap: 34px;
  padding: 0; margin: 0; list-style: none;
}
.practice li {
  font-size: 15px; color: var(--slate);
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--deep-soft);
  margin-bottom: 4px;
  break-inside: avoid;
}

/* ---------------------------------------------------------------- about */
.bio { display: grid; gap: 34px; grid-template-columns: 210px 1fr; align-items: start; }
.portrait {
  width: 210px; height: 210px; border-radius: 50%;
  object-fit: cover; background: var(--bg-soft);
  border: 1px solid var(--rule);
}
.portrait-fallback {
  width: 210px; height: 210px; border-radius: 50%;
  background: var(--bg-soft); border: 1px dashed #c9c9d2;
  display: flex; align-items: center; justify-content: center;
  color: #9a9aa6; font-size: 13px; text-align: center; padding: 20px;
}

/* ---------------------------------------------------------------- contact */
.contact dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 12px 20px; }
.contact dt {
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); padding-top: 3px;
}
.contact dd { margin: 0; font-size: 17px; }

/* ---------------------------------------------------------------- footer */
footer {
  margin-top: 56px; padding: 52px 0 56px;
  background:
    url("images/contours-footer.svg") no-repeat left -150px center / 620px auto,
    var(--deep);
  color: #b9cbd1; font-size: 13.5px;
}
footer a { color: #e7eff1; }
footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  position: relative; }
footer .mark { width: 30px; height: 30px; opacity: .55; margin-bottom: 14px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 38px; }
  .hero img.mark { width: 88px; height: 88px; }
  .caps { grid-template-columns: 1fr; gap: 20px; }
  .practice { columns: 1; }
  .hero-band { background-position: right -260px top -200px, center; }
  footer { background-position: left -300px center, center; }
  .bio { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .contact dl { grid-template-columns: 1fr; gap: 4px 0; }
  .contact dd { margin-bottom: 12px; }
  .brand { margin-right: 0; }
  nav { width: 100%; gap: 18px; }
}

/* ---------------------------------------------------------------- selected experience */
.cv { list-style: none; padding: 0; margin: 0; counter-reset: cv; }
.cv li {
  padding: 0 0 22px 0; margin: 0 0 22px 0;
  border-bottom: 1px solid var(--rule);
}
.cv li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.cv h3 {
  font-size: 16.5px; margin: 0 0 6px; color: var(--ink);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
}
.cv h3 span {
  font-size: 13px; font-weight: 400; color: var(--slate); letter-spacing: .01em;
}
.cv p { margin: 0; color: var(--slate); font-size: 15.5px; max-width: 70ch; }

/* the practice list also serves the current-work and credentials lists */
.bio + * .practice, section > .practice { columns: 2; }
@media (max-width: 680px) { section > .practice { columns: 1; } }
