@font-face {
  font-family: "Acrom";
  src: url("../fonts/Acrom-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Acrom";
  src: url("../fonts/Acrom-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Acrom";
  src: url("../fonts/Acrom-Bold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fcfcfc;
  --ink: #000;
  --btn: #222222;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: "Acrom", Arial, sans-serif;
  font-weight: 400;
  min-height: 100vh;
}

button, input, textarea, select { font-family: inherit; }

.page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 88px;
  text-align: center;
}

.portrait {
  width: 268px;
  height: 268px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  margin: 0 auto;
  background: #ececec;
}

.title {
  margin: 26px 0 0;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
}

.pill {
  appearance: none;
  border: 0;
  background: var(--btn);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 50px;
  height: 60px;
  padding: 0 68px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pill:hover { background: #000; }

a.pill,
label.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pill.line {
  background: transparent;
  color: #222;
  box-shadow: inset 0 0 0 1.5px #222;
}

.pill.line:hover { background: #222; color: #fff; }

.pill.small {
  height: 48px;
  padding: 0 26px;
  font-size: 15px;
}

.file-pill { cursor: pointer; }
.file-pill input { display: none; }

.pill:focus-visible,
.social:focus-visible,
.project-shot:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.panel {
  width: min(760px, 100%);
  margin: 28px auto 8px;
  text-align: center;
}

.person + .person { margin-top: 54px; }

.person-name {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
}

.prose {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
}

.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

.works { width: min(860px, 100%); margin-top: 8px; }
.works > .menu { margin-top: 8px; }

.work {
  width: min(860px, 100%);
  margin: 42px auto 0;
}

.work-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e8e8e8;
  cursor: zoom-in;
}

.work-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.work .prose { margin: 26px auto 0; }

.work-link {
  display: inline-block;
  margin-top: 14px;
  color: inherit;
  font-size: 20px;
  line-height: 1.55;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}

.social {
  width: 48px;
  height: 48px;
  display: block;
}

.social svg { display: block; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 48px);
  object-fit: contain;
}

.admin-page { text-align: center; width: min(760px, calc(100% - 40px)); }

.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.stack > .pill {
  min-width: 230px;
}

.login {
  text-align: center;
  padding-top: 8vh;
}

.login .portrait {
  width: 180px;
  height: 180px;
  margin-bottom: 8px;
}

.login form {
  width: min(420px, 100%);
  margin: 36px auto 0;
}

.field { margin: 0 0 26px; text-align: center; }

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #222;
  background: transparent;
  color: #000;
  font-size: 18px;
  line-height: 1.45;
  padding: 8px 0;
  border-radius: 0;
  text-align: center;
}

textarea {
  border: 1px solid #dedede;
  padding: 16px 18px;
  min-height: 160px;
  resize: vertical;
}

.card {
  padding: 8px 0 36px;
}

.card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 28px 0 18px;
}

.preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eee;
  margin: 8px 0 18px;
}

.preview.round {
  width: 180px;
  height: 180px;
  aspect-ratio: auto;
  border-radius: 50%;
  object-position: center 22%;
}

.note {
  min-height: 1.4em;
  margin: 4px 0 0;
  font-size: 16px;
  text-align: center;
}

.section-title {
  margin: 48px 0 18px;
  font-size: 24px;
  font-weight: 600;
}

.person-block { margin-top: 18px; }

@media (max-width: 640px) {
  .page { padding-top: 36px; }
  .portrait { width: 220px; height: 220px; }
  .prose, .work-link { font-size: 17px; }
  .pill { padding: 0 42px; font-size: 16px; }
}
