/* ──────────────────────────────────────────────────────────────────
   Cook Impact Software — corporate site
   Deliberately distinct from Hawser (which is dark / teal / playful /
   app-like).  This is the PARENT COMPANY: light, editorial, calm —
   a serif display face + a deep-indigo accent on warm paper, the look
   of a small, serious software studio.
   Shared by every page; nav + footer are duplicated per-page (static
   site, no build step) but all styling lives here.
   ────────────────────────────────────────────────────────────────── */

:root {
  --paper:      #FBFAF8;
  --surface:    #FFFFFF;
  --ink:        #17181B;
  --ink-2:      #4C515A;
  --muted:      #8A9099;
  --line:       #E8E4DD;
  --line-soft:  #F0EDE7;
  --accent:     #34357A;   /* deep indigo — NOT Hawser's teal */
  --accent-2:   #5B5CC4;   /* lighter indigo for links/hover  */
  --accent-soft:rgba(52, 53, 122, 0.06);
  --radius:     14px;
  --maxw:       1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Typography ─────────────────────────────────────────────────── */
.display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.08;
}
h1.display { font-size: clamp(40px, 6.5vw, 68px); margin: 0 0 22px; }
h2.display { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
h3.display { font-size: 22px; margin: 0 0 8px; font-weight: 600; }
.lede {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 0 36px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 18px;
}

/* ── Layout ─────────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 72px 0; }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ── Nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.wordmark .dot {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent);
  display: inline-block;
  position: relative; flex: none;
}
.wordmark .dot::after {
  content: ""; position: absolute; inset: 6px;
  border-radius: 2px; background: var(--paper);
}
.wordmark .wm-text { font-weight: 600; font-size: 15.5px; letter-spacing: -0.2px; }
.wordmark .wm-text .light { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-size: 14.5px;
  font-weight: 500; transition: color 120ms ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
@media (max-width: 600px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13.5px; }
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 10px;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(23,24,27,0.12);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Cards / products ───────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-decoration: none; color: inherit;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(52,53,122,0.10);
}
.product-card .tag {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.product-card p { color: var(--ink-2); font-size: 15px; margin: 0 0 20px; }
.product-card .go { color: var(--accent); font-weight: 600; font-size: 14.5px; margin-top: auto; }
.product-card.soon { opacity: 0.7; }
.product-card.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* ── Principles ─────────────────────────────────────────────────── */
.principle h3 { font-size: 17px; margin: 0 0 6px; font-weight: 650; }
.principle p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.principle .num {
  font-family: 'Fraunces', serif; font-size: 24px; color: var(--accent);
  display: block; margin-bottom: 10px;
}

/* ── Prose (about / contact) ────────────────────────────────────── */
.prose { max-width: 640px; }
.prose p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 18px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-2); font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 36px 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: var(--muted); font-size: 13px;
}
.foot-inner a { color: var(--ink-2); text-decoration: none; }
.foot-inner a:hover { color: var(--accent-2); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
