/* ============================================================
   Sutton Apps — shared styles
   Palette: ink & paper authority with a single legal-blue accent.
   Type: Fraunces (display serif, legal-typesetting feel) +
         Inter (modern sans for body/UI clarity).
   ============================================================ */

:root {
  --ink:        #14161b;   /* near-black, primary text */
  --ink-soft:   #3a3f4a;   /* secondary text */
  --paper:      #faf8f3;   /* warm paper background */
  --paper-pure: #ffffff;
  --rule:       #e2ddd2;   /* hairline rules, like a ruled brief */
  --accent:     #1f4e79;   /* legal/seal blue */
  --accent-deep:#16395a;
  --accent-soft:#eaf0f6;
  --gold:       #9a7b3f;   /* a restrained seal-gold, used sparingly */
  --maxw:       1080px;
  --radius:     6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,243,0.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.brand .mark {
  width: 22px; height: 22px; flex: none;
}
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a {
  color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
}
.nav__links a:hover { color: var(--accent); text-decoration: none; }
.nav__cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600;
}
.nav__cta:hover { background: var(--accent-deep); text-decoration: none !important; }

/* ---------- eyebrow / section labels ---------- */
.eyebrow {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- hero ---------- */
.hero { padding: 92px 0 64px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  max-width: 14ch;
}
.hero .lede {
  font-size: 1.22rem; color: var(--ink-soft);
  max-width: 52ch; margin-top: 22px;
}
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.98rem; cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- generic section ---------- */
.section { padding: 72px 0; }
.section--tint { background: var(--paper-pure); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 20ch; }
.section .intro { color: var(--ink-soft); max-width: 56ch; margin-top: 16px; font-size: 1.08rem; }

/* ---------- card grid ---------- */
.grid { display: grid; gap: 24px; margin-top: 44px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .num {
  font-family: 'Fraunces', serif; font-size: 0.8rem; color: var(--gold);
  font-weight: 600; letter-spacing: 0.1em;
}

/* ---------- founders ---------- */
.founder { display: flex; gap: 22px; align-items: flex-start; }
.founder .initials {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 600;
}
.founder h3 { font-size: 1.3rem; }
.founder .role { color: var(--gold); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.04em; margin: 2px 0 10px; }
.founder p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--rule);
  padding: 48px 0 56px; margin-top: 24px;
  background: var(--paper-pure);
}
.foot__grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.foot__brand { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.1rem; }
.foot small { color: var(--ink-soft); display: block; margin-top: 8px; max-width: 40ch; font-size: 0.86rem; }
.foot__links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot__links h4 { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.foot__links a { display: block; color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 8px; }
.foot__links a:hover { color: var(--accent); text-decoration: none; }
.foot__legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.82rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hero { padding: 64px 0 48px; }
}

/* ---------- accessibility ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
