:root {
  color-scheme: dark;
  --page: #121113;
  --header: #121113;
  --ink: #f6efea;
  --muted: #c1b6b7;
  --pink: #e09ea8;
  --line: #362f32;
  --red: #a12c46;
  --red-hover: #be3c59;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 var(--sans); }
body.gallery-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2 { margin: 0; }
section[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 5px; }
[aria-hidden="true"] { font-family: var(--sans); }
::selection { background: #984057; color: #fff; }

.shell { width: min(1232px, calc(100% - 104px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--page); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { background: var(--header); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 81px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand, .header-nav { display: flex; align-items: center; }
.brand { gap: 12px; font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.brand-accent { color: var(--pink); font-style: italic; }
.brand-mark { width: 42px; height: 42px; object-fit: contain; }
.header-nav { gap: 32px; }
.nav-gallery { font-size: 14px; color: var(--muted); }
.nav-gallery:hover, .quiet-link:hover, .back-top:hover { color: var(--pink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 53px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.24;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}
.link-arrow { display: inline-block; flex: none; position: relative; width: 15px; height: 15px; }
.link-arrow::before { content: ""; position: absolute; top: 7px; left: 2px; width: 11px; border-top: 1.5px solid currentColor; transform: rotate(-45deg); }
.link-arrow::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.arrow-down { transform: rotate(135deg); }
.arrow-up { transform: rotate(-45deg); }
.button-small { min-height: 42px; padding: 8px 14px; }
.button-outline { color: var(--ink); border-color: #684452; background: #23191d; }
.button-outline:hover { background: #352229; border-color: #a7707d; }
.button-primary { background: var(--red); color: #fff8f8; }
.button-primary:hover { background: var(--red-hover); }

.hero { position: relative; overflow: hidden; background: var(--page); }
.hero-inner { position: relative; isolation: isolate; min-height: 615px; display: flex; align-items: center; }
.hero-media { position: absolute; z-index: -1; inset: 0 0 0 29%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 47%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--page) 0%, rgba(18, 17, 19, .95) 5%, rgba(22, 17, 20, .55) 24%, rgba(18, 17, 19, .07) 47%, transparent 70%),
    linear-gradient(0deg, var(--page), transparent 27%);
  pointer-events: none;
}
.hero-content { padding: 62px 0 68px; width: min(52%, 620px); }
.overline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.overline::before { content: ""; width: 22px; border-top: 1px solid #b86f7d; }
.hero h1 { margin: 22px 0 27px -5px; font: 400 clamp(68px, 9.1vw, 140px)/.82 var(--serif); letter-spacing: -.072em; }
.hero h1 em { display: block; margin-left: 3px; color: var(--pink); font-weight: 400; }
.hero-description { max-width: 29ch; color: #d4c8c9; font-size: 17px; line-height: 1.66; }
.hero-actions { margin-top: 29px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 23px; }
.quiet-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; font-size: 13px; font-weight: 590; color: var(--muted); transition: color .2s ease; }

.gallery { padding-top: 69px; padding-bottom: 82px; }
h2 { font: 400 clamp(38px, 5.05vw, 69px)/1.05 var(--serif); letter-spacing: -.055em; }
h2 em { color: var(--pink); font-weight: 400; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.gallery-card { position: relative; isolation: isolate; display: block; aspect-ratio: 1.16; border: 1px solid #423239; border-radius: 8px; overflow: hidden; background: #251d20; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-card:nth-child(1) img { object-position: 61% center; }
.gallery-card:nth-child(2) img { object-position: 61% 45%; }
.gallery-card:nth-child(3) img { object-position: 48% center; }
.gallery-card:hover img { transform: scale(1.045); }
.gallery-card::after { position: absolute; content: ""; inset: 45% 0 0; background: linear-gradient(transparent, rgba(11, 8, 10, .83)); pointer-events: none; }
.card-caption { position: absolute; z-index: 1; left: 17px; right: 15px; bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-size: 14px; font-weight: 620; }
.card-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #b3969f; border-radius: 50%; background: #1d1519; font-size: 17px; font-weight: 400; }

.profile { padding-bottom: 57px; }
.profile-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 34px clamp(24px, 4.8vw, 64px) 39px;
  border: 1px solid #59323e; border-radius: 9px;
  background: radial-gradient(ellipse at 45% 0%, #382027, transparent 75%), linear-gradient(110deg, #28191e, #1d161a);
}
.profile-panel h2 { font-size: clamp(32px, 4.1vw, 56px); }
.handle { margin-bottom: 8px; color: var(--pink); font-size: 13px; font-weight: 620; letter-spacing: .05em; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 79px; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 12px; }
.footer-brand { font: 400 19px/1.1 var(--serif); color: var(--ink); }
.back-top { display: flex; align-items: center; gap: 8px; min-height: 44px; }

.photo-dialog { width: min(984px, calc(100% - 28px)); max-width: none; max-height: calc(100% - 26px); padding: 0; border: 1px solid #614752; border-radius: 10px; background: #1e171c; color: var(--ink); }
.photo-dialog::backdrop { background: rgba(9, 7, 9, .88); }
.lightbox { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-toolbar, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; }
.lightbox-counter { padding-left: 4px; color: var(--muted); font-size: 13px; }
.lightbox-image { width: 100%; height: min(68dvh, 710px); object-fit: contain; background: #100c0e; }
.lightbox-caption { text-align: center; color: var(--ink); font-size: 14px; }
.icon-button { min-width: 44px; min-height: 44px; padding: 0; border: 1px solid #624b55; border-radius: 6px; background: #2c2027; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.icon-button:hover { background: #48303b; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 72px); }
  .hero-inner { min-height: 562px; }
  .hero-content { width: 57%; }
  .hero-media { left: 25%; }
  .gallery { padding-top: 56px; padding-bottom: 62px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 38px); }
  .header-inner { min-height: 66px; }
  .brand { font-size: 21px; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .header-nav { gap: 12px; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-media { position: relative; inset: auto; order: 1; aspect-ratio: 1.12; margin-inline: -19px; margin-top: -7px; }
  .hero-media img { object-position: 59% 37%; }
  .hero-media::after { background: linear-gradient(180deg, var(--page) 0%, rgba(18,17,19,.16) 19%, transparent 32%), linear-gradient(0deg, var(--page), transparent 20%); }
  .hero-content { z-index: 1; width: 100%; padding: 41px 0 15px; }
  .hero h1 { font-size: clamp(52px, 13.1vw, 89px); line-height: .98; margin: 12px 0 12px -3px; }
  .hero h1 em { display: inline; margin-left: 0; }
  .hero-description { font-size: 16px; max-width: 35ch; }
  .hero-actions { margin-top: 19px; gap: 7px 17px; }
  .hero-actions .button { min-height: 46px; padding-inline: 14px; }
  .gallery { padding-top: 32px; padding-bottom: 46px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
  .gallery-card { aspect-ratio: 1.08; }
  .gallery-card:first-child { grid-column: 1 / -1; aspect-ratio: 1.59; }
  .card-caption { left: 12px; right: 9px; bottom: 9px; font-size: 13px; }
  .card-icon { width: 28px; height: 28px; font-size: 14px; }
  .profile { padding-bottom: 36px; }
  .profile-panel { flex-direction: column; align-items: flex-start; padding: 26px 21px; gap: 19px; }
  .profile-panel .button { min-height: 46px; }
  .footer-inner { flex-wrap: wrap; justify-content: space-between; gap: 3px 14px; padding-block: 13px; min-height: 67px; }
}
@media (max-width: 390px) {
  .nav-gallery { display: none; }
  .button-small { padding-inline: 10px; gap: 7px; }
  .back-top { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
