/* Healx holding page */

/* Fonts: self-hosted, subset to Latin. Licences in fonts/OFL-*.txt */
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/*
  Colours: Healx Design System names.
  Type scale: three fixed steps (phone, tablet, desktop). Sizes jump at the
  breakpoints and never scale with the window, so the hierarchy is the same
  at every width: statement > narrative > contact > eyebrow.
*/
:root {
  --bg: #15202D;              /* neutral-ink. Darker fallback: #0B131C */
  --text: #FFFFFF;            /* text-on-dark */
  --text-secondary: #B3BBC5;  /* neutral-silver */
  --accent: #66C1B0;          /* teal-brand, accent-on-dark */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  /* Phone (up to 767px) */
  --statement: 30px;
  --narrative: 19px;
  --contact: 17px;
  --eyebrow: 12px;
  --logo: 36px;
  --pad-x: 24px;
  --pad-y: 32px;
  --section-gap: 48px;
  --line-gap: 20px;

  color-scheme: dark;
}

/* Tablet and small laptop */
@media (min-width: 768px) {
  :root {
    --statement: 44px;
    --narrative: 22px;
    --contact: 19px;
    --logo: 42px;
    --pad-x: 48px;
    --pad-y: 56px;
    --section-gap: 64px;
    --line-gap: 28px;
  }
}

/* Laptop and desktop */
@media (min-width: 1024px) {
  :root {
    --statement: 56px;
    --narrative: 26px;
    --contact: 20px;
    --eyebrow: 13px;
    --logo: 48px;
    --pad-x: 80px;
    --pad-y: 72px;
    --section-gap: 72px;
    --line-gap: 36px;
  }
}

/* Short screens (e.g. 1366×768 and 1280×720 laptops, after browser toolbars):
   tighter spacing, and one step down for the statement, so it all fits. */
@media (min-width: 768px) and (max-height: 820px) {
  :root {
    --pad-y: 36px;
    --section-gap: 40px;
    --line-gap: 22px;
  }
}
@media (min-width: 1024px) and (max-height: 820px) {
  :root {
    --statement: 48px;
    --logo: 44px;
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); }

/* The composition is centred on the screen, both ways. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;  /* the visible screen on phones, excluding browser toolbars */
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* One column; everything inside shares the same left edge. On very tall
   screens it stops growing at 960px so the gaps don't stretch. */
.page {
  width: 100%;
  max-width: 1280px;
  min-height: min(100vh, 960px);
  min-height: min(100svh, 960px);
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.logo { display: block; height: var(--logo); width: auto; }

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--line-gap);
}

.statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--statement);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
}
h1.statement { font-weight: 500; text-wrap: balance; }
.accent { color: var(--accent); }

.narrative {
  margin: calc(var(--line-gap) / 2) 0 0;  /* a slightly longer pause before it */
  font-size: var(--narrative);
  font-weight: 300;
  line-height: 1.4;
}

footer { display: flex; flex-direction: column; gap: 6px; }

.eyebrow {
  margin: 0;
  font-size: var(--eyebrow);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.email {
  align-self: flex-start;
  min-height: 44px;  /* comfortable tap target */
  display: inline-flex;
  align-items: center;
  font-size: var(--contact);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
}
.email:hover { color: var(--accent); }
.email:focus-visible { color: var(--accent); outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.nowrap { white-space: nowrap; }

/* Phones: no forced break; the headline wraps into balanced lines. */
@media (max-width: 767px) { .break { display: none; } }
