@font-face {
  font-family: "Chakra Petch";
  src: url("/fonts/chakra-petch-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  src: url("/fonts/chakra-petch-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f6f4f0;
  --text: #111;
  --font: "Chakra Petch", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vh, 3.5rem);
  padding: clamp(2rem, 6vh, 4rem) 1rem;
  text-align: center;
}

.logo {
  margin: 0;
}

.logo img {
  display: block;
  width: clamp(160px, 40vw, 260px);
  height: auto;
  margin: 0 auto;
}

.work {
  width: min(100%, 58vh, 680px);
}

.work img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 12px 40px -12px rgb(0 0 0 / 0.25);
}

.mail {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
  transition: opacity 0.2s;
}

.mail:hover,
.mail:focus-visible {
  opacity: 0.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #f2f0ec;
  }
}
