/* Larkspun Studio
   Palette: larkspur purple-blues on a near-white page, with a warm flax neutral.
   Type: Young Serif (display) + Hanken Grotesk (text). */

:root {
  --paper: #fcfbf9;
  --flax: #ece5da;
  --flax-line: #d8cdbc;
  --mist: #f0f0f8;
  --mist-line: #dcdcee;
  --ink: #23213a;
  --ink-soft: #545269;
  --lark: #4f5597;
  --lark-deep: #2f3268;
  --bloom-1: #4f5597;
  --bloom-2: #7a7ebf;
  --bloom-3: #a8abd6;
  --eye: #c29a48;

  --serif: 'Young Serif', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Major-third scale on a 17px base */
  --s-1: 0.85rem;
  --s0: 1.0625rem;
  --s1: 1.33rem;
  --s2: 1.66rem;
  --s3: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  --s4: clamp(2.5rem, 1.5rem + 4.4vw, 4.4rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(3.5rem, 2rem + 6vw, 7rem);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--s0);
  line-height: 1.6;
  font-feature-settings: 'ss01';
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--s4); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: var(--s3); }
h3 { font-size: var(--s1); line-height: 1.25; }

p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }

a { color: var(--lark-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--lark); text-decoration-thickness: 2px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--lark-deep); color: #fff; padding: 0.6rem 1rem; border-radius: 4px;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
/* Narrow content stays left-aligned with the header and breadcrumbs. */
.narrow > * { max-width: 46rem; }

.muted { color: var(--ink-soft); font-size: var(--s-1); }
.lede { font-size: var(--s1); line-height: 1.5; color: var(--ink-soft); max-width: 40ch; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  background: var(--lark-deep); color: #fff;
  font: 600 1rem/1.2 var(--sans);
  border: 2px solid var(--lark-deep); border-radius: 4px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--lark); border-color: var(--lark); color: #fff; }
.btn-ghost { background: transparent; color: var(--lark-deep); }
.btn-ghost:hover { background: var(--mist); color: var(--lark-deep); border-color: var(--lark-deep); }
.btn-small { min-height: 2.5rem; padding: 0.45rem 0.95rem; font-size: 0.95rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }

.text-link { font-weight: 600; }

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--mist-line); background: var(--paper); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--ink); }
.mark { width: 1.6rem; color: var(--lark-deep); }
.mark .mark-petals { fill: var(--bloom-2); }
.brand-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; letter-spacing: -0.01em; }
.brand-studio { font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-soft); margin-left: 0.4rem; }

.nav { order: 3; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 0.5rem 0.1rem; display: block; }
.nav-list a:hover { color: var(--lark); }
.nav-list a[aria-current] { color: var(--lark-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

.nav-wide { display: none; }

.nav-menu summary {
  list-style: none; cursor: pointer;
  min-height: 2.5rem; padding: 0.45rem 0.9rem;
  border: 1px solid var(--mist-line); border-radius: 4px;
  font-weight: 600; color: var(--ink);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--mist); }
.nav-menu .nav-list {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--mist-line);
  padding: 0.5rem var(--gutter) 1rem;
  box-shadow: 0 16px 24px -16px rgba(47, 50, 104, 0.25);
}
.nav-menu .nav-list a { padding: 0.75rem 0; border-bottom: 1px solid var(--mist); font-size: 1.1rem; }

.header-cta { order: 2; }

@media (max-width: 400px) {
  .header-cta { display: none; }
}

@media (min-width: 62rem) {
  .nav { order: 0; }
  .nav-menu { display: none; }
  .nav-wide { display: flex; gap: 1.4rem; }
  .header-cta { order: 0; }
}

/* ---------- Breadcrumbs ---------- */

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 1.1rem 0 0; font-size: var(--s-1); }
.crumbs li + li::before { content: '/'; color: var(--flax-line); margin-right: 0.5rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs a[aria-current] { color: var(--ink); }

/* ---------- Hero ---------- */

.hero { padding: clamp(2.5rem, 1rem + 5vw, 5rem) 0 var(--space); overflow: hidden; }
.hero-grid { display: grid; gap: 1rem; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 1.25rem; }
.hero-towns { margin-top: 1.5rem; font-size: var(--s-1); color: var(--ink-soft); }
.hero-visual { margin: -0.5rem -1rem -2.5rem auto; width: min(80%, 17rem); }

@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 3rem; }
  .hero-visual { width: 100%; max-width: 30rem; margin: -2rem 0 -3rem; }
}

.hero-art .thread { stroke: var(--lark-deep); }
.hero-art .t1 { fill: var(--bloom-1); }
.hero-art .t2 { fill: var(--bloom-2); }
.hero-art .t3 { fill: var(--bloom-3); }
.hero-art .floret-eye { fill: var(--eye); }
.hero-art .bud { fill: var(--bloom-3); }
.hero-art .floret, .hero-art .bud { transform-box: fill-box; transform-origin: center; }

