/* Kessler Consulting LLC — placeholder site */

:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --ink-soft: #46536a;
  --line: #e2ddd2;
  --accent: #b8662f;        /* copper */
  --accent-ink: #ffffff;
  --accent-soft: #f6e7db;
  --hero-bg: #0f1b2d;
  --hero-ink: #f4f1ea;
  --hero-soft: #b9c3d3;
  --tow-a: #b8662f;
  --tow-b: #d9a77d;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1420;
    --bg-alt: #111a29;
    --surface: #162133;
    --ink: #eef0f4;
    --ink-soft: #a8b3c4;
    --line: #243147;
    --accent: #e08a4f;
    --accent-ink: #1a0f06;
    --accent-soft: #2a1d14;
    --hero-bg: #08101b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1420;
  --bg-alt: #111a29;
  --surface: #162133;
  --ink: #eef0f4;
  --ink-soft: #a8b3c4;
  --line: #243147;
  --accent: #e08a4f;
  --accent-ink: #1a0f06;
  --accent-soft: #2a1d14;
  --hero-bg: #08101b;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--hero-bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--hero-ink); text-decoration: none;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
}
.brand em { font-style: normal; font-weight: 400; color: var(--hero-soft); }
.brand-mark { width: 28px; height: 28px; }
.tow-h { fill: var(--tow-a); }
.tow-v { fill: var(--tow-b); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--hero-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { color: var(--hero-ink); background: rgb(255 255 255 / 0.06); }
@media (max-width: 560px) {
  .site-nav { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-bg); color: var(--hero-ink);
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
}
.weave {
  position: absolute; inset: 0;
  /* plain-weave tows: alternating horizontal / vertical bundles */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23d9a77d' stroke-width='1'%3E%3Crect x='2' y='2' width='24' height='24' rx='5'/%3E%3Crect x='30' y='30' width='24' height='24' rx='5'/%3E%3Cpath d='M6 9h16M6 14h16M6 19h16M37 34v16M42 34v16M47 34v16'/%3E%3C/g%3E%3Cg fill='none' stroke='%23b8662f' stroke-width='1'%3E%3Crect x='30' y='2' width='24' height='24' rx='5'/%3E%3Crect x='2' y='30' width='24' height='24' rx='5'/%3E%3Cpath d='M37 6v16M42 6v16M47 6v16M6 37h16M6 42h16M6 47h16'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
  opacity: 0.22;
  transform: rotate(-8deg) scale(1.3);
  mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
}
.hero-inner { position: relative; max-width: 1120px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); max-width: 16ch; margin-bottom: 0.4em; }
.hero .eyebrow { color: var(--tow-b); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--hero-soft); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.notice {
  display: inline-block; margin-top: 40px; margin-bottom: 0;
  font-size: 0.85rem; color: var(--hero-soft);
  border: 1px dashed rgb(255 255 255 / 0.25); border-radius: 999px; padding: 4px 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn-ghost { color: var(--hero-ink); border: 1px solid rgb(255 255 255 / 0.28); }
.btn-ghost:hover { border-color: rgb(255 255 255 / 0.6); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }

.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  position: relative;
}
.card::before {
  content: ""; position: absolute; left: 26px; top: 0; width: 36px; height: 3px;
  background: var(--accent); border-radius: 0 0 3px 3px;
}
.card p { color: var(--ink-soft); margin: 0; }

/* About */
.about { display: grid; gap: 56px; grid-template-columns: 1.25fr 1fr; align-items: start; }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; gap: 40px; } }
.about-text p { color: var(--ink-soft); max-width: 62ch; }
.links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 1.5em; }
.links a { font-weight: 600; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; display: grid; gap: 2px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--bg-alt); border: 2px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); }
.when { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.what { font-weight: 600; line-height: 1.4; }
.where { color: var(--ink-soft); font-size: 0.95rem; }

/* Credentials */
.stats {
  display: grid; gap: 1px; margin: 0 0 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stats > div { background: var(--surface); padding: 26px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.stats dt { color: var(--ink-soft); font-size: 0.95rem; }
.stats dd { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 2.9rem); font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }

.honors ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.honors li { position: relative; padding-left: 22px; color: var(--ink-soft); }
.honors li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}

/* Footer */
.site-footer { background: var(--hero-bg); color: var(--hero-soft); padding: 32px 0; font-size: 0.88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer-inner p { margin: 0; }
.disclaimer { max-width: 60ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
