/* Collaborators – colinschaelli.com look */
@font-face { font-family: DawnG; src: url("../../assets/dawng-thin.woff2") format("woff2"); font-weight: 100; font-display: swap; }
@font-face { font-family: DawnG; src: url("../../assets/dawng-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: DawnG; src: url("../../assets/dawng-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --accent: #DEEA17; --fg: #EDEBE6; --bg: #0E0E0E; --muted: #8A8A8A; --soft: #BDBAB3;
  --line: #3A3A3A; --img-bg: #1A1A1A;
  --t-head: .08em; --t-body: .048em; --t-label: .128em;
  --pad: clamp(20px, 3vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 15px/1.55 DawnG, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: var(--t-body); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }

.label { font-size: 12px; letter-spacing: var(--t-label); text-transform: uppercase; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }

/* header / footer – same as the other subpages */
html { background: #0E0E0E; }
.top { display: flex; justify-content: space-between; gap: 16px; padding: clamp(20px, 3vw, 40px); letter-spacing: var(--t-label); font-size: 14px; }
.top b { font-weight: 700; }
.top > a, .top a b { display: block; }
.end { width: 100%; max-width: 1280px; margin: 100px auto 0; padding: 0 var(--pad); }
.end::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 24px; }
.end .back { display: inline-block; color: var(--accent); }
.end .back:hover { color: var(--fg); }
.foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-bottom: 48px; color: var(--muted); }
.foot a { color: var(--muted); } .foot a:hover { color: var(--accent); }
@media (max-width: 760px) { .foot { margin-top: 36px; padding-bottom: 36px; font-size: 12px; } }

.cs-veil { position: fixed; inset: 0; z-index: 10000; background: #0E0E0E; pointer-events: none; animation: csVeil .01s linear 2.5s forwards; }
.cs-veil.out { animation: none; opacity: 0; visibility: hidden; transition: opacity 1.1s cubic-bezier(.4,0,.2,1), visibility 0s linear 1.1s; }
@keyframes csVeil { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .cs-veil { display: none; } }

/* hero */
.hero { padding: clamp(60px, 12vw, 150px) 0 clamp(50px, 8vw, 90px); max-width: 820px; }
.hero-small { padding-bottom: 40px; }
h1 { font-weight: 700; font-size: clamp(44px, 7vw, 92px); line-height: 1; letter-spacing: var(--t-head); margin: 14px 0 26px; }
.lead { font-size: clamp(15px, 1.4vw, 18px); color: var(--soft); max-width: 600px; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; margin-top: 40px; }

.btn { display: inline-block; background: var(--accent); color: #0E0E0E; border: 0; padding: 16px 26px;
  font: 700 14px/1 DawnG, "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: var(--t-label);
  cursor: pointer; transition: transform .15s; }
.btn:hover { color: #0E0E0E; transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* grid of pages */
.section-head { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-left: 1px solid var(--line); }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 24px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 360px; transition: background .2s; }
.card:hover { background: #151515; color: var(--fg); }
.card:hover .card-name { color: var(--accent); }
.card-no { position: absolute; top: 22px; right: 22px; }
.avatar { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; background: var(--img-bg); display: block; margin-bottom: 8px; filter: grayscale(.15); }
.avatar-initials { display: grid; place-items: center; font-weight: 700; font-size: 26px; letter-spacing: .08em; color: var(--accent); border: 1px solid var(--line); }
.card-name { font-weight: 700; font-size: 22px; letter-spacing: var(--t-head); line-height: 1.15; transition: color .2s; }
.card-story { color: var(--soft); font-size: 14px; flex: 1; }
.card-quote { font-weight: 700; font-size: 17px; line-height: 1.4; letter-spacing: var(--t-head); flex: 1; }
.card:hover .card-quote { color: var(--fg); }
.card-foot { gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; letter-spacing: .08em; color: var(--accent); border: 1px solid #5c6110; padding: 4px 8px 3px; }
.stat { margin: 0; }
.card-foot { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 14px; }
.empty { padding: 40px 0; color: var(--soft); }
.empty a { color: var(--accent); }

/* single page */
.entry { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(30px, 6vw, 90px); padding-top: clamp(40px, 8vw, 100px); }
.avatar-big { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; font-size: 64px; }
.facts { margin: 26px 0 0; display: grid; gap: 4px 0; }
.facts dt { margin-top: 14px; }
.facts dd { margin: 2px 0 0; }
.facts a { border-bottom: 1px solid var(--line); }
.entry h1 { margin-bottom: 30px; }
.quote { font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; letter-spacing: var(--t-head); color: var(--accent); max-width: 720px; margin: 0 0 50px; }
.entry h2 { margin-top: 0; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-bottom: 50px; }
.proj { display: grid; gap: 6px; }
.proj-img { display: block; aspect-ratio: 4 / 3; background: var(--img-bg) center / cover no-repeat; filter: grayscale(.2); transition: filter .2s; }
.proj:hover .proj-img { filter: none; }
.proj-title { font-weight: 700; letter-spacing: var(--t-head); margin-top: 6px; }
.proj-other { border: 1px solid var(--line); padding: 16px; align-content: start; }
.entry h2 { margin: 0 0 12px; }
.story { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; max-width: 680px; }
.answers { margin: 56px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.answers div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.answers dd { margin: 6px 0 0; font-weight: 700; letter-spacing: var(--t-head); }
.pager { display: flex; justify-content: space-between; margin-top: 70px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; letter-spacing: var(--t-label); text-transform: uppercase; }

/* form */
.book-form { max-width: 820px; display: grid; gap: 34px; }
.book-form.narrow { max-width: 380px; }
.book-form > .btn { justify-self: start; }
.book-form label > .muted { margin-top: -6px; font-size: 12px; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 22px 0 0; margin: 0; display: grid; gap: 22px; }
legend { padding: 0 0 18px; float: left; width: 100%; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 28px; }
.book-form label { display: grid; gap: 8px; font-size: 13px; letter-spacing: .1em; color: var(--soft); }
.book-form label.short { max-width: 180px; }
input, textarea {
  width: 100%; background: transparent; color: var(--fg); border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; font: 400 17px/1.5 DawnG, "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: var(--t-body);
  border-radius: 0; outline: none; transition: border-color .2s;
}
textarea { border: 1px solid var(--line); padding: 14px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #555; }
.file input { border: 0; font-size: 13px; color: var(--muted); }
.file input::file-selector-button { background: transparent; color: var(--fg); border: 1px solid var(--line); padding: 10px 16px;
  margin-right: 14px; font: inherit; letter-spacing: .1em; cursor: pointer; }
.file input::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
.check { grid-template-columns: 20px 1fr !important; align-items: start; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { max-width: 820px; border-left: 3px solid var(--accent); padding: 6px 0 6px 18px; margin-bottom: 30px; }
.notice p { margin: 4px 0; }


/* project picker */
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pick-item { position: relative; display: grid !important; gap: 8px !important; cursor: pointer; }
.pick-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-img { display: block; aspect-ratio: 4 / 3; background: var(--img-bg) center / cover no-repeat; filter: grayscale(1) brightness(.7); outline: 1px solid var(--line); transition: filter .15s, outline-color .15s; }
.pick-item:hover .pick-img { filter: grayscale(.4) brightness(.9); }
.pick-item input:checked + .pick-img { filter: none; outline: 3px solid var(--accent); outline-offset: -3px; }
.pick-item input:focus-visible + .pick-img { outline: 2px solid var(--fg); }
.pick-text { font-size: 13px; color: var(--soft); letter-spacing: .08em; }
.pick-item input:checked ~ .pick-text { color: var(--accent); }

/* admin */
.admin-group { margin-bottom: 60px; }
.admin-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.admin-row .avatar { width: 64px; height: 64px; font-size: 18px; }
.admin-row p { margin: 10px 0 0; color: var(--soft); }
.admin-actions { display: flex; flex-direction: column; gap: 8px; }
.admin-actions .btn { padding: 11px 16px; font-size: 12px; }

@media (max-width: 720px) {
  .entry { grid-template-columns: 1fr; }
  .entry-side { max-width: 320px; }
  .admin-row { grid-template-columns: 1fr; }
  .admin-actions { flex-direction: row; }
}
