/* MNK Consulting site: one shared stylesheet for every page. */

:root {
  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --text: #1F2328;
  --muted: #5B616B;
  --line: #E3E1DA;
  --accent: #2563C9;
  --accent-ink: #FFFFFF;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171A;
    --surface: #1E2125;
    --text: #ECEDEE;
    --muted: #A3A8B0;
    --line: #30343A;
    --accent: #6E9EF0;
    --accent-ink: #0E1726;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.site-nav { display: flex; gap: 1.1rem; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Content */
main { padding: 2.5rem 0 3rem; }

h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.4rem 0 0.6rem;
}
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

.lede { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.6rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  margin: 1rem 0;
}
.card > :last-child { margin-bottom: 0; }
.app-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.app-card img { width: 72px; height: 72px; border-radius: 16px; flex-shrink: 0; }
.app-card strong { display: block; font-size: 1.1rem; }
.app-card span { color: var(--muted); }
.app-card:hover strong { color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }

/* StoryPrints hero */
.hero {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.hero img { width: 96px; height: 96px; border-radius: 22px; flex-shrink: 0; }
.hero h1 { margin: 0; }
.hero p { margin: 0.2rem 0 0; color: var(--muted); }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer p { margin: 0 0 0.35rem; }
.site-footer a { color: var(--muted); }

@media (max-width: 30rem) {
  .hero { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 0.8rem; }
}
