/* Murphy Digital LLC — murphydigitalapps.com */
:root {
  --bg: #f6f1e8;
  --bg-elev: #fffdf8;
  --ink: #1c1914;
  --muted: #5c564c;
  --line: #e4d9c8;
  --accent: #8f4326;
  --accent-hover: #73361e;
  --focus: #1c1914;
  --shadow: 0 1px 2px rgba(28, 25, 20, 0.06), 0 12px 32px rgba(28, 25, 20, 0.06);
  --radius: 16px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --bg-elev: #211e1a;
    --ink: #f3ece1;
    --muted: #b4ac9f;
    --line: #3a342c;
    --accent: #e08a62;
    --accent-hover: #f0a884;
    --focus: #f3ece1;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--bg-elev);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: inherit; }
.mark {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  display: grid;
  place-items: center;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  flex: 0 0 auto;
}
.brand-name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 550;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.brand-name span {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.08rem;
}

nav ul {
  display: flex;
  gap: 0.35rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
}
nav a:hover { color: var(--accent); }
nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

main { flex: 1; }

.hero {
  padding: 4.25rem 0 2.4rem;
}
.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.lead {
  font-size: 1.28rem;
  max-width: 36rem;
  margin: 0;
  color: var(--ink);
}
.lede {
  max-width: 40rem;
  color: var(--muted);
  margin: 1.2rem 0 0;
}

.section { padding: 0.5rem 0 3.4rem; }
.section p { max-width: 42rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.45rem;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.contact-band {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  box-shadow: var(--shadow);
}
.contact-band p { margin: 0.35rem 0 0; color: var(--muted); }
.email-link {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--accent);
}
.email-link:hover { color: var(--accent-hover); text-decoration: underline; }

.prose { padding: 3.2rem 0 4rem; max-width: 44rem; }
.prose p, .prose ul { color: var(--muted); }
.prose li { margin: 0.4rem 0; }
.prose a { font-weight: 600; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.site-footer p { margin: 0; }

@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
  .contact-band { flex-direction: column; align-items: flex-start; }
  .header-inner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
