
@font-face {
  font-family: "SF Pro Text";
  src: url("/fonts/SF-Pro-Text-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Text";
  src: url("/fonts/SF-Pro-Text-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --background: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: rgba(0, 0, 0, 0.07);
  --accent: #0071e3;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.72);
  --radius-large: 28px;
  --radius-medium: 20px;
  --radius-small: 14px;
  --shadow-soft: 0 8px 32px rgba(25, 35, 50, 0.07);
  --shadow-glass: 0 12px 40px rgba(20, 30, 50, 0.09);
  --content-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

body,
button,
input,
textarea,
select {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font-size: inherit;
}

button {
  color: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.5);
  outline-offset: 4px;
}

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

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: #ffffff;
  background: rgba(0, 113, 227, 0.8);
}

.site-shell {
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 68px;
  margin: 12px auto 0;
  padding: 10px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: 0 4px 24px rgba(30, 40, 60, 0.045);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.45px;
}

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.035);
}

.brand-icon svg {
  width: 21px;
  height: 21px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.glass-button,
.primary-button,
.secondary-button,
.login-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.login-button,
.glass-button {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-button:hover,
.glass-button:hover {
  background: rgba(255, 255, 255, 0.95);
}

.primary-button {
  color: #ffffff;
  background: var(--accent);
}

.primary-button:hover {
  background: #0077ed;
  box-shadow: 0 5px 18px rgba(0, 113, 227, 0.2);
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--surface-solid);
}

.secondary-button:hover {
  background: #f0f0f2;
}

.glass-button:active,
.primary-button:active,
.secondary-button:active,
.login-button:active,
.icon-button:active {
  transform: scale(0.97);
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 55vw, 680px);
  margin-top: -12px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 var(--radius-large) var(--radius-large);
  background: #dce7f4;
}

.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.76) 27%,
      rgba(255, 255, 255, 0.22) 58%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    linear-gradient(
      0deg,
      rgba(15, 30, 50, 0.13),
      transparent 35%
    );
  content: "";
}

.hero-content {
  width: min(720px, 75%);
  padding: clamp(36px, 7vw, 100px) clamp(24px, 5vw, 72px);
}

