@font-face {
  font-family: "Typeright";
  src: url("fonts/TypeRight.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg: #000000;
  --text: #f5f5f5;
  --green: #18ff00;
  --green-hover: #31ff1b;
  --shadow: rgba(0, 0, 0, 0.25);
  --title-font: "Typeright", "American Typewriter", "Courier New", monospace;
  --button-font: "Typeright", "American Typewriter", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  font-family: var(--title-font);
}

.page {
  min-height: 100vh;
  width: 100%;
  padding: 4.2vw 4.6vw;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  background: #000;
}

.site-title {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
  color: #f3f3f3;
  white-space: nowrap;
  padding-top: 0.1em;
}

.button-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.75rem, 2vw, 2rem);
  padding-top: 0.3vw;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--green);
  color: #111;
  text-decoration: none;
  font-family: var(--button-font);
  font-size: clamp(1.85rem, 3.2vw, 3.5rem);
  line-height: 1;
  padding: 0.22em 0.35em 0.18em;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15), 0 1px 0 var(--shadow);
  transition: transform 120ms ease, background-color 120ms ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: var(--green-hover);
  transform: translateY(-1px);
  outline: none;
}

.nav-button:active {
  transform: translateY(0);
}

@media (max-width: 700px) {
  .page {
    min-height: 100vh;
    padding: 1.5rem 1rem;

    /* KEEP horizontal layout */
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }

  .site-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1;
    margin: 0;
    white-space: nowrap;
  }

  .button-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .nav-button {
    font-size: clamp(1rem, 4.5vw, 1.5rem);
    padding: 0.25em 0.4em 0.2em;
    line-height: 1;
    white-space: nowrap;
  }
}

.page {
  flex-wrap: wrap;
}
