/* ianbell.dev: one stylesheet, mobile first, no build step */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2efe9;
  --text: #1c1a17;
  --muted: #5b5650;
  --line: #e2ddd4;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --on-accent: #ffffff;
  --radius: 12px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --surface: #211d17;
    --surface-2: #1c1914;
    --text: #f2eee7;
    --muted: #b3ab9f;
    --line: #3a342b;
    --accent: #fb923c;
    --accent-hover: #fdba74;
    --on-accent: #1c1a17;
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
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: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.measure { max-width: 42rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; color: var(--muted); }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.site-header ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; align-items: center; }
.site-header nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--accent); }
.site-header nav a.nav-cta { color: var(--accent); font-weight: 600; }
@media (max-width: 30rem) {
  .site-header li:not(:last-child) { display: none; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 0.8rem 1.3rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid var(--accent);
  font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

/* Hero */
.hero { padding: 3rem 0 3.5rem; }
.hero-inner { display: grid; gap: 2rem; align-items: center; }
.eyebrow { font-size: 0.9rem; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; margin-bottom: 1rem; }
.lede { font-size: 1.15rem; max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }
.hero-photo { width: min(15rem, 60vw); aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; }
@media (min-width: 52rem) {
  .hero { padding: 5rem 0; }
  .hero-inner { grid-template-columns: 1fr auto; gap: 4rem; }
  .hero-photo { width: 20rem; }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface-2); }
@media (min-width: 52rem) { .section { padding: 5rem 0; } }

.cols, .promises, .steps { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 46rem) {
  .cols, .promises, .steps { grid-template-columns: repeat(3, 1fr); }
}
.cols > div { border-top: 3px solid var(--accent); padding-top: 1rem; }
.cols p { color: var(--muted); margin: 0; }

.promise {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.promise p { margin: 0; color: var(--muted); }

.worked-with { text-align: center; }
.worked-with h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.clients { font-size: clamp(1.05rem, 2.6vw, 1.35rem); font-weight: 600; max-width: 52rem; margin: 0 auto 0.75rem; }

/* Gallery */
.grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.card-media { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.card-media img { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; }
.media-blush { background: #f6d9e2; }
.media-rose { background: #fbeef0; }
.media-night { background: #120f0c; }
.media-steel { background: #1b252b; }
.media-text { background: var(--surface-2); border-bottom: 1px solid var(--line); aspect-ratio: 3 / 1; }
@media (min-width: 40rem) { .media-text { aspect-ratio: 4 / 3; } }
.media-text span { font-size: 1.4rem; font-weight: 700; color: var(--muted); text-align: center; }

.card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { font-size: 0.98rem; }
.badge {
  align-self: flex-start; font-size: 0.8rem !important; font-weight: 600;
  color: var(--accent); border: 1px solid currentColor; border-radius: 999px;
  padding: 0.15rem 0.65rem; margin-bottom: 0.75rem;
}
.hard { color: var(--muted); }
.hard span { font-weight: 600; color: var(--text); }
.card-link { margin: auto 0 0; }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font-weight: 700; margin-bottom: 0.75rem;
}
.steps p { color: var(--muted); margin: 0; }
.local { margin: 2rem 0 0; font-weight: 600; }

/* Form */
.contact { max-width: 40rem; }
.form { margin: 1.5rem 0; }
.form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--muted); border-radius: 8px; padding: 0.7rem 0.8rem;
}
.form textarea { resize: vertical; min-height: 9rem; }
.form .hp { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: 0.95rem; }
.footer-lead { font-weight: 600; }
.legal { font-size: 0.85rem; color: var(--muted); max-width: 52rem; }
