:root {
  --ink: #202427;
  --paper: #f5f3ee;
  --muted: #565852;
  --line: #c8c4ba;
  --accent: #d7f36b;
  --accent-ink: #66701e;
  --wrap: 68rem;
  --radius: 2px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

a { color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---- header -------------------------------------------------------------------------------- */

.site-nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 5;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.nav-brand { font-weight: 800; letter-spacing: -.03em; text-decoration: none; font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { text-decoration: underline; }

/* ---- buttons ------------------------------------------------------------------------------- */

.ai1-button, .button {
  display: inline-block; padding: .85rem 1.1rem;
  background: var(--accent); color: var(--ink);
  text-decoration: none; font-weight: 700; border: 1px solid var(--ink); border-radius: var(--radius);
  cursor: pointer; font-size: 1rem;
}
.button.dark { background: var(--ink); color: var(--paper); }
.button.primary { background: var(--accent); color: var(--ink); }

/* ---- shared section classes (the section library drops into these) ------------------------- */

section { padding: clamp(3rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

.eyebrow, .ai1-kicker {
  font: 700 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); margin: 0 0 .6rem;
}

h1, h2, h3 { letter-spacing: -.04em; line-height: 1.05; margin: 0 0 .6rem; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -.06em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; }

.section-head { display: grid; gap: 1rem; margin-bottom: 2rem; }
.section-intro, .ai1-lede { max-width: 34rem; color: var(--muted); font-size: 1.1rem; }

.ai1-hero { padding: clamp(4rem, 10vw, 8rem) 0; }
.ai1-hero h1 { max-width: 14ch; margin: .7rem 0; }
.ai1-hero .ai1-button { margin-top: 1.5rem; }

/* services / pricing grids */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fffefb; }
.card p { margin: .4rem 0 0; color: var(--muted); }

/* gallery */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }

/* testimonials */
.quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.quote { border-left: 3px solid var(--accent); padding: .25rem 0 .25rem 1rem; margin: 0; }
.quote footer { font-size: .9rem; color: var(--muted); margin-top: .5rem; }

/* contact */
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.contact-item strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); }
.contact-item a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* footer */
.site-footer { padding: 2rem 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; }

@media (max-width: 40rem) {
  .nav-links { gap: .75rem; }
  .nav-links a { font-size: .9rem; }
}
