@charset "UTF-8";

:root {
  color-scheme: dark;
  --ios-ink: #f3f3f3;
  --ios-secondary: #c3c0bc;
  --ios-action: #e7c59a;
  --ios-action-hover: #f0d3af;
  --ios-action-ink: #33281e;
  --ios-tint: #403932;
  --ios-surface: rgba(52, 52, 52, .82);
  --ios-shadow: 0 10px 26px #00000026, 0 2px 6px #00000012;
}

body {
  color: var(--ios-ink);
  background:
    radial-gradient(ellipse 75% 480px at 8% 0%, #343434 0%, transparent 100%),
    radial-gradient(ellipse 64% 590px at 100% 32%, #2b2b2b 0%, transparent 100%),
    #232323;
}

#portal-layout > .site-header {
  height: auto;
  min-height: 68px;
  margin-top: max(18px, env(safe-area-inset-top));
  padding: 10px 13px 10px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--ios-surface);
  box-shadow: var(--ios-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

#portal-layout .brand img {
  border-radius: 24%;
  box-shadow: 0 2px 5px #00000018;
}

#portal-layout .brand strong {
  color: var(--ios-ink);
  font-weight: 700;
  letter-spacing: -.02em;
}

#portal-layout .brand-dot { color: var(--ios-action); }

#portal-layout .admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ios-action);
  background: var(--ios-tint);
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

#portal-layout .admin-link span { margin-left: 0; }
#portal-layout .admin-link:hover { background: #50453a; }

#portal-home > .portal-hero { padding-top: 20px; }

.portal-banner {
  display: flex;
  align-items: center;
  min-height: 372px;
  padding: clamp(24px, 3.2vw, 44px);
  isolation: isolate;
  border: 0;
  border-radius: 36px;
  background: #2d2d2d;
  box-shadow: 0 16px 36px #00000035;
}

.portal-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #303030 0%, #303030 22%, #303030e8 37%, #24242468 67%, #20202036 100%),
    linear-gradient(#19191920, #19191948),
    url("./portal-banner.svg") right 54% / cover no-repeat;
}

.portal-hero-copy {
  width: fit-content;
  max-width: 100%;
  padding: clamp(22px, 2.5vw, 36px);
  border: 0;
  border-radius: 28px;
  background: linear-gradient(142deg, rgba(67, 67, 67, .82), rgba(46, 46, 46, .66));
  box-shadow: 0 8px 26px #00000024;
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}

.portal-banner h1 {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--ios-ink);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.16;
  text-shadow: none;
}

.portal-banner h1 > span { color: inherit; }

.portal-hero-copy .portal-institution {
  margin: 16px 0 21px;
  color: var(--ios-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.portal-hero-copy > .button {
  min-height: 46px;
  padding: 10px 19px;
  gap: 12px;
  background: var(--ios-action);
  color: var(--ios-action-ink);
  border-radius: 999px;
  box-shadow: 0 4px 10px #00000028;
  font-size: 15px;
  font-weight: 600;
}

#portal-layout .portal-hero-copy > .button:hover {
  background: var(--ios-action-hover);
  box-shadow: 0 5px 12px #00000032;
}

#portal-home > .collection { padding-block: 42px 46px; }
.collection > .collection-heading { margin-bottom: 20px; gap: 20px; }

.collection > .collection-heading > h2 {
  color: var(--ios-ink);
  font-weight: 700;
  letter-spacing: -.025em;
}

.collection-heading > .search {
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--ios-surface);
  box-shadow: 0 3px 10px #00000014;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.collection-heading > .search svg { color: var(--ios-secondary); }
.collection-heading > .search input { color: var(--ios-ink); }
.collection-heading > .search input::placeholder { color: var(--ios-secondary); opacity: 1; }
.collection-heading > .search:focus-within {
  background: #3b3b3b;
  box-shadow: 0 0 0 2px var(--ios-action);
}
.collection-heading > .search:focus-within > svg { color: var(--ios-action); }

.collection-grid > .collection-card {
  padding: 8px 8px 0;
  border: 0;
  border-radius: 27px;
  background: var(--ios-surface);
  box-shadow: var(--ios-shadow);
}

.collection-grid > .collection-card:hover {
  background: #3b3b3b;
  box-shadow: 0 14px 30px #00000038;
}

.collection-card > .card-art {
  overflow: hidden;
  border-radius: 19px;
  background: #424242;
}

.collection-card .card-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  bottom: 10px;
  right: 10px;
  color: var(--ios-action);
  background: #2f2f2fe6;
  border: 0;
  box-shadow: 0 3px 12px #00000026;
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}

