/* ------------------------------------------------------------------ *
 * koljagrosse.com — Stylesheet (Apple-inspired, hell & minimalistisch)
 * ------------------------------------------------------------------ */

:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --card: #ffffff;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.12);
  --radius: 22px;
  --max-width: 34rem;
  --max-width-wide: 45rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

.wrap--wide {
  max-width: var(--max-width-wide);
}

/* ------------------------------------------------------------------ *
 * Landing — Hero
 * ------------------------------------------------------------------ */

.hero {
  text-align: center;
  margin-bottom: 3.5rem;
}

.hero-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.4rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(150deg, #2b2b2f 0%, #1d1d1f 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.3rem;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0;
}

/* ------------------------------------------------------------------ *
 * Landing — Tiles
 * ------------------------------------------------------------------ */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  padding: 1.6rem;
  min-height: 190px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  outline: none;
}

.tile-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.tile-icon svg {
  width: 30px;
  height: 30px;
}

.tile-icon--cv {
  background: linear-gradient(150deg, #4aa3ff 0%, #0a84ff 100%);
}

.tile-icon--interests {
  background: linear-gradient(150deg, #d16bff 0%, #ff2d92 100%);
}

.tile-icon--projects {
  background: linear-gradient(150deg, #ffb340 0%, #ff7a00 100%);
}

.tile-icon--server {
  background: linear-gradient(150deg, #4be08a 0%, #0ab894 100%);
}

.tile-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tile-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--muted);
  font-size: 1.15rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.tile:hover .tile-arrow,
.tile:focus-visible .tile-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ------------------------------------------------------------------ *
 * Sub-pages
 * ------------------------------------------------------------------ */

.back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}

.back:hover,
.back:focus-visible {
  color: var(--fg);
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.content p {
  margin: 0 0 1.1rem;
}

.content a {
  color: #0a84ff;
  text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */

.footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.footer a {
  color: var(--muted);
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */

@media (max-width: 620px) {
  .wrap {
    padding: 3.5rem 1.25rem 3rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 140px;
  }
}

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