/*
  ladus.ai — self-contained stylesheet.

  CONSTRAINTS, deliberate:
    - System font stack only. NO webfont, NO CDN, NO @import, NO external URL.
      The page must make zero network requests beyond its own HTML and CSS.
    - Mobile first. Must render with zero horizontal overflow from 280px
      (Galaxy Fold, folded) up through desktop.
    - No tap target smaller than 40px.
    - Plain CSS. No preprocessor, no build step, no framework.
*/

/* ---------- tokens ---------- */

:root {
  --ink:        #14161a;  /* body text                */
  --ink-soft:   #55606e;  /* secondary text           */
  --rule:       #e3e6ea;  /* hairlines                */
  --bg:         #ffffff;
  --accent:     #1b4dc1;  /* link / focus             */
  --measure:    34rem;    /* max line length          */
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #f2f4f7;
    --ink-soft: #a2adbb;
    --rule:     #2b3038;
    --bg:       #14161a;
    --accent:   #8fb4ff;
  }
}

/* ---------- reset ---------- */

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

html {
  /* Prevents any child from forcing a sideways scroll on a 280px screen. */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 2.5rem 1.25rem 3rem;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  /* Long words (an email address, a URL) wrap instead of overflowing. */
  overflow-wrap: break-word;
  word-break: break-word;
}

main { max-width: var(--measure); }

/* ---------- hero ---------- */

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1 {
  margin: 0 0 1rem;
  /* Scales with the viewport but never overflows the narrowest phone. */
  font-size: clamp(1.5rem, 7vw, 2.25rem);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  color: var(--ink);
}

.meta {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- contact ---------- */

.contact {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.email {
  margin: 0 0 0.75rem;
  font-size: clamp(1.125rem, 5.5vw, 1.5rem);
  font-weight: 600;
}

/* ---------- links ---------- */

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/*
  40px minimum tap target, applied ONLY to the standalone email link.

  Do NOT put `line-height: 40px` on the global `a` rule. A fixed px line-height
  freezes the line box while the font keeps scaling with browser text zoom, so
  the wrapped lines of the email address overlap each other — measured at 20px
  of overlap at 300% zoom on a 280px screen, which is exactly the user who needs
  the address most. The unitless line-height below scales with the text.
*/
.email a {
  display: inline-block;
  min-height: 40px;
  line-height: 1.6;
  padding-block: 0.4rem;
}

a:hover { text-decoration: none; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- footer ---------- */

footer {
  max-width: var(--measure);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

footer p { margin: 0 0 0.5rem; }

.fine { margin-bottom: 0; }

/* ---------- wider screens ---------- */

@media (min-width: 40rem) {
  body { padding: 5rem 2.5rem 4rem; }
}

@media (min-width: 64rem) {
  body { padding: 7rem 4rem 5rem; }
}
