/* ==========================================================================
   Fuchs & Associates — styles.css
   Palette: "Spruce & Brass" — cool paper, green-black ink, spruce accent,
   brass hairlines. Type: Iowan Old Style serif display / Avenir sans body.
   No external assets. Light + dark via prefers-color-scheme tokens.
   ========================================================================== */

:root {
  /* Color tokens — light */
  --paper: #f6f7f5;
  --surface: #ffffff;
  --ink: #1c2422;
  --muted: #556059;
  --accent: #29594b;
  --accent-strong: #1e4437;
  --accent-ink: #f2f5f2;      /* text on accent surfaces */
  --brass: #8a6d33;
  --brass-soft: #b09659;
  --line: #dfe3de;
  --line-strong: #c4cbc4;
  --tint-ok: #e7efe9;
  --tint-warn: #f4ecdd;
  --band: #1e352d;            /* CTA band background, both themes */
  --band-ink: #eef2ec;
  --band-muted: #b9c6bc;
  --shadow: 0 1px 2px rgb(28 36 34 / 0.05), 0 8px 24px rgb(28 36 34 / 0.06);

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, Seravek, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131917;
    --surface: #1a211e;
    --ink: #e6eae4;
    --muted: #9daaa1;
    --accent: #8ec4ab;
    --accent-strong: #a8d4bf;
    --accent-ink: #10201a;
    --brass: #c8a45e;
    --brass-soft: #a3854c;
    --line: #2a332e;
    --line-strong: #3b463f;
    --tint-ok: #1c2e25;
    --tint-warn: #2e2718;
    --band: #1a2b24;
    --band-ink: #e8eee7;
    --band-muted: #a7b5aa;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--brass-soft);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

::selection {
  background: var(--brass-soft);
  color: #171310;
}

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

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

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--brass);
  flex: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 0;
  color: var(--accent-ink);
}

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

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

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand .amp {
  font-style: italic;
  color: var(--brass);
}

.brand:hover {
  color: var(--accent);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(1.1rem, 3vw, 2rem);
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

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

.hero {
  padding-block: clamp(4rem, 11vw, 8rem) clamp(3.5rem, 9vw, 6.5rem);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  max-width: 21ch;
  margin-bottom: 0.5em;
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 52ch;
}

.hero em,
h1 em {
  font-style: italic;
  color: var(--brass);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
   Approach (two-column prose)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 820px) {
  .split {
    grid-template-columns: minmax(14rem, 1fr) 2fr;
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}

.split h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.prose {
  max-width: 62ch;
}

.prose .lead {
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   Founder
   -------------------------------------------------------------------------- */

.founder {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 820px) {
  .founder {
    grid-template-columns: minmax(16rem, 2fr) 3fr;
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}

.founder-photo {
  position: relative;
  /* leave room for the offset brass frame (::after) so it never overflows */
  margin-right: 0.9rem;
  margin-bottom: 0.9rem;
}

.founder-photo img {
  width: 100%;
  border-radius: 4px;
  filter: grayscale(1);
}

.founder-photo::after {
  content: "";
  position: absolute;
  inset: 0.9rem -0.9rem -0.9rem 0.9rem;
  border: 1px solid var(--brass-soft);
  border-radius: 4px;
  z-index: -1;
}

.founder h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.founder-name {
  font-weight: 600;
}

.founder-facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
}

.founder-facts li {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 1rem;
  margin-right: 1rem;
  border-right: 1px solid var(--line-strong);
}

.founder-facts li:last-child {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

/* --------------------------------------------------------------------------
   Services grid
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 150ms ease, transform 150ms ease;
}

.service-card:hover {
  border-color: var(--brass-soft);
  transform: translateY(-2px);
}

.service-card figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: transform 300ms ease;
}

.service-card:hover img {
  transform: scale(1.03);
}

.service-card .card-body {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem 1.3rem;
}

.service-card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass);
  flex: none;
}

.service-card h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0;
}

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

.cta-band {
  background: var(--band);
  color: var(--band-ink);
  padding-block: clamp(3.5rem, 9vw, 6rem);
}

.cta-band h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  color: var(--band-ink);
}

.cta-band p {
  color: var(--band-muted);
  max-width: 56ch;
}

.cta-band .btn-primary {
  margin-top: 1.5rem;
  background: var(--band-ink);
  border-color: var(--band-ink);
  color: var(--band);
}

.cta-band .btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
}

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

.contact-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 3fr 2fr;
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  transition: border-color 120ms ease;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .contact-form .btn {
    width: auto;
  }
}

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  font-size: 0.98rem;
}

.form-status[hidden] {
  display: none;
}

.form-status.ok {
  background: var(--tint-ok);
  border-color: var(--accent);
}

.form-status.error {
  background: var(--tint-warn);
  border-color: var(--brass);
}

.form-status a {
  font-weight: 600;
}

.noscript-note {
  display: block;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 4px;
  border: 1px solid var(--brass);
  background: var(--tint-warn);
}

/* Next-steps card */
.contact-direct h2 {
  font-size: 1.35rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-footer .brand {
  font-size: 1.1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer .fineprint {
  flex-basis: 100%;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}
