/* Mike Charlie Research — shared styles */
:root {
  --ink: #1f3440;        /* brand slate-teal */
  --ink-deep: #152630;
  --paper: #edf0f0;
  --paper-2: #e1e7e8;
  --ochre: #b08444;      /* decorative / large text only */
  --ochre-text: #7e5a21; /* AA on paper */
  --text: #1c2429;
  --muted: #56666e;
  --line: #c9d2d4;
  --on-ink: #eceae3;
  --on-ink-muted: #a9b6bb;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ochre-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 66ch; }

/* ---------- header ---------- */
.site-head { background: var(--ink-deep); color: var(--on-ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--on-ink); text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.75rem); font-size: .95rem; }
.nav a { color: var(--on-ink-muted); text-decoration: none; }
.nav a:hover { color: var(--on-ink); }
.nav .lang { color: var(--on-ink); border: 1px solid #3c5563; padding: .2rem .6rem; border-radius: 3px; }
@media (max-width: 760px) { .nav .opt { display: none; } }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lede { font-size: 1.15rem; color: var(--on-ink); margin-top: 1.5rem; max-width: 46ch; }
.hero .sub { color: var(--on-ink-muted); max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 2rem; }
.btn { display: inline-block; background: var(--ochre); color: #1a1409; font-weight: 600; text-decoration: none; padding: .85rem 1.35rem; border-radius: 3px; }
.btn:hover { background: #c4985a; }
.cta-row .alt { color: var(--on-ink); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* pedigree chart */
.tree { width: 100%; }
.tree .br { fill: none; stroke: #7f96a0; stroke-width: 1.4; }
.tree .slip rect { fill: #243f4c; stroke: #3f5a67; }
.tree .slip.you rect { fill: var(--ochre); stroke: var(--ochre); }
.tree .slip text { font-family: var(--sans); font-size: 12.5px; fill: var(--on-ink); }
.tree .slip text.y { fill: var(--on-ink-muted); font-size: 11px; }
.tree .slip.you text { fill: #1a1409; font-weight: 600; }
.tree .slip.unknown rect { fill: none; stroke-dasharray: 3 3; }
.tree .slip.unknown text { fill: var(--on-ink-muted); }
@media (prefers-reduced-motion: no-preference) {
  .tree .br { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.1s ease-out forwards; }
  .tree .slip { opacity: 0; animation: show .5s ease-out forwards; }
  .tree .g1 { animation-delay: .1s; }
  .tree .g2 { animation-delay: .7s; }
  .tree .g3 { animation-delay: 1.3s; }
  .tree .g4 { animation-delay: 1.9s; }
  .tree .g5 { animation-delay: 2.5s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes show { to { opacity: 1; } }
}
.tree-cap { font-size: .85rem; color: var(--on-ink-muted); margin: .75rem 0 0; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(1.5rem, 5vw, 5rem); }
.split > header p { color: var(--muted); margin-top: 1rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2.5rem; }
.services li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.services h3 { margin-bottom: .5rem; }
.services p { color: #37454c; margin: 0; }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

.plain { margin: 0; padding-left: 1.2rem; }
.plain li { margin: .35rem 0; max-width: 62ch; }
.plain li::marker { color: var(--ochre); }

/* small line icons in place of bullets; the icon says what kind of list it is */
.plain.ico { list-style: none; padding-left: 0; }
.plain.ico li { position: relative; padding-left: 1.75rem; }
.plain.ico li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem;
  background: var(--ochre);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.plain.search { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6.3'/%3E%3Cpath d='M14.8 14.8l5.4 5.4'/%3E%3C/svg%3E"); }
.plain.yes { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.plain.no { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7.5 7.5l9 9M16.5 7.5l-9 9'/%3E%3C/svg%3E"); }
.plain.no li::before { background: var(--muted); }

/* process: a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--ochre); grid-row: span 2; }
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: #37454c; }

.band { background: var(--paper-2); }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; margin: 0 0 1.5rem; max-width: 40ch; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.two h3 { margin-bottom: .6rem; }
@media (max-width: 620px) { .two { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ochre-text); font-family: var(--sans); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .75rem 0 0; color: #37454c; }

/* ---------- contact ---------- */
.contact { background: var(--ink-deep); color: var(--on-ink); }
.contact h2 { color: #fff; }
.contact a { color: #e0bb83; }
.contact .mail { font-family: var(--serif); font-size: clamp(1.4rem, 3.6vw, 2.2rem); display: inline-block; margin: .5rem 0 1rem; word-break: break-all; }
.contact .plain li::marker { color: var(--ochre); }
.contact .muted { color: var(--on-ink-muted); }

.site-foot { background: var(--ink-deep); color: var(--on-ink-muted); font-size: .9rem; border-top: 1px solid #2a4150; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.site-foot a { color: var(--on-ink-muted); }
