/*
 * lcc-landing-site: styles for the holding page.
 * Design: Figma tjbtSkfCvd5Q0gb5llp3YF, desktop 2188:77 (1280 wide), mobile 2188:293 (360 wide),
 * link focus 2188:699.
 *
 * Colors come only from tokens.css, a copy of src/styles/tokens.css kept in step by
 * `npm run check:landing` (never edit the copy). Type sizes, weights and radii repeat the app's
 * theme values from src/index.css; each is named beside its use. No color values belong in this file.
 */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/inter-latin-wght-normal.woff2') format('woff2-variations');
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--lcc-bg-surface);
  color: var(--lcc-text-secondary);
  /* font-sans */
  font-family: 'Inter Variable', 'Inter', ui-sans-serif, system-ui, sans-serif;
  /* body-lg */
  font-size: 16px;
  line-height: 1.5;
}

h1,
p {
  margin: 0;
}

/* ---------- Phone and tablet: illustration band on top, copy below ---------- */

.illustration {
  order: -1;
  position: relative;
  flex: none;
  height: 200px;
  overflow: hidden;
  background: var(--lcc-bg-sidebar);
}

/* At 360 wide this is the frame exactly: 624 x 896, shifted 24 left and 88 up. Wider screens scale it up to keep the band full. */
.illustration img {
  position: absolute;
  top: -88px;
  left: -24px;
  width: max(624px, calc(100% + 264px));
  height: auto;
  max-width: none;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lcc-text-primary);
  /* heading-lg */
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  flex: none;
  display: block;
}

.brand-accent {
  color: var(--lcc-text-link);
}

.message {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

h1 {
  color: var(--lcc-text-primary);
  /* display-lg */
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.desktop-break {
  display: none;
}

.nowrap {
  white-space: nowrap;
}

.status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  /* heading-md */
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}

/* The dot sits in a box as tall as one line of text, so it lines up with the first line when the text wraps. */
.status::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: calc((1lh - 10px) / 2);
  /* radius-full */
  border-radius: 9999px;
  background: var(--lcc-warning);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--lcc-border-default);
}

a {
  color: var(--lcc-text-link);
  text-decoration: underline;
  text-underline-position: from-font;
  overflow-wrap: anywhere;
}

/* Keyboard focus (2188:699): 2px outline, 2px offset, radius-xs. */
a:focus-visible {
  outline: 2px solid var(--lcc-border-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 768 and up: the larger type (below 768 the headline is display-lg) ---------- */

@media (min-width: 768px) {
  h1 {
    /* display-xl */
    font-size: 44px;
    line-height: 1.1;
  }

  .status {
    align-items: center;
    /* display-sm */
    font-size: 20px;
    line-height: 1.3;
  }

  .status::before {
    margin-top: 0;
  }

  .contact {
    flex-direction: row;
    gap: 8px;
  }
}

/* ---------- 1024 and up: copy on the left, illustration panel on the right ---------- */

@media (min-width: 1024px) {
  body {
    flex-direction: row;
  }

  /* 720 of 1280 in the frame; never narrower than the three-line headline needs. */
  .content {
    flex: 0 0 max(56.25%, 640px);
    justify-content: space-between;
    gap: 48px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 64px;
  }

  .desktop-break {
    display: inline;
  }

  .illustration {
    order: 0;
    flex: 1 1 0;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* At 1280 x 800 this is the frame exactly: 624 x 896, 32 in from the left and 48 up. Larger screens scale it up to keep the panel full. */
  .illustration img {
    top: -48px;
    left: 32px;
    width: max(624px, calc(100% + 64px));
    height: max(896px, calc(100% + 96px));
    object-fit: cover;
    object-position: left top;
  }
}
