/* aiforsmallbusinessconsultant.com — design system. Mood: patina (warm material, Main Street).
   One dominant surface (paper/umber), one accent (awning orange). Fraunces display + Instrument Sans body. */
:root {
  --paper: #f4efe6;
  --paper-2: #ece5d8;
  --paper-3: #e3dacb;
  --paper-4: #d8cdbb;
  --ink: #1e1a16;
  --ink-2: #3a332c;
  --ink-3: #6b6156;
  --line: #cfc3b1;
  --accent: #a94512;
  --accent-ink: #f9efe6;
  --accent-soft: #f2d9c9;
  --moss: #3f6b5c;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --shadow: 0 1px 0 rgba(30,26,22,.06), 0 12px 32px -18px rgba(30,26,22,.35);
  --radius: 6px;
  --measure: 66ch;
  --gutter: 16px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161210; --paper-2: #1c1714; --paper-3: #231d19; --paper-4: #2a231e;
    --ink: #efe6d8; --ink-2: #d9cdbb; --ink-3: #a3968a; --line: #3b322b;
    --accent: #e9814f; --accent-ink: #1a110c; --accent-soft: #3a2418; --moss: #7fb3a0;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 16px 40px -20px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  --paper: #161210; --paper-2: #1c1714; --paper-3: #231d19; --paper-4: #2a231e;
  --ink: #efe6d8; --ink-2: #d9cdbb; --ink-3: #a3968a; --line: #3b322b;
  --accent: #e9814f; --accent-ink: #1a110c; --accent-soft: #3a2418; --moss: #7fb3a0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem); line-height: 1.6;
  position: relative; min-height: 100vh;
}
body::before { content: ""; position: fixed; inset: 0; background: var(--grain); pointer-events: none; z-index: 0; opacity: .8; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: .25; } }
body > * { position: relative; z-index: 1; }

h1, h2, h3, .display { font-family: var(--font-display); font-variation-settings: "opsz" 144; letter-spacing: -0.02em; line-height: 1.02; margin: 0 0 .5em; font-weight: 300; }
h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.4rem); }
h1 strong, h2 strong, .display strong { font-weight: 700; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
strong { font-weight: 700; }
small, .small { font-size: .88rem; color: var(--ink-3); }
.eyebrow { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin: 0 0 1.2rem; display: flex; gap: .7rem; align-items: center; }
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: var(--accent); display: inline-block; }
.lede { font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.measure { max-width: var(--measure); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: var(--gutter); }

.wrap { width: min(100% - 2*var(--gutter), 1180px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2*var(--gutter), 820px); margin-inline: auto; }
section { padding-block: clamp(3.5rem, 6vw, 7rem); }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink h2, .band-ink p { color: inherit; }
.band-ink .eyebrow { color: var(--paper-4); }
.band-accent { background: var(--accent); color: var(--accent-ink); }
.band-accent a { color: inherit; text-decoration-color: currentColor; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.nav .logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.nav .logo svg { height: 38px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; align-items: center; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .8rem; color: var(--ink); font: inherit; font-weight: 700; }
@media (max-width: 760px) {
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.4rem; gap: 1rem; box-shadow: var(--shadow); }
  .nav[data-open="true"] ul { display: flex; }
  .nav .menu-toggle { display: inline-block; }
  header { position: relative; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .8rem 1.35rem; border-radius: var(--radius); border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink) !important; font-weight: 700; text-decoration: none; letter-spacing: .01em; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); box-shadow: 0 8px 22px -12px rgba(169,69,18,.7); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(169,69,18,.8); }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--paper) !important; }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.7rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin-top: 1.6rem; }
.btn-row .small { flex-basis: 100%; }

/* hero */
.hero { padding-block: clamp(3rem, 7vw, 7.5rem) clamp(3rem, 6vw, 6rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem 4rem; align-items: end; }
.hero h1 { animation: rise .55s var(--ease) both; }
.hero .lede { animation: rise .55s .06s var(--ease) both; }
.hero .btn-row { animation: rise .55s .12s var(--ease) both; }
.hero-side { border-left: 2px solid var(--accent); padding-left: 1.4rem; align-self: end; }
.hero-side .stat { font-family: var(--font-display); font-size: clamp(3.5rem, 2rem + 6vw, 7rem); font-weight: 300; line-height: .9; letter-spacing: -.04em; }
.hero-side .stat strong { font-weight: 700; color: var(--accent); }
.hero-side p { max-width: 34ch; margin-top: .6rem; color: var(--ink-2); }
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-side { border-left: 0; border-top: 2px solid var(--accent); padding: 1.2rem 0 0; } }

/* grids and cards */
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-2 { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .8; }
.card h3 { margin-top: .2rem; }
.card p { margin-bottom: .4rem; }
.card a.more { font-weight: 700; text-decoration: none; }
.card a.more::after { content: " →"; }
.card-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 300; color: var(--accent); line-height: 1; letter-spacing: -.03em; }
.industry-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .6rem .9rem; }
.industry-list a { display: block; padding: .95rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; background: var(--paper-2); transition: border-color .2s, transform .2s var(--ease); }
.industry-list a:hover { border-color: var(--accent); transform: translateX(3px); }
.industry-list a span { display: block; font-weight: 400; color: var(--ink-3); font-size: .85rem; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.steps li { position: relative; padding-left: 4.2rem; max-width: 60ch; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -.2rem; font-family: var(--font-display); font-size: 2.4rem; font-weight: 300; color: var(--accent); letter-spacing: -.03em; }
.steps h3 { margin-bottom: .3rem; }

/* prose */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 1.6rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--accent); color: var(--ink-2); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.4rem 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6rem .5rem; text-align: left; vertical-align: top; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose code { background: var(--paper-3); padding: .1em .35em; border-radius: 4px; font-size: .92em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

/* faq */
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; max-width: var(--measure); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 .2rem; color: var(--ink-2); }

/* forms */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form label { font-weight: 700; font-size: .95rem; display: grid; gap: .35rem; }
.form input, .form select, .form textarea { font: inherit; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); min-height: 48px; width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form .status { min-height: 1.4em; font-weight: 700; }
.form .status[data-state="error"] { color: var(--accent); }
.form .status[data-state="ok"] { color: var(--moss); }
.contact-strip { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.contact-strip a { font-weight: 700; font-size: 1.15rem; text-decoration: none; }

/* blog */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6rem; }
.post-list li { border-top: 1px solid var(--line); padding-top: 1.2rem; display: grid; grid-template-columns: 9rem 1fr; gap: 1rem 2rem; }
.post-list time { color: var(--ink-3); font-size: .9rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.post-list h3 { margin: 0 0 .3rem; }
.post-list h3 a { text-decoration: none; }
.post-list h3 a:hover { color: var(--accent); }
@media (max-width: 640px) { .post-list li { grid-template-columns: 1fr; gap: .3rem; } }
.byline { color: var(--ink-3); font-size: .92rem; display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.disclaimer { font-size: .9rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; max-width: var(--measure); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; margin-top: 3rem; background: var(--paper-2); }
footer .cols { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
footer h4, footer .foot-h { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .8rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .legal { margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; color: var(--ink-3); font-size: .85rem; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .cols { grid-template-columns: 1fr; } }

.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.preview-banner { background: var(--moss); color: #fff; text-align: center; font-size: .85rem; padding: .4rem var(--gutter); }

.band-ink .card-num { color: #e9895c; }