.hero-eyebrow {
  margin: 0 0 18px;
  color: rgba(29, 29, 31, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(42px, 6.6vw, 86px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 1.04;
}

.hero h1 strong {
  font-weight: 700;
}

.hero-description {
  max-width: 410px;
  margin: 22px 0 28px;
  color: rgba(29, 29, 31, 0.7);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero .glass-button {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 16px;
}

.section {
  padding-block: clamp(44px, 6vw, 76px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.section-count {
  flex: 0 0 auto;
  padding-bottom: 5px;
  color: var(--text-secondary);
  font-size: 13px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.album-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: var(--radius-medium);
  background: #d8e0e9;
  cursor: pointer;
  text-align: left;
  isolation: isolate;
  aspect-ratio: 1.08;
  box-shadow: var(--shadow-soft);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glass);
}

.album-card:active {
  transform: scale(0.99);
}

.album-cover {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.album-card:hover .album-cover {
  transform: scale(1.045);
}

.album-card::after {
  position: absolute;
  z-index: -1;
  inset: 35% 0 0;
  background: linear-gradient(
    0deg,
    rgba(12, 20, 32, 0.75),
    rgba(12, 20, 32, 0.2) 48%,
    transparent
  );
  content: "";
}

.album-info {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
}

.album-title {
  display: block;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.album-meta {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.album-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.album-arrow svg {
  width: 19px;
  height: 19px;
}

.album-view,
.photo-view {
  display: none;
}

.album-view.active,
.photo-view.active {
  display: block;
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.view-header h1 {
  margin: 8px 0 4px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
}

.view-header p {
  margin: 0;
  color: var(--text-secondary);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: #e6e8eb;
  cursor: pointer;
  isolation: isolate;
  aspect-ratio: 4 / 3;
}

.photo-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.photo-card:hover img {
  transform: scale(1.035);
}

.photo-watermark {
  position: absolute;
  z-index: 1;
  inset: -20%;
  display: grid;
  overflow: hidden;
  place-items: center;
  pointer-events: none;
  opacity: 0.55;
  transform: rotate(-28deg);
  user-select: none;
}

.photo-watermark span {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.photo-grid.clean .photo-watermark {
  display: none;
}

.photo-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.photo-lightbox {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(18, 20, 24, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.photo-lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  display: grid;
  width: min(1100px, 100%);
  max-height: 90vh;
  place-items: center;
}

.lightbox-image-wrap {
  position: relative;
  max-width: 100%;
  max-height: 82vh;
  overflow: hidden;
  border-radius: 12px;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-watermark {
  position: absolute;
  inset: -20%;
  display: grid;
  overflow: hidden;
  place-items: center;
  pointer-events: none;
  transform: rotate(-28deg);
  user-select: none;
}

.lightbox-watermark span {
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(26px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 5px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.photo-grid.clean ~ .photo-lightbox .lightbox-watermark,
.photo-lightbox.clean .lightbox-watermark {
  display: none;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 180ms ease;
}

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

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

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 25, 35, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-backdrop.open {
  display: flex;
  animation: fade-in 180ms ease both;
}

.login-modal {
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  animation: modal-in 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.modal-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 18px;
  background: #f0f0f2;
  color: var(--text);
}

.modal-icon svg {
  width: 25px;
  height: 25px;
}

.login-modal h2 {
  margin: 0;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.1px;
}

.login-modal > p {
  margin: 9px 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  font-size: 13px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.login-form input:focus {
  border-color: rgba(0, 113, 227, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.login-form .primary-button {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.modal-actions > button {
  flex: 1;
}

.login-message {
  min-height: 20px;
  margin: 0;
  color: #c93434;
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--text);
}

.empty-state {
  padding: 60px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.6px;
}

.empty-state p {
  margin: 0;
  color: var(--text-secondary);
}

[hidden] {
  display: none !important;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 1600px) {
  .hero {
    min-height: 700px;
  }
}

@media (max-width: 900px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 1.7;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content {
    width: 85%;
  }
}

@media (max-width: 600px) {
  .site-shell {
    width: calc(100% - 32px);
  }

  .site-header {
    top: 8px;
    width: calc(100% - 20px);
    min-height: 58px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 19px;
  }

  .brand {
    gap: 9px;
    font-size: 14px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .login-button {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .header-actions {
    gap: 6px;
  }

  .hero {
    min-height: 500px;
    margin-top: -8px;
    border-radius: 0 0 22px 22px;
  }

  .hero-image {
    object-position: 57% center;
  }

  .hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.85),
        rgba(255, 255, 255, 0.4) 72%,
        rgba(255, 255, 255, 0.1)
      ),
      linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.3),
        transparent 65%
      );
  }

  .hero-content {
    width: 100%;
    padding: 40px 24px;
  }

  .hero h1 {
    font-size: clamp(42px, 11vw, 62px);
  }

  .hero-description {
    max-width: 310px;
    font-size: 16px;
  }

  .section {
    padding-block: 42px;
  }

  .section-heading {
    align-items: start;
    margin-bottom: 20px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .section-count {
    padding-top: 7px;
    font-size: 12px;
  }

  .album-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .album-card,
  .album-card:last-child:nth-child(odd) {
    grid-column: auto;
    aspect-ratio: 1.25;
    border-radius: 18px;
  }

  .album-info {
    right: 15px;
    bottom: 15px;
    left: 15px;
  }

  .album-title {
    font-size: 17px;
  }

  .view-header {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .view-header h1 {
    font-size: 36px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .photo-card {
    border-radius: 12px;
  }

  .photo-watermark span {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .photo-lightbox {
    padding: 14px;
  }

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

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .login-modal {
    padding: 26px 22px;
    border-radius: 25px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 12px;
  }

  .login-button {
    gap: 5px;
    padding-inline: 10px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
