/*
 * Profile layout and button base adapted from LittleLink (https://littlelink.io).
 * Copyright 2019-2024 Seth Cottle. MIT license: littlelink-license.txt.
 */

:root {
  color-scheme: light;
  --ink: #111a1a;
  --muted: #465958;
  --focus: #17665e;
  --card: #fff;
  --radius: .625rem;
  --shadow: 0 1px 2px #142e2c0f, 0 5px 14px #142e2c11;
  --spacing-m: 1rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #eff8f7;
  font: 1rem/1.5 Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 70% 31%, #aedbda99, transparent 58%),
    radial-gradient(ellipse at 4% 63%, #c4e5e4b3, transparent 48%),
    linear-gradient(155deg, #fff 10%, #eaf6f5 50%, #fff 100%);
}

.container {
  position: relative;
  width: 100%;
  max-width: 37.5rem;
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 7rem) var(--spacing-m) 2.5rem;
  text-align: center;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.avatar {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.125rem;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.profile h1 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.profile p {
  margin: .35rem 0 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.jump {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: #526665;
}

.jump a {
  display: grid;
  min-width: 5.75rem;
  min-height: 2.875rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

body:not(:has(#shop:target)) .jump a:first-child,
body:has(#shop:target) .jump a[href="#shop"],
.jump a:hover {
  color: var(--ink);
  background: #fff;
}

main { margin-top: 2rem; }
section + section, .feature + section, #links + section { margin-top: 2rem; }
#links, #shop { scroll-margin-top: 1rem; }

h2, h3 {
  margin: 0 0 .75rem;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.3;
}

h3 { margin-top: 1.5rem; color: var(--muted); }
.cards { display: grid; gap: .875rem; padding: 0; margin: 0; list-style: none; }

.button {
  align-items: center;
  justify-content: center;
  width: 100%;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
}

.card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  gap: .375rem;
  min-height: 3.875rem;
  padding: .5rem;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: .9375rem;
}

.card:hover {
  background: #f8fffe;
  box-shadow: 0 0 0 1px #3e91875c, var(--shadow);
}

.card > span { grid-column: 2; padding-block: .25rem; overflow-wrap: anywhere; }
.card:has(> span:only-child) { grid-template-columns: 1fr; padding-inline: 1rem; }
.card > span:only-child { grid-column: 1; }
.thumb {
  width: 3rem;
  height: 3rem;
  border-radius: .35rem;
  object-fit: cover;
}

.feature {
  grid-template-columns: 1fr;
  gap: .875rem;
  margin-top: 1.75rem;
  padding: .875rem;
}

.feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .375rem;
}

.feature > span { grid-column: 1; padding: 0 .375rem .25rem; }

footer { margin-top: 2rem; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.socials a {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
}

.socials a:hover { background: #fff; }
.icon { filter: brightness(0); }
.back { display: inline-block; margin-top: 1rem; padding: .625rem; font-size: .875rem; color: var(--muted); }

@media (max-width: 23rem) {
  :root { --spacing-m: .75rem; }
  .card { grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem; }
  .thumb { width: 2.5rem; height: 2.5rem; }
  .feature { grid-template-columns: 1fr; }
}