/* The one orchestrated moment: the thread draws itself, then the flower blooms bottom to top. */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .thread { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.45,.05,.3,1) 0.15s forwards; }
  .hero-art .floret, .hero-art .bud { opacity: 0; transform: scale(0.4); animation: bloom 0.55s cubic-bezier(.2,.8,.3,1.2) forwards; }
  .hero-art .floret:nth-child(1) { animation-delay: 1.05s; }
  .hero-art .floret:nth-child(2) { animation-delay: 1.15s; }
  .hero-art .floret:nth-child(3) { animation-delay: 1.25s; }
  .hero-art .floret:nth-child(4) { animation-delay: 1.35s; }
  .hero-art .floret:nth-child(5) { animation-delay: 1.45s; }
  .hero-art .floret:nth-child(6) { animation-delay: 1.55s; }
  .hero-art .floret:nth-child(7) { animation-delay: 1.65s; }
  .hero-art .floret:nth-child(8) { animation-delay: 1.75s; }
  .hero-art .floret:nth-child(9) { animation-delay: 1.85s; }
  .hero-art .bud { animation-delay: 1.95s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bloom { to { opacity: 1; transform: scale(1); } }

/* ---------- Sections ---------- */

.section { padding: var(--space) 0; }
.section.alt, .service-block.alt { background: var(--mist); }
.section-head { display: grid; gap: 0.5rem 3rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); }
@media (min-width: 56rem) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; }
}
.section-title { margin-bottom: 2rem; }

.thread-rule { width: 100%; height: 24px; color: var(--mist-line); }

.page-hero { padding: clamp(2rem, 1rem + 4vw, 4.5rem) 0 clamp(1rem, 0.5rem + 2vw, 2rem); }
.page-hero .lede { margin-top: 1rem; }
.page-hero-tall { padding-bottom: var(--space); min-height: 50vh; }

.split { display: grid; gap: 2rem; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
}