.collection-card:not(:disabled):hover .card-arrow { background: #414141; }

.collection-card .card-body { padding: 13px 10px 15px; }
.collection-card .card-body h3 {
  color: var(--ios-ink);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.012em;
}

#portal-layout :is(.brand, .admin-link, .button, .collection-card, .site-footer a):focus-visible {
  outline: 2px solid var(--ios-action);
  outline-offset: 4px;
}

.collection .empty-state {
  padding: 30px 16px;
  color: var(--ios-secondary);
  background: var(--ios-surface);
  border: 0;
  border-radius: 24px;
}

#portal-home > .about-section {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
  border: 0;
  border-radius: 28px;
  background: var(--ios-surface);
  box-shadow: var(--ios-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.about-section > .about-inner { width: auto; padding: 30px; gap: 22px; }
.about-inner .about-mark {
  color: var(--ios-action);
  background: var(--ios-tint);
  border: 0;
  border-radius: 18px;
  transform: none;
}
.about-inner h2 { color: var(--ios-ink); font-size: clamp(22px, 2.2vw, 29px); font-weight: 650; }
.about-inner .about-copy { border: 0; padding-top: 0; }
.about-inner .about-copy h3 { color: var(--ios-secondary); }
#portal-layout > .site-footer { min-height: 86px; }
#portal-layout > .site-footer > a:last-child { color: var(--ios-action); font-size: 13px; }

@media (max-width: 1000px) {
  #portal-home > .about-section { width: calc(100% - 48px); }
}

@media (max-width: 760px) {
  #portal-home > .about-section { width: calc(100% - 36px); }
  .portal-banner::before { background-position: 0 0, 0 0, 70% center; }
}

@media (max-width: 600px) {
  #portal-layout > .site-header { min-height: 60px; padding: 7px 8px 7px 10px; }
  #portal-layout .admin-link { padding-inline: 13px; }
  #portal-home > .portal-hero { padding-top: 14px; }
  .portal-banner { min-height: 0; padding: 12px 12px 110px; border-radius: 27px; }
  .portal-banner::before {
    background:
      linear-gradient(180deg, #313131 0%, #313131e0 34%, #22222238 80%),
      url("./portal-banner.svg") 88% bottom / auto 86% no-repeat;
  }
  .portal-hero-copy { width: 100%; padding: 19px 16px 17px; border-radius: 21px; }
  .portal-banner h1 { font-size: clamp(29px, 8vw, 40px); line-height: 1.16; }
  .portal-hero-copy .portal-institution {
    font-size: clamp(12px, 3.35vw, 14px);
    line-height: 1.6;
    margin: 12px 0 15px;
  }
  .portal-hero-copy > .button { min-height: 44px; font-size: 14px; }
  #portal-home > .collection { padding-block: 32px 34px; }
  .collection > .collection-heading { gap: 12px; margin-bottom: 15px; }
  .collection-heading > .search input { font-size: 16px; }
  .collection-grid > .collection-card { padding: 5px 5px 0; border-radius: 20px; }
  .collection-card > .card-art { border-radius: 15px; }
  .collection-card .card-arrow { width: 30px; height: 30px; bottom: 7px; right: 7px; }
  .collection-card .card-body { padding: 10px 5px 11px; }
  .collection-card .card-body h3 { font-size: clamp(12px, 3.6vw, 16px); }
  #portal-home > .about-section { width: calc(100% - 32px); border-radius: 23px; }
  .about-section > .about-inner { padding: 21px; gap: 14px; }
}

@media (max-width: 370px) {
  #portal-home > .about-section { width: calc(100% - 26px); }
  .portal-banner { padding-inline: 9px; padding-bottom: 98px; }
  .portal-hero-copy { padding-inline: 13px; }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --ios-surface: #343434; }
  .portal-hero-copy, .collection-grid > .collection-card, .collection-card .card-arrow {
    background: #343434;
  }
  #portal-layout > .site-header, .portal-hero-copy, .collection-heading > .search,
  .collection-card .card-arrow, #portal-home > .about-section {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
