/* ===============================
   FONT LOADING
   =============================== */
@font-face {
  font-family: "Satoshi";
  src: url("./fonts/Satoshi-Variable.ttf") format("truetype");
  font-display: swap; /* ensures fast text render while loading */
  font-style: normal;
  font-weight: 100 900;
}

/* ===============================
   RESET / NORMALIZE
   =============================== */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

/* ===============================
   BASE STYLES
   =============================== */
body {
  background-color: #f5f5f5;
  color: #1c1c1c;
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  overflow-wrap: break-word;
}

/* Fallback if height: 100vh behaves oddly on iOS Safari */
@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
}

/* ===============================
   MAIN CONTAINER
   =============================== */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===============================
   TYPOGRAPHY
   =============================== */
h1 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  margin-bottom: 6px;
  font-family: "Playfair Display", Georgia, serif;
  /* text-transform: uppercase; */
}

h2 {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 400;
  color: #444;
  margin: 0 0 50px 0;
  line-height: 1.1;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.3px;
}

/* ===============================
   LINKS
   =============================== */
a {
  color: #173530;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #2d736b;
  outline: none;
}

/* ===============================
   MISC ELEMENTS
   =============================== */
.break {
  margin: 0;
  line-height: 1.5em;
}

.signature {
  margin-top: 50px;
  height: 40px;
  opacity: 0.85;
  user-select: none;
  pointer-events: none;
  filter: grayscale(0.3);
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   MOBILE RESPONSIVENESS
   =============================== */
@media (max-width: 480px) {
  body {
    font-size: 16px;
    padding: 1rem;
  }
  h2 {
    margin-bottom: 40px;
  }
  .signature {
    height: 30px;
    margin-top: 40px;
  }
}
