/* givfi.com: one page, no scripts, no external requests.
   Lato is Givmo's own, self-hosted from givmo-web's design system (SIL OFL 1.1, see fonts/OFL.txt). */

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Lato-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Lato-Bold.ttf') format('truetype');
}

:root {
  --paper: #ffffff;
  --ink: #222222;
  --ink-soft: #454b55;
  --muted: #5e6470;
  --brand: #3c6de5;
  --link: #2a56cc;
  --rule: #e3e7ee;
  --selection: #deebf6;

  --gutter: clamp(24px, 6.5vw, 96px);
  --frame: 1280px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  color: var(--ink);
  font-family:
    'Lato',
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-kerning: normal;
  /* Keep "fi" as two letters: the legal name must read exactly as filed. */
  font-variant-ligatures: no-common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

.frame {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

p,
h1,
ul {
  margin: 0;
}

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--ink);
}

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

/* ── Masthead: the company's name, set in type ─────────── */

.masthead {
  padding-block: clamp(24px, 4vw, 44px) 0;
}

.wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.wordmark a {
  color: inherit;
  text-decoration: none;
}

/* ── What Givfi does, and where Givmo lives ─────────────── */

.intro {
  align-self: center;
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  padding-block: clamp(48px, 8vh, 96px);
}

.statement {
  max-width: 12em;
  font-size: clamp(2.375rem, 1.5rem + 3.4vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  max-width: 24em;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
  line-height: 1.4;
  text-wrap: pretty;
}

.note {
  max-width: 30em;
  color: var(--ink-soft);
  line-height: 1.6;
  text-wrap: pretty;
}

.links {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.product img {
  flex: none;
  width: 24px;
  height: 24px;
}

/* Apple's badge, unaltered: at least 40px tall, with clear space of a quarter of its height. */
.store {
  padding-block: 10px 0;
}

.badge {
  display: inline-block;
  line-height: 0;
  border-radius: 7px;
}

.badge img {
  display: block;
  width: auto;
  height: 40px;
}

/* ── Company particulars, as at the foot of a letterhead ── */

.particulars {
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-block: 24px clamp(28px, 4vw, 40px);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.item {
  display: flex;
  flex-direction: column;
}

.label {
  color: var(--muted);
}

.legal {
  color: var(--muted);
}

.reg {
  font-size: 0.7em;
  vertical-align: 0.45em;
  line-height: 0;
}

/* Tablet: the particulars in two columns instead of one tall stack. */
@media (min-width: 600px) and (max-width: 959px) {
  .particulars {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

/* Desktop: the statement on the left, Givmo's note and links on the right. */
@media (min-width: 960px) {
  .intro {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(56px, 7vw, 120px);
    align-items: end;
  }

  .particulars {
    grid-template-columns: auto auto 1fr;
    column-gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }

  .legal {
    text-align: right;
  }
}

/* Phone: one column that reads straight down, with no pinned footer gap. */
@media (max-width: 599px) {
  .intro {
    align-self: start;
    padding-block: clamp(40px, 8vh, 64px) 48px;
  }
}
