/* The site's one stylesheet. It reproduces, value for value, what the Tailwind classes of the former
   Lovable build did on this page. Breakpoints as Tailwind's: md from 768px wide, lg from 1024px. */

:root {
  /* The two brand colours (Tailwind's primary and secondary), as HSL parts so they can take an alpha. */
  --primary: 192 100% 35%;
  --secondary: 221 100% 33%;
  /* The page colour and default text colour, which the gradient and the coloured text cover. */
  --background: 210 10% 95%;
  --foreground: 192 100% 35%;
  /* Space Grotesk and Inter are named but not loaded, as on the former build: a visitor without them
     installed sees the system font. */
  --font-display: Space Grotesk, system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
}

/* Base: the parts of Tailwind's reset this page relies on. */
*, ::before, ::after { box-sizing: border-box; border: 0 solid hsl(192 30% 80%); }
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  line-height: inherit;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2 { margin: 0; font-size: inherit; font-weight: inherit; }
p { margin: 0; }
a { color: inherit; text-decoration: inherit; }
img { display: block; vertical-align: middle; max-width: 100%; height: auto; }

/* Background: a light blue to white gradient over the whole page, with a faint 60px grid over it. */
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-image: linear-gradient(to bottom, #a6cfd9, #dfe9ec 20%, #fafafa 50%, #fff);
}
.grid-lines {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  opacity: .03;
  background-image:
    linear-gradient(hsl(var(--foreground)) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground)) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* The content area: a centred column at least one screen high. */
.main {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 4rem 1.5rem 1.5rem;
}
.column { position: relative; width: 100%; max-width: 48rem; }

/* The square logo above the text: Logo 1's dot mark (a <picture>, so its image fills the box). */
.logo { display: block; width: 3rem; height: 3rem; margin: 0 auto 1.5rem; }
.logo img { width: 100%; height: 100%; }

/* The three blocks (pitch, mission, closing), spaced as a grid. */
.blocks { display: grid; gap: 2rem; }

/* Text. The line heights follow Tailwind's: the base size takes leading-tight or leading-relaxed, and
   from md the responsive font size's own line height replaces it. */
.headline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 600;
  color: hsl(var(--primary));
}
.subhead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-top: 1.5rem;
}
.body {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.625;
  color: hsl(var(--secondary));
}
.gap { margin-top: 1rem; }
.strong { font-weight: 600; }

/* The closing block: the logo with tagline, then the LinkedIn and mail links. */
.closing > * + * { margin-top: 1.5rem; }
/* The one-line logo with its tagline, one image: 58px high, 77px from 768px, 96px from 1024px (the files
   are rendered at exactly these heights by scripts/make-logos.mjs). */
.tagline { display: flex; justify-content: center; padding: 1rem 0; }
.tagline-logo { width: auto; height: 58px; }
.links { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding-top: .5rem; }
.link-line { color: hsl(var(--secondary)); }
.link {
  color: hsl(var(--secondary));
  text-decoration-line: underline;
  text-underline-offset: 2px;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .3s;
}
.link:hover { color: hsl(var(--secondary) / .8); }

/* The thin bar along the bottom of the content area. */
.bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: .25rem;
  background-color: hsl(var(--secondary));
}

/* Fade-in: each part starts hidden and fades in over 1.8s, one after another, then stays shown. */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.fade { opacity: 0; animation: fade-in 1.8s ease-out forwards; }
.fade-1 { animation-delay: .1s; }
.fade-2 { animation-delay: .2s; }
.fade-3 { animation-delay: .5s; }
.fade-4 { animation-delay: 1.1s; }
.fade-5 { animation-delay: 1.6s; }

/* md: 768px and wider. */
@media (min-width: 768px) {
  .main { padding: 5rem 3rem 1.5rem; }
  .blocks { gap: 2.5rem; }
  .headline { font-size: 1.875rem; line-height: 2.25rem; }
  .subhead { font-size: 1.5rem; line-height: 2rem; }
  .body { font-size: 1.125rem; line-height: 1.75rem; }
  .tagline { padding: 1.5rem 0; }
  .tagline-logo { height: 77px; }
}

/* lg: 1024px and wider. */
@media (min-width: 1024px) {
  .main { padding-left: 6rem; padding-right: 6rem; }
  .logo { width: 5rem; height: 5rem; margin-bottom: 2rem; }
  .headline { font-size: 2.25rem; line-height: 2.5rem; }
  .subhead { font-size: 1.875rem; line-height: 2.25rem; }
  .body { font-size: 1.25rem; line-height: 1.75rem; }
  .tagline-logo { height: 96px; }
}
