:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1b1e23;
  --muted: #5d6470;
  --border: #e2e2dc;
  --accent: #1d4f7a;
  --accent-hover: #163d5f;
  --accent-text: #ffffff;
  --success-bg: #eaf5ee;
  --success-border: #9fceb0;
  --error: #b3261e;
  --error-bg: #fbeeed;
  --error-border: #e8b3ae;
  --radius: 6px;
  --band-tint: #f3f2f2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #171b21;
    --text: #e5e8ec;
    --muted: #9aa3ae;
    --border: #2a3039;
    --accent: #7eb2e3;
    --accent-hover: #a3c9ee;
    --accent-text: #0d1116;
    --success-bg: #14261b;
    --success-border: #2f5e40;
    --error: #f2a39c;
    --error-bg: #2b1715;
    --error-border: #6b312c;
    --band-tint: #1b2027;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1.1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.container {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .container {
    padding: 0 2rem;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
}

/* Header
   header-rule carries the lockup classes (myriad-logo.css) for the mark
   sizing and lockup color; header-inner is the .container-width row
   (mark, name, nav) nested inside it, so the visible content still lines
   up with the rest of the page. The lockup's ::after rule is suppressed
   below — no divider under the header. */

.site-header {
  padding-top: 1.25rem;
  /* The lockup's baseline-aligned flex row reserves a sliver of space below
     the mark for the wordmark's font descent metric, even though the mark
     itself has nothing below its baseline — subtract it so the padding
     above and below the mark end up visually equal. */
  padding-bottom: calc(1.25rem - 3.8px);
}

.header-rule::after {
  content: none;
}

/* The vendored lockup reserves extra height below the baseline for the
   ::after rule (now suppressed above) — drop it so the lockup's box hugs
   the mark exactly, keeping the padding above and below symmetric. */
.header-rule {
  min-height: var(--mark-h);
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(var(--mark-h) * 0.42);
}

.myriad-brand {
  display: inline-flex;
  align-items: baseline;
  gap: calc(var(--mark-h) * 0.42);
  color: inherit;
  text-decoration: none;
}

.myriad-brand picture {
  display: contents;
}

.myriad-brand picture source {
  display: none;
}

.myriad-lockup__name {
  font-size: calc(var(--mark-h) * 0.3 + 4px);
}

@media (prefers-color-scheme: dark) {
  .header-rule.myriad-lockup {
    color: #f3f2f2;
  }
}

@media (max-width: 640px) {
  .header-inner .myriad-lockup__name {
    display: none;
  }
}

@media (max-width: 400px) {
  .header-rule {
    --mark-h: 32px;
  }
}

nav {
  display: flex;
  gap: 1.5rem;
  flex: none;
}

nav a {
  color: #201e1d;
  text-decoration: none;
  font: 600 15px/1 "Archivo", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

nav a:hover {
  color: #b8501f;
}

nav a:focus-visible {
  outline: 2px solid #b8501f;
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  nav a {
    color: #f3f2f2;
  }

  nav a:hover {
    color: #d4622a;
  }

  nav a:focus-visible {
    outline-color: #d4622a;
  }
}

/* Main */

main {
  flex: 1;
}

main > article.container {
  padding: 3rem 0 4rem;
}

.band {
  display: flex;
  align-items: center;
  min-height: 75vh;
  min-height: 75svh;
  padding: 4rem 0;
}

.band > .container {
  width: 100%;
}

.band h1 {
  margin-bottom: 1.5rem;
}

.band h2 {
  margin-top: 0;
  margin-bottom: 1.75rem;
  font-size: 2rem;
}

.prose {
  max-width: 42rem;
}

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

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40rem;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: #201e1d;
  color: #f3f2f2;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero .lede {
  color: #f3f2f2;
}

.hero .lede {
  color: rgba(243, 242, 242, 0.72);
}

.hero .button {
  background: #b8501f;
}

.hero .button:hover {
  background: #d4622a;
}

@media (prefers-color-scheme: dark) {
  .hero {
    background: #f3f2f2;
    color: #201e1d;
  }

  .hero h1,
  .hero .lede {
    color: #201e1d;
  }

  .hero .lede {
    color: rgba(32, 30, 29, 0.72);
  }
}

.hero-bg {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  color: rgba(243, 242, 242, 0.18);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 70%, #000 96%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 70%, #000 96%);
}

@media (prefers-color-scheme: dark) {
  .hero-bg {
    color: rgba(32, 30, 29, 0.14);
  }
}

.hero-bg svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 60rem) {
  .hero-bg {
    display: block;
  }
}

.hero h1 {
  max-width: 44rem;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.4rem);
}

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

/* Lighter than .cards on purpose — the Services band right below uses
   bordered cards, so these read as supporting points rather than offerings. */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 48rem) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pillar {
  border-top: 2px solid var(--border);
  padding-top: 1rem;
}

.pillar h3 {
  margin-top: 0;
}

.pillar p {
  margin: 0;
}

.services {
  background: var(--surface);
}

.about-me {
  background: var(--band-tint);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: var(--radius);
  padding: 0.7rem 1.3rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
}

.button:disabled {
  background: var(--accent);
  opacity: 0.6;
  cursor: default;
}

.text-link {
  font-weight: 600;
}

.text-link::after {
  content: " →";
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card p {
  margin-top: 0;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.card li + li {
  margin-top: 0.25rem;
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

.cta {
  min-height: 35vh;
  min-height: 35svh;
  background: #201e1d;
  color: #f3f2f2;
}

.cta h2,
.cta p {
  color: #f3f2f2;
}

.cta .button {
  background: #b8501f;
}

.cta .button:hover {
  background: #d4622a;
}

@media (prefers-color-scheme: dark) {
  .cta {
    background: #f3f2f2;
    color: #201e1d;
  }

  .cta h2,
  .cta p {
    color: #201e1d;
  }
}

/* Contact form */

.contact-form {
  margin-top: 2rem;
}

.field {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
}

textarea {
  resize: vertical;
  min-height: 10rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.925rem;
  margin: 0.35rem 0 0;
}

.form-note {
  color: var(--muted);
  font-size: 0.925rem;
  margin-top: 1rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  border: 1px solid;
  border-radius: var(--radius);
  padding: 0.25rem 1rem;
  margin: 1.5rem 0;
}

.notice-success {
  background: var(--success-bg);
  border-color: var(--success-border);
}

.notice-error {
  background: var(--error-bg);
  border-color: var(--error-border);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.925rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.footer-inner p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}