.trio { display: grid; gap: 2rem; }
.trio p { color: var(--ink-soft); margin: 0; }
@media (min-width: 48rem) { .trio { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 0.7rem 0 0.7rem 1.9rem; border-top: 1px solid var(--mist-line); }
.check-list li:last-child { border-bottom: 1px solid var(--mist-line); }
.check-list li::before {
  content: ''; position: absolute; left: 0.2rem; top: 1.05rem;
  width: 0.85rem; height: 0.5rem;
  border-left: 2px solid var(--lark); border-bottom: 2px solid var(--lark);
  transform: rotate(-45deg);
}

/* ---------- Home: AI answer illustration ---------- */

.shift { background: var(--lark-deep); color: #eceefa; }
.shift h2 { color: #fff; }
.shift p { color: #d5d7ee; }
.shift a { color: #fff; }
.shift :focus-visible { outline-color: #fff; }
.shift-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .shift-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.answer-demo { margin: 0; }
.answer-card { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 1.25rem; box-shadow: 0 30px 60px -30px rgba(10, 10, 40, 0.6); }
.answer-q {
  margin: 0 0 1rem auto; max-width: 85%; width: fit-content;
  background: var(--mist); color: var(--ink);
  padding: 0.7rem 1rem; border-radius: 16px 16px 4px 16px;
}
.shift .answer-q { color: var(--ink); }
.answer-a { font-size: 0.98rem; }
.shift .answer-a p { margin-bottom: 0.5rem; color: var(--ink); }
.answer-a ol { margin: 0; padding-left: 1.3rem; }
.answer-a li { margin: 0.35rem 0; }
.answer-you { background: linear-gradient(transparent 55%, rgba(194, 154, 72, 0.35) 55%); }
.answer-dim { color: #6b697f; }
.answer-demo figcaption { margin-top: 0.9rem; font-size: var(--s-1); color: #c3c6e6; }

/* ---------- Home: services ---------- */

.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 3rem; }
@media (min-width: 48rem) { .service-list { grid-template-columns: 1fr 1fr; } }
.service-item { padding: 1.75rem 0; border-top: 1px solid var(--flax-line); }
.service-item h3 { font-size: var(--s2); margin-bottom: 0.4rem; }
.service-item h3 a { color: var(--ink); text-decoration: none; }
.service-item h3 a:hover { color: var(--lark-deep); text-decoration: underline; text-decoration-thickness: 2px; }
.service-item p { color: var(--ink-soft); margin: 0; }

/* ---------- Steps (a real sequence, so numbered) ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; } }
@media (min-width: 66rem) { .steps:not(.steps-wide) { grid-template-columns: repeat(4, 1fr); } .steps-wide { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font: 400 2.4rem/1 var(--serif); color: var(--lark);
}
.steps li::after { content: ''; position: absolute; top: 1.25rem; left: 2.4rem; right: 0; border-top: 1px dashed var(--mist-line); }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ---------- Pricing ---------- */

.pricing-teaser { background: var(--flax); }
.teaser-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .teaser-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.teaser-prices { margin: 0; display: grid; gap: 1rem; }
.teaser-prices div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; padding: 1.1rem 0; border-top: 1px solid var(--flax-line); }
.teaser-prices div:last-child { border-bottom: 1px solid var(--flax-line); }
.teaser-prices dt { font-weight: 600; }
.teaser-prices dd { margin: 0; color: var(--ink-soft); }

.price { font: 400 2.25rem/1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.price-quote { font: 400 1.5rem/1.2 var(--serif); color: var(--ink); }
.plan-unit { color: var(--ink-soft); }

.audit-feature { background: var(--flax); }
.audit-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .audit-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.audit-feature .check-list li { border-color: var(--flax-line); }
.plan-price { margin: 0 0 0.6rem; }

.plans { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan {
  display: flex; flex-direction: column;
  padding: 1.75rem 1.5rem; border: 1px solid var(--mist-line); border-radius: 12px; background: var(--paper);
}
.plan h3 { font-size: var(--s2); margin-bottom: 0.75rem; }
.plan-monthly { font-weight: 600; color: var(--lark-deep); margin: 0 0 0.75rem; }
.plan-blurb { color: var(--ink-soft); }
.plan .check-list { margin: 0.5rem 0 1.75rem; flex: 1; }
.plan .btn { align-self: flex-start; }
.plan-featured { border: 2px solid var(--lark-deep); background: var(--mist); }

.notes { margin: 2rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); font-size: var(--s-1); }

/* ---------- Work ---------- */

.work-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .work-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.work-img {
  aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(79, 85, 151, 0.06) 14px 15px),
    var(--mist);
  display: grid; place-items: center;
}
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-placeholder { width: 3.5rem; color: var(--lark); }
.work-placeholder .mark-petals { fill: var(--bloom-3); }
.work-body { padding-top: 1rem; }
.work-type { font-size: var(--s-1); color: var(--ink-soft); margin-bottom: 0.25rem; }
.work-title { font-size: var(--s2); margin-bottom: 0.5rem; }

/* ---------- Testimonials ---------- */

.quote { margin: 0; max-width: 48rem; padding-left: 1.5rem; border-left: 3px solid var(--lark); }
.quote p { font: 400 var(--s2)/1.35 var(--serif); color: var(--ink); max-width: none; }
.quote footer { color: var(--ink-soft); }

/* ---------- About ---------- */

.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; } }
.about-photo { aspect-ratio: 4 / 5; border-radius: 10px; background: var(--flax); display: grid; place-items: center; max-width: 24rem; }
.about-mark { width: 4.5rem; color: var(--lark-deep); }
.about-mark .mark-petals { fill: var(--bloom-2); }
.name-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--flax-line); color: var(--ink-soft); font-style: italic; }

/* ---------- FAQ ---------- */

.faq-item { padding: 1.5rem 0; border-top: 1px solid var(--mist-line); }
.faq-item:last-child { border-bottom: 1px solid var(--mist-line); }
.faq-q { font-size: var(--s1); margin-bottom: 0.5rem; }
.faq-a { margin: 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact-section { padding-top: 1rem; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; } }
.audit-box { background: var(--flax); border-radius: 12px; padding: 1.75rem 1.5rem; margin-bottom: 2.5rem; }
.audit-box h2 { font-size: var(--s2); }
.audit-box .muted { margin: 1rem 0 0; }
.contact-h { font-size: var(--s1); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 0.4rem 0; }

.contact-form h2 { font-size: var(--s2); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #8f8da3; border-radius: 4px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--lark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 1rem; }

/* ---------- Prose ---------- */

.prose h2 { font-size: var(--s2); margin-top: 2.25rem; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--flax); padding: clamp(3rem, 2rem + 4vw, 5rem) 0; }
.cta-band-inner { display: grid; gap: 1.5rem; align-items: center; }
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { color: var(--ink-soft); margin: 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 56rem) { .cta-band-inner { grid-template-columns: 1.3fr 1fr; gap: 3rem; } .cta-band-actions { justify-content: flex-end; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--lark-deep); color: #d5d7ee; padding: 4rem 0 1.5rem; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.brand-footer, .brand-footer:hover { color: #fff; margin-bottom: 1rem; }
.brand-footer .mark { color: #fff; }
.brand-footer .mark-petals { fill: var(--bloom-3); }
.brand-footer .brand-studio { color: #c3c6e6; }
.footer-head { font: 600 0.95rem/1.4 var(--sans); color: #fff; margin-bottom: 0.75rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 0.25rem 0; }
.footer-base { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.footer-base p { margin: 0; font-size: var(--s-1); color: #c3c6e6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
