:root {
  --bg: #191a17;
  --bone: #ece5d6;
  --muted: #a5a196;
  --orange: #e08a3c;
  --line: #383a33;
  --kraft: #2a2a24;
  --string: #5b5c51;
  --pad: 32px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: 'REM', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--bone);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  font-family: 'Suez One', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--orange);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

/* Header */

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

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 68px;
  padding-block: 12px;
}

.brand {
  font-family: 'Suez One', Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--orange);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--bone);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.main-nav a[aria-current='page'] {
  border-bottom-color: var(--bone);
}

.btn {
  display: inline-block;
  background: var(--orange);
  border: 1px solid var(--orange);
  color: var(--bg);
  font-family: 'REM', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 24px;
  line-height: 1.2;
  white-space: nowrap;
}

.btn:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--bg);
}

.main-nav a.btn {
  color: var(--bg);
  background: var(--orange);
  border: 1px solid var(--orange);
  padding: 10px 16px;
  font-size: 11px;
  border-bottom: 1px solid var(--orange);
}

.main-nav a.btn:hover {
  color: var(--bg);
  background: var(--bone);
  border-color: var(--bone);
}

.btn-lg {
  padding: 15px 28px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: clamp(300px, 38vw, 520px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-right: max(32px, calc((100vw - 1240px) / 2));
  align-items: start;
}

.hero-photo {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--kraft);
  border-left: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 20%;
}

.hero-copy {
  padding-top: 56px;
  max-width: 640px;
}

.tag-panel {
  position: relative;
  width: 440px;
  max-width: 100%;
  background: var(--kraft);
  border: 1px solid var(--line);
  padding: 30px;
  margin-top: 34px;
}

.tag-panel .hanger {
  position: absolute;
  left: 50%;
  top: -90px;
  width: 1px;
  height: 90px;
  background: var(--string);
}

.eyelet {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid #74756a;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--kraft), inset 0 0 0 3px #74756a;
}

.tag-panel > .eyelet {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
}

.eyelet-sm {
  width: 12px;
  height: 12px;
  box-shadow: inset 0 0 0 1px var(--kraft), inset 0 0 0 3px #74756a;
}

.eyelet-xs {
  width: 8px;
  height: 8px;
  border-color: #6c6d61;
  box-shadow: none;
}

.ghost-num {
  position: absolute;
  right: 10px;
  bottom: 2px;
  font-family: 'Suez One', Georgia, serif;
  font-size: 132px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 229, 214, 0.08);
  pointer-events: none;
  user-select: none;
}

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

.kicker .hl {
  color: var(--orange);
}

.alias {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: -8px 0 18px;
}

.hero h1 {
  font-size: clamp(36px, 3.2vw, 46px);
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--bone);
  max-width: 32ch;
  margin-bottom: 26px;
}

/* Sections */

.section {
  padding-top: 64px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 18px;
}

.sec-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  min-width: 2.2em;
}

.section-head h2 {
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.1;
}

.rail {
  height: 1px;
  background: var(--line);
}

/* Partners */

.partner-row + .partner-row {
  margin-top: 56px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 270px);
  justify-content: space-between;
  gap: 0 40px;
  padding-top: 0;
}

.partner-tag {
  position: relative;
  display: block;
  padding-top: var(--drop, 24px);
  text-decoration: none;
}

.partner-tag .string {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: var(--drop, 24px);
  background: var(--string);
}

.partner-tag > .eyelet {
  position: absolute;
  left: 50%;
  top: calc(var(--drop, 24px) - 6px);
  transform: translateX(-50%);
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--kraft), inset 0 0 0 3px var(--orange);
}

.tag-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 270px;
  height: 176px;
  padding: 12px 9px;
  border: 1px solid var(--line);
  background: var(--kraft);
}

.tag-card img {
  width: 250px;
  height: 150px;
}

.partner-tag:hover .tag-card {
  border-color: var(--orange);
}

.partner-name {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.partner-tag:hover .partner-name {
  color: var(--orange);
}

/* Quick profile */

.profile-card {
  position: relative;
  max-width: 1000px;
  border: 1px solid var(--line);
  background: var(--kraft);
  padding: 34px 38px 24px;
}

.punch {
  position: absolute;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid #55574c;
}

.punch-left {
  left: 24px;
}

.punch-right {
  right: 24px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  margin: 0;
}

.pf {
  padding: 15px 0;
  border-bottom: 1px dotted #4d4f44;
}

.pf dt {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.pf dd {
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bone);
}

.claim-note {
  margin: 20px 0 0;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 52%) 1px minmax(0, 1fr);
  gap: 0 40px;
  align-items: start;
}

