/* Nordic Design */

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --max-width: 860px;
  --text: #222;
  --muted: #6b6b6b;
  --gap: 4px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Quicksand", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  padding: 56px 0 40px;
  text-align: right;
}

.site-header h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 250ms ease;
  pointer-events: none;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  background: rgba(0, 0, 0, 0.12);
}

.gallery-item:focus-visible {
  outline: 2px solid #222;
  outline-offset: -2px;
}

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f3f3f3;
  opacity: 0;
  transition: opacity 400ms ease, transform 350ms ease;
}

.gallery img.is-loaded,
.founders-photo img.is-loaded {
  opacity: 1;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item:active img {
  transform: scale(0.97);
  transition-duration: 100ms;
}

/* About */

.about {
  padding: 56px 0 8px;
  max-width: 640px;
}

.about p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 22px;
}

/* Contact */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 24px 0 64px;
}

.contact .person {
  min-width: 220px;
}

.contact p {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.contact .name {
  font-weight: 700;
  color: var(--text);
}

.contact .kana {
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

.contact .role {
  color: var(--muted);
  margin-bottom: 8px;
}

/* Founders photo */

.founders-photo {
  margin: 0 0 0;
  width: 100%;
}

.founders-photo img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 400ms ease;
}

/* Footer */

.site-footer {
  text-align: center;
  padding: 28px 0 48px;
  font-size: 0.75rem;
  color: #a3a3a3;
}

.site-footer p {
  margin: 0 0 4px;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
  padding: 40px;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.96);
  transition: transform 250ms ease;
}

.lightbox.is-open .lightbox-figure {
  transform: scale(1);
}

.lightbox-figure img {
  display: block;
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-figure figcaption {
  margin-top: 16px;
  color: #d8d8d8;
  font-size: 0.85rem;
  text-align: center;
  max-width: 60ch;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 150ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-close:active,
.lightbox-nav:active {
  transform: scale(0.92);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.92);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 16px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

/* Responsive */

@media (max-width: 560px) {
  .site-header {
    text-align: left;
    padding: 32px 0 24px;
  }

  .site-header h1 {
    font-size: 1.8rem;
  }

  .about {
    padding-top: 32px;
  }

  .contact {
    padding-bottom: 40px;
  }
}
