/* Kardi brand, 2026-11-13. Light only. Every page links this file.
   Plum for headings and the logo, ember for the one action, a lavender panel the photo fades into.
   Contrast, worked out by script (design brief, projects/client-ops/design-briefs/kardi.md):
     plum on white 14.42, on panel 10.16, on wash 13.19
     ink on white 14.08, on panel 9.92, on wash 12.88
     ink-2 on white 6.96, on panel 4.91, on wash 6.37
     white on ember 4.66, on ember-dark 5.54
     ember TEXT only on pure white (4.66). On the panel 3.38 and on the wash 4.26 both fail.
     ember-bright #D66E29 is for the logo heart and focus rings only, never text (3.43). */

:root{
  --plum:#3D1951;
  --ember:#B95919;
  --ember-dark:#A84F14;
  --ember-bright:#D66E29;
  --ink:#2E2A31;
  --ink-2:#5E566A;
  --panel:#D9D7E5;
  --wash:#F6F4F8;
  --wash-2:#EDE8F2;
  --line:#E7E4EC;
  --field:#8C8497;
  --bad:#B3261E;
  --good:#2F6B3F;
  --sans:"Jost",system-ui,-apple-system,"Segoe UI",sans-serif;
  --r:18px;
  --max:1200px;
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#FFFFFF;color:var(--ink);font:400 18px/1.55 var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg{max-width:100%}
a{color:var(--plum)}
a:hover{color:var(--ember)}
h1,h2,h3,h4{font-family:var(--sans);font-weight:700;color:var(--plum);letter-spacing:-.01em;line-height:1.12;margin:0}
p{margin:0}
:focus-visible{outline:3px solid var(--ember-bright);outline-offset:2px;border-radius:4px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

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

/* Header */
.site-header{background:#FFFFFF;border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;padding-bottom:16px}
.lockup{display:inline-flex;align-items:center;text-decoration:none}
.lockup img{display:block;height:40px;width:auto}
.site-nav{display:flex;flex-wrap:wrap;align-items:center;gap:28px;font-size:18px;font-weight:500}
.site-nav a{text-decoration:none}
.site-nav a[aria-current="page"]{color:var(--ember)}
@media (max-width:700px){.site-nav .wide{display:none}.lockup img{height:34px}}
/* On a phone the header button would wrap the header onto two rows; the page's own first
   screen carries the same button, so the header keeps the logo and Sign in only. */
@media (max-width:520px){.site-nav .btn{display:none}}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 28px;border:0;border-radius:999px;background:var(--ember);color:#FFFFFF;font:600 18px/1.2 var(--sans);text-decoration:none;cursor:pointer}
.btn:hover{background:var(--ember-dark);color:#FFFFFF}
.btn-sm{min-height:46px;padding:0 22px;font-size:17px}
.btn-ghost{background:transparent;color:var(--plum);box-shadow:inset 0 0 0 2px var(--plum)}
.btn-ghost:hover{background:var(--plum);color:#FFFFFF}
.btn[disabled],.btn[aria-disabled="true"]{opacity:.6;cursor:default}
.btn-block{display:flex;width:100%}

/* Small text. Nothing on the site goes under 15px. */
.fine{font-size:15px;color:var(--ink-2)}
.muted{color:var(--ink-2)}

/* Hero: a photo that fades into the panel, copy on the faded side */
.hero{background:var(--panel);display:flex;flex-wrap:wrap;align-items:stretch}
.hero-photo{flex:1 1 560px;min-height:620px;position:relative;overflow:hidden}
.hero-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:30% center;
  -webkit-mask-image:linear-gradient(to right,#000 55%,transparent 100%);mask-image:linear-gradient(to right,#000 55%,transparent 100%)}
.hero-copy{flex:1 1 520px;min-width:0;padding:72px 64px 72px 24px;display:flex;flex-direction:column;justify-content:center}
@media (max-width:960px){
  .hero-photo{flex-basis:100%;min-height:300px}
  .hero-photo img{-webkit-mask-image:linear-gradient(to bottom,#000 60%,transparent 100%);mask-image:linear-gradient(to bottom,#000 60%,transparent 100%)}
  .hero-copy{padding:4px 20px 48px}
}

/* Display lettering, outlined from Century Gothic Bold. The lines are CSS masks so they take
   the text color. Put the real words in an .sr-only span inside the heading. */
.display{color:var(--plum);font-size:62px;line-height:0}
.display .line{display:block;background:currentColor;-webkit-mask:no-repeat left center/contain;mask:no-repeat left center/contain}
.display .h1-1{width:calc(1337.184em/200);aspect-ratio:1337.184/191.602;-webkit-mask-image:url(/assets/type-h1-1.svg);mask-image:url(/assets/type-h1-1.svg)}
.display .h1-2{width:calc(1330.152em/200);aspect-ratio:1330.152/186.133;-webkit-mask-image:url(/assets/type-h1-2.svg);mask-image:url(/assets/type-h1-2.svg);margin-top:.14em}
.display .kardia{width:calc(651.27em/200);aspect-ratio:651.27/198.926;-webkit-mask-image:url(/assets/type-kardia.svg);mask-image:url(/assets/type-kardia.svg)}
@media (max-width:960px){.display{font-size:48px}}
@media (max-width:420px){.display{font-size:40px}}

/* The text boxes beside the photo */
.facts{display:flex;flex-wrap:wrap;gap:28px 36px;margin-top:44px;max-width:600px}
.fact{flex:1 1 240px;display:flex;flex-direction:column;gap:10px;font-weight:600;font-size:18px;line-height:1.4;color:var(--ink)}
.fact svg{width:40px;height:40px;flex:none}

/* Sections and cards */
.section{padding:88px 0}
.section-wash{background:var(--wash)}
.section h2{font-size:42px;margin:0 0 32px}
@media (max-width:640px){.section{padding:56px 0}.section h2{font-size:32px}}
.cards{display:flex;flex-wrap:wrap;gap:24px}
.card{flex:1 1 440px;min-width:0;background:#FFFFFF;border:1px solid var(--line);border-radius:var(--r);padding:28px 32px}
.card h3{font-size:24px;margin:8px 0 14px}
.label{font-weight:600;font-size:16px;color:var(--plum)}
.label-ember{color:var(--ember)}
sup.cite{color:var(--ember);font-weight:700;font-size:15px;line-height:0}
.sources{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);font-size:15px;color:var(--ink-2);display:flex;flex-direction:column;gap:4px}
.sources b{color:var(--ember)}

/* Tables */
.table-box{overflow-x:auto}
table.plain{width:100%;border-collapse:collapse;font-size:18px}
table.plain th{text-align:left;font-weight:600;color:var(--plum);padding:12px 16px 12px 0;border-bottom:2px solid var(--plum)}
table.plain td{padding:14px 16px 14px 0;border-bottom:1px solid var(--line);vertical-align:top}
table.plain td:first-child{font-weight:600;color:var(--plum);white-space:nowrap}

/* Forms: a label and an empty box (references/form-standards.md) */
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.field label{font-weight:600;font-size:16px;color:var(--ink)}
input[type=text],input[type=email],input[type=password],input[type=search],input[type=tel],input[type=number],select,textarea{
  width:100%;min-height:52px;padding:12px 14px;font:400 18px/1.4 var(--sans);color:var(--ink);background:#FFFFFF;border:1.5px solid var(--field);border-radius:12px}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(61,25,81,.22);outline-offset:0;border-color:var(--plum)}
.msg-bad{color:var(--bad);font-weight:600}
.msg-good{color:var(--good);font-weight:600}

/* Long-form pages (Terms, Privacy, About) */
.prose{max-width:760px}
.prose h1{font-size:48px;margin:0 0 12px}
.prose h2{font-size:28px;margin:48px 0 12px}
.prose h3{font-size:22px;margin:32px 0 10px}
.prose p,.prose li{font-size:18px;line-height:1.65}
.prose p+p{margin-top:16px}
.prose ul,.prose ol{padding-left:22px;margin:12px 0}
.prose li+li{margin-top:8px}
.prose table{width:100%;border-collapse:collapse;margin:20px 0;font-size:17px}
.prose th{text-align:left;font-weight:600;color:var(--plum);padding:10px 12px 10px 0;border-bottom:2px solid var(--plum);vertical-align:bottom}
.prose td{padding:12px 12px 12px 0;border-bottom:1px solid var(--line);vertical-align:top}
@media (max-width:640px){.prose h1{font-size:36px}}

/* Footer */
.site-footer{border-top:1px solid var(--line)}
.site-footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding-top:28px;padding-bottom:40px;font-size:15px;color:var(--ink-2)}
.site-footer nav{display:flex;flex-wrap:wrap;gap:24px}
.site-footer a{color:var(--ink-2)}
.site-footer a:hover{color:var(--plum)}
