/* Bold style: thick outlines, hard shadows, bright colour-blocked buttons */
:root {
  --bg: #fff4d6;
  --card: #fffdf7;
  --ink: #111111;
  --muted: #444038;
  --pink: #ff6fa8;
  --blue: #5bb8ff;
  --lime: #b8f25c;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --border: 3px solid var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17151f;
    --card: #221f2e;
    --ink: #f5f0ff;
    --muted: #c6bfd8;
  }
  /* keep button text dark on the bright colours */
  .link { color: #111111 !important; }
}

* { box-sizing: border-box; margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 16px;
  background-color: var(--bg);
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.5;
}

/* soften the dot pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0.85;
  z-index: -1;
}

.card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: var(--border);
  border-radius: 6px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: 36px 24px 24px;
  animation: drop 0.45s cubic-bezier(.2, 1.4, .4, 1) both;
}

/* Profile */
.profile { text-align: center; }

.avatar {
  display: block;
  margin: 0 auto;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  background: var(--lime);
  transform: rotate(-3deg);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 20px;
  text-transform: uppercase;
}

.tagline {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  background: var(--lime);
  color: #111111;
  border: 2px solid var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
}

.intro { color: var(--muted); margin: 16px auto 0; max-width: 38ch; }

/* Links: each button gets its own colour */
.links { display: grid; gap: 16px; margin-top: 30px; }

.link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  color: #111111;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.link::after { content: "→"; margin-left: auto; font-size: 1.2rem; }

#link-home     { background: var(--pink); }
#link-calendar { background: var(--blue); }
#link-twitter  { background: var(--lime); }

.link svg { width: 22px; height: 22px; fill: currentColor; }

.link:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.link:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.link:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }

/* Showcase */
.showcase { margin-top: 36px; }

.showcase h2 {
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.showcase h2::before { content: "★ "; color: var(--pink); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  background: var(--blue);
  transition: transform 0.15s ease;
}

.gallery img:nth-child(odd):hover  { transform: rotate(-2deg) scale(1.03); }
.gallery img:nth-child(even):hover { transform: rotate(2deg) scale(1.03); }

/* Footer */
.footer {
  margin-top: 30px;
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.share {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 16px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.share:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

@keyframes drop {
  from { opacity: 0; transform: translateY(-16px) rotate(-1deg); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
