/* Mobile layout follows mockup 2a; the desktop breakpoint follows 3a. */

:root {
  --ink: #1d1a1f;
  --muted: #6a5c72;
  --faint: #9a8ca3;
  --purple: #6b3f86;
  --purple-dark: #5a3471;
  --lilac: #f1e7f6;
  --lilac-dark: #e7d8f0;
  --lilac-ink: #7a6485;
  --sans: 'Outfit', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
}

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Banner */

.banner-frame {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

/* The image is made wider than the screen and pulled left so the cows sit
   left of the logo. object-position alone can't do it once the image fills
   the width. The pull grows with the logo size at the desktop breakpoint. */
.banner {
  display: block;
  width: calc(111% + 140px);
  max-width: none;
  height: 220px;
  margin-left: calc(-11% - 140px);
  object-fit: cover;
  object-position: 0% 60%;
  background: #c9d3e0;
}

/* Content column */

.content {
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: -70px auto 0;
  padding: 0 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 6px 20px rgba(60, 30, 80, .15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.intro h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.intro p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
}

/* Link tiles */

.links {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 18px;
  border-radius: 14px;
  background: var(--lilac);
  transition: background-color .15s ease, transform .15s ease;
}

.tile:hover { background: var(--lilac-dark); }
.tile:active { transform: scale(.98); }

.tile:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.tile__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lilac-ink);
  /* Long handles wrap instead of overflowing narrow tiles */
  overflow-wrap: anywhere;
}

.tile__name {
  font-size: 17px;
  font-weight: 600;
}

.tile--primary {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-end;
  min-height: 84px;
  padding: 20px;
  background: var(--purple);
  color: #fff;
}

.tile--primary:hover { background: var(--purple-dark); }

/* Third social tile: full width under the 50/50 pair on mobile */
.tile--mymakes { grid-column: 1 / -1; }

.tile--primary .tile__name,
.tile__arrow { font-size: 20px; }

.footer {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

/* Desktop (3a) */

@media (min-width: 720px) {
  .banner {
    width: calc(111% + 260px);
    height: 250px;
    margin-left: calc(-11% - 260px);
  }

  .content {
    max-width: 680px;
    margin-top: -90px;
    padding: 0 24px 32px;
  }

  .avatar {
    width: 180px;
    height: 180px;
    border-width: 5px;
    box-shadow: 0 8px 24px rgba(60, 30, 80, .15);
  }

  .avatar img {
    width: 152px;
    height: 152px;
  }

  .intro { gap: 6px; }
  .intro h1 { font-size: 34px; }
  .intro p { font-size: 17px; }

  /* Three social tiles share one row; wide enough that handles don't wrap */
  .links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .tile--mymakes { grid-column: auto; }

  .tile { min-height: 110px; }

  .tile--primary {
    align-items: center;
    min-height: 0;
    padding: 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile:active { transform: none; }
}
