/* kasingfung.com — dukope-inspired minimal layout */

:root {
  --bg: #e6e4df;
  --fg: #1a1a1a;
  --rule: rgba(0, 0, 0, 0.12);
  --max: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", Times, serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  z-index: 100;
}

.page {
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto;
  padding: 2.5rem 0 4rem;
}

/* masthead — “GAMES BY …” style */
.masthead {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.masthead-title {
  margin: 0;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  text-transform: uppercase;
  font-family: inherit;
}

.profile-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.profile-pic {
  width: min(160px, 40vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.works {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.work {
  margin: 0;
  max-width: 100%;
}

.work img {
  display: block;
  width: 100%;
  max-width: 24rem;
  height: auto;
  border: 1px solid var(--rule);
}

.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.8rem;
  color: #444;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer-copy {
  margin-bottom: 0.75rem !important;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer a:hover {
  color: var(--fg);
}
