﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
    background: #000;
    color: #eee;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

p {
  max-width: 650px;
  color: #aaa;
}


.grid {
    display: grid;
    height: 100vh;
    overflow: hidden;
}

.page-frame {
    min-height: 0;
}

.page-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.menu-toggle {
    position: absolute;
    opacity: 0;
}

.menu-button {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    padding: 10px 16px;
    background: #000;
    color: white;
    cursor: pointer;
}

nav {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 35px;
    left: 0;
    width: min(280px, 85vw);
    padding: 70px 20px 20px;
    background: #000;
    transform: translateX(-100%);
    transition: transform 200ms ease;
    overflow-y: auto;
}

.menu-toggle {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    width: 20px;
    height: calc(100% - 35px);
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.menu-button {
    position: absolute;
    z-index: 3;
    top: calc((100% - 35px) / 2);
    left: 0;
    transform: translate(-100%, -50%);
    padding: 12px;
    background: #000;
    color: white;
    cursor: pointer;
    transition: transform 200ms ease;
}

.menu-toggle:hover + .menu-button,
.menu-toggle:focus-visible + .menu-button,
.menu-button:hover,
.menu-toggle:checked + .menu-button {
    transform: translate(0, -50%);
}

.menu-toggle:checked ~ nav {
    transform: translateX(0);
}

nav a {
    display: block;
    padding: 10px;
    color: white;
}

.projects {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  margin-top: 48px;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border: 1px solid #333;
  background: #000;
  color: #eee;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 150ms ease;
}

.project:hover,
.project:focus-visible {
  border-color: #eee;
}

.project span {
  color: #999;
  font-size: 0.9rem;
}
