/* Fonts */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Tokens */
:root {
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-text-soft: #999999;
  --font-body: "Geist", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --space-page: clamp(4.5rem, 18vw, 10rem);
  --gap-content: clamp(2rem, 6vw, 5rem);
}

/* Reset */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Page layout */
.page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--space-page);
  overflow: hidden;
}

/* Header */
.site-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
}

.name {
  margin: 0;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.contact-links {
  display: flex;
  gap: 0.9rem;
}

.icon-link {
  color: var(--color-text);
  display: inline-flex;
  transition: color 0.15s ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  color: var(--color-text-soft);
}

.icon-link svg {
  width: 18px;
  height: 18px;
}

/* Gallery */
.gallery {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  outline: none;
}

.gallery:focus-visible {
  outline: 1px solid var(--color-text-soft);
  outline-offset: 8px;
}

.gallery img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* Layout: tablet, laptop, desktop, etc */
@media (min-width: 601px) {
  .page {
    flex-direction: row;
    gap: var(--gap-content);
  }

  .site-header {
    margin-bottom: 0;
  }

  .gallery {
    min-width: 0;
  }
}

/* Layout: mobile */
@media (max-width: 600px) {
  :root {
    --space-page: 1rem;
  }
}