/* kelsrl.com: the company's page (../src/render.js). SharePlate's warm
   paper and its orange, so the company and its product read as one. */

:root {
  color-scheme: light dark;
  --bg: #fffaf6;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #eadfd6;
  --card: #ffffff;
  --accent: #e85a2a;
  /* The orange for text and the button: #e85a2a under white text is below
     the 4.5:1 contrast small text needs. */
  --accent-ink: #b83d12;
  --on-accent: #ffffff;
  --glow: rgba(232, 90, 42, 0.42);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f;
    --ink: #f5f0eb;
    --muted: #b3aaa2;
    --line: #2e2722;
    --card: #1d1916;
    --accent: #ff7a4d;
    --accent-ink: #ff9a75;
    --on-accent: #1c1917;
    --glow: rgba(255, 122, 77, 0.22);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 28px 0;
}

.mark {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.mark span { color: var(--accent); padding: 0 1px; }

.langs { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--ink); text-decoration: underline; }
.langs a[aria-current] { color: var(--ink); font-weight: 650; }

/* ── The opening ────────────────────────────────────────────────────── */

.hero { max-width: 780px; padding: 72px 0 56px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7.4vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 660px;
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.55;
  color: var(--muted);
}

/* ── SharePlate ─────────────────────────────────────────────────────── */

.product {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 34px 70px -42px var(--glow), 0 2px 8px rgba(17, 24, 39, 0.05);
}
.product img { display: block; width: 240px; height: auto; }

.label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tagline { margin: 0 0 22px; font-size: 21px; line-height: 1.45; text-wrap: pretty; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent-ink);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* ── What we do, contacts ───────────────────────────────────────────── */

.what, .contacts { padding-top: 80px; }

h2 { margin: 0 0 22px; font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cards li {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.cards h3 { margin: 0 0 8px; font-size: 18px; }
.cards p { margin: 0; font-size: 16px; color: var(--muted); }

.contacts dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contacts dt { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.contacts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

/* ── Footer: the company line ───────────────────────────────────────── */

footer {
  margin-top: 96px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
footer p { margin: 0 0 10px; }
.company { color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.links a { color: var(--muted); }

/* ── Narrow screens ─────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .cards, .contacts dl { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 40px; }
  .product { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .product img { width: 190px; }
  .what, .contacts { padding-top: 60px; }
  footer { margin-top: 72px; }
}
