/*
 * The Theme Kit in Lumen's look. The kit (themes/_shared/assets/css/kit.css) draws every block the theme has no
 * template for, and every module section; this file sets its tokens and the look of its parts, linked after kit.css,
 * so the values here win.
 *
 * The look: light and layered. A tinted section is not a band across the window but a large rounded panel of soft light
 * set a little in from its edges; a dark or pictured section is a panel too. Cards are white sheets with a fine edge, a
 * highlight along the top and a long soft shadow, so they stand off the page; a picture inside a card sits in its own
 * rounded frame, like a screen in its bezel. Headings are very large and set tight. Buttons are pills: the main one
 * solid, the second a pane of glass. Icons stand on small rounded tiles of the accent's light. The accent colour is
 * used sparingly: small labels, a point of light, a link.
 *
 * Rules for this file: it loads nothing, no picture, font or address of any kind (the kit inlines it into module
 * previews; kit_components.test.php fails for one, and also for these words written in a comment);
 * colours only through the palette tokens the kit already reads (--text-primary, --surface, --primary, ...) or
 * color-mix() of them, and the theme's shadow colour --lumen-ink with its fallback; weights only through the layout's
 * --lumen-heading-weight and --lumen-body-strong.
 *
 * --kit-radius and --kit-button-radius are repeated in this theme's line of the shared button table
 * (themes/_shared/assets/css/resilience.css, --chrome-radius and --chrome-button-radius) so the cookie notice and the
 * phone action bar match the theme's own cards and buttons: theme-chrome.test.mjs compares the two. Change both.
 */

