:root {
  --bg: #0f0e0d;
  --panel: #1a1917;
  --panel2: #232120;
  --line: #34312e;
  --text: #f2ece3;
  --dim: #a49c90;
  --gold: #d8a657;
  --gold-ink: #1a1206;
  --rose: #c97a6d;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); min-height: 100vh;
  font: 16px/1.55 system-ui, "Segoe UI", sans-serif;
  background-image: radial-gradient(900px 500px at 50% -10%, #241f1a 0%, transparent 70%);
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button {
  background: var(--panel2); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: .15s;
}
button:hover { border-color: var(--gold); }
button.gold { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); font-weight: 650; }
button.gold:hover { filter: brightness(1.08); }
button.outline { background: transparent; color: var(--gold); border-color: var(--gold); font-weight: 600; }
button.outline:hover { background: rgba(216, 166, 87, .12); }
button:disabled { opacity: .5; cursor: default; }
input[type=search], input[type=text] {
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 20px; width: 100%; outline: none;
}
input[type=search]:focus { border-color: var(--gold); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px 80px; }

header.top {
  position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px);
  background: rgba(15, 14, 13, .82); border-bottom: 1px solid var(--line);
}
header.top .inner {
  max-width: 1240px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand .mark { font-family: var(--serif); font-size: 25px; letter-spacing: .04em; color: var(--gold); }
.brand:hover .mark { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.brand .sub { color: var(--dim); font-size: 13px; }
header.top nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
header.top nav a { text-decoration: none; }
header.top nav button { white-space: nowrap; }
header.top nav button.on { border-color: var(--gold); color: var(--gold); }

.hero { text-align: center; padding: 54px 0 30px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; letter-spacing: .01em;
  font-size: clamp(34px, 6vw, 60px); margin: 0 0 10px;
}
.hero p { color: var(--dim); margin: 0 auto; max-width: 620px; }
.hero p + p { margin-top: 8px; }
.hero .kicker {
  display: inline-block; margin-bottom: 14px; padding: 4px 14px; border: 1px solid var(--gold);
  border-radius: 999px; color: var(--gold); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
}
.searchbar { max-width: 560px; margin: 26px auto 0; position: relative; }

.section-title {
  font-family: var(--serif); font-size: 26px; margin: 38px 0 16px;
  display: flex; align-items: baseline; gap: 12px;
}
.section-title small { font-family: system-ui, sans-serif; font-size: 13px; color: var(--dim); font-weight: 400; }

.people { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.person {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 10px; text-align: center; cursor: pointer; text-decoration: none;
  display: block; transition: .15s;
}
.person:hover { border-color: var(--gold); transform: translateY(-2px); }
.avatar {
  width: 78px; height: 78px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px;
  display: grid; place-items: center; background: var(--panel2);
  border: 2px solid var(--line); font-family: var(--serif); font-size: 27px; color: var(--dim);
}
.person .nm { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .ct { color: var(--dim); font-size: 12.5px; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.shot {
  position: relative; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: #000; aspect-ratio: 3 / 2; border: 1px solid var(--line);
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .35s; }
.shot:hover img { transform: scale(1.04); }
.shot .who {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); opacity: 0; transition: .2s;
}
.shot:hover .who { opacity: 1; }

.profile { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 28px 0 6px; }
.profile .avatar { width: 108px; height: 108px; font-size: 38px; margin: 0; }
.profile h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5vw, 46px); margin: 0; }
.profile > div:last-child { flex: 1 1 300px; min-width: 0; }
.profile .meta { color: var(--dim); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.friends { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; }
.friend {
  flex: none; width: 108px; text-align: center; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px;
  transition: .15s;
}
.friend:hover { border-color: var(--gold); }
.friend .avatar { width: 58px; height: 58px; font-size: 21px; }
.friend .nm { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend .ct { font-size: 11.5px; color: var(--dim); }

.empty { color: var(--dim); text-align: center; padding: 60px 20px; }
.people .note { grid-column: 1 / -1; color: var(--dim); font-size: 13.5px; margin: 10px 0 -2px; }
.people .empty { grid-column: 1 / -1; }
.muted { color: var(--dim); font-size: 13px; }
.pill { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; }

/* lightbox */
#box { position: fixed; inset: 0; z-index: 50; background: rgba(8, 7, 6, .95); display: none; }
#box.on { display: grid; grid-template-rows: 1fr auto; }
#box .stage { display: grid; place-items: center; padding: 18px; min-height: 0; }
#box img { max-width: 100%; max-height: calc(100vh - 190px); border-radius: 8px; box-shadow: var(--shadow); }
#box .bar {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  padding: 12px 18px 20px;
}
#box .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#box .btns a { text-decoration: none; }
#box .arrow {
  position: fixed; top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1;
  padding: 14px 18px; background: rgba(0, 0, 0, .45);
}
#box .arrow.prev { left: 14px; } #box .arrow.next { right: 14px; }
#box .names { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
#box .names a { text-decoration: none; }

footer { color: var(--dim); font-size: 13px; text-align: center; padding: 30px 20px 60px; }

@media (max-width: 640px) {
  .brand .sub, .brand .long { display: none; }
  header.top .inner { gap: 10px; padding: 10px 14px; }
  header.top nav { gap: 6px; }
  header.top nav button { padding: 7px 11px; font-size: 13.5px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .people { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
  #box .arrow { padding: 10px 12px; font-size: 20px; }
}
@media (max-width: 360px) {
  header.top .inner { gap: 8px; padding: 10px 10px; }
  header.top nav { gap: 4px; }
  header.top nav button { padding: 6px 8px; font-size: 12.5px; }
}
