/* Hojak Games — colors taken from the logo (teal #08404a, white) */
:root {
  --teal: #08404a; /* Theme color; same as the logo's base color */
  --white: #ffffff;
  --muted: #b4d3d6;

  --bg: var(--teal);
  --fg: var(--white);
  --gutter: clamp(1rem, 5vw, 4.5rem);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  word-break: keep-all;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Header: language switch */
.top {
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem var(--gutter) 0;
}

.lang {
  font-size: 0.9375rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* Main */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--gutter) 3rem;
  text-align: center;
}

.logo {
  display: block;
  width: clamp(8rem, 30vw, 11rem);
  height: auto;
}

.name {
  margin: 1.5rem 0 0;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.intro {
  max-width: 26em;
  margin: 0.75rem 0 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  text-wrap: balance;
}

/* Contact */
.contact {
  margin-top: 2.5rem;
}

.contact-label {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--muted);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.email {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}

.copy {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--muted);
  border-radius: 999px;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
}

/* Hover styles only for pointer devices: on touch screens, :hover sticks after a tap */
@media (hover: hover) {
  .lang:hover,
  .email:hover {
    text-decoration-thickness: 2px;
  }

  .copy:hover {
    background: var(--fg);
    color: var(--bg);
  }
}

/* Footer */
.foot {
  padding: 0 var(--gutter) 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.foot p {
  margin: 0;
}