.about-text p {
  max-width: 56ch;
}

.about-grid .vline {
  display: block;
  width: 1px;
  height: 100%;
  min-height: 240px;
  background: var(--line);
}

.route {
  position: relative;
  margin-top: 34px;
  width: min(100%, 420px);
  height: 1px;
  background: var(--line);
}

.route span {
  position: absolute;
  top: -3px;
  width: 6px;
  height: 6px;
  background: var(--muted);
}

.route span:nth-child(1) {
  left: 8%;
}

.route span:nth-child(2) {
  left: 48%;
}

.route span:nth-child(3) {
  left: 88%;
}

.about-figure {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 40px;
}

.about-figure img {
  width: 340px;
  border: 1px solid var(--kraft);
}

/* Timetable */

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

.tt-head,
.tt-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 20px;
}

.tt-head {
  height: 38px;
  border-top: 2px solid #4a4c42;
  border-bottom: 2px solid #4a4c42;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.tt-row {
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.tt-row:last-child {
  border-bottom: 0;
}

.tt-year {
  font-family: 'Suez One', Georgia, serif;
  font-size: 22px;
  line-height: 1;
  color: var(--bone);
}

.tt-event {
  font-size: 15px;
  line-height: 1.55;
  padding-right: 12px;
}

.tt-code {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: right;
}

.tt-row.is-key .tt-year {
  color: var(--orange);
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.96fr 1.08fr;
  gap: 28px;
  align-items: start;
}

.gcol {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.hang {
  position: relative;
  margin: 0;
  padding-top: var(--drop, 24px);
}

.hang .string {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: var(--drop, 24px);
  background: var(--string);
}

.hang > .eyelet {
  position: absolute;
  left: 50%;
  top: calc(var(--drop, 24px) - 6px);
  transform: translateX(-50%);
}

.frame {
  display: block;
  width: var(--w, 336px);
  max-width: 100%;
  border: 1px solid var(--kraft);
  background: var(--kraft);
  padding: 8px;
}

.frame img {
  width: 100%;
}

/* Social */

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  border-top: 1px solid var(--line);
}

.social-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px dotted #4d4f44;
  text-decoration: none;
}

.social-item:hover {
  text-decoration: none;
}

