/* Finance Forward Advisory
   Black and white layout. Brand color appears in two places only:
   the hero accent rule and links/focus states (brand blue). */

:root {
  --ink: #0b0f14;
  --paper: #ffffff;
  --muted: #4b5563;
  --line: #e5e7eb;
  --field: #6b7280;
  --green: #16a34a;
  --blue: #2563eb;
  --purple: #7c3aed;
  --green-text: #15803d;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;

  --r1: 4px;
  --r2: 8px;
  --r3: 16px;

  --max: 1040px;
  --gutter: 16px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: break-word;
}

p { margin: 0; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  padding: var(--s2) var(--s4);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r2);
  z-index: 10;
}
.skip-link:focus { top: var(--s4); }

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

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.label {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--muted);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}

/* Clear space around the logo is at least the cap height of the F
   (about 6% of the logo width), so the link carries 12 px of padding. */
.logo {
  display: inline-block;
  padding: var(--s3);
  margin-left: calc(var(--s3) * -1 + var(--s1));
}
.logo img { width: 152px; }

@media (min-width: 768px) {
  .logo img { width: 176px; }
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: var(--s1) 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

@media (max-width: 599px) {
  .site-nav { width: 100%; padding-bottom: var(--s2); }
}

/* Sections */

.section {
  padding: var(--s8) 0;
}
.section + .section { border-top: 1px solid var(--line); }

@media (min-width: 768px) {
  .section { padding: calc(var(--s8) * 1.5) 0; }
}

[id] { scroll-margin-top: var(--s5); }

.section-head {
  display: grid;
  gap: var(--s4);
  margin-bottom: var(--s7);
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
}

/* Hero */

.hero {
  padding: var(--s8) 0;
}

@media (min-width: 768px) {
  .hero { padding: calc(var(--s8) * 2) 0; }
}

.hero h1 {
  font-size: clamp(2.25rem, 7vw, 4rem);
  max-width: 14ch;
  margin-top: var(--s5);
}

.hero .lede { margin-top: var(--s5); }

.hero .button { margin-top: var(--s6); }

.accent-rule {
  display: flex;
  gap: var(--s1);
  width: 72px;
  height: 4px;
}
.accent-rule span { flex: 1; border-radius: var(--r1); }
.accent-rule span:nth-child(1) { background: var(--green); }
.accent-rule span:nth-child(2) { background: var(--blue); }
.accent-rule span:nth-child(3) { background: var(--purple); }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border: 1px solid var(--ink);
  border-radius: var(--r2);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--paper); color: var(--ink); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Services */

.services {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.service {
  display: grid;
  gap: var(--s3);
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--line);
}

.service h3 { font-size: 1.375rem; }
.service p { color: var(--muted); max-width: 32rem; }

@media (min-width: 768px) {
  .services { grid-template-columns: 1fr 1fr; column-gap: var(--s7); }
  .service { padding: var(--s7) 0; }
}

/* About */

.about-teaser {
  display: grid;
  gap: var(--s5);
  max-width: 40rem;
}
.about-teaser h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }

.text-link {
  color: var(--ink);
  font-weight: 700;
}
.text-link:hover { color: var(--blue); }

.placeholder {
  color: var(--muted);
}

.about-page {
  display: grid;
  gap: var(--s7);
}

@media (min-width: 768px) {
  .about-page { grid-template-columns: 280px 1fr; gap: var(--s8); align-items: start; }
}

.headshot {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r3);
  background: var(--line);
}

.prose {
  display: grid;
  gap: var(--s5);
  max-width: 38rem;
}
.prose h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
.prose h2 { font-size: 1.375rem; margin-top: var(--s5); }

/* Form */

.form {
  display: grid;
  gap: var(--s5);
  max-width: 44rem;
}

.form-row {
  display: grid;
  gap: var(--s5);
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field {
  display: grid;
  gap: var(--s2);
  min-width: 0;
}

.field label {
  font-size: 0.9375rem;
}
.field .optional { color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--field);
  border-radius: var(--r2);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--s7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B0F14' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s4) center;
}

.field textarea { min-height: 144px; resize: vertical; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--ink);
}

.honeypot { display: none; }

.form-error {
  color: #b91c1c;
}

.form-thanks {
  display: grid;
  gap: var(--s3);
  max-width: 44rem;
  padding: var(--s6);
  border: 1px solid var(--ink);
  border-radius: var(--r3);
}
.form-thanks h3 { font-size: 1.5rem; }
.form-thanks p { color: var(--muted); }

/* Keep the hidden attribute working on elements given a display value above. */
[hidden] { display: none !important; }

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s7) 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}

.site-footer .logo img { width: 160px; }

.site-footer p {
  font-size: 0.875rem;
  color: #d1d5db;
}
