/*
  Personal homepage — camillapisano.it
  Background: #FAD0DE
  Typography: Inter Medium 24px
*/

:root {
  --bg: #fad0de;
  --text: #111111;
  --footer-h: 20px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
}

.title-pill {
  margin: 0 0 18px;
  width: fit-content;
  transform: rotate(-6.62deg);
  transform-origin: left center;

  font-family: Unbounded, Inter, system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;

  background: #ffffff;
  border: 4px solid var(--text);
  border-radius: 999px;
  padding: 12px 20px;
}

.wrap {
  min-height: 100svh;
  --page-pad: clamp(20px, 5vw, 72px);
  padding: var(--page-pad);
  padding-bottom: calc(var(--page-pad) + var(--footer-h));
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-h);
  background: var(--text);
  color: var(--text);
  z-index: 0;
}

.footer__wave {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 120px;
  transform: translateY(-99%);
  display: block;
}

.content {
  flex: 1 1 400px;
  /* target: ~50–70 characters per line */
  max-width: 55ch;
}

.bio {
  margin: 0;
  text-wrap: pretty;
}

.mail {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.mail:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.55);
  outline-offset: 4px;
  border-radius: 4px;
}

.media {
  flex: 0 1 420px;
  display: flex;
  justify-content: center;
}

.photo {
  width: min(420px, 40vw);
  height: auto;
  max-height: 70svh;
  object-fit: contain;
}

@media (max-width: 900px) {
  .wrap {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 20px calc(36px + var(--footer-h));
    gap: 24px;
  }

  .content {
    max-width: 65ch;
  }

  .media {
    width: 100%;
  }

  .photo {
    width: min(520px, 92vw);
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

