@charset "utf-8";
/* CSS Document */

/* -----------------------
   Fonts
------------------------ */

@font-face {
  font-family: "SansRegular";
  src: url("fonts/SansRegular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "SansSC";
  src: url("fonts/SansSC.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "SansLight";
  src: url("fonts/SansLight.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "SansLightItalic";
  src: url("fonts/SansLightItalic.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* -----------------------
   Page layout
------------------------ */

html {
  height: 100%;
  max-width: 100%;
}

body {
  font-family: SansLight, Arial, Helvetica, sans-serif;
  color: #333;
  background: url(../images/body-bg.png) no-repeat center center #f7f7f7;
  margin: 0;
  padding: 0;
  min-height: 100%;
  text-rendering: optimizeLegibility;
  overflow-y: auto;
  /* allow horizontal scroll if something ever overflows instead of cutting it off */
  overflow-x: auto;
  max-width: 100%;
}

/* Main area that centres the white box */
.horizon {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  padding: 16px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* White “card” container */
.wrapper {
  max-width: 850px;
  width: 100%;
  max-width: 100%; /* clamp to viewport on small screens */
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
  background-color: #fff;
  text-align: center;
}

/* Ensure text always wraps nicely inside the card */
.wrapper h1,
.wrapper p {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Make any images (e.g. logo) responsive */
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* -----------------------
   Typography
------------------------ */

.logo {
  margin: 2em 0;
}

h1 {
  font-family: SansRegular, Arial, Helvetica, sans-serif;
  font-weight: normal;
  /* Responsive heading size: scales between 24px and 36px */
  font-size: clamp(24px, 4vw, 36px);
  margin: 1.5em 0;
}

p {
  margin: 1.5em 0;
}

/* Larger text variant */
.large {
  font-size: 24px;
  font-family: SansSC, Arial, Helvetica, sans-serif;
}

/* -----------------------
   Small-screen tweaks
------------------------ */

@media (max-width: 600px) {
  .wrapper {
    padding: 16px 12px;
  }

  .logo {
    margin: 1.5em 0;
  }

  .large {
    font-size: 20px;
  }
}

