:root {
  --paper: #f3efe4;
  --ink: #1b1814;
  --muted: #6a6358;
  --line: #d6cebf;
  --rust: #8c3214;
  --card: #fffdf8;
  --moss: #3d4a3c;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Newsreader", ui-serif, Georgia, serif;
}

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

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01" on, "kern" on;
  line-height: 1.5;
}

::selection {
  background: #ead9c8;
  color: var(--ink);
}

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

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

a:hover {
  color: var(--rust);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.wrap {
  width: 100%;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header__inner {
  max-width: 72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wrap--wide {
  max-width: 72rem;
}

.wrap--narrow {
  max-width: 48rem;
}

@media (min-width: 768px) {
  .site-header__inner,
  .site-footer__inner,
  .wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.site-brand__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.site-brand:hover .site-brand__name {
  color: var(--rust);
}

.custom-logo {
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.nav-count {
  display: inline-block;
  margin-left: 0.3rem;
  min-width: 1.15rem;
  padding: 0 0.3rem;
  background: var(--rust);
  color: var(--paper);
  font-size: 0.7rem;
  line-height: 1.3rem;
  text-align: center;
}

.auth-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .auth-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mine-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.mine-list__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.mine-list__item p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.mine-list__links {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  align-items: flex-start;
}

.has-desk .site-footer {
  display: none;
}

.has-desk .site-main {
  padding: 0;
}

.desk {
  display: grid;
  min-height: calc(100vh - 4rem);
}

@media (min-width: 960px) {
  .desk {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}

.desk__main {
  padding: 2rem 1.25rem 4rem;
}

@media (min-width: 768px) {
  .desk__main {
    padding: 2.5rem 2.5rem 5rem;
  }
}

.desk__actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.desk__queue {
  order: -1;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  padding: 1.25rem;
}

@media (min-width: 960px) {
  .desk__queue {
    order: 0;
    border-bottom: 0;
    border-left: 1px solid var(--line);
    position: sticky;
    top: 0;
    height: calc(100vh - 4rem);
    overflow: auto;
  }
}

.desk__queue-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 1rem;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.desk__queue-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.desk__queue-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.desk__queue-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid transparent;
  color: var(--ink);
}

.desk__queue-item span {
  font-size: 0.75rem;
  color: var(--muted);
}

.desk__queue-item:hover,
.desk__queue-item.is-active {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.site-nav__list a {
  color: var(--muted);
}

.site-nav__list a:hover,
.site-nav__cta,
.site-nav .current-menu-item a {
  color: var(--ink);
}

.site-nav__cta {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.site-nav__cta:hover {
  text-decoration-color: var(--ink);
}

.site-main {
  flex: 1;
}

.section {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
}

.kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  margin: 1.25rem 0 0;
  max-width: 48rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-text,
.lede {
  margin: 1.5rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lede {
  font-size: 1.2rem;
}

.hero-cta {
  margin: 2rem 0 0;
}

.scene-queue {
  margin-top: 2.5rem;
  padding: 0.9rem 0 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scene-queue .kicker {
  margin: 0;
}

.scene-queue__list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.scene-queue__item {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.scene-queue__item.is-yours {
  color: var(--ink);
}

.scene-queue__more {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  color: inherit;
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.btn--solid:hover {
  background: var(--rust);
  color: var(--paper);
}

.btn--outline {
  border-color: var(--ink);
  background: transparent;
}

.btn--outline:hover {
  background: var(--card);
  color: var(--ink);
}

.btn--disabled,
.btn--disabled:hover {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--card);
}

@media (min-width: 768px) {
  .filters {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .filters .field--grow {
    flex: 1;
    min-width: 0;
  }

  .filters .field:not(.field--grow) {
    width: 11rem;
  }
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--card);
}

.card__media {
  display: block;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--line);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__media img {
  transform: scale(1.02);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  flex: 1;
}

.card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.card__title a:hover {
  color: var(--rust);
}

.card__pitch {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card__meta {
  margin: 0;
  padding-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  border: 1px solid var(--line);
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.tag:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.tag--funding {
  border-color: var(--rust);
  color: var(--rust);
}

.tag--funding:hover {
  border-color: var(--rust);
  color: var(--ink);
}

.funding-callout {
  margin-top: 2rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.funding-callout strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
}

.crumb {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.crumb span {
  margin: 0 0.5rem;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.shots img {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: 32rem;
  object-fit: contain;
  object-position: top center;
  border: 1px solid var(--line);
  background: var(--card);
}

.desk .shots {
  max-width: none;
}

.desk .shots img {
  max-height: 220px;
  background: var(--line);
}

.prose {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.25rem;
}

.pull {
  margin: 2.5rem 0 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--rust);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink);
}

.meta-grid {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 0;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.meta-grid dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-grid dd {
  margin: 0.25rem 0 0;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.interest {
  margin-top: 3.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--card);
}

@media (min-width: 768px) {
  .interest {
    padding: 2rem;
  }
}

.interest h2 {
  margin: 0.5rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.5rem 0;
  border-radius: 0;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.field input[type="file"] {
  border-bottom: 0;
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.field-help {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  color: var(--ink);
}

.check-row input[type="checkbox"] {
  width: auto;
  border: 0;
  padding: 0;
}

.shot-edit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.shot-edit__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8rem;
  color: var(--ink);
}

.shot-edit__item img {
  width: 100%;
  height: 5.5rem;
  object-fit: contain;
  background: var(--line);
  border: 1px solid var(--line);
}

.shot-edit__item span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.shot-edit__item input[type="checkbox"] {
  width: auto;
  border: 0;
  padding: 0;
}

.field-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-legend {
  margin: 0 0 0.5rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
}

.choice__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.choice__hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.choice:has(:checked) {
  border-color: var(--ink);
  background: var(--paper);
}

.form-error {
  color: var(--rust);
  font-size: 0.875rem;
}

.notice {
  margin-top: 1.5rem;
}

.empty {
  margin-top: 4rem;
  max-width: 32rem;
}

.front-about {
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  max-width: 40rem;
  border-top: 1px solid var(--line);
}

.front-about__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.front-about__text {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.front-about__text p {
  margin: 0 0 1rem;
}

.front-about__text p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
}

.site-footer__text,
.site-footer__mail {
  margin: 0.35rem 0 0;
  max-width: 28rem;
}

.site-footer__menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--ink);
}

body {
  display: flex;
  flex-direction: column;
}
