/* Aurora Photography GB — public gallery
   Palette taken from a winter aurora over dark water: near-black sky, ice-white
   type, and a green-to-violet band that only ever appears as a thin edge. */

:root {
  --night:   #070A12;
  --deep:    #0C1120;
  --surface: #121A2C;
  --ice:     #E9EEF9;
  --mist:    #8C97B0;
  --green:   #63E6B4;
  --violet:  #A98BFF;
  --rose:    #FF8FB1;
  --line:    rgba(233, 238, 249, 0.12);

  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --shell:   1240px;
  --gutter:  clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ice);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 40;
  background: var(--ice);
  color: var(--night);
  padding: 10px 16px;
}

/* --- Masthead & the aurora band ------------------------------------------ */

.masthead {
  position: relative;
  padding-top: clamp(36px, 7vw, 76px);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-bottom: clamp(24px, 4vw, 40px);
}

/* The logo replaces what used to be type here: the badge carries the aurora,
   so nothing around it needs to. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
}

.wordmark-badge {
  width: clamp(46px, 6vw, 66px);
  height: auto;
  transition: filter 500ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* The lockup has two lines of very different weight — set below about 34px
   the word PHOTOGRAPHY stops being readable, so this floor is deliberate. */
.wordmark-lettering {
  width: auto;
  height: clamp(34px, 4.4vw, 50px);
}

.wordmark:hover .wordmark-badge,
.wordmark:focus-visible .wordmark-badge {
  filter: drop-shadow(0 0 14px rgba(99, 230, 180, 0.45));
  transform: rotate(-3deg);
}

/* Kept for the gradient lettering used outside the logo lockup. */
.wordmark-aurora {
  font-style: italic;
  background: linear-gradient(96deg, var(--green), var(--violet) 62%, var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mist);
}

/* The band is the one flourish on the page: a 2px horizon line that drifts. */
.aurora-band {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, var(--green) 18%, var(--violet) 46%,
    var(--rose) 66%, var(--green) 84%, transparent 100%);
  background-size: 220% 100%;
  animation: drift 26s linear infinite;
  opacity: 0.85;
}

.aurora-band::after {
  content: "";
  display: block;
  height: 90px;
  background: linear-gradient(180deg, rgba(99, 230, 180, 0.10), transparent 78%);
}

@keyframes drift {
  from { background-position: 0% 50%; }
  to   { background-position: 220% 50%; }
}

/* --- Intro ---------------------------------------------------------------- */

.intro { padding-block: clamp(48px, 8vw, 88px) clamp(28px, 4vw, 44px); }

.intro-heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.02;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

.intro-copy {
  margin: 0;
  max-width: 46ch;
  color: var(--mist);
  font-size: 17px;
}

/* --- Album grid ----------------------------------------------------------- */

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 4vw, 52px) clamp(20px, 2.4vw, 32px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.album-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 5;
}

.album-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 600ms ease;
}

.album-cover-empty {
  background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, var(--deep) 12px, var(--deep) 24px);
}

.album-link:hover .album-cover,
.album-link:focus-visible .album-cover {
  transform: scale(1.035);
  filter: saturate(1.05);
}

/* Hover reveals the same band that runs under the masthead. */
.album-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--violet), var(--rose));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.album-link:hover .album-frame::after,
.album-link:focus-visible .album-frame::after { transform: scaleX(1); }

.album-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.15;
  margin: 18px 0 6px;
}

.album-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.album-blurb {
  margin: 10px 0 0;
  color: var(--mist);
  font-size: 15px;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(7, 10, 18, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--ice);
}

.badge-paid { border-color: rgba(169, 139, 255, 0.55); }

/* --- Album page ----------------------------------------------------------- */

.album-head { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px); }

.crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 20px;
}

.crumb a:hover { color: var(--green); }

.album-heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 6.4vw, 66px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

.album-facts {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.album-description {
  margin: 0;
  max-width: 62ch;
  color: rgba(233, 238, 249, 0.82);
}

.licence-note {
  margin-top: 32px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--violet);
  background: linear-gradient(120deg, rgba(169, 139, 255, 0.08), transparent 60%);
  max-width: 62ch;
}

.licence-heading {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}

.licence-copy { margin: 0 0 16px; color: rgba(233, 238, 249, 0.82); }

/* --- Contact sheet -------------------------------------------------------- */

.contact-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.frame { margin: 0; }

.frame-wide { grid-column: span 2; }

.frame-link {
  position: relative;
  display: block;
  background: var(--surface);
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.frame-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 400ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.frame-link:hover img,
.frame-link:focus-visible img { transform: scale(1.03); }

.frame-lock {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(7, 10, 18, 0.72);
  border: 1px solid var(--line);
  color: var(--mist);
}

.frame-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding-top: 10px;
  font-size: 14px;
  color: var(--mist);
}

.frame-title { color: var(--ice); }

.frame-price {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--violet);
  margin-left: auto;
}

/* The exposure strip: camera settings in the photographer's own shorthand. */
.exposure {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

/* --- Single photo --------------------------------------------------------- */

.single { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); }

.single-frame {
  margin: 0 0 28px;
  background: var(--surface);
}

.single-frame img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  margin-inline: auto;
}

.single-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px clamp(24px, 4vw, 56px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.single-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 10px;
  line-height: 1.1;
}

.single-caption { margin: 0; color: var(--mist); max-width: 56ch; }

.plate { margin: 0; display: grid; gap: 10px; }

.plate > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.plate dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  padding-top: 3px;
}

.plate dd { margin: 0; font-size: 15px; }

.single-actions { grid-column: 1 / -1; }

.locked-note { color: var(--mist); margin: 0 0 14px; }

.single-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.single-nav a:hover { color: var(--green); }

/* --- Buttons, pager, empty states ---------------------------------------- */

.button {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--line);
  color: var(--ice);
  background: transparent;
  cursor: pointer;
  transition: border-color 240ms ease, color 240ms ease, background 240ms ease;
}

.button:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(99, 230, 180, 0.06);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-bottom: clamp(56px, 8vw, 96px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pager-link:hover { color: var(--green); }
.pager-position { color: var(--mist); }

.empty { padding-block: clamp(60px, 10vw, 120px); }

.empty-heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 10px;
}

.empty-copy { color: var(--mist); margin: 0 0 24px; max-width: 48ch; }

/* --- Lightbox ------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 6, 11, 0.96);
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 24px;
}

.lightbox[hidden] { display: none; }

.lightbox-image {
  grid-column: 2;
  grid-row: 1;
  max-width: 100%;
  max-height: 84vh;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: none;
  border: 0;
  color: var(--mist);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 12px;
  transition: color 200ms ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--ice); }

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 30px;
}

.lightbox-prev { grid-column: 1; grid-row: 1; justify-self: start; }
.lightbox-next { grid-column: 3; grid-row: 1; justify-self: end; }

.lightbox-meta {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 16px 0 0;
  color: var(--mist);
  font-size: 14px;
}

/* --- Footer --------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 56px;
  color: var(--mist);
}

.footer-inner { display: grid; gap: 10px; }

.footer-mark {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ice);
}

.footer-badge { width: 34px; height: auto; opacity: 0.9; }

.footer-note { margin: 0; font-size: 13px; max-width: 62ch; }

.footer-links {
  margin: 6px 0 0;
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

/* --- Responsive & motion -------------------------------------------------- */

@media (max-width: 720px) {
  .frame-wide { grid-column: span 1; }
  .single-meta { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 40px 1fr 40px; padding: 12px; }
  .masthead-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-band { animation: none; }
  .wordmark:hover .wordmark-badge { transform: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
