/* Clarke Cloud Consulting — single stylesheet, no build step. */

:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --surface: #ffffff;
  --text: #16202c;
  --muted: #536173;
  --border: #dce3ec;
  --accent: #0b4f8a;
  --accent-hover: #083d6b;
  --accent-soft: #e5eff9;
  --on-accent: #ffffff;
  --brand-mark-ink: #ffffff;
  --success: #17703a;
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 6%);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141b;
    --bg-alt: #131b24;
    --surface: #18222d;
    --text: #e7edf4;
    --muted: #9fb0c2;
    --border: #2a3846;
    --accent: #5aa9e6;
    --accent-hover: #7dbdf0;
    --accent-soft: #16304a;
    --on-accent: #08131e;
    --brand-mark-ink: #0e141b;
    --success: #5cc98a;
    --danger: #ff8a7a;
    --shadow: none;
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.025em;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

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

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

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

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.narrow {
  width: min(680px, 100% - 2rem);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 6px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  flex: none;
}

.brand-sub {
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:not(.button):hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .site-nav a:not(.button) {
    display: none;
  }

  .brand-sub {
    display: none;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

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

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.button-ghost {
  background: transparent;
  color: var(--accent);
}

.button-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.button-small {
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

/* Hero */

.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 3rem;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 820px;
}

.stats li {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1rem;
}

.stats strong {
  display: block;
  font-size: 1.25rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-intro {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 2.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

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

.card p {
  color: var(--muted);
  margin: 0;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem 2.5rem;
}

.work-item {
  border-top: 2px solid var(--border);
  padding-top: 1.25rem;
}

.work-item p {
  color: var(--muted);
  margin: 0;
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: start;
}

.about p {
  max-width: 62ch;
}

.certs {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

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

.certs li {
  margin-bottom: 0.3rem;
}

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

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

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 3rem;
  align-items: start;
}

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

.contact-links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-links li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.contact-links .label {
  display: inline-block;
  min-width: 5.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

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

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

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

.form-status {
  margin: 1rem 0 0;
  font-weight: 600;
  min-height: 1.5em;
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.fineprint {
  font-size: 0.8rem;
}

/* Standalone pages (404, thanks) */

.page-message {
  padding: clamp(4rem, 12vw, 8rem) 0;
}

.page-message .button {
  margin: 0.5rem 0.5rem 0 0;
}
