/* erikakirtley.com — Mark I. One stylesheet, no JS, no web fonts (SPEC §3–§4). */

:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e5e5e5;
  --band: #f5f5f5;
  --accent: #1f4e79;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rhythm: 40px;
  --container: 1200px;
  --gutter: 20px;
}

@media (min-width: 900px) {
  :root {
    --rhythm: 64px;
    --gutter: 32px;
  }
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

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

h1,
h2,
.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.005em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---- Buttons: black pill; ghost variant outlined. Both ≥ 44px tall. ---- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Header: 64px, hairline bottom border. ---- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 22px;
}

.header-cta {
  display: none;
}

/* ---- Hero: stacked on narrow screens, 320px / 1fr grid at ≥ 900px. ---- */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: var(--rhythm);
  padding-top: var(--rhythm);
  padding-bottom: var(--rhythm);
}

.hero-photo img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  object-fit: cover;
}

.hero-intro {
  text-align: center;
}

h1 {
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 16px;
}

.hero-contact a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  margin: -10px 0;
  line-height: 24px;
}

.hero-phone {
  color: var(--muted);
  margin-top: 12px;
}

.hero-cta {
  margin-top: 24px;
}

.hero-aside h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.about h2 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about p + p {
  margin-top: 20px;
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-block;
  }

  .hero {
    grid-template-columns: 320px 1fr;
    grid-template-areas:
      "photo intro"
      "aside about";
    column-gap: 64px;
    align-items: start;
  }

  .hero-photo {
    grid-area: photo;
  }

  .hero-photo img {
    width: 250px;
    height: 250px;
    margin: 0;
  }

  .hero-intro {
    grid-area: intro;
    text-align: left;
    padding-top: 8px;
  }

  .hero-aside {
    grid-area: aside;
  }

  .about {
    grid-area: about;
  }

  h1 {
    font-size: 44px;
  }
}

/* ---- Existing-clients band. ---- */

.band {
  background: var(--band);
}

.band-inner {
  padding-top: var(--rhythm);
  padding-bottom: var(--rhythm);
  text-align: center;
}

.band h2 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.band p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.band-cta {
  margin-top: 24px;
}

/* ---- Footer: black, small grey type. ---- */

.site-footer {
  background: #000;
  color: #bdbdbd;
  font-size: 13px;
  line-height: 1.7;
  padding: 32px 0;
}

.site-footer p + p {
  margin-top: 6px;
}

.footer-eho {
  color: #fff;
}

.eho-glyph {
  display: inline-block;
  vertical-align: -4px;
  margin-right: 6px;
}

/* ---- 404 page. ---- */

.notfound {
  padding-top: var(--rhythm);
  padding-bottom: var(--rhythm);
  text-align: center;
}

.notfound h1 {
  margin-bottom: 12px;
}

.notfound p {
  color: var(--muted);
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
