/* Shared styles for index.html and contact.html */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: #000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  text-align: center;
}

/* Everything sits in one centred column, vertically centred on the page */
main {
  min-height: 100vh;   /* fallback for older browsers */
  min-height: 100svh;  /* visible height, excluding Safari's toolbars */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

/* The column: 380px (the image width), shrinking on narrow screens */
.frame {
  width: 380px;
  max-width: 100%;
  container-type: inline-size;
}

/* Width-fitted lines (sized by fit.js; the cqi value is a first guess) */
.fit {
  display: block;
  font-size: 17cqi;
  line-height: 1;
  white-space: nowrap;
}
.fit span { display: inline-block; }

.headline {
  font-weight: 200;
  margin: 0 0 0.25em;
}

/* Images fill the column */
#display-image,
.contact-image {
  display: block;
  width: 100%;
  height: auto;
}
#display-image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Links stacked under the image, each spanning its width */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

a { color: #fff; text-decoration: none; }
a:hover span,
a:focus-visible span { text-decoration: underline; text-decoration-thickness: 1px; }

.email { color: red; }
