/* fleisher.ee static homepage — mirrors the TanStack/React design */

:root {
  --radius: 0.625rem;
  --background: oklch(0.972 0.008 285);
  --foreground: oklch(0.404 0 0);
  --link: oklch(0.552 0.164 250.5);
  --surface: oklch(1 0 0);
  --muted-foreground: oklch(0.554 0.046 257.417);
  --accent: oklch(0.968 0.007 247.896);
  --border: oklch(0.929 0.013 255.508);
  --shadow-card: 0 24px 60px -30px rgb(28 32 74 / 18%);
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Layout */

.page {
  min-height: 100vh;
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .page {
    padding: 4rem 1rem;
  }
}

.card {
  margin: 0 auto;
  width: 100%;
  max-width: 42rem;
  border-radius: 1.5rem;
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .card {
    padding: 3rem;
  }
}

/* Profile */

.profile-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-title {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.profile-title h1 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--foreground);
}

.profile-handle {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .profile-grid {
    grid-template-columns: 200px 1fr;
  }
}

.profile-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  height: 12rem;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--border);
}

@media (min-width: 640px) {
  .profile-photo {
    height: auto;
    width: 100%;
    aspect-ratio: auto;
    align-self: stretch;
  }
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-photo:hover img {
  transform: scale(1.02);
}

.profile-bullets {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.125rem;
}

.profile-bullets li {
  font-size: 15px;
  line-height: 1.625;
}

.bullet-mark {
  margin-right: 0.25rem;
  color: var(--muted-foreground);
}

.text-link {
  color: var(--link);
}

.text-link:hover {
  text-decoration: underline;
}

.tech-stack {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: 0.125rem;
  vertical-align: middle;
  color: var(--muted-foreground);
}

.tech-stack svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: color 0.15s ease;
}

.tech-stack svg:hover {
  color: var(--foreground);
}

/* Wave animation */

.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave-hand 1.6s ease-in-out 3;
}

@keyframes wave-hand {
  0%,
  60%,
  100% {
    transform: rotate(0deg);
  }
  10%,
  30%,
  50% {
    transform: rotate(16deg);
  }
  20%,
  40% {
    transform: rotate(-10deg);
  }
}

/* Social link rows */

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
  transition: background-color 0.15s ease;
}

.link-row:hover {
  background: var(--accent);
}

.link-row-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
}

.link-row-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.link-row-label {
  flex: 1;
  font-size: 15px;
  line-height: 1.375;
  color: var(--foreground);
}

.link-row-arrow {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
}

.icon-link {
  color: var(--link);
}

.icon-fg {
  color: var(--foreground);
}

/* Projects */

.section {
  margin-top: 2.5rem;
}

.section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.projects-grid {
  margin-top: 1.25rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow 0.15s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-card);
}

.project-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.02);
}

.project-card-body {
  padding: 0.75rem 1rem;
}

.project-card-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.project-card-body p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.375;
  color: var(--muted-foreground);
}

/* Contact pills */

.contact-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.contact-pill:hover {
  background: var(--accent);
  color: var(--foreground);
}

.contact-pill svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