.social-item .platform {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.social-item .handle {
  font-size: 15px;
  color: var(--bone);
  overflow-wrap: anywhere;
  text-align: right;
}

.social-item:hover .handle {
  color: var(--orange);
}

/* Footer */

.site-foot {
  margin-top: 88px;
  border-top: 0;
}

.foot-bar {
  position: relative;
  height: 1px;
  background: var(--line);
}

.foot-bar .eyelet {
  position: absolute;
  top: -4px;
  background: var(--bg);
}

.foot-bar .eyelet:nth-child(1) {
  left: 18%;
}

.foot-bar .eyelet:nth-child(2) {
  left: 50%;
}

.foot-bar .eyelet:nth-child(3) {
  left: 82%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding: 30px 0 34px;
  align-items: start;
}

.foot-brand {
  font-family: 'Suez One', Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.foot-brand p {
  margin-top: 8px;
  font-family: 'REM', 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  max-width: 36ch;
}

.foot-langs,
.foot-copy {
  font-size: 12px;
  color: var(--muted);
}

.foot-langs a {
  color: var(--muted);
  text-decoration: none;
}

.foot-langs a:hover {
  color: var(--orange);
}

.foot-langs .sep {
  padding: 0 4px;
  color: #6f7065;
}

.foot-copy {
  text-align: right;
  white-space: nowrap;
}

/* Subpages */

.page-head {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(38px, 4.4vw, 54px);
  line-height: 1.04;
  text-transform: uppercase;
  max-width: 22ch;
  margin-top: 14px;
}

.page-lead {
  margin-top: 20px;
  font-size: 17.5px;
  line-height: 1.65;
  max-width: 58ch;
  color: var(--bone);
}

.article {
  padding-top: 44px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 64px;
  align-items: start;
}

.article-body {
  max-width: 64ch;
}

.article-body h2 {
  font-size: 25px;
  line-height: 1.2;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.article-body p {
  max-width: 64ch;
}

.article-aside {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}

.aside-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.aside-row {
  display: block;
  padding: 10px 0;
  border-bottom: 1px dotted #4d4f44;
}

.aside-row dt {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.aside-row dd {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

/* Filmography */

.catalog-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  margin-top: 8px;
}

.count-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px dotted #4d4f44;
}

.count-row .yr {
  font-family: 'Suez One', Georgia, serif;
  font-size: 20px;
  line-height: 1;
}

.count-row .n {
  font-size: 14px;
  color: var(--muted);
}

.series-row,
.dist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px dotted #4d4f44;
  font-size: 14.5px;
}

.series-row .meta,
.dist-row .n {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.dist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}

/* FAQ */

.faq-item {
  border-top: 1px solid var(--line);
  padding: 26px 0 8px;
}

.faq-item h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.faq-item .q-num {
  font-family: 'REM', 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  min-width: 2em;
}

.faq-item p {
  max-width: 64ch;
  color: var(--bone);
}

/* 404 */

.lost {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 64px 24px;
}

.lost .tag-panel {
  margin-top: 0;
  text-align: center;
  padding: 44px 36px 38px;
}

.lost h1 {
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lost p {
  color: var(--muted);
  max-width: 34ch;
  margin: 0 auto 24px;
}

.lost .btn {
  margin-top: 4px;
}

/* Responsive */

@media (max-width: 1100px) {
  .partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 26px;
  }

  .tag-card {
    width: 100%;
    height: auto;
    aspect-ratio: 270 / 176;
  }

  .tag-card img {
    width: 100%;
    height: auto;
  }

  .hero {
    grid-template-columns: clamp(280px, 42vw, 460px) minmax(0, 1fr);
  }
}

@media (max-width: 940px) {
  .section {
    padding-top: 52px;
  }

  .hero {
    grid-template-columns: minmax(260px, 46%) minmax(0, 1fr);
    gap: 36px;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(34px, 4vw, 38px);
  }

  .tag-panel {
    padding: 26px;
  }

  .tag-panel .hanger {
    top: -58px;
    height: 58px;
  }

  .ghost-num {
    font-size: 104px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .about-grid .vline {
    display: none;
  }

  .about-figure {
    justify-content: flex-start;
  }

  .about-figure img {
    width: min(340px, 100%);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gcol:nth-child(3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .foot-copy {
    text-align: left;
    white-space: normal;
  }

  .article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .article-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 40px);
  }

  body {
    font-size: 16px;
  }

  .head-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 14px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .main-nav a.btn {
    padding: 9px 13px;
  }

  .hero {
    display: block;
    padding-right: 0;
  }

  .hero-photo {
    max-width: 100%;
    border-right: 0;
  }

  .hero-copy {
    padding: 0 20px;
    max-width: none;
  }

  .tag-panel {
    width: 100%;
    margin-top: 46px;
    padding: 28px 22px;
  }

  .tag-panel .hanger {
    top: -20px;
    height: 20px;
  }

  .ghost-num {
    font-size: 84px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 36px);
  }

  .lead {
    max-width: 38ch;
  }

  .partner-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .partner-tag .string {
    left: 18px;
  }

  .partner-tag > .eyelet {
    left: 18px;
    transform: none;
  }

  .tag-card {
    aspect-ratio: auto;
    height: 176px;
    padding: 12px 9px;
  }

  .tag-card img {
    width: 250px;
    max-width: 100%;
    height: auto;
  }

  .profile-card {
    padding: 26px 20px 20px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .punch-left {
    left: 14px;
  }

  .punch-right {
    right: 14px;
  }

  .tt-head,
  .tt-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .tt-head span:last-child,
  .tt-code {
    display: none;
  }

  .tt-row {
    min-height: 56px;
    padding: 10px 0;
  }

  .tt-year {
    font-size: 18px;
  }

  .tt-event {
    font-size: 14.5px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .gcol {
    gap: 30px;
  }

  .gcol:nth-child(3) {
    gap: 20px;
  }

  .frame {
    width: 100%;
  }

  .social-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 28px;
  }

  .foot-copy {
    text-align: left;
    white-space: normal;
  }

  .page-head {
    padding: 44px 0 28px;
  }

  .page-head h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .catalog-counts,
  .dist-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .series-row,
  .dist-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .series-row .meta,
  .dist-row .n {
    text-align: left;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
