/* KenTaylor.ai — brand guide v3 "Warm Operator". Tokens only; no new colors or fonts. */
@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --field: #F5F0E8;      /* stone-100 page */
  --paper: #FFFCFA;      /* stone-0 cards */
  --sunken: #EDE8DF;     /* stone-150 wells */
  --line: #E5DFD6;       /* stone-200 */
  --line-strong: #CCC6BD;/* stone-300 */
  --ink: #1C1A18;        /* stone-900 */
  --text-2: #514C47;     /* stone-700 */
  --text-3: #6E6861;     /* stone-600 */
  --mute: #A39E96;       /* stone-400, decoration only */
  --coral: #C45C3E;      /* coral-500: .ai, focus, shapes */
  --action: #A94B31;     /* coral-600: buttons, links */
  --action-text: #FFFCFA;
  --hover: #FEF3EE;      /* coral-50 */
  --inverse-bg: #1C1A18;
  --inverse-text: #F5F0E8;
  --inverse-2: #CCC6BD;
  --inverse-link: #E9896B; /* coral-400 on ink, 6.82:1 */
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --field: #1C1A18;
    --paper: #24211F;
    --sunken: #2E2A27;
    --line: #3A3632;
    --line-strong: #3A3632;
    --ink: #F5F0E8;
    --text-2: #CCC6BD;
    --text-3: #A39E96;
    --action: #E9896B;
    --action-text: #1C1A18;
    --hover: #2E2A27;
    --inverse-bg: #2E2A27;
    --inverse-text: #F5F0E8;
    --inverse-2: #CCC6BD;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: none;
  font-variation-settings: "opsz" 14;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--action); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 8px;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark-tile .tile { fill: #1C1A18; stroke: #1C1A18; }
.mark-tile .tile-k { fill: #F5F0E8; }
.dot { fill: var(--coral); }
@media (prefers-color-scheme: dark) { .mark-tile .tile { stroke: #F5F0E8; } }
.wordmark { font-weight: 700; font-size: 18px; line-height: 24px; }
.wordmark .ai { color: var(--coral); }
.wordmark.small { font-size: 16px; }
.top-link { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.top-link:hover { color: var(--action); }
@media (max-width: 479px) { .top-link { display: none; } }

/* Hero */
.hero { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 72px; align-items: center; }
@media (min-width: 820px) { .hero { grid-template-columns: 1fr 240px; gap: 64px; padding-top: 80px; padding-bottom: 96px; } }
h1 { font-size: 48px; line-height: 54px; font-weight: 700; }
@media (min-width: 720px) { h1 { font-size: 72px; line-height: 76px; } }
.lead { margin-top: 20px; font-size: 20px; line-height: 30px; color: var(--ink); max-width: 34em; }
@media (min-width: 720px) { .lead { font-size: 24px; line-height: 34px; } }
.sub { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--text-3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink);
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  transition: background-color 120ms var(--ease), border-color 120ms var(--ease);
}
.btn-primary { background: var(--action); border-color: var(--action); color: var(--action-text); }
@media (hover: hover) {
  .btn:hover { background: var(--hover); }
  .btn-primary:hover { background: #8E3D28; border-color: #8E3D28; }
}
@media (hover: hover) and (prefers-color-scheme: dark) {
  .btn-primary:hover { background: #F8AE94; border-color: #F8AE94; }
}
.photo-slot { justify-self: start; width: 160px; height: 160px; }
@media (min-width: 820px) { .photo-slot { justify-self: end; width: 240px; height: 240px; } }
.mark-ring { width: 100%; height: 100%; display: block; }
.mark-ring .ring { fill: var(--paper); stroke: var(--ink); }
.mark-ring .ring-k { fill: var(--ink); }
.photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1.75px solid var(--ink); }

/* Sections */
section + section { margin-top: 0; }
.story, .built, .how { padding-bottom: 72px; }
h2 { font-size: 32px; line-height: 40px; font-weight: 700; }
.story { display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 48px; }
@media (min-width: 820px) { .story { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.story-body p { font-size: 18px; line-height: 28px; color: var(--text-2); }
.story-body p + p { margin-top: 16px; }

.built { border-top: 1px solid var(--line); padding-top: 48px; }
.cards { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; gap: 20px; } }
.card {
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px;
  padding: 20px 24px 24px;
}
.card-cap {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-3);
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
h3 { font-size: 24px; line-height: 32px; font-weight: 600; }
.card p { margin-top: 8px; color: var(--text-2); }
.card .proof { margin-top: 16px; color: var(--ink); }
.num { font-weight: 700; font-variant-numeric: tabular-nums; }

.how { border-top: 1px solid var(--line); padding-top: 48px; }
.well { margin-top: 20px; background: var(--sunken); border-radius: 12px; padding: 24px; max-width: 46em; }
.well p { font-size: 18px; line-height: 28px; }

.contact { padding-bottom: 48px; }
.ink-block { background: var(--inverse-bg); color: var(--inverse-text); border-radius: 16px; padding: 40px 28px; }
@media (min-width: 720px) { .ink-block { padding: 56px; } }
.ink-block p { margin-top: 12px; color: var(--inverse-2); font-size: 18px; line-height: 28px; max-width: 36em; }
.ink-block .contact-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 12px; font-weight: 600; color: var(--inverse-2); }
.ink-block a { color: var(--inverse-link); word-break: break-word; }
.ink-block a:focus-visible { outline-color: var(--inverse-link); }

.foot { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 40px; color: var(--text-3); font-size: 14px; line-height: 20px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
