/* ---------- Design tokens (from Figma) ---------- */
:root {
  /* Colours */
  --color-surface-page: #ffffff;
  --color-on-page-base: #101314;
  --color-surface-brand: #101314;
  --color-footer-text: #84bd00;
  --color-footer-link: #ffffff;
  --color-footer-link-hover: #da281c;
  --color-link-underline: #da281c;

  /* Fonts */
  --font-display: "Kanit", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  /* Type sizes */
  --font-display-size: 64px;
  --font-title-lg-size: 40px;
  --font-body-size: 20px;

  /* Spacing */
  --gutter: 140px;
  --margin-3xl: 120px;
  --margin-2xl: 80px;
  --margin-xl: 64px;
  --margin-lg: 40px;
  --gap-xl: 40px;

  --content-width: 1080px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  line-height: 1.6;
  color: var(--color-on-page-base);
  background: var(--color-surface-page);
}

h1,
h2,
p {
  margin: 0;
}

img {
  max-width: 100%;
}

/* ---------- Main content ---------- */
.page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--margin-2xl) var(--gutter);
  background: var(--color-surface-page);
}

.page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--margin-3xl);
  width: 100%;
}

.logo {
  display: block;
  width: 224px;
  height: auto;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: var(--margin-lg);
  width: 100%;
  max-width: var(--content-width);
  text-align: center;
  overflow-wrap: break-word;
}

.intro__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-display-size);
  line-height: 1.2;
}

.intro__text p + p {
  margin-top: 1.6em; /* matches the empty line between paragraphs in the design */
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--margin-xl) var(--gutter);
  background: var(--color-surface-brand);
  color: var(--color-footer-link);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--margin-lg);
  width: 100%;
  max-width: var(--content-width);
}

.site-footer__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-title-lg-size);
  line-height: 1.2;
  color: var(--color-footer-text);
}

.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer__email {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-footer-link);
  text-decoration: underline;
  text-decoration-color: var(--color-link-underline);
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
  transition: color 0.5s ease;
  text-underline-offset: 5px;
}

.site-footer__email:hover {
  color: var(--color-footer-link-hover);
}

.social {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: block;
  font-size: 40px;
  line-height: 1.2;
  color: var(--color-footer-link);
  text-decoration: none;
  transition: color 0.5s ease;
}

.social a:hover {
  color: var(--color-footer-link-hover);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --gutter: 48px;
    --margin-3xl: 80px;
    --font-display-size: 48px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --margin-3xl: 56px;
    --margin-2xl: 48px;
    --margin-xl: 48px;
    --margin-lg: 24px;
    --gap-xl: 28px;
    --font-display-size: 36px;
    --font-title-lg-size: 30px;
    --font-body-size: 17px;
  }

  .logo {
    width: 168px;
  }

  .site-footer__inner {
    text-align: center;
  }

  .site-footer__row {
    flex-direction: column;
    align-items: center;
  }

  .social a {
    font-size: 32px;
  }
}
