@font-face {
  font-family: "Switzer";
  src: url("assets/fonts/switzer-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  background: #f6f5f2;
  color: #282724;
  font-family: "Switzer", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.preview {
  width: min(58vw, 860px);
  display: grid;
  grid-template-columns: min(22vw, 36vh, 300px) minmax(0, 1fr);
  align-items: stretch;
  min-height: min(40vh, 320px);
  gap: clamp(28px, 3.4vw, 52px);
}

.portrait {
  margin: 0;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.introduction {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 2px;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.15vw, 46px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.subtitle {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.3vw, 19px);
  font-style: italic;
  line-height: 1.4;
  color: #68665f;
  letter-spacing: -0.025em;
}

.bio {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #66645f;
  text-wrap: pretty;
}

.release {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #706d67;
}

.release span { color: #282724; }

.socials {
  display: flex;
  flex-wrap: wrap;
  column-gap: 21px;
  row-gap: 10px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
}

.socials a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #c4c1ba;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.socials a:hover { text-decoration-color: currentColor; }

.socials a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

::selection { background: #dedbd4; color: #282724; }

/* Let the composition breathe on small screens and when text is zoomed. */
@media (max-width: 1000px) {
  .preview { width: min(82vw, 740px); }
}

@media (max-width: 600px) {
  body { padding: 48px 28px; }
  .preview {
    width: min(100%, 340px);
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .portrait { width: 180px; height: 270px; }
  h1 { font-size: 38px; }
  .subtitle { font-size: 18px; }
  .bio { margin-top: 20px; }
  .release, .socials { margin-top: 22px; }
}
