:root {
  --bg-color: #ffffff;
  --text-main: #1d1d1f;
  --text-muted: #86868b;
  --text-brand: #1d1d1f;
  --text-copy: #86868b;
  --link-hover: #000000;
  --menu-color: #86868b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: system-ui, -apple-system, sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

.hidden {
  display: none !important;
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-weight: 100;
  color: var(--text-muted);
  font-size: 13px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.app-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1.5rem;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@media (min-width: 640px) {
  .app-container { padding: 3rem; }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1.brand-name {
  font-size: 13px;
  letter-spacing: 0.35em;
  font-weight: 100;
  color: var(--text-brand);
  text-transform: uppercase;
}

@media (min-width: 640px) {
  header h1.brand-name { font-size: 15px; }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 20;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-muted);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
}

.menu-toggle:hover span {
  background-color: var(--menu-color);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15;
  background-color: var(--bg-color);
  touch-action: none;
  overflow: hidden;
}

.menu-drawer.open {
  transform: translateX(0);
}

.menu-drawer a {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.menu-drawer a:hover {
  opacity: 0.5;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  main { gap: 1.5rem; }
}

main h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

@media (min-width: 640px) {
  main h2 { font-size: 1.5rem; }
}

.emoji-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  font-size: 1rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .emoji-container {
    gap: 0.625rem;
    font-size: 1.25rem;
  }
}

.emoji-container span {
  cursor: default;
  transition: transform 0.2s ease;
}

.emoji-container span:hover {
  transform: scale(1.25);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.copyright {
  font-size: 10px;
  color: var(--text-copy);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .copyright { font-size: 0.75rem; }
}

.social-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .social-nav { gap: 0.5rem; }
}

.social-nav a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.025em;
}

@media (min-width: 640px) {
  .social-nav a { font-size: 0.875rem; }
}

.social-nav a:hover {
  color: var(--link-hover);
}
