@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");
@import "tokens.css";

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 var(--space-md);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Profile */
.profile {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.profile__avatar {
  width: clamp(96px, 18vw, 128px);
  height: clamp(96px, 18vw, 128px);
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  border: 4px solid var(--color-surface);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.profile__bio {
  max-width: min(52ch, 90vw);
  margin: 0 auto var(--space-lg);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-sm);
}

.social-links__item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: clamp(0.75rem, 2.5vw, 0.8125rem);
  font-weight: 500;
  white-space: nowrap;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.social-links__item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
  color: var(--color-primary);
}

.social-links__icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: var(--space-md) 0;
}

.section:first-of-type {
  padding-top: 0;
}

.section__title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: calc(-1 * var(--space-md)) auto var(--space-xl);
  max-width: 48ch;
}

/* Link list (link-in-bio style) */
.container--links {
  max-width: 520px;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.link-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 0.625rem;
  background: var(--color-surface);
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  color: var(--color-primary);
  text-decoration: none;
  transition:
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

a.link-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
  color: var(--color-primary);
}

.link-card--soon {
  opacity: 0.75;
  cursor: default;
}

.link-card--soon .link-card__label {
  color: var(--color-text-muted);
}

.link-card__badge {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: #E8EAED;
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.link-card__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  overflow: hidden;
  background: var(--color-bg);
}

.link-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-card__icon--brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
}

.link-card__icon--brand svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-text);
}

.link-card__label {
  flex: 1;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: clamp(0.8125rem, 2.8vw, 0.9375rem);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card__menu {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  color: var(--color-primary);
  opacity: 0.85;
}

.link-card__menu svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Anchor content blocks */
.anchor-block {
  scroll-margin-top: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.anchor-block:last-child {
  margin-bottom: 0;
}

.anchor-block h3 {
  color: var(--color-primary);
}

.anchor-block p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-2xl);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.footer a {
  font-weight: 500;
}
