/* ============================================================
   Kettle On — Holding Page
   Approved colours: Sage #7E9A72 | Charcoal #2B2B2B
                     Off-white #F4F3EE | Dark grey #595959
                     White #FFFFFF
   ============================================================ */

/* --- Self-hosted fonts --- */

@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & base --- */

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

/* --- Page --- */

html {
  font-size: 100%; /* respects user browser font-size preference */
}

body {
  background-color: #F4F3EE; /* Off-white */
  color: #2B2B2B;             /* Charcoal — WCAG AA on off-white */
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.125rem;        /* 18px at default browser size */
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;       /* generous top/bottom breathing room */
}

/* --- Main content column --- */

main {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem; /* consistent space between every block */
}

/* --- Logo --- */

.logo {
  display: block;
  width: 100%;
  max-width: 260px;    /* comfortable on mobile */
  height: auto;        /* never distort proportions */
}

/* --- Tagline (h1) --- */

h1 {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.3;
  color: #2B2B2B;
}

/* --- Body paragraph --- */

p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.125rem; /* 18px */
  line-height: 1.7;
  color: #2B2B2B;
  max-width: 60ch;     /* ~60 characters wide — comfortable reading line length */
}

/* --- Catchphrase --- */

.catchphrase {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: #7E9A72;   /* Sage — decorative, large enough for this weight */
  line-height: 1.4;
  max-width: none;
}

/* --- Contact line --- */

.contact {
  color: #595959; /* Dark grey — WCAG AA on off-white */
}

/* --- Email link --- */

.contact a {
  color: #7E9A72;              /* Sage — used here on a large, bold link */
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;

  /* Minimum 44×44px tap target */
  display: inline-block;
  padding: 0.65rem 0.5rem;
  margin: -0.65rem -0.5rem;   /* negative margin cancels the visual shift */
  border-radius: 4px;
}

.contact a:hover {
  color: #2B2B2B;              /* Charcoal on hover */
  text-decoration: underline;
}

.contact a:focus-visible {
  outline: 3px solid #7E9A72; /* Sage focus ring — visible for keyboard users */
  outline-offset: 2px;
  border-radius: 4px;
  color: #2B2B2B;
}

/* --- Larger screens (640px+): slightly bigger text and logo --- */

@media (min-width: 40rem) {
  body {
    font-size: 1.25rem; /* 20px */
  }

  .logo {
    max-width: 300px;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1.25rem; /* 20px */
  }
}
