@font-face {
  font-family: "Rethink Sans";
  src: url("./fonts/rethink-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Fahkwang";
  src: url("./fonts/fahkwang.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-ui: "Rethink Sans", system-ui, sans-serif;
  --font-display: "Fahkwang", system-ui, sans-serif;
  --color-background: #030404;
  --color-text: #edf8f9;
  --color-muted: #bac9cb;
  --color-accent: #91e0eb;
  --color-glow: #50d8ec8a;
  color-scheme: dark;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-ui);
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; }

.home {
  display: grid;
  align-items: start;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(8px, 3vw, 48px) clamp(8px, 5vw, 80px);
  background: var(--color-background) url("./wallpaper.png") center top / 100% auto repeat-y;
}

.home-panel {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  max-width: 100%;
  padding: 4px clamp(8px, 2vw, 20px);
  border: 1px solid #b5e1ea40;
  border-radius: 12px;
  background: #080f13d9;
  box-shadow: 0 12px 36px #0006;
}

.home-panel p {
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(0.75rem, 2.5vw, 1rem);
}

.home-panel .gallery-link {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .home {
    padding-inline: 8px;
  }

  .home-panel {
    justify-self: center;
    padding-block: 0;
  }

  .home-panel .gallery-link {
    gap: 6px;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
  }
}

.gallery-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: 500 0.9375rem/1.3 var(--font-ui);
  letter-spacing: 0.085em;
  cursor: pointer;
}

.gallery-link span { color: var(--color-accent); }

.gallery-link::after {
  position: absolute;
  inset: auto 4px 3px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent) 44%, transparent);
  box-shadow: 0 1px 8px var(--color-glow);
  content: "";
}

.gallery-link:hover { color: var(--color-accent); }
.gallery-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

dialog {
  width: min(420px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid #33484d;
  border-radius: 12px;
  background: #111a1d;
  color: var(--color-text);
}

dialog::backdrop { background: #000b; }
dialog h2 { margin: 0; font-size: 1.65rem; }
dialog p { margin: 8px 0 16px; color: var(--color-muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
