/* Annapolis Intelligence: site styles.
   Layout: one calm page, copy left and the State House in light dashes right; quiet sections below.
   Palette: Night Harbor. Navy-black page, soft white text, dock-light gold used sparingly. */
:root {
  --bg: #10161d;
  --bg-2: #161f28;          /* booking band */
  --fg: #e7e8e6;
  --fg-2: #a3acb4;          /* secondary text */
  --rule: rgba(231, 232, 230, 0.14);
  --gold: #e0b44a;          /* labels, one underline, the dome's brightest marks */
  --mark: #dfe3e4;          /* hero dashes */
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 3px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 20px; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.005em; }
p { text-wrap: pretty; }
a { color: inherit; }
ul, ol { list-style: none; }

.wrap {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

.label, .eyebrow { font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block; padding: 0.8em 1.3em; border-radius: var(--radius);
  background: var(--fg); color: var(--bg);
  font: 600 0.95rem/1 var(--body); text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #ffffff; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.text-link { font-weight: 500; text-underline-offset: 5px; text-decoration-color: var(--rule); }
.text-link:hover { text-decoration-color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }

/* Header */
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.mark { font: 600 1.1rem/1 var(--display); text-decoration: none; white-space: nowrap; }
.mark .initials { font: 500 0.75rem/1 var(--mono); color: var(--gold); margin-left: 3px; vertical-align: 0.15em; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.top nav a:not(.btn) { text-decoration: none; color: var(--fg-2); }
.top nav a:not(.btn):hover { color: var(--fg); }
.top .btn { padding: 0.65em 1.1em; }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center;
  padding-block: 40px 96px;
}
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.5rem, 4.8vw, 4.2rem); letter-spacing: -0.03em; margin-bottom: 26px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 84%, rgba(224, 180, 74, 0.75) 84%, rgba(224, 180, 74, 0.75) 93%, transparent 93%); }
.lede { font-size: 1.15rem; color: var(--fg-2); max-width: 34rem; }
.lede + .lede { margin-top: 12px; color: var(--fg); }
.hero-art { width: 100%; max-width: 520px; justify-self: end; }
.hero-art canvas { display: block; width: 100%; max-width: 100%; aspect-ratio: 4 / 5; touch-action: pan-y; }
.hero-art figcaption { font: 400 0.75rem/1.4 var(--mono); color: var(--fg-2); text-align: center; margin-top: 8px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 16px 64px; }
  .hero-art { justify-self: center; max-width: 440px; }
}

/* Sections share one rhythm */
.services, .examples, .how, .about, .faq { padding-block: 80px; border-top: 1px solid var(--rule); }
@media (max-width: 860px) { .services, .examples, .how, .about, .faq { padding-block: 56px; } }
.section-lede { color: var(--fg-2); max-width: 38rem; margin-top: -8px; margin-bottom: 40px; }

/* What I do */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; margin-top: 12px; }
.col .col-lede { font-size: 1.15rem; margin: 10px 0 18px; max-width: 30rem; }
.col li { padding: 12px 0; border-top: 1px solid var(--rule); color: var(--fg-2); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

/* Examples */
.ex-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.ex h3 { margin: 8px 0 16px; font-size: 1.45rem; }
.ex dl { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 10px 14px; }
.ex dt { font: 400 0.75rem/1.9 var(--mono); color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.04em; }
.ex dd { color: var(--fg-2); }
.ex dd.keep { color: var(--fg); font-weight: 500; }
@media (max-width: 760px) { .ex-list { grid-template-columns: 1fr; gap: 44px; } }

/* How it works: a real sequence, so it's numbered */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; margin-top: 12px; }
.steps li { counter-increment: step; border-top: 1px solid var(--fg); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font: 500 0.8rem/1 var(--mono); color: var(--gold); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--fg-2); font-size: 1rem; }
.steps strong { color: var(--fg); font-weight: 600; }
.area { margin-top: 48px; font: 400 0.82rem/1.7 var(--mono); color: var(--fg-2); max-width: 62rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 56px; }
.about-copy p { font-size: 1.1rem; max-width: 40rem; }
.about-copy p + p { margin-top: 14px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* FAQ */
.faq > * { max-width: 860px; }
.faq details { border-top: 1px solid var(--rule); padding: 16px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { font: 500 1.2rem/1.35 var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--gold); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; max-width: 40rem; color: var(--fg-2); }

/* Booking band: what happens on the call (left), the live calendar on a light card (right) */
.book { background: var(--bg-2); padding-block: 88px; }
.book-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: start; }
.book .label { margin-bottom: 14px; }
.book h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.book-copy > p { color: var(--fg-2); font-size: 1.15rem; max-width: 30rem; }
.book-steps { counter-reset: s; display: grid; gap: 16px; margin: 32px 0; max-width: 30rem; }
.book-steps li { counter-increment: s; position: relative; padding-left: 2rem; color: var(--fg-2); }
.book-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; font: 500 0.8rem/1.9 var(--mono); color: var(--gold); }
.book-steps strong { color: var(--fg); font-weight: 600; }
.book .or { color: var(--fg-2); font-size: 0.95rem; overflow-wrap: anywhere; }
.book-cal { background: #ffffff; border-radius: 10px; overflow: hidden; min-height: 640px; }
.calendly-inline-widget { width: 100%; min-width: 280px; height: 640px; }
.calendly-inline-widget iframe { display: block; }
@media (max-width: 960px) {
  .book { padding-block: 64px; }
  .book-inner { grid-template-columns: 1fr; }
  .book-steps { margin-bottom: 8px; }
}
@media (max-width: 600px) { .book-cal, .calendly-inline-widget { min-height: 600px; height: 760px; } }

/* Footer */
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 28px 56px; font-size: 0.9rem; color: var(--fg-2); }
.mark.small { font-size: 1rem; color: var(--fg); }

/* Plain text pages (privacy, 404) */
.page { max-width: 720px; padding-block: 48px 96px; }
.page h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 24px; }
.page h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.page p { color: var(--fg-2); }
.page p + p { margin-top: 12px; }