.kit-root {
  --kit-radius: 1.5rem;
  --kit-radius-sm: 0.875rem;
  --kit-button-radius: 999px;
  --kit-input-radius: 0.875rem;
  --kit-chip-radius: 999px;
  --kit-media-radius: 1.25rem;
  --kit-heading-weight: var(--lumen-heading-weight, 600);
  --kit-heading-tracking: -0.028em;
  --kit-button-weight: var(--lumen-body-strong, 600);
  --kit-button-transform: none;
  --kit-eyebrow-tracking: 0.01em;
  --kit-focus: var(--accent-ink, #2f4fd6);
  --kit-star: var(--accent-ink, #2f4fd6);
  --kit-card-pad: clamp(1.5rem, 1.15rem + 1.1vw, 2.25rem);
  --kit-gap-medium: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  --kit-gap-large: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  --kit-gutter: clamp(1rem, 4vw, 2.5rem);
  --kit-width-normal: 74rem;
  --kit-width-narrow: 46rem;
  --kit-pad-normal: clamp(4rem, 2.75rem + 5.5vw, 8.5rem);
  --kit-pad-compact: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  --kit-pad-spacious: clamp(5rem, 3rem + 8vw, 11rem);
  --kit-measure: 62ch;
  --kit-speed: 240ms;
  --kit-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --lumen-kit-shine: var(--lumen-shine, rgb(255 255 255 / 0.7));
  --kit-shadow:
    inset 0 1px 0 var(--lumen-kit-shine),
    0 1px 1px color-mix(in srgb, var(--lumen-ink, #0b0d12) 4%, transparent),
    0 6px 14px -8px color-mix(in srgb, var(--lumen-ink, #0b0d12) 12%, transparent),
    0 24px 48px -28px color-mix(in srgb, var(--lumen-ink, #0b0d12) 22%, transparent);
  --kit-shadow-hover:
    inset 0 1px 0 var(--lumen-kit-shine),
    0 2px 4px color-mix(in srgb, var(--lumen-ink, #0b0d12) 5%, transparent),
    0 16px 30px -16px color-mix(in srgb, var(--lumen-ink, #0b0d12) 20%, transparent),
    0 48px 80px -40px color-mix(in srgb, var(--lumen-ink, #0b0d12) 34%, transparent);
}

/* ------------------------------------------------------------------ Sections: panels of light */

/* A tinted section is a large rounded panel, set in from the window's edges, lit from above: its colour fades towards
   the page's at its foot. A dark (inverse), accent or pictured section is a panel of the same shape. On a very wide
   window the panel stops short of the edges, like a lit table rather than a stripe. */
.kit-section:is(.kit-section--muted, .kit-section--inverse, .kit-section--accent, .kit-section--image) {
  margin: calc(var(--lumen-edge, 0.75rem) / 2) var(--lumen-edge, 0.75rem);
  overflow: clip;
  border-radius: var(--lumen-radius-lg, 2rem);
}

/* A slideshow opening (hero_slider) is a pictured panel of the same shape. */
.kit-root > .kit-slideshow {
  margin: calc(var(--lumen-edge, 0.75rem) / 2) var(--lumen-edge, 0.75rem);
  overflow: clip;
  border-radius: var(--lumen-radius-lg, 2rem);
}

@media (min-width: 92rem) {
  .kit-root > .kit-slideshow,
  .kit-section:is(.kit-section--muted, .kit-section--inverse, .kit-section--accent, .kit-section--image) {
    max-width: 88rem;
    margin-inline: auto;
  }
}

.kit-section--muted {
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--surface, #ffffff) 55%, transparent), transparent 80%),
    linear-gradient(180deg, var(--kit-surface-alt), color-mix(in srgb, var(--kit-surface-alt) 55%, var(--background, #fafafc)));
  box-shadow: inset 0 1px 0 var(--lumen-kit-shine), inset 0 0 0 1px color-mix(in srgb, var(--text-primary, #16171b) 4%, transparent);
}

/* The dark panel: the brand colour, lit from its upper corner by the accent's glow. */
.kit-section--inverse {
  background-image: radial-gradient(55% 80% at 100% 0%, color-mix(in srgb, var(--accent, #3a5cf0) 28%, transparent), transparent 70%);
}

/* ------------------------------------------------------------------ Type */

/* Headings: very large, calm and set tight. Sizes are chosen for ordinary words at 320 px (a word of fourteen letters
   fits a section heading inside a panel there); the shared script is only the net for a longer one
   (cms/THEME_DEVELOPMENT.md, rule 1). A line height under about 1.1 cuts marks only in a box that clips; these boxes do
   not. */
.kit-heading {
  font-family: var(--font-heading, sans-serif);
  line-height: 1.12;
  text-wrap: balance;
}

.kit-heading--1 {
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem);
  letter-spacing: var(--lumen-track-display, -0.03em);
  line-height: 1.08;
}

.kit-heading--2 {
  font-size: clamp(1.875rem, 1.25rem + 2.6vw, 3.5rem);
  letter-spacing: var(--lumen-track-display, -0.028em);
  line-height: 1.08;
}

/* A heading beside a picture or a second column (text_with_image, two_column_text, about_section) has half the page:
   a step smaller, so a sentence-long heading keeps to three lines. */
.kit-split .kit-heading--2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  letter-spacing: var(--lumen-track-display, -0.028em);
  line-height: 1.12;
}

.kit-heading--3 {
  font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  letter-spacing: var(--lumen-track-title, -0.02em);
  line-height: 1.25;
}

.kit-heading--4 {
  font-size: 1.125rem;
  letter-spacing: -0.012em;
}

.kit-heading.kit-heading--long {
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* A section's heading group: the heading, then its lead line a little apart, in the muted colour. */
.kit-heading-group + .kit-text--lead,
.kit-heading-group + .kit-text-block.kit-text--lead {
  margin-top: 0.25rem;
}

.kit-text--lead {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
}

.kit-text--lead:not(.kit-text--muted) {
  color: var(--kit-muted);
}

/* Small labels: the accent's readable shade in the body face, a little larger than usual and in normal case, so long
   Lithuanian words stay short. */
.kit-eyebrow,
.kit-card__eyebrow {
  color: var(--kit-accent-text);
  font-size: 0.875rem;
  font-weight: var(--lumen-body-strong, 600);
  letter-spacing: var(--kit-eyebrow-tracking);
  line-height: 1.4;
  text-transform: none;
}

.kit-link {
  color: var(--kit-accent-text);
  font-weight: var(--lumen-body-strong, 600);
  text-decoration: none;
}

.kit-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.kit-rich-text a {
  color: var(--kit-accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.kit-rich-text a:hover {
  text-decoration-thickness: 2px;
}

/* ------------------------------------------------------------------ Buttons */

/* Pills. The main button is solid with a faint highlight along its top and a soft shadow under it; the second is a pane
   of glass with a fine edge in the words' colour. Both read on any band: their colours follow the section's own roles. */
.kit-button {
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.kit-button--primary {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--kit-on-primary) 16%, transparent), 0 10px 24px -14px color-mix(in srgb, var(--lumen-ink, #0b0d12) 55%, transparent);
}

.kit-button--primary:hover {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--kit-on-primary) 16%, transparent), 0 16px 30px -14px color-mix(in srgb, var(--lumen-ink, #0b0d12) 65%, transparent);
}

.kit-button--secondary {
  border-color: color-mix(in srgb, var(--kit-text) 18%, transparent);
  background: color-mix(in srgb, var(--kit-surface) 70%, transparent);
  color: var(--kit-text);
  box-shadow: inset 0 1px 0 var(--lumen-kit-shine);
}

.kit-button--secondary:hover {
  border-color: color-mix(in srgb, var(--kit-text) 36%, transparent);
  background: var(--kit-surface);
  color: var(--kit-text);
}

/* A small button (a row of review links, Next under a list of posts) is still 40 px tall: the kit's own 36 px is under
   what a thumb needs on a phone (verify-theme-stress.mjs, button-small). */
.kit-button--small {
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
}

.kit-button--ghost:hover {
  background: color-mix(in srgb, var(--kit-text) 6%, transparent);
}

.kit-button-group {
  gap: 0.75rem;
}

/* ------------------------------------------------------------------ Cards */

/* A white sheet with a fine edge and real depth. On a tinted panel it stands clear of the light; on the page its shadow
   carries it. A linked card rises a little under the pointer. */
.kit-card--surface {
  border-color: color-mix(in srgb, var(--kit-text) 7%, transparent);
}

.kit-card--outline {
  border-color: color-mix(in srgb, var(--kit-text) 12%, transparent);
  background: color-mix(in srgb, var(--kit-surface) 55%, transparent);
  box-shadow: inset 0 1px 0 var(--lumen-kit-shine);
}

.kit-card--linked:hover {
  border-color: color-mix(in srgb, var(--kit-text) 12%, transparent);
  transform: translateY(-3px);
}

.kit-card--linked:hover .kit-card__link {
  color: var(--kit-text);
}

.kit-card__title {
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  letter-spacing: var(--lumen-track-title, -0.02em);
  line-height: 1.25;
}

.kit-card__content {
  gap: 0.55rem;
}

/* A picture in a card sits in its own rounded frame, inset from the card's edge like a screen in its bezel. */
.kit-card--surface > .kit-card__media,
.kit-card--outline > .kit-card__media {
  margin: 0.5rem 0.5rem 0;
  border-radius: calc(var(--kit-radius) - 0.5rem);
}

.kit-card--linked:hover .kit-card__media img {
  transform: scale(1.03);
}

/* An icon leads a card or a feature on a small rounded tile of the accent's light, with a fine edge. */
.kit-card__body > .kit-icon:first-child,
.kit-grid.kit-features > .kit-stack > .kit-icon:first-child {
  box-sizing: content-box;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--kit-accent) 20%, transparent);
  border-radius: 1rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--kit-accent) 16%, transparent), color-mix(in srgb, var(--kit-accent) 4%, transparent));
  color: var(--kit-accent-text);
  box-shadow: inset 0 1px 0 var(--lumen-kit-shine);
  stroke-width: 1.6;
}

/* A card whose body opens with an icon (service_cards, a plan) shows the icon first, above its title: the icon leads,
   as on the theme's features. The body's parts then stand in the card's own column. Steps keep the kit's own order. */
.kit-card__content:has(> .kit-card__title + .kit-card__body > .kit-icon:first-child):not(.kit-steps *) > .kit-card__body {
  display: contents;
}

.kit-card__content:has(> .kit-card__title + .kit-card__body > .kit-icon:first-child):not(.kit-steps *) > .kit-card__body > .kit-icon:first-child {
  order: -1;
  margin-bottom: 0.6rem;
}

.kit-card__content:has(> .kit-card__title + .kit-card__body > .kit-icon:first-child):not(.kit-steps *) > .kit-card__body > :not(.kit-icon:first-child) {
  margin: 0;
}

/* A step's icon keeps its place as the step's lead mark (kit.css orders it above the number); it is the same tile. */
.kit-steps .kit-card__body > .kit-icon:first-child {
  margin-bottom: 0.25rem;
}

/* Features stand as small sheets of their own. */
.kit-grid.kit-features > .kit-stack {
  padding: var(--kit-card-pad);
  border: 1px solid color-mix(in srgb, var(--kit-text) 7%, transparent);
  border-radius: var(--kit-radius);
  background: var(--kit-surface);
  box-shadow: var(--kit-shadow);
}

@media (max-width: 639.98px) {
  .kit-grid.kit-features > .kit-stack {
    padding: 1.25rem;
  }

  .kit-grid.kit-features .kit-icon--large:first-child {
    width: 1.25rem;
    height: 1.25rem;
    padding: 0.6rem;
  }
}

/* Steps: a number on a round pane of glass leads each one, joined by a fine line of light across the row. */
.kit-grid.kit-steps > .kit-card--plain .kit-card__content {
  padding: 0;
}

.kit-grid.kit-steps .kit-card__eyebrow {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--kit-text) 9%, transparent);
  border-radius: 50%;
  background: var(--kit-surface);
  color: var(--kit-accent-text);
  font-size: 0.9375rem;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
  box-shadow: var(--kit-shadow);
}

/* ------------------------------------------------------------------ Figures */

/* Statistics: large figures set tight, the unit in the accent's shade, the label quiet under them. A row of them stands
   on one pane of glass, parted by fine lines. From 1200 px five figures stand in a row of about 200 px each, so the
   figures stop at about 50 px and "1500 m²" stays on one line. */
.kit-grid:has(> .kit-stack > .kit-stat) {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(1rem, 0.5rem + 2vw, 2.5rem);
  border: 1px solid color-mix(in srgb, var(--kit-text) 7%, transparent);
  border-radius: var(--lumen-radius-lg, 2rem);
  background: color-mix(in srgb, var(--kit-surface) 72%, transparent);
  box-shadow: var(--kit-shadow);
}

.kit-stat__value {
  font-size: clamp(2rem, 1.3rem + 2vw, 3.25rem);
  letter-spacing: var(--lumen-track-display, -0.04em);
  line-height: 1.1;
}

.kit-stat__label {
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* A plan's price and other large prices. */
.kit-price--large .kit-price__amount {
  letter-spacing: var(--lumen-track-display, -0.03em);
}

/* ------------------------------------------------------------------ Plans */

/* The plan the website recommends is the solid sheet, lifted and ringed by the accent's light; the others are panes of
   glass. */
.kit-grid:has(> .kit-card--outline) > .kit-card--surface:has(> .kit-card__content > .kit-card__eyebrow) {
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--kit-accent) 55%, transparent), var(--kit-shadow-hover);
}

/* ------------------------------------------------------------------ Questions, quotes, lists */

/* Each question is a sheet of its own, with air between them; the chevron sits on a small round pane. */
.kit-accordion {
  display: grid;
  gap: 0.75rem;
  border-top: 0;
}

.kit-accordion__item {
  padding: 0 clamp(1.1rem, 0.8rem + 1vw, 1.75rem);
  border: 1px solid color-mix(in srgb, var(--kit-text) 7%, transparent);
  border-radius: 1.25rem;
  background: var(--kit-surface);
  box-shadow: var(--kit-shadow);
}

.kit-accordion__title {
  padding: 1.15rem 0;
  font-family: var(--font-heading, sans-serif);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  font-weight: var(--lumen-heading-weight, 600);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.kit-accordion__title:hover {
  color: var(--kit-text);
}

.kit-accordion__chevron {
  box-sizing: content-box;
  padding: 0.3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--kit-text) 6%, transparent);
  color: var(--kit-text);
}

.kit-accordion__body {
  padding: 0 0 1.35rem;
}

/* A quotation is upright: the font palettes load no slanted letters, and a browser's own slant is a fake. No bar at its
   side: the card it stands on frames it. */
.kit-quote {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.kit-quote__text {
  font-family: var(--font-heading, sans-serif);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.2rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.5;
}

.kit-quote__author {
  font-weight: var(--lumen-body-strong, 600);
}

.kit-avatar {
  border: 2px solid var(--kit-surface);
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--lumen-ink, #0b0d12) 45%, transparent);
}

.kit-list--menu .kit-list-item__title,
.kit-list--menu .kit-list-item__meta {
  font-weight: var(--lumen-body-strong, 600);
}

.kit-chip {
  padding: 0.2rem 0.75rem;
}

/* ------------------------------------------------------------------ Forms */

.kit-field__label {
  font-size: 0.875rem;
  font-weight: var(--lumen-body-strong, 600);
}

.kit-input {
  min-height: 3rem;
  border-color: color-mix(in srgb, var(--kit-text) 14%, transparent);
  background: var(--kit-surface);
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--lumen-ink, #0b0d12) 5%, transparent);
  transition: border-color var(--kit-speed) ease, box-shadow var(--kit-speed) ease;
}

.kit-input:focus {
  border-color: var(--kit-focus);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--kit-accent) 16%, transparent);
}

/* ------------------------------------------------------------------ Pictures and frames */

.kit-picture.kit-rounded,
.kit-frame,
.kit-video,
.kit-compare__frame {
  border-radius: var(--kit-media-radius);
}

/* A picture beside words (text_with_image, about_section) stands off the page with the theme's depth. */
.kit-split > * > .kit-picture.kit-rounded,
.kit-split > .kit-picture.kit-rounded {
  box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--lumen-ink, #0b0d12) 40%, transparent);
}

.kit-carousel__button,
.kit-slideshow__button {
  border: 1px solid color-mix(in srgb, var(--kit-text) 10%, transparent);
  background: color-mix(in srgb, var(--kit-surface) 85%, transparent);
  box-shadow: inset 0 1px 0 var(--lumen-kit-shine), 0 8px 20px -12px color-mix(in srgb, var(--lumen-ink, #0b0d12) 45%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
